@open-dy/ai_coding_sdk 1.0.12 → 1.0.14

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.
Files changed (53) hide show
  1. package/README.md +3 -9
  2. package/dist/ai_platform_llm/core.d.ts +1 -2
  3. package/dist/ai_platform_llm/core.js +0 -36
  4. package/dist/ai_platform_llm/index.d.ts +3 -4
  5. package/dist/ai_platform_llm/index.js +3 -7
  6. package/dist/ai_platform_llm/types.d.ts +0 -20
  7. package/dist/openapi/account/certification.d.ts +27 -1
  8. package/dist/openapi/account/certification.js +20 -0
  9. package/dist/openapi/account/firm.d.ts +31 -0
  10. package/dist/openapi/account/firm.js +23 -0
  11. package/dist/openapi/account/homepage-data.d.ts +85 -0
  12. package/dist/openapi/account/homepage-data.js +109 -0
  13. package/dist/openapi/account/index.d.ts +18 -8
  14. package/dist/openapi/account/index.js +23 -8
  15. package/dist/openapi/account/mobile-hash.d.ts +20 -0
  16. package/dist/openapi/account/mobile-hash.js +22 -0
  17. package/dist/openapi/account/public-info.d.ts +32 -0
  18. package/dist/openapi/account/public-info.js +22 -0
  19. package/dist/openapi/business/index.d.ts +2 -1
  20. package/dist/openapi/business/index.js +7 -0
  21. package/dist/openapi/business/task.d.ts +116 -0
  22. package/dist/openapi/business/task.js +71 -0
  23. package/dist/openapi/comment/index.d.ts +2 -0
  24. package/dist/openapi/comment/index.js +7 -1
  25. package/dist/openapi/comment/manage.d.ts +118 -0
  26. package/dist/openapi/comment/manage.js +88 -0
  27. package/dist/openapi/content/index.d.ts +2 -0
  28. package/dist/openapi/content/index.js +5 -1
  29. package/dist/openapi/content/video-data.d.ts +94 -0
  30. package/dist/openapi/content/video-data.js +56 -0
  31. package/dist/openapi/im/group.d.ts +119 -0
  32. package/dist/openapi/im/group.js +91 -0
  33. package/dist/openapi/im/index.d.ts +2 -1
  34. package/dist/openapi/im/index.js +8 -0
  35. package/dist/openapi/index.d.ts +21 -11
  36. package/dist/openapi/index.js +64 -22
  37. package/dist/openapi/live/index.d.ts +2 -1
  38. package/dist/openapi/live/index.js +5 -0
  39. package/dist/openapi/live/room.d.ts +60 -0
  40. package/dist/openapi/live/room.js +42 -0
  41. package/dist/openapi/music/collection.d.ts +42 -0
  42. package/dist/openapi/music/collection.js +20 -0
  43. package/dist/openapi/music/index.d.ts +2 -0
  44. package/dist/openapi/music/index.js +6 -0
  45. package/dist/openapi/relation/fans.d.ts +72 -0
  46. package/dist/openapi/relation/fans.js +71 -0
  47. package/dist/openapi/relation/index.d.ts +4 -1
  48. package/dist/openapi/relation/index.js +10 -0
  49. package/dist/openapi/relation/social.d.ts +56 -0
  50. package/dist/openapi/relation/social.js +40 -0
  51. package/package.json +42 -2
  52. package/dist/ai_platform_llm/permission.d.ts +0 -15
  53. package/dist/ai_platform_llm/permission.js +0 -44
@@ -0,0 +1,119 @@
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>>;
@@ -0,0 +1,91 @@
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
+ }
@@ -1 +1,2 @@
1
- export {};
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,2 +1,10 @@
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,14 +1,24 @@
1
+ export { getAffiliateId, getAIUserDataInfo, getAIUserItemList, getAIUserProfile, getFirmSubjectDetail, 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, ConstellationResponse, FirmSubjectDetail, FirmSubjectDetailParams, FirmSubjectDetailResponse, GetRelatedIdRequest, GetRelatedIdResponse, HomepageDailyResult, HomepageDataParams, HomepageDateType, HomepageItemParams, HomepageResultResponse, UserCertLabelInfo, UserCertLabelsInfoParams, UserCertLabelsInfoResponse, UserCertLabelStyle, UserHashMobileParams, UserHashMobileResponse, UserPublicInfo, UserPublicInfoParams, UserPublicInfoResponse } from './account';
3
+ export { createActivity, modifyActivity, queryActivityInfo, queryActivityUserCompletionStatus } from './business';
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';
1
9
  export { callOpenAPI } from './core';
2
10
  export type { CallOpenAPIParams, CallOptions, OpenAPIResponse } from './core';
3
- export { getUserConstellation, getRelatedId, getAffiliateId, getAIUserProfile, getAIUserDataInfo, getAIUserItemList } from './account';
4
- export type { ConstellationResponse, GetRelatedIdRequest, GetRelatedIdResponse, AIUserProfileParams, AIUserInfo, AIUserProfileResponse, AIUserDataInfoParams, AIUserBase, AIUserDataInfoResponse, AIUserItemListParams, AIUserItem, AIUserItemListResponse } from './account';
5
- export { getHighQualityText, getRecommend, getFollowHotWord, getFollowFeed, getFeed } from './content';
6
- export type { HighQualityTextParams, HighQualityTextResponse, RecommendRequest, RecommendItem, RecommendResponse, HotWordUrl, HotWordItem, HotWordResponse, FollowFeedItem, FollowFeedResponse, FeedItem, FeedResponse } from './content';
7
- export { searchVideo, searchUser, searchLive, searchExperience, searchMusic, searchGeneral, searchVision, searchPoi } from './search';
8
- export type { VideoSearchParams, VideoSearchItem, VideoSearchResponse, SearchUserParams, SearchUserItem, SearchUserResponse, AvatarThumb, SearchLiveParams, SearchLiveItem, SearchLiveResponse, LiveAuthor, LiveCover, LiveRawData, LiveInfo, SearchExperienceParams, SearchExperienceItem, SearchExperienceResponse, ExperienceCover, SearchMusicParams, SearchMusicItem, SearchMusicResponse, GeneralSearchParams, GeneralSearchItem, GeneralSearchResponse, VisionSearchParams, VisionSearchItem, VisionSearchResponse, PoiSearchParams, PoiItem, PoiSearchResponse } from './search';
9
- export { searchComment } from './comment';
10
- export type { CommentSearchParams, CommentSearchItem, CommentSearchResponse } from './comment';
11
- export { topicSearch, getUserFollowing, getUserBasicData } from './platform';
12
- export type { TopicSearchParams, TopicSearchResponse, FollowingListParams, FollowingListResponse, FollowingListData, FollowingUser, UserBasicDataParams, UserBasicDataResponse, UserInfo } from './platform';
13
11
  export { getHotList } from './hot';
14
- export type { HotListParams, HotBoardItem, HotListResponse } from './hot';
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
+ export { getRoomRealTimeData, queryRoomData } from './live';
16
+ export type { RoomDataQueryParams, RoomDataQueryRequest, RoomDataQueryResponse, RoomRealTimeQueryParams, RoomRealTimeRequest, RoomRealTimeResponse } from './live';
17
+ export { getMusicCollectionList } from './music';
18
+ export type { MusicCollectionItem, MusicCollectionListParams, MusicCollectionListResponse } from './music';
19
+ export { getUserBasicData, getUserFollowing, topicSearch } from './platform';
20
+ export type { FollowingListData, FollowingListParams, FollowingListResponse, FollowingUser, TopicSearchParams, TopicSearchResponse, UserBasicDataParams, UserBasicDataResponse, UserInfo } from './platform';
21
+ export { checkFans, getFansFavourite, getFansProfile, getFansSource, getFriendList, getUserFansProfile } from './relation';
22
+ export type { DistributionItem, FansCheckParams, FansCheckResponse, FansDataParams, FansFavouriteItem, FansFavouriteResponse, FansProfileResponse, FansSourceResponse, FriendListParams, FriendListResponse, FriendUser } from './relation';
23
+ export { searchExperience, searchGeneral, searchLive, searchMusic, searchPoi, searchUser, searchVideo, searchVision } from './search';
24
+ export type { AvatarThumb, ExperienceCover, GeneralSearchItem, GeneralSearchParams, GeneralSearchResponse, LiveAuthor, LiveCover, LiveInfo, LiveRawData, PoiItem, PoiSearchParams, PoiSearchResponse, SearchExperienceItem, SearchExperienceParams, SearchExperienceResponse, SearchLiveItem, SearchLiveParams, SearchLiveResponse, SearchMusicItem, SearchMusicParams, SearchMusicResponse, SearchUserItem, SearchUserParams, SearchUserResponse, VideoSearchItem, VideoSearchParams, VideoSearchResponse, VisionSearchItem, VisionSearchParams, VisionSearchResponse } from './search';
@@ -1,35 +1,77 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getHotList = exports.getUserBasicData = exports.getUserFollowing = exports.topicSearch = exports.searchComment = exports.searchPoi = exports.searchVision = exports.searchGeneral = exports.searchMusic = exports.searchExperience = exports.searchLive = exports.searchUser = exports.searchVideo = exports.getFeed = exports.getFollowFeed = exports.getFollowHotWord = exports.getRecommend = exports.getHighQualityText = exports.getAIUserItemList = exports.getAIUserDataInfo = exports.getAIUserProfile = exports.getAffiliateId = exports.getRelatedId = exports.getUserConstellation = exports.callOpenAPI = void 0;
4
- var core_1 = require("./core");
5
- Object.defineProperty(exports, "callOpenAPI", { enumerable: true, get: function () { return core_1.callOpenAPI; } });
3
+ 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.getUserCertLabelsInfo = exports.getRelatedId = exports.getFirmSubjectDetail = exports.getAIUserProfile = exports.getAIUserItemList = exports.getAIUserDataInfo = exports.getAffiliateId = void 0;
4
+ exports.searchVision = exports.searchVideo = exports.searchUser = exports.searchPoi = exports.searchMusic = exports.searchLive = exports.searchGeneral = exports.searchExperience = exports.getUserFansProfile = exports.getFriendList = exports.getFansSource = void 0;
6
5
  var account_1 = require("./account");
7
- Object.defineProperty(exports, "getUserConstellation", { enumerable: true, get: function () { return account_1.getUserConstellation; } });
8
- Object.defineProperty(exports, "getRelatedId", { enumerable: true, get: function () { return account_1.getRelatedId; } });
9
6
  Object.defineProperty(exports, "getAffiliateId", { enumerable: true, get: function () { return account_1.getAffiliateId; } });
10
- Object.defineProperty(exports, "getAIUserProfile", { enumerable: true, get: function () { return account_1.getAIUserProfile; } });
11
7
  Object.defineProperty(exports, "getAIUserDataInfo", { enumerable: true, get: function () { return account_1.getAIUserDataInfo; } });
12
8
  Object.defineProperty(exports, "getAIUserItemList", { enumerable: true, get: function () { return account_1.getAIUserItemList; } });
9
+ Object.defineProperty(exports, "getAIUserProfile", { enumerable: true, get: function () { return account_1.getAIUserProfile; } });
10
+ Object.defineProperty(exports, "getFirmSubjectDetail", { enumerable: true, get: function () { return account_1.getFirmSubjectDetail; } });
11
+ Object.defineProperty(exports, "getRelatedId", { enumerable: true, get: function () { return account_1.getRelatedId; } });
12
+ Object.defineProperty(exports, "getUserCertLabelsInfo", { enumerable: true, get: function () { return account_1.getUserCertLabelsInfo; } });
13
+ Object.defineProperty(exports, "getUserCommentData", { enumerable: true, get: function () { return account_1.getUserCommentData; } });
14
+ Object.defineProperty(exports, "getUserConstellation", { enumerable: true, get: function () { return account_1.getUserConstellation; } });
15
+ Object.defineProperty(exports, "getUserFansData", { enumerable: true, get: function () { return account_1.getUserFansData; } });
16
+ Object.defineProperty(exports, "getUserHashMobile", { enumerable: true, get: function () { return account_1.getUserHashMobile; } });
17
+ Object.defineProperty(exports, "getUserItemData", { enumerable: true, get: function () { return account_1.getUserItemData; } });
18
+ Object.defineProperty(exports, "getUserLikeData", { enumerable: true, get: function () { return account_1.getUserLikeData; } });
19
+ Object.defineProperty(exports, "getUserProfileData", { enumerable: true, get: function () { return account_1.getUserProfileData; } });
20
+ Object.defineProperty(exports, "getUserPublicInfo", { enumerable: true, get: function () { return account_1.getUserPublicInfo; } });
21
+ Object.defineProperty(exports, "getUserShareData", { enumerable: true, get: function () { return account_1.getUserShareData; } });
22
+ var business_1 = require("./business");
23
+ Object.defineProperty(exports, "createActivity", { enumerable: true, get: function () { return business_1.createActivity; } });
24
+ Object.defineProperty(exports, "modifyActivity", { enumerable: true, get: function () { return business_1.modifyActivity; } });
25
+ Object.defineProperty(exports, "queryActivityInfo", { enumerable: true, get: function () { return business_1.queryActivityInfo; } });
26
+ Object.defineProperty(exports, "queryActivityUserCompletionStatus", { enumerable: true, get: function () { return business_1.queryActivityUserCompletionStatus; } });
27
+ var comment_1 = require("./comment");
28
+ Object.defineProperty(exports, "deleteComment", { enumerable: true, get: function () { return comment_1.deleteComment; } });
29
+ Object.defineProperty(exports, "diggComment", { enumerable: true, get: function () { return comment_1.diggComment; } });
30
+ Object.defineProperty(exports, "getCommentList", { enumerable: true, get: function () { return comment_1.getCommentList; } });
31
+ Object.defineProperty(exports, "getCommentReplyList", { enumerable: true, get: function () { return comment_1.getCommentReplyList; } });
32
+ Object.defineProperty(exports, "publishComment", { enumerable: true, get: function () { return comment_1.publishComment; } });
33
+ Object.defineProperty(exports, "searchComment", { enumerable: true, get: function () { return comment_1.searchComment; } });
13
34
  var content_1 = require("./content");
35
+ Object.defineProperty(exports, "getFeed", { enumerable: true, get: function () { return content_1.getFeed; } });
36
+ Object.defineProperty(exports, "getFollowFeed", { enumerable: true, get: function () { return content_1.getFollowFeed; } });
37
+ Object.defineProperty(exports, "getFollowHotWord", { enumerable: true, get: function () { return content_1.getFollowHotWord; } });
14
38
  Object.defineProperty(exports, "getHighQualityText", { enumerable: true, get: function () { return content_1.getHighQualityText; } });
15
39
  Object.defineProperty(exports, "getRecommend", { enumerable: true, get: function () { return content_1.getRecommend; } });
16
- Object.defineProperty(exports, "getFollowHotWord", { enumerable: true, get: function () { return content_1.getFollowHotWord; } });
17
- Object.defineProperty(exports, "getFollowFeed", { enumerable: true, get: function () { return content_1.getFollowFeed; } });
18
- Object.defineProperty(exports, "getFeed", { enumerable: true, get: function () { return content_1.getFeed; } });
40
+ Object.defineProperty(exports, "getSingleVideoDetail", { enumerable: true, get: function () { return content_1.getSingleVideoDetail; } });
41
+ Object.defineProperty(exports, "getVideoDetailList", { enumerable: true, get: function () { return content_1.getVideoDetailList; } });
42
+ Object.defineProperty(exports, "getVideoPack", { enumerable: true, get: function () { return content_1.getVideoPack; } });
43
+ var core_1 = require("./core");
44
+ Object.defineProperty(exports, "callOpenAPI", { enumerable: true, get: function () { return core_1.callOpenAPI; } });
45
+ var hot_1 = require("./hot");
46
+ Object.defineProperty(exports, "getHotList", { enumerable: true, get: function () { return hot_1.getHotList; } });
47
+ var im_1 = require("./im");
48
+ Object.defineProperty(exports, "createFansGroup", { enumerable: true, get: function () { return im_1.createFansGroup; } });
49
+ Object.defineProperty(exports, "getFansGroupList", { enumerable: true, get: function () { return im_1.getFansGroupList; } });
50
+ Object.defineProperty(exports, "getGroupQuota", { enumerable: true, get: function () { return im_1.getGroupQuota; } });
51
+ Object.defineProperty(exports, "setGroupEnterAudit", { enumerable: true, get: function () { return im_1.setGroupEnterAudit; } });
52
+ Object.defineProperty(exports, "setGroupSetting", { enumerable: true, get: function () { return im_1.setGroupSetting; } });
53
+ var live_1 = require("./live");
54
+ Object.defineProperty(exports, "getRoomRealTimeData", { enumerable: true, get: function () { return live_1.getRoomRealTimeData; } });
55
+ Object.defineProperty(exports, "queryRoomData", { enumerable: true, get: function () { return live_1.queryRoomData; } });
56
+ var music_1 = require("./music");
57
+ Object.defineProperty(exports, "getMusicCollectionList", { enumerable: true, get: function () { return music_1.getMusicCollectionList; } });
58
+ var platform_1 = require("./platform");
59
+ Object.defineProperty(exports, "getUserBasicData", { enumerable: true, get: function () { return platform_1.getUserBasicData; } });
60
+ Object.defineProperty(exports, "getUserFollowing", { enumerable: true, get: function () { return platform_1.getUserFollowing; } });
61
+ Object.defineProperty(exports, "topicSearch", { enumerable: true, get: function () { return platform_1.topicSearch; } });
62
+ var relation_1 = require("./relation");
63
+ Object.defineProperty(exports, "checkFans", { enumerable: true, get: function () { return relation_1.checkFans; } });
64
+ Object.defineProperty(exports, "getFansFavourite", { enumerable: true, get: function () { return relation_1.getFansFavourite; } });
65
+ Object.defineProperty(exports, "getFansProfile", { enumerable: true, get: function () { return relation_1.getFansProfile; } });
66
+ Object.defineProperty(exports, "getFansSource", { enumerable: true, get: function () { return relation_1.getFansSource; } });
67
+ Object.defineProperty(exports, "getFriendList", { enumerable: true, get: function () { return relation_1.getFriendList; } });
68
+ Object.defineProperty(exports, "getUserFansProfile", { enumerable: true, get: function () { return relation_1.getUserFansProfile; } });
19
69
  var search_1 = require("./search");
20
- Object.defineProperty(exports, "searchVideo", { enumerable: true, get: function () { return search_1.searchVideo; } });
21
- Object.defineProperty(exports, "searchUser", { enumerable: true, get: function () { return search_1.searchUser; } });
22
- Object.defineProperty(exports, "searchLive", { enumerable: true, get: function () { return search_1.searchLive; } });
23
70
  Object.defineProperty(exports, "searchExperience", { enumerable: true, get: function () { return search_1.searchExperience; } });
24
- Object.defineProperty(exports, "searchMusic", { enumerable: true, get: function () { return search_1.searchMusic; } });
25
71
  Object.defineProperty(exports, "searchGeneral", { enumerable: true, get: function () { return search_1.searchGeneral; } });
26
- Object.defineProperty(exports, "searchVision", { enumerable: true, get: function () { return search_1.searchVision; } });
72
+ Object.defineProperty(exports, "searchLive", { enumerable: true, get: function () { return search_1.searchLive; } });
73
+ Object.defineProperty(exports, "searchMusic", { enumerable: true, get: function () { return search_1.searchMusic; } });
27
74
  Object.defineProperty(exports, "searchPoi", { enumerable: true, get: function () { return search_1.searchPoi; } });
28
- var comment_1 = require("./comment");
29
- Object.defineProperty(exports, "searchComment", { enumerable: true, get: function () { return comment_1.searchComment; } });
30
- var platform_1 = require("./platform");
31
- Object.defineProperty(exports, "topicSearch", { enumerable: true, get: function () { return platform_1.topicSearch; } });
32
- Object.defineProperty(exports, "getUserFollowing", { enumerable: true, get: function () { return platform_1.getUserFollowing; } });
33
- Object.defineProperty(exports, "getUserBasicData", { enumerable: true, get: function () { return platform_1.getUserBasicData; } });
34
- var hot_1 = require("./hot");
35
- Object.defineProperty(exports, "getHotList", { enumerable: true, get: function () { return hot_1.getHotList; } });
75
+ Object.defineProperty(exports, "searchUser", { enumerable: true, get: function () { return search_1.searchUser; } });
76
+ Object.defineProperty(exports, "searchVideo", { enumerable: true, get: function () { return search_1.searchVideo; } });
77
+ Object.defineProperty(exports, "searchVision", { enumerable: true, get: function () { return search_1.searchVision; } });
@@ -1 +1,2 @@
1
- export {};
1
+ export { getRoomRealTimeData, queryRoomData } from './room';
2
+ export type { RoomRealTimeQueryParams, RoomRealTimeRequest, RoomRealTimeResponse, RoomDataQueryParams, RoomDataQueryRequest, RoomDataQueryResponse, } from './room';
@@ -1,2 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.queryRoomData = exports.getRoomRealTimeData = void 0;
4
+ // ulive相关 OpenAPI
5
+ var room_1 = require("./room");
6
+ Object.defineProperty(exports, "getRoomRealTimeData", { enumerable: true, get: function () { return room_1.getRoomRealTimeData; } });
7
+ Object.defineProperty(exports, "queryRoomData", { enumerable: true, get: function () { return room_1.queryRoomData; } });
@@ -0,0 +1,60 @@
1
+ import type { CallOptions, OpenAPIResponse } from '../core';
2
+ export interface RoomRealTimeQueryParams {
3
+ /** 调用方用户 open_id,通过 /oauth/access_token/ 获取 */
4
+ open_id: string;
5
+ /** 被查询的目标用户 open_id */
6
+ query_user_open_id: string;
7
+ /** 直播间 ID */
8
+ room_id: string;
9
+ }
10
+ export interface RoomRealTimeRequest {
11
+ /** 推广短视频排序字段 */
12
+ PromotionShortVideoOrderField?: string;
13
+ /** 数据分组列表 */
14
+ DataGroupList?: string[];
15
+ /** 趋势粒度 */
16
+ TrendUnit?: string;
17
+ /** 转化数据粒度 */
18
+ ConvertDataUnit?: string;
19
+ }
20
+ export interface RoomRealTimeResponse {
21
+ /** 直播间实时流量数据,字段以实际接口返回为准 */
22
+ room_data?: Record<string, unknown>;
23
+ }
24
+ /**
25
+ * 获取直播间实时流量数据
26
+ *
27
+ * - Path: `/api/douyin/v1/data/room_real_time/`
28
+ * - Capability: `dy.open.live_room_data`
29
+ * - Scope: `live.room.base.realtime`
30
+ * - 需要用户授权: 是
31
+ *
32
+ * @remarks `open_id`、`query_user_open_id`、`room_id` 通过 query 传递,
33
+ * 数据维度筛选条件通过 body 传递。
34
+ */
35
+ export declare function getRoomRealTimeData(params: RoomRealTimeQueryParams, body?: RoomRealTimeRequest, options?: CallOptions): Promise<OpenAPIResponse<RoomRealTimeResponse>>;
36
+ export interface RoomDataQueryParams {
37
+ /** 调用方用户 open_id,通过 /oauth/access_token/ 获取 */
38
+ open_id: string;
39
+ }
40
+ export interface RoomDataQueryRequest {
41
+ /** 直播业务 ID */
42
+ live_id?: number;
43
+ /** 直播 webcast app id */
44
+ webcast_app_id?: number;
45
+ /** 直播间 ID 列表 */
46
+ room_ids: string[];
47
+ }
48
+ export interface RoomDataQueryResponse {
49
+ /** 直播间信息列表,字段以实际接口返回为准 */
50
+ room_list?: Array<Record<string, unknown>>;
51
+ }
52
+ /**
53
+ * 通过 roomID 列表获取对应直播间的相关信息(v2)
54
+ *
55
+ * - Path: `/api/douyin/v2/room/room_data_query/`
56
+ * - Capability: `dy.open.live_room_data`
57
+ * - Scope: `live.room.base.realtime`
58
+ * - 需要用户授权: 是
59
+ */
60
+ export declare function queryRoomData(params: RoomDataQueryParams, body: RoomDataQueryRequest, options?: CallOptions): Promise<OpenAPIResponse<RoomDataQueryResponse>>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRoomRealTimeData = getRoomRealTimeData;
4
+ exports.queryRoomData = queryRoomData;
5
+ const core_1 = require("../core");
6
+ /**
7
+ * 获取直播间实时流量数据
8
+ *
9
+ * - Path: `/api/douyin/v1/data/room_real_time/`
10
+ * - Capability: `dy.open.live_room_data`
11
+ * - Scope: `live.room.base.realtime`
12
+ * - 需要用户授权: 是
13
+ *
14
+ * @remarks `open_id`、`query_user_open_id`、`room_id` 通过 query 传递,
15
+ * 数据维度筛选条件通过 body 传递。
16
+ */
17
+ async function getRoomRealTimeData(params, body, options) {
18
+ return (0, core_1.callOpenAPI)({
19
+ path: '/api/douyin/v1/data/room_real_time/',
20
+ method: 'POST',
21
+ queryParams: params,
22
+ body: body ?? {},
23
+ domain: 'open.douyin.com',
24
+ }, options);
25
+ }
26
+ /**
27
+ * 通过 roomID 列表获取对应直播间的相关信息(v2)
28
+ *
29
+ * - Path: `/api/douyin/v2/room/room_data_query/`
30
+ * - Capability: `dy.open.live_room_data`
31
+ * - Scope: `live.room.base.realtime`
32
+ * - 需要用户授权: 是
33
+ */
34
+ async function queryRoomData(params, body, options) {
35
+ return (0, core_1.callOpenAPI)({
36
+ path: '/api/douyin/v2/room/room_data_query/',
37
+ method: 'POST',
38
+ queryParams: params,
39
+ body,
40
+ domain: 'open.douyin.com',
41
+ }, options);
42
+ }
@@ -0,0 +1,42 @@
1
+ import type { CallOptions, OpenAPIResponse } from '../core';
2
+ export interface MusicCollectionListParams {
3
+ /** 用户 open_id,通过 /oauth/access_token/ 获取 */
4
+ open_id: string;
5
+ /** 分页游标,第一页传 0 */
6
+ cursor?: number;
7
+ /** 每页数量 */
8
+ count?: number;
9
+ /** 音乐场景,默认 default */
10
+ music_scene?: string;
11
+ /** 时间戳是否使用微秒,默认 false */
12
+ use_microsecond?: boolean;
13
+ }
14
+ export interface MusicCollectionItem {
15
+ /** 音乐 ID */
16
+ music_id?: string;
17
+ /** 音乐标题 */
18
+ title?: string;
19
+ /** 作者 */
20
+ author?: string;
21
+ /** 时长(秒) */
22
+ duration?: number;
23
+ /** 封面地址 */
24
+ cover?: string;
25
+ }
26
+ export interface MusicCollectionListResponse {
27
+ /** 收藏音乐列表 */
28
+ list?: MusicCollectionItem[];
29
+ /** 下一页游标 */
30
+ cursor?: number;
31
+ /** 是否还有更多 */
32
+ has_more?: boolean;
33
+ }
34
+ /**
35
+ * 获取用户收藏音乐列表
36
+ *
37
+ * - Path: `/music/collection/list/`
38
+ * - Capability: `dy.open.music.collection.list`
39
+ * - Scope: `music.collection.list`
40
+ * - 需要用户授权: 是
41
+ */
42
+ export declare function getMusicCollectionList(params: MusicCollectionListParams, options?: CallOptions): Promise<OpenAPIResponse<MusicCollectionListResponse>>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMusicCollectionList = getMusicCollectionList;
4
+ const core_1 = require("../core");
5
+ /**
6
+ * 获取用户收藏音乐列表
7
+ *
8
+ * - Path: `/music/collection/list/`
9
+ * - Capability: `dy.open.music.collection.list`
10
+ * - Scope: `music.collection.list`
11
+ * - 需要用户授权: 是
12
+ */
13
+ async function getMusicCollectionList(params, options) {
14
+ return (0, core_1.callOpenAPI)({
15
+ path: '/music/collection/list/',
16
+ method: 'GET',
17
+ queryParams: params,
18
+ domain: 'open.douyin.com',
19
+ }, options);
20
+ }
@@ -0,0 +1,2 @@
1
+ export { getMusicCollectionList } from './collection';
2
+ export type { MusicCollectionListParams, MusicCollectionItem, MusicCollectionListResponse, } from './collection';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMusicCollectionList = void 0;
4
+ // 音乐相关 OpenAPI
5
+ var collection_1 = require("./collection");
6
+ Object.defineProperty(exports, "getMusicCollectionList", { enumerable: true, get: function () { return collection_1.getMusicCollectionList; } });
@@ -0,0 +1,72 @@
1
+ import type { CallOptions, OpenAPIResponse } from '../core';
2
+ export interface FansDataParams {
3
+ /** 用户 open_id,通过 /oauth/access_token/ 获取 */
4
+ open_id: string;
5
+ }
6
+ /** 分布项:维度取值与占比 */
7
+ export interface DistributionItem {
8
+ /** 维度取值(如性别、年龄段、地域名称) */
9
+ item?: string;
10
+ /** 占比,0~1 */
11
+ value?: number;
12
+ }
13
+ export interface FansSourceResponse {
14
+ /** 粉丝来源分布,字段以实际接口返回为准 */
15
+ fans_source?: DistributionItem[];
16
+ }
17
+ /**
18
+ * 获取粉丝来源数据
19
+ *
20
+ * - Path: `/data/extern/fans/source/`
21
+ * - Capability: `dy.open.fans_statistics`
22
+ * - Scope: `data.external.fans_source`
23
+ * - 需要用户授权: 是
24
+ */
25
+ export declare function getFansSource(params: FansDataParams, options?: CallOptions): Promise<OpenAPIResponse<FansSourceResponse>>;
26
+ export interface FansProfileResponse {
27
+ /** 性别分布 */
28
+ gender_distributions?: DistributionItem[];
29
+ /** 年龄分布 */
30
+ age_distributions?: DistributionItem[];
31
+ /** 地域分布 */
32
+ geographical_distributions?: DistributionItem[];
33
+ }
34
+ /**
35
+ * 获取粉丝画像数据
36
+ *
37
+ * - Path: `/fans/data/`
38
+ * - Capability: `dy.open.fans_statistics`
39
+ * - Scope: `fans.data`
40
+ * - 需要用户授权: 是
41
+ */
42
+ export declare function getFansProfile(params: FansDataParams, options?: CallOptions): Promise<OpenAPIResponse<FansProfileResponse>>;
43
+ /**
44
+ * 查询用户的粉丝数据(性别 / 年龄 / 地域分布)
45
+ *
46
+ * - Path: `/api/douyin/v1/user/fans_data/`
47
+ * - Capability: `dy.open.fans_statistics`
48
+ * - Scope: `fans.data.bind`
49
+ * - 需要用户授权: 是
50
+ */
51
+ export declare function getUserFansProfile(params: FansDataParams, options?: CallOptions): Promise<OpenAPIResponse<FansProfileResponse>>;
52
+ export interface FansFavouriteItem {
53
+ /** 评论 ID */
54
+ comment_id?: string;
55
+ /** 评论内容 */
56
+ text?: string;
57
+ /** 点赞数 */
58
+ digg_count?: number;
59
+ }
60
+ export interface FansFavouriteResponse {
61
+ /** 粉丝热评列表 */
62
+ list?: FansFavouriteItem[];
63
+ }
64
+ /**
65
+ * 获取用户粉丝热评
66
+ *
67
+ * - Path: `/data/extern/fans/comment/`
68
+ * - Capability: `dy.open.fans_statistics`
69
+ * - Scope: `data.external.fans_favourite`
70
+ * - 需要用户授权: 是
71
+ */
72
+ export declare function getFansFavourite(params: FansDataParams, options?: CallOptions): Promise<OpenAPIResponse<FansFavouriteResponse>>;