@open-dy/ai_coding_sdk 1.0.13 → 1.0.15

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.
@@ -1 +1,27 @@
1
- export {};
1
+ import type { CallOptions, OpenAPIResponse } from '../core';
2
+ export interface UserCertLabelsInfoParams {
3
+ /** 待查询用户 open_id,通过 /oauth/access_token/ 获取 */
4
+ open_id: string;
5
+ }
6
+ export type UserCertLabelStyle = 0 | 3 | 5 | 7;
7
+ export interface UserCertLabelInfo {
8
+ /** 认证类型:0 不展示,3 黄 V,5 蓝 V,7 红 V */
9
+ LabelStyle?: UserCertLabelStyle;
10
+ /** 认证文案 */
11
+ LabelText?: string;
12
+ }
13
+ export interface UserCertLabelsInfoResponse {
14
+ /** 所查询用户认证标识信息 */
15
+ CertLabelInfo?: UserCertLabelInfo;
16
+ }
17
+ /**
18
+ * 获取用户的抖音身份认证标识
19
+ *
20
+ * - Path: `/dy_open_api/v1/user/cert_labels_info/`
21
+ * - Capability: `dy.open.user.cert.labels_info`
22
+ * - Scope: `user.cert.labels_info`
23
+ * - 需要用户授权: 是(按表格 F 列配置,且 RPC ScopeMap 中 `NeedUserAuth=1`)
24
+ *
25
+ * @remarks 返回用户在抖音的认证类型和认证文案。
26
+ */
27
+ export declare function getUserCertLabelsInfo(params: UserCertLabelsInfoParams, options?: CallOptions): Promise<OpenAPIResponse<UserCertLabelsInfoResponse>>;
@@ -1,2 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUserCertLabelsInfo = getUserCertLabelsInfo;
4
+ const core_1 = require("../core");
5
+ /**
6
+ * 获取用户的抖音身份认证标识
7
+ *
8
+ * - Path: `/dy_open_api/v1/user/cert_labels_info/`
9
+ * - Capability: `dy.open.user.cert.labels_info`
10
+ * - Scope: `user.cert.labels_info`
11
+ * - 需要用户授权: 是(按表格 F 列配置,且 RPC ScopeMap 中 `NeedUserAuth=1`)
12
+ *
13
+ * @remarks 返回用户在抖音的认证类型和认证文案。
14
+ */
15
+ async function getUserCertLabelsInfo(params, options) {
16
+ return (0, core_1.callOpenAPI)({
17
+ path: '/dy_open_api/v1/user/cert_labels_info/',
18
+ method: 'GET',
19
+ queryParams: params,
20
+ domain: 'open.douyin.com',
21
+ }, options);
22
+ }
@@ -4,8 +4,8 @@ export { getAIUserItemList } from './ai_items';
4
4
  export type { AIUserItem, AIUserItemListParams, AIUserItemListResponse } from './ai_items';
5
5
  export { getAIUserProfile } from './ai_profile';
6
6
  export type { AIUserInfo, AIUserProfileParams, AIUserProfileResponse } from './ai_profile';
7
- export { getFirmSubjectDetail } from './firm';
8
- export type { FirmSubjectDetail, FirmSubjectDetailParams, FirmSubjectDetailResponse } from './firm';
7
+ export { getUserCertLabelsInfo } from './certification';
8
+ export type { UserCertLabelInfo, UserCertLabelsInfoParams, UserCertLabelsInfoResponse, UserCertLabelStyle } from './certification';
9
9
  export { getUserCommentData, getUserFansData, getUserItemData, getUserLikeData, getUserProfileData, getUserShareData } from './homepage-data';
10
10
  export type { HomepageDailyResult, HomepageDataParams, HomepageDateType, HomepageItemParams, HomepageResultResponse } from './homepage-data';
11
11
  export { getAffiliateId, getRelatedId } from './identity';
@@ -16,3 +16,5 @@ export { getUserConstellation } from './profile';
16
16
  export type { ConstellationResponse } from './profile';
17
17
  export { getUserPublicInfo } from './public-info';
18
18
  export type { UserPublicInfo, UserPublicInfoParams, UserPublicInfoResponse } from './public-info';
19
+ export { getRealNameInfo } from './realname';
20
+ export type { AgeRange, RealNameInfoData, RealNameInfoParams } from './realname';
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getUserPublicInfo = exports.getUserConstellation = exports.getUserHashMobile = exports.getRelatedId = exports.getAffiliateId = exports.getUserShareData = exports.getUserProfileData = exports.getUserLikeData = exports.getUserItemData = exports.getUserFansData = exports.getUserCommentData = exports.getFirmSubjectDetail = exports.getAIUserProfile = exports.getAIUserItemList = exports.getAIUserDataInfo = void 0;
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;
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");
7
7
  Object.defineProperty(exports, "getAIUserItemList", { enumerable: true, get: function () { return ai_items_1.getAIUserItemList; } });
8
8
  var ai_profile_1 = require("./ai_profile");
9
9
  Object.defineProperty(exports, "getAIUserProfile", { enumerable: true, get: function () { return ai_profile_1.getAIUserProfile; } });
10
- var firm_1 = require("./firm");
11
- Object.defineProperty(exports, "getFirmSubjectDetail", { enumerable: true, get: function () { return firm_1.getFirmSubjectDetail; } });
10
+ var certification_1 = require("./certification");
11
+ Object.defineProperty(exports, "getUserCertLabelsInfo", { enumerable: true, get: function () { return certification_1.getUserCertLabelsInfo; } });
12
12
  var homepage_data_1 = require("./homepage-data");
13
13
  Object.defineProperty(exports, "getUserCommentData", { enumerable: true, get: function () { return homepage_data_1.getUserCommentData; } });
14
14
  Object.defineProperty(exports, "getUserFansData", { enumerable: true, get: function () { return homepage_data_1.getUserFansData; } });
@@ -25,3 +25,5 @@ var profile_1 = require("./profile");
25
25
  Object.defineProperty(exports, "getUserConstellation", { enumerable: true, get: function () { return profile_1.getUserConstellation; } });
26
26
  var public_info_1 = require("./public-info");
27
27
  Object.defineProperty(exports, "getUserPublicInfo", { enumerable: true, get: function () { return public_info_1.getUserPublicInfo; } });
28
+ var realname_1 = require("./realname");
29
+ Object.defineProperty(exports, "getRealNameInfo", { enumerable: true, get: function () { return realname_1.getRealNameInfo; } });
@@ -1 +1,29 @@
1
- export {};
1
+ import type { CallOptions, OpenAPIResponse } from '../core';
2
+ export interface RealNameInfoParams {
3
+ /** 用户 open_id,通过 /oauth/access_token/ 获取,用户唯一标志 */
4
+ open_id: string;
5
+ }
6
+ export type AgeRange = 1 | 2 | 3 | 4;
7
+ export interface RealNameInfoData {
8
+ /** 是否完成二要素验证 */
9
+ is_two_factor_verified?: boolean;
10
+ /** 是否成年(大于 18 岁) */
11
+ is_adult?: boolean;
12
+ /** 是否是大陆证件 */
13
+ is_mainland_certificate?: boolean;
14
+ /** 年龄范围:1=8岁以下,2=8-15岁,3=16-17岁,4=18岁及以上 */
15
+ age_range?: AgeRange;
16
+ /** PI 值,用于后续的时长上报 */
17
+ pi?: string;
18
+ }
19
+ /**
20
+ * 获取用户实名信息数据
21
+ *
22
+ * - Path: `/auth/real_name_info/`
23
+ * - Capability: `dy.open.real.name.auth`
24
+ * - Scope: `real.name.auth`
25
+ * - 需要用户授权: 是(按表格配置,且 RPC ScopeMap 中 `NeedUserAuth=1`)
26
+ *
27
+ * @remarks 返回是否完成二要素验证、是否成年、是否是大陆证件及年龄范围等实名信息。
28
+ */
29
+ export declare function getRealNameInfo(params: RealNameInfoParams, options?: CallOptions): Promise<OpenAPIResponse<RealNameInfoData>>;
@@ -1,2 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRealNameInfo = getRealNameInfo;
4
+ const core_1 = require("../core");
5
+ /**
6
+ * 获取用户实名信息数据
7
+ *
8
+ * - Path: `/auth/real_name_info/`
9
+ * - Capability: `dy.open.real.name.auth`
10
+ * - Scope: `real.name.auth`
11
+ * - 需要用户授权: 是(按表格配置,且 RPC ScopeMap 中 `NeedUserAuth=1`)
12
+ *
13
+ * @remarks 返回是否完成二要素验证、是否成年、是否是大陆证件及年龄范围等实名信息。
14
+ */
15
+ async function getRealNameInfo(params, options) {
16
+ return (0, core_1.callOpenAPI)({
17
+ path: '/auth/real_name_info/',
18
+ method: 'GET',
19
+ queryParams: params,
20
+ domain: 'open.douyin.com',
21
+ }, options);
22
+ }
@@ -1,4 +1,2 @@
1
1
  export { searchComment } from './comment';
2
- export type { CommentSearchParams, CommentSearchItem, CommentSearchResponse } from './comment';
3
- export { getCommentList, getCommentReplyList, publishComment, deleteComment, diggComment, } from './manage';
4
- export type { CommentListRequest, CommentItem, CommentListResponse, CommentReplyListRequest, CommentPublishRequest, CommentPublishResponse, CommentDeleteRequest, CommentMutationResponse, CommentDiggRequest, } from './manage';
2
+ export type { CommentSearchItem, CommentSearchParams, CommentSearchResponse } from './comment';
@@ -1,12 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.diggComment = exports.deleteComment = exports.publishComment = exports.getCommentReplyList = exports.getCommentList = exports.searchComment = void 0;
3
+ exports.searchComment = void 0;
4
4
  // 评论相关 OpenAPI
5
5
  var comment_1 = require("./comment");
6
6
  Object.defineProperty(exports, "searchComment", { enumerable: true, get: function () { return comment_1.searchComment; } });
7
- var manage_1 = require("./manage");
8
- Object.defineProperty(exports, "getCommentList", { enumerable: true, get: function () { return manage_1.getCommentList; } });
9
- Object.defineProperty(exports, "getCommentReplyList", { enumerable: true, get: function () { return manage_1.getCommentReplyList; } });
10
- Object.defineProperty(exports, "publishComment", { enumerable: true, get: function () { return manage_1.publishComment; } });
11
- Object.defineProperty(exports, "deleteComment", { enumerable: true, get: function () { return manage_1.deleteComment; } });
12
- Object.defineProperty(exports, "diggComment", { enumerable: true, get: function () { return manage_1.diggComment; } });
@@ -1,8 +1,8 @@
1
+ export { getFeed, getFollowFeed, getFollowHotWord } from './follow';
2
+ export type { FeedItem, FeedResponse, FollowFeedItem, FollowFeedResponse, HotWordItem, HotWordResponse, HotWordUrl } from './follow';
3
+ export { getRecommend } from './recommend';
4
+ export type { RecommendItem, RecommendRequest, RecommendResponse } from './recommend';
1
5
  export { getHighQualityText } from './video';
2
6
  export type { HighQualityTextParams, HighQualityTextResponse } from './video';
3
- export { getRecommend } from './recommend';
4
- export type { RecommendRequest, RecommendItem, RecommendResponse } from './recommend';
5
- export { getFollowHotWord, getFollowFeed, getFeed } from './follow';
6
- export type { HotWordUrl, HotWordItem, HotWordResponse, FollowFeedItem, FollowFeedResponse, FeedItem, FeedResponse } from './follow';
7
- export { getVideoDetailList, getSingleVideoDetail, getVideoPack } from './video-data';
8
- export type { VideoDetailListParams, VideoDetailItem, VideoDetailListResponse, SingleVideoDetailParams, SingleVideoDetailResponse, VideoPackParams, VideoPackItem, VideoPackResponse, } from './video-data';
7
+ export { getVideoPack } from './video-data';
8
+ export type { VideoPackItem, VideoPackParams, VideoPackResponse } from './video-data';
@@ -1,15 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getVideoPack = exports.getSingleVideoDetail = exports.getVideoDetailList = exports.getFeed = exports.getFollowFeed = exports.getFollowHotWord = exports.getRecommend = exports.getHighQualityText = void 0;
4
- var video_1 = require("./video");
5
- Object.defineProperty(exports, "getHighQualityText", { enumerable: true, get: function () { return video_1.getHighQualityText; } });
6
- var recommend_1 = require("./recommend");
7
- Object.defineProperty(exports, "getRecommend", { enumerable: true, get: function () { return recommend_1.getRecommend; } });
3
+ exports.getVideoPack = exports.getHighQualityText = exports.getRecommend = exports.getFollowHotWord = exports.getFollowFeed = exports.getFeed = void 0;
8
4
  var follow_1 = require("./follow");
9
- Object.defineProperty(exports, "getFollowHotWord", { enumerable: true, get: function () { return follow_1.getFollowHotWord; } });
10
- Object.defineProperty(exports, "getFollowFeed", { enumerable: true, get: function () { return follow_1.getFollowFeed; } });
11
5
  Object.defineProperty(exports, "getFeed", { enumerable: true, get: function () { return follow_1.getFeed; } });
6
+ Object.defineProperty(exports, "getFollowFeed", { enumerable: true, get: function () { return follow_1.getFollowFeed; } });
7
+ Object.defineProperty(exports, "getFollowHotWord", { enumerable: true, get: function () { return follow_1.getFollowHotWord; } });
8
+ var recommend_1 = require("./recommend");
9
+ Object.defineProperty(exports, "getRecommend", { enumerable: true, get: function () { return recommend_1.getRecommend; } });
10
+ var video_1 = require("./video");
11
+ Object.defineProperty(exports, "getHighQualityText", { enumerable: true, get: function () { return video_1.getHighQualityText; } });
12
12
  var video_data_1 = require("./video-data");
13
- Object.defineProperty(exports, "getVideoDetailList", { enumerable: true, get: function () { return video_data_1.getVideoDetailList; } });
14
- Object.defineProperty(exports, "getSingleVideoDetail", { enumerable: true, get: function () { return video_data_1.getSingleVideoDetail; } });
15
13
  Object.defineProperty(exports, "getVideoPack", { enumerable: true, get: function () { return video_data_1.getVideoPack; } });
@@ -1,62 +1,4 @@
1
1
  import type { CallOptions, OpenAPIResponse } from '../core';
2
- export interface VideoDetailListParams {
3
- /** 用户 open_id,通过 /oauth/access_token/ 获取 */
4
- open_id: string;
5
- /** 分页游标,第一页传 0,后续传上一页返回的 cursor */
6
- cursor?: number;
7
- /** 每页数量 */
8
- count?: number;
9
- }
10
- export interface VideoDetailItem {
11
- /** 视频/作品 ID */
12
- item_id?: string;
13
- /** 作品标题 */
14
- title?: string;
15
- /** 作品类型:视频 / 图文 / slide */
16
- media_type?: number;
17
- /** 封面地址 */
18
- cover?: string;
19
- /** 作品分享链接 */
20
- share_url?: string;
21
- /** 创建时间(时间戳) */
22
- create_time?: number;
23
- }
24
- export interface VideoDetailListResponse {
25
- /** 作品列表 */
26
- list?: VideoDetailItem[];
27
- /** 下一页游标 */
28
- cursor?: number;
29
- /** 是否还有更多 */
30
- has_more?: boolean;
31
- }
32
- /**
33
- * 获取用户公开作品列表(slide / 视频 / 图文)
34
- *
35
- * - Path: `/api/douyin/v1/video/video_detail_list/`
36
- * - Capability: `dy.open.video.detail`
37
- * - Scope: `video.data.detail`
38
- * - 需要用户授权: 是
39
- */
40
- export declare function getVideoDetailList(params: VideoDetailListParams, options?: CallOptions): Promise<OpenAPIResponse<VideoDetailListResponse>>;
41
- export interface SingleVideoDetailParams {
42
- /** 用户 open_id,通过 /oauth/access_token/ 获取 */
43
- open_id: string;
44
- /** 指定的视频/作品 ID */
45
- item_id: string;
46
- }
47
- export interface SingleVideoDetailResponse {
48
- /** 作品详情 */
49
- item?: VideoDetailItem;
50
- }
51
- /**
52
- * 获取指定作品详情
53
- *
54
- * - Path: `/api/douyin/v1/video/single_video_detail/`
55
- * - Capability: `dy.open.video.detail`
56
- * - Scope: `video.data.detail`
57
- * - 需要用户授权: 是
58
- */
59
- export declare function getSingleVideoDetail(params: SingleVideoDetailParams, options?: CallOptions): Promise<OpenAPIResponse<SingleVideoDetailResponse>>;
60
2
  export interface VideoPackParams {
61
3
  /** 作品 ID 列表,JSON 数组形式,如 [1774790056399461524] */
62
4
  item_ids: number[] | string[];
@@ -87,7 +29,7 @@ export interface VideoPackResponse {
87
29
  * - Path: `/dy_open_api/v1/video/pack/`
88
30
  * - Capability: `dy.open.aweme.video.pack`
89
31
  * - Scope: `aweme.video.pack`
90
- * - 需要用户授权: 是(按表格 F 列配置,调用前需用户授权 `aweme.video.pack` scope)
32
+ * - 需要用户授权: 是
91
33
  *
92
34
  * @remarks 获取视频的基本信息摘要、作者信息、锚点信息等字段,不合规视频会被过滤。
93
35
  */
@@ -1,48 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getVideoDetailList = getVideoDetailList;
4
- exports.getSingleVideoDetail = getSingleVideoDetail;
5
3
  exports.getVideoPack = getVideoPack;
6
4
  const core_1 = require("../core");
7
- /**
8
- * 获取用户公开作品列表(slide / 视频 / 图文)
9
- *
10
- * - Path: `/api/douyin/v1/video/video_detail_list/`
11
- * - Capability: `dy.open.video.detail`
12
- * - Scope: `video.data.detail`
13
- * - 需要用户授权: 是
14
- */
15
- async function getVideoDetailList(params, options) {
16
- return (0, core_1.callOpenAPI)({
17
- path: '/api/douyin/v1/video/video_detail_list/',
18
- method: 'GET',
19
- queryParams: params,
20
- domain: 'open.douyin.com',
21
- }, options);
22
- }
23
- /**
24
- * 获取指定作品详情
25
- *
26
- * - Path: `/api/douyin/v1/video/single_video_detail/`
27
- * - Capability: `dy.open.video.detail`
28
- * - Scope: `video.data.detail`
29
- * - 需要用户授权: 是
30
- */
31
- async function getSingleVideoDetail(params, options) {
32
- return (0, core_1.callOpenAPI)({
33
- path: '/api/douyin/v1/video/single_video_detail/',
34
- method: 'GET',
35
- queryParams: params,
36
- domain: 'open.douyin.com',
37
- }, options);
38
- }
39
5
  /**
40
6
  * 抖音视频合规打包(获取视频互动数据)
41
7
  *
42
8
  * - Path: `/dy_open_api/v1/video/pack/`
43
9
  * - Capability: `dy.open.aweme.video.pack`
44
10
  * - Scope: `aweme.video.pack`
45
- * - 需要用户授权: 是(按表格 F 列配置,调用前需用户授权 `aweme.video.pack` scope)
11
+ * - 需要用户授权: 是
46
12
  *
47
13
  * @remarks 获取视频的基本信息摘要、作者信息、锚点信息等字段,不合规视频会被过滤。
48
14
  */
@@ -1,2 +1 @@
1
- export { setGroupSetting, getFansGroupList, getGroupQuota, createFansGroup, setGroupEnterAudit, } from './group';
2
- export type { GroupQueryParams, GroupSettingMsg, GroupSettingSetRequest, GroupSettingSetResponse, FansGroup, FansGroupListResponse, GroupQuotaResponse, CreateFansGroupRequest, CreateFansGroupResponse, GroupEnterAuditSetRequest, GroupEnterAuditSetResponse, } from './group';
1
+ export {};
@@ -1,10 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setGroupEnterAudit = exports.createFansGroup = exports.getGroupQuota = exports.getFansGroupList = exports.setGroupSetting = void 0;
4
- // uim相关 OpenAPI
5
- var group_1 = require("./group");
6
- Object.defineProperty(exports, "setGroupSetting", { enumerable: true, get: function () { return group_1.setGroupSetting; } });
7
- Object.defineProperty(exports, "getFansGroupList", { enumerable: true, get: function () { return group_1.getFansGroupList; } });
8
- Object.defineProperty(exports, "getGroupQuota", { enumerable: true, get: function () { return group_1.getGroupQuota; } });
9
- Object.defineProperty(exports, "createFansGroup", { enumerable: true, get: function () { return group_1.createFansGroup; } });
10
- Object.defineProperty(exports, "setGroupEnterAudit", { enumerable: true, get: function () { return group_1.setGroupEnterAudit; } });
@@ -1,17 +1,15 @@
1
- export { getAIUserDataInfo, getAIUserItemList, getAIUserProfile, getAffiliateId, getFirmSubjectDetail, getRelatedId, getUserCommentData, getUserConstellation, getUserFansData, getUserHashMobile, getUserItemData, getUserLikeData, getUserProfileData, getUserPublicInfo, getUserShareData } from './account';
2
- export type { AIUserBase, AIUserDataInfoParams, AIUserDataInfoResponse, AIUserInfo, AIUserItem, AIUserItemListParams, AIUserItemListResponse, AIUserProfileParams, AIUserProfileResponse, ConstellationResponse, FirmSubjectDetail, FirmSubjectDetailParams, FirmSubjectDetailResponse, GetRelatedIdRequest, GetRelatedIdResponse, HomepageDailyResult, HomepageDataParams, HomepageDateType, HomepageItemParams, HomepageResultResponse, UserHashMobileParams, UserHashMobileResponse, UserPublicInfo, UserPublicInfoParams, UserPublicInfoResponse } from './account';
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';
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 { deleteComment, diggComment, getCommentList, getCommentReplyList, publishComment, searchComment } from './comment';
6
- export type { CommentDeleteRequest, CommentDiggRequest, CommentItem, CommentListRequest, CommentListResponse, CommentMutationResponse, CommentPublishRequest, CommentPublishResponse, CommentReplyListRequest, CommentSearchItem, CommentSearchParams, CommentSearchResponse } from './comment';
7
- export { getFeed, getFollowFeed, getFollowHotWord, getHighQualityText, getRecommend, getSingleVideoDetail, getVideoDetailList, getVideoPack } from './content';
8
- export type { FeedItem, FeedResponse, FollowFeedItem, FollowFeedResponse, HighQualityTextParams, HighQualityTextResponse, HotWordItem, HotWordResponse, HotWordUrl, RecommendItem, RecommendRequest, RecommendResponse, SingleVideoDetailParams, SingleVideoDetailResponse, VideoDetailItem, VideoDetailListParams, VideoDetailListResponse, VideoPackItem, VideoPackParams, VideoPackResponse } from './content';
5
+ export { searchComment } from './comment';
6
+ export type { CommentSearchItem, CommentSearchParams, CommentSearchResponse } from './comment';
7
+ export { getFeed, getFollowFeed, getFollowHotWord, getHighQualityText, getRecommend, getVideoPack } from './content';
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';
10
10
  export type { CallOpenAPIParams, CallOptions, OpenAPIResponse } from './core';
11
11
  export { getHotList } from './hot';
12
12
  export type { HotBoardItem, HotListParams, HotListResponse } from './hot';
13
- export { createFansGroup, getFansGroupList, getGroupQuota, setGroupEnterAudit, setGroupSetting } from './im';
14
- export type { CreateFansGroupRequest, CreateFansGroupResponse, FansGroup, FansGroupListResponse, GroupEnterAuditSetRequest, GroupEnterAuditSetResponse, GroupQueryParams, GroupQuotaResponse, GroupSettingMsg, GroupSettingSetRequest, GroupSettingSetResponse } from './im';
15
13
  export { getRoomRealTimeData, queryRoomData } from './live';
16
14
  export type { RoomDataQueryParams, RoomDataQueryRequest, RoomDataQueryResponse, RoomRealTimeQueryParams, RoomRealTimeRequest, RoomRealTimeResponse } from './live';
17
15
  export { getMusicCollectionList } from './music';
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFansSource = exports.getFansProfile = exports.getFansFavourite = exports.checkFans = exports.topicSearch = exports.getUserFollowing = exports.getUserBasicData = exports.getMusicCollectionList = exports.queryRoomData = exports.getRoomRealTimeData = exports.setGroupSetting = exports.setGroupEnterAudit = exports.getGroupQuota = exports.getFansGroupList = exports.createFansGroup = exports.getHotList = exports.callOpenAPI = exports.getVideoPack = exports.getVideoDetailList = exports.getSingleVideoDetail = exports.getRecommend = exports.getHighQualityText = exports.getFollowHotWord = exports.getFollowFeed = exports.getFeed = exports.searchComment = exports.publishComment = exports.getCommentReplyList = exports.getCommentList = exports.diggComment = exports.deleteComment = 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.getRelatedId = exports.getFirmSubjectDetail = exports.getAffiliateId = exports.getAIUserProfile = exports.getAIUserItemList = exports.getAIUserDataInfo = void 0;
4
- exports.searchVision = exports.searchVideo = exports.searchUser = exports.searchPoi = exports.searchMusic = exports.searchLive = exports.searchGeneral = exports.searchExperience = exports.getUserFansProfile = exports.getFriendList = void 0;
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;
5
4
  var account_1 = require("./account");
5
+ Object.defineProperty(exports, "getAffiliateId", { enumerable: true, get: function () { return account_1.getAffiliateId; } });
6
6
  Object.defineProperty(exports, "getAIUserDataInfo", { enumerable: true, get: function () { return account_1.getAIUserDataInfo; } });
7
7
  Object.defineProperty(exports, "getAIUserItemList", { enumerable: true, get: function () { return account_1.getAIUserItemList; } });
8
8
  Object.defineProperty(exports, "getAIUserProfile", { enumerable: true, get: function () { return account_1.getAIUserProfile; } });
9
- Object.defineProperty(exports, "getAffiliateId", { enumerable: true, get: function () { return account_1.getAffiliateId; } });
10
- Object.defineProperty(exports, "getFirmSubjectDetail", { enumerable: true, get: function () { return account_1.getFirmSubjectDetail; } });
9
+ Object.defineProperty(exports, "getRealNameInfo", { enumerable: true, get: function () { return account_1.getRealNameInfo; } });
11
10
  Object.defineProperty(exports, "getRelatedId", { enumerable: true, get: function () { return account_1.getRelatedId; } });
11
+ Object.defineProperty(exports, "getUserCertLabelsInfo", { enumerable: true, get: function () { return account_1.getUserCertLabelsInfo; } });
12
12
  Object.defineProperty(exports, "getUserCommentData", { enumerable: true, get: function () { return account_1.getUserCommentData; } });
13
13
  Object.defineProperty(exports, "getUserConstellation", { enumerable: true, get: function () { return account_1.getUserConstellation; } });
14
14
  Object.defineProperty(exports, "getUserFansData", { enumerable: true, get: function () { return account_1.getUserFansData; } });
@@ -24,11 +24,6 @@ Object.defineProperty(exports, "modifyActivity", { enumerable: true, get: functi
24
24
  Object.defineProperty(exports, "queryActivityInfo", { enumerable: true, get: function () { return business_1.queryActivityInfo; } });
25
25
  Object.defineProperty(exports, "queryActivityUserCompletionStatus", { enumerable: true, get: function () { return business_1.queryActivityUserCompletionStatus; } });
26
26
  var comment_1 = require("./comment");
27
- Object.defineProperty(exports, "deleteComment", { enumerable: true, get: function () { return comment_1.deleteComment; } });
28
- Object.defineProperty(exports, "diggComment", { enumerable: true, get: function () { return comment_1.diggComment; } });
29
- Object.defineProperty(exports, "getCommentList", { enumerable: true, get: function () { return comment_1.getCommentList; } });
30
- Object.defineProperty(exports, "getCommentReplyList", { enumerable: true, get: function () { return comment_1.getCommentReplyList; } });
31
- Object.defineProperty(exports, "publishComment", { enumerable: true, get: function () { return comment_1.publishComment; } });
32
27
  Object.defineProperty(exports, "searchComment", { enumerable: true, get: function () { return comment_1.searchComment; } });
33
28
  var content_1 = require("./content");
34
29
  Object.defineProperty(exports, "getFeed", { enumerable: true, get: function () { return content_1.getFeed; } });
@@ -36,19 +31,11 @@ Object.defineProperty(exports, "getFollowFeed", { enumerable: true, get: functio
36
31
  Object.defineProperty(exports, "getFollowHotWord", { enumerable: true, get: function () { return content_1.getFollowHotWord; } });
37
32
  Object.defineProperty(exports, "getHighQualityText", { enumerable: true, get: function () { return content_1.getHighQualityText; } });
38
33
  Object.defineProperty(exports, "getRecommend", { enumerable: true, get: function () { return content_1.getRecommend; } });
39
- Object.defineProperty(exports, "getSingleVideoDetail", { enumerable: true, get: function () { return content_1.getSingleVideoDetail; } });
40
- Object.defineProperty(exports, "getVideoDetailList", { enumerable: true, get: function () { return content_1.getVideoDetailList; } });
41
34
  Object.defineProperty(exports, "getVideoPack", { enumerable: true, get: function () { return content_1.getVideoPack; } });
42
35
  var core_1 = require("./core");
43
36
  Object.defineProperty(exports, "callOpenAPI", { enumerable: true, get: function () { return core_1.callOpenAPI; } });
44
37
  var hot_1 = require("./hot");
45
38
  Object.defineProperty(exports, "getHotList", { enumerable: true, get: function () { return hot_1.getHotList; } });
46
- var im_1 = require("./im");
47
- Object.defineProperty(exports, "createFansGroup", { enumerable: true, get: function () { return im_1.createFansGroup; } });
48
- Object.defineProperty(exports, "getFansGroupList", { enumerable: true, get: function () { return im_1.getFansGroupList; } });
49
- Object.defineProperty(exports, "getGroupQuota", { enumerable: true, get: function () { return im_1.getGroupQuota; } });
50
- Object.defineProperty(exports, "setGroupEnterAudit", { enumerable: true, get: function () { return im_1.setGroupEnterAudit; } });
51
- Object.defineProperty(exports, "setGroupSetting", { enumerable: true, get: function () { return im_1.setGroupSetting; } });
52
39
  var live_1 = require("./live");
53
40
  Object.defineProperty(exports, "getRoomRealTimeData", { enumerable: true, get: function () { return live_1.getRoomRealTimeData; } });
54
41
  Object.defineProperty(exports, "queryRoomData", { enumerable: true, get: function () { return live_1.queryRoomData; } });
@@ -37,6 +37,6 @@ export interface MusicCollectionListResponse {
37
37
  * - Path: `/music/collection/list/`
38
38
  * - Capability: `dy.open.music.collection.list`
39
39
  * - Scope: `music.collection.list`
40
- * - 需要用户授权: 是(按表格 F 列配置,调用前需用户授权 `music.collection.list` scope)
40
+ * - 需要用户授权: 是
41
41
  */
42
42
  export declare function getMusicCollectionList(params: MusicCollectionListParams, options?: CallOptions): Promise<OpenAPIResponse<MusicCollectionListResponse>>;
@@ -8,7 +8,7 @@ const core_1 = require("../core");
8
8
  * - Path: `/music/collection/list/`
9
9
  * - Capability: `dy.open.music.collection.list`
10
10
  * - Scope: `music.collection.list`
11
- * - 需要用户授权: 是(按表格 F 列配置,调用前需用户授权 `music.collection.list` scope)
11
+ * - 需要用户授权: 是
12
12
  */
13
13
  async function getMusicCollectionList(params, options) {
14
14
  return (0, core_1.callOpenAPI)({
@@ -13,7 +13,7 @@ export interface FansCheckResponse {
13
13
  * 判断用户是否关注了某用户
14
14
  *
15
15
  * - Path: `/fans/check/`
16
- * - Capability: `dy.open.fans_statistics`
16
+ * - Capability: `dy.open.user_social`
17
17
  * - Scope: `fans.check`
18
18
  * - 需要用户授权: 是
19
19
  *
@@ -7,7 +7,7 @@ const core_1 = require("../core");
7
7
  * 判断用户是否关注了某用户
8
8
  *
9
9
  * - Path: `/fans/check/`
10
- * - Capability: `dy.open.fans_statistics`
10
+ * - Capability: `dy.open.user_social`
11
11
  * - Scope: `fans.check`
12
12
  * - 需要用户授权: 是
13
13
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-dy/ai_coding_sdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "AI Coding SDK — 抖音开放平台 OpenAPI 客户端与工具集",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,31 +0,0 @@
1
- import type { CallOptions, OpenAPIResponse } from '../core';
2
- export interface FirmSubjectDetailParams {
3
- /** 目标 B 号 open_id,通过 /oauth/access_token/ 获取 */
4
- open_id: string;
5
- }
6
- export interface FirmSubjectDetail {
7
- /** 主体名称(企业/机构名称) */
8
- subject_name?: string;
9
- /** 主体类型 */
10
- subject_type?: string;
11
- /** 统一社会信用代码 */
12
- credit_code?: string;
13
- /** 认证状态 */
14
- cert_status?: string;
15
- }
16
- export interface FirmSubjectDetailResponse {
17
- /** B 号主体资质详情,字段以实际接口返回为准 */
18
- subject_detail?: FirmSubjectDetail;
19
- }
20
- /**
21
- * 获取 B 号主体资质信息
22
- *
23
- * - Path: `/api/firm/v1/query_firm_subject_detail/`
24
- * - Capability: `dy.open.firm_subject.detail`
25
- * - Scope: `firm.subject.detail`
26
- * - 需要用户授权: 是
27
- *
28
- * @remarks AI 分身相关接口,用于查询 B 号主体资质详细信息。
29
- * 参考:【B号】支持 AI 分身 OpenAPI 开放技术方案。
30
- */
31
- export declare function getFirmSubjectDetail(params: FirmSubjectDetailParams, options?: CallOptions): Promise<OpenAPIResponse<FirmSubjectDetailResponse>>;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFirmSubjectDetail = getFirmSubjectDetail;
4
- const core_1 = require("../core");
5
- /**
6
- * 获取 B 号主体资质信息
7
- *
8
- * - Path: `/api/firm/v1/query_firm_subject_detail/`
9
- * - Capability: `dy.open.firm_subject.detail`
10
- * - Scope: `firm.subject.detail`
11
- * - 需要用户授权: 是
12
- *
13
- * @remarks AI 分身相关接口,用于查询 B 号主体资质详细信息。
14
- * 参考:【B号】支持 AI 分身 OpenAPI 开放技术方案。
15
- */
16
- async function getFirmSubjectDetail(params, options) {
17
- return (0, core_1.callOpenAPI)({
18
- path: '/api/firm/v1/query_firm_subject_detail/',
19
- method: 'POST',
20
- body: params,
21
- domain: 'open.douyin.com',
22
- }, options);
23
- }
@@ -1,118 +0,0 @@
1
- import type { CallOptions, OpenAPIResponse } from '../core';
2
- export interface CommentListRequest {
3
- /** 用户 open_id,通过 /oauth/access_token/ 获取 */
4
- open_id: string;
5
- /** 视频/作品 ID */
6
- item_id: string;
7
- /** 分页游标,第一页传 0 */
8
- cursor?: number;
9
- /** 每页数量 */
10
- count?: number;
11
- }
12
- export interface CommentItem {
13
- /** 评论 ID */
14
- comment_id?: string;
15
- /** 评论内容 */
16
- text?: string;
17
- /** 评论用户 open_id */
18
- open_id?: string;
19
- /** 创建时间(时间戳) */
20
- create_time?: number;
21
- /** 点赞数 */
22
- digg_count?: number;
23
- /** 回复数 */
24
- reply_count?: number;
25
- }
26
- export interface CommentListResponse {
27
- /** 评论列表 */
28
- list?: CommentItem[];
29
- /** 下一页游标 */
30
- cursor?: number;
31
- /** 是否还有更多 */
32
- has_more?: boolean;
33
- }
34
- /**
35
- * 获取视频评论列表
36
- *
37
- * - Path: `/dy_open_api/aweme/v1/comment/list/`
38
- * - Capability: `dy.open.comment_read`
39
- * - Scope: `douyin_comment_read`
40
- * - 需要用户授权: 是
41
- */
42
- export declare function getCommentList(body: CommentListRequest, options?: CallOptions): Promise<OpenAPIResponse<CommentListResponse>>;
43
- export interface CommentReplyListRequest extends CommentListRequest {
44
- /** 父评论 ID */
45
- comment_id: string;
46
- }
47
- /**
48
- * 获取视频评论的回复列表
49
- *
50
- * - Path: `/dy_open_api/aweme/v1/comment/list/reply/`
51
- * - Capability: `dy.open.comment_read`
52
- * - Scope: `douyin_comment_read`
53
- * - 需要用户授权: 是
54
- */
55
- export declare function getCommentReplyList(body: CommentReplyListRequest, options?: CallOptions): Promise<OpenAPIResponse<CommentListResponse>>;
56
- export interface CommentPublishRequest {
57
- /** 用户 open_id,通过 /oauth/access_token/ 获取 */
58
- open_id: string;
59
- /** 视频/作品 ID */
60
- item_id: string;
61
- /** 评论内容 */
62
- content: string;
63
- /** 父评论 ID(回复某条评论时传入) */
64
- comment_id?: string;
65
- }
66
- export interface CommentPublishResponse {
67
- /** 新发布的评论 ID */
68
- comment_id?: string;
69
- }
70
- /**
71
- * 发布视频评论
72
- *
73
- * - Path: `/dy_open_api/aweme/v1/comment/publish/`
74
- * - Capability: `dy.open.comment_write`
75
- * - Scope: `douyin_comment_write`
76
- * - 需要用户授权: 是
77
- */
78
- export declare function publishComment(body: CommentPublishRequest, options?: CallOptions): Promise<OpenAPIResponse<CommentPublishResponse>>;
79
- export interface CommentDeleteRequest {
80
- /** 用户 open_id,通过 /oauth/access_token/ 获取 */
81
- open_id: string;
82
- /** 视频/作品 ID */
83
- item_id: string;
84
- /** 待删除的评论 ID */
85
- comment_id: string;
86
- }
87
- export interface CommentMutationResponse {
88
- /** 是否操作成功 */
89
- success?: boolean;
90
- }
91
- /**
92
- * 删除视频评论
93
- *
94
- * - Path: `/dy_open_api/aweme/v1/comment/delete/`
95
- * - Capability: `dy.open.comment_write`
96
- * - Scope: `douyin_comment_write`
97
- * - 需要用户授权: 是
98
- */
99
- export declare function deleteComment(body: CommentDeleteRequest, options?: CallOptions): Promise<OpenAPIResponse<CommentMutationResponse>>;
100
- export interface CommentDiggRequest {
101
- /** 用户 open_id,通过 /oauth/access_token/ 获取 */
102
- open_id: string;
103
- /** 视频/作品 ID */
104
- item_id: string;
105
- /** 评论 ID */
106
- comment_id: string;
107
- /** 点赞操作:1=点赞,0=取消点赞(以文档为准) */
108
- digg_type?: number;
109
- }
110
- /**
111
- * 点赞 / 取消点赞视频评论
112
- *
113
- * - Path: `/dy_open_api/aweme/v1/comment/digg/`
114
- * - Capability: `dy.open.comment_write`
115
- * - Scope: `douyin_comment_write`
116
- * - 需要用户授权: 是
117
- */
118
- export declare function diggComment(body: CommentDiggRequest, options?: CallOptions): Promise<OpenAPIResponse<CommentMutationResponse>>;
@@ -1,88 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCommentList = getCommentList;
4
- exports.getCommentReplyList = getCommentReplyList;
5
- exports.publishComment = publishComment;
6
- exports.deleteComment = deleteComment;
7
- exports.diggComment = diggComment;
8
- const core_1 = require("../core");
9
- /**
10
- * 获取视频评论列表
11
- *
12
- * - Path: `/dy_open_api/aweme/v1/comment/list/`
13
- * - Capability: `dy.open.comment_read`
14
- * - Scope: `douyin_comment_read`
15
- * - 需要用户授权: 是
16
- */
17
- async function getCommentList(body, options) {
18
- return (0, core_1.callOpenAPI)({
19
- path: '/dy_open_api/aweme/v1/comment/list/',
20
- method: 'POST',
21
- body,
22
- domain: 'open.douyin.com',
23
- }, options);
24
- }
25
- /**
26
- * 获取视频评论的回复列表
27
- *
28
- * - Path: `/dy_open_api/aweme/v1/comment/list/reply/`
29
- * - Capability: `dy.open.comment_read`
30
- * - Scope: `douyin_comment_read`
31
- * - 需要用户授权: 是
32
- */
33
- async function getCommentReplyList(body, options) {
34
- return (0, core_1.callOpenAPI)({
35
- path: '/dy_open_api/aweme/v1/comment/list/reply/',
36
- method: 'POST',
37
- body,
38
- domain: 'open.douyin.com',
39
- }, options);
40
- }
41
- /**
42
- * 发布视频评论
43
- *
44
- * - Path: `/dy_open_api/aweme/v1/comment/publish/`
45
- * - Capability: `dy.open.comment_write`
46
- * - Scope: `douyin_comment_write`
47
- * - 需要用户授权: 是
48
- */
49
- async function publishComment(body, options) {
50
- return (0, core_1.callOpenAPI)({
51
- path: '/dy_open_api/aweme/v1/comment/publish/',
52
- method: 'POST',
53
- body,
54
- domain: 'open.douyin.com',
55
- }, options);
56
- }
57
- /**
58
- * 删除视频评论
59
- *
60
- * - Path: `/dy_open_api/aweme/v1/comment/delete/`
61
- * - Capability: `dy.open.comment_write`
62
- * - Scope: `douyin_comment_write`
63
- * - 需要用户授权: 是
64
- */
65
- async function deleteComment(body, options) {
66
- return (0, core_1.callOpenAPI)({
67
- path: '/dy_open_api/aweme/v1/comment/delete/',
68
- method: 'POST',
69
- body,
70
- domain: 'open.douyin.com',
71
- }, options);
72
- }
73
- /**
74
- * 点赞 / 取消点赞视频评论
75
- *
76
- * - Path: `/dy_open_api/aweme/v1/comment/digg/`
77
- * - Capability: `dy.open.comment_write`
78
- * - Scope: `douyin_comment_write`
79
- * - 需要用户授权: 是
80
- */
81
- async function diggComment(body, options) {
82
- return (0, core_1.callOpenAPI)({
83
- path: '/dy_open_api/aweme/v1/comment/digg/',
84
- method: 'POST',
85
- body,
86
- domain: 'open.douyin.com',
87
- }, options);
88
- }
@@ -1,119 +0,0 @@
1
- import type { CallOptions, OpenAPIResponse } from '../core';
2
- export interface GroupQueryParams {
3
- /** 群主用户 open_id,通过 /oauth/access_token/ 获取 */
4
- open_id: string;
5
- }
6
- /** 群消息项(群问候语 / 群公告) */
7
- export interface GroupSettingMsg {
8
- /** 消息类型:1=文本,10=小程序卡片 等 */
9
- msg_type: number;
10
- /** 文本消息内容 */
11
- text?: {
12
- text: string;
13
- };
14
- /** 小程序卡片 */
15
- applet_card?: Record<string, unknown>;
16
- }
17
- export interface GroupSettingSetRequest {
18
- /** 群配置类型 */
19
- group_setting_type: number;
20
- /** 群 ID */
21
- group_id: string;
22
- /** 消息列表(群问候语 / 群公告内容) */
23
- msg_list?: GroupSettingMsg[];
24
- }
25
- export interface GroupSettingSetResponse {
26
- /** 是否设置成功 */
27
- success?: boolean;
28
- }
29
- /**
30
- * 设置群配置(群问候语 / 群公告)
31
- *
32
- * - Path: `/im/group/setting/set/`
33
- * - Capability: `dy.open.im.group_manage`
34
- * - Scope: `im.group_fans.create_list`
35
- * - 需要用户授权: 是
36
- */
37
- export declare function setGroupSetting(params: GroupQueryParams, body: GroupSettingSetRequest, options?: CallOptions): Promise<OpenAPIResponse<GroupSettingSetResponse>>;
38
- export interface FansGroup {
39
- /** 群 ID */
40
- group_id?: string;
41
- /** 群名称 */
42
- group_name?: string;
43
- /** 群成员数 */
44
- member_count?: number;
45
- }
46
- export interface FansGroupListResponse {
47
- /** 粉丝群列表 */
48
- list?: FansGroup[];
49
- }
50
- /**
51
- * 查询自身为群主的粉丝群列表
52
- *
53
- * - Path: `/im/group/fans/list/`
54
- * - Capability: `dy.open.im.group_manage`
55
- * - Scope: `im.group_fans.create_list`
56
- * - 需要用户授权: 是
57
- */
58
- export declare function getFansGroupList(params: GroupQueryParams, options?: CallOptions): Promise<OpenAPIResponse<FansGroupListResponse>>;
59
- export interface GroupQuotaResponse {
60
- /** 剩余建群额度 */
61
- remain_count?: number;
62
- }
63
- /**
64
- * 查询用户剩余建群额度
65
- *
66
- * - Path: `/im/group/count/`
67
- * - Capability: `dy.open.im.group_manage`
68
- * - Scope: `im.group_fans.create_list`
69
- * - 需要用户授权: 是
70
- */
71
- export declare function getGroupQuota(params: GroupQueryParams, options?: CallOptions): Promise<OpenAPIResponse<GroupQuotaResponse>>;
72
- export interface CreateFansGroupRequest {
73
- /** 群头像 uri */
74
- avatar_uri?: string;
75
- /** 群名称 */
76
- group_name: string;
77
- /** 群描述 */
78
- description?: string;
79
- /** 是否开启入群审核:1=开启 */
80
- open_audit_switch?: number;
81
- /** 是否在主页展示:1=展示 */
82
- show_at_profile?: number;
83
- /** 开播自动同步:1=开启 */
84
- live_auto_sync?: number;
85
- /** 发布作品自动同步:1=开启 */
86
- item_auto_sync?: number;
87
- }
88
- export interface CreateFansGroupResponse {
89
- /** 新建群 ID */
90
- group_id?: string;
91
- }
92
- /**
93
- * 创建万粉群 / 主播粉丝群
94
- *
95
- * - Path: `/im/group/fans/create/`
96
- * - Capability: `dy.open.im.group_manage`
97
- * - Scope: `im.group_fans.create_list`
98
- * - 需要用户授权: 是
99
- */
100
- export declare function createFansGroup(params: GroupQueryParams, body: CreateFansGroupRequest, options?: CallOptions): Promise<OpenAPIResponse<CreateFansGroupResponse>>;
101
- export interface GroupEnterAuditSetRequest {
102
- /** 入群申请 ID */
103
- apply_id: string;
104
- /** 审核状态:2=通过 等(以文档为准) */
105
- status: number;
106
- }
107
- export interface GroupEnterAuditSetResponse {
108
- /** 是否处理成功 */
109
- success?: boolean;
110
- }
111
- /**
112
- * 变更入群申请状态
113
- *
114
- * - Path: `/im/group/enter/audit/set/`
115
- * - Capability: `dy.open.im.group_manage`
116
- * - Scope: `im.group_fans.create_list`
117
- * - 需要用户授权: 是
118
- */
119
- export declare function setGroupEnterAudit(params: GroupQueryParams, body: GroupEnterAuditSetRequest, options?: CallOptions): Promise<OpenAPIResponse<GroupEnterAuditSetResponse>>;
@@ -1,91 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setGroupSetting = setGroupSetting;
4
- exports.getFansGroupList = getFansGroupList;
5
- exports.getGroupQuota = getGroupQuota;
6
- exports.createFansGroup = createFansGroup;
7
- exports.setGroupEnterAudit = setGroupEnterAudit;
8
- const core_1 = require("../core");
9
- /**
10
- * 设置群配置(群问候语 / 群公告)
11
- *
12
- * - Path: `/im/group/setting/set/`
13
- * - Capability: `dy.open.im.group_manage`
14
- * - Scope: `im.group_fans.create_list`
15
- * - 需要用户授权: 是
16
- */
17
- async function setGroupSetting(params, body, options) {
18
- return (0, core_1.callOpenAPI)({
19
- path: '/im/group/setting/set/',
20
- method: 'POST',
21
- queryParams: params,
22
- body,
23
- domain: 'open.douyin.com',
24
- }, options);
25
- }
26
- /**
27
- * 查询自身为群主的粉丝群列表
28
- *
29
- * - Path: `/im/group/fans/list/`
30
- * - Capability: `dy.open.im.group_manage`
31
- * - Scope: `im.group_fans.create_list`
32
- * - 需要用户授权: 是
33
- */
34
- async function getFansGroupList(params, options) {
35
- return (0, core_1.callOpenAPI)({
36
- path: '/im/group/fans/list/',
37
- method: 'GET',
38
- queryParams: params,
39
- domain: 'open.douyin.com',
40
- }, options);
41
- }
42
- /**
43
- * 查询用户剩余建群额度
44
- *
45
- * - Path: `/im/group/count/`
46
- * - Capability: `dy.open.im.group_manage`
47
- * - Scope: `im.group_fans.create_list`
48
- * - 需要用户授权: 是
49
- */
50
- async function getGroupQuota(params, options) {
51
- return (0, core_1.callOpenAPI)({
52
- path: '/im/group/count/',
53
- method: 'GET',
54
- queryParams: params,
55
- domain: 'open.douyin.com',
56
- }, options);
57
- }
58
- /**
59
- * 创建万粉群 / 主播粉丝群
60
- *
61
- * - Path: `/im/group/fans/create/`
62
- * - Capability: `dy.open.im.group_manage`
63
- * - Scope: `im.group_fans.create_list`
64
- * - 需要用户授权: 是
65
- */
66
- async function createFansGroup(params, body, options) {
67
- return (0, core_1.callOpenAPI)({
68
- path: '/im/group/fans/create/',
69
- method: 'POST',
70
- queryParams: params,
71
- body,
72
- domain: 'open.douyin.com',
73
- }, options);
74
- }
75
- /**
76
- * 变更入群申请状态
77
- *
78
- * - Path: `/im/group/enter/audit/set/`
79
- * - Capability: `dy.open.im.group_manage`
80
- * - Scope: `im.group_fans.create_list`
81
- * - 需要用户授权: 是
82
- */
83
- async function setGroupEnterAudit(params, body, options) {
84
- return (0, core_1.callOpenAPI)({
85
- path: '/im/group/enter/audit/set/',
86
- method: 'POST',
87
- queryParams: params,
88
- body,
89
- domain: 'open.douyin.com',
90
- }, options);
91
- }