@open-dy/ai_coding_sdk 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/dist/ai_platform_llm/client.d.ts +29 -0
- package/dist/ai_platform_llm/client.js +107 -0
- package/dist/ai_platform_llm/core.d.ts +21 -0
- package/dist/ai_platform_llm/core.js +193 -0
- package/dist/ai_platform_llm/index.d.ts +3 -0
- package/dist/ai_platform_llm/index.js +21 -0
- package/dist/ai_platform_llm/types.d.ts +292 -0
- package/dist/ai_platform_llm/types.js +2 -0
- package/dist/auth/access-token.d.ts +139 -0
- package/dist/auth/access-token.js +99 -0
- package/dist/auth/core.d.ts +15 -0
- package/dist/auth/core.js +76 -0
- package/dist/auth/index.d.ts +4 -0
- package/dist/auth/index.js +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/openapi/account/firm.d.ts +31 -0
- package/dist/openapi/account/firm.js +23 -0
- package/dist/openapi/account/homepage-data.d.ts +85 -0
- package/dist/openapi/account/homepage-data.js +109 -0
- package/dist/openapi/account/index.d.ts +16 -8
- package/dist/openapi/account/index.js +21 -8
- package/dist/openapi/account/mobile-hash.d.ts +20 -0
- package/dist/openapi/account/mobile-hash.js +22 -0
- package/dist/openapi/account/public-info.d.ts +32 -0
- package/dist/openapi/account/public-info.js +22 -0
- package/dist/openapi/business/index.d.ts +2 -1
- package/dist/openapi/business/index.js +7 -0
- package/dist/openapi/business/task.d.ts +116 -0
- package/dist/openapi/business/task.js +71 -0
- package/dist/openapi/comment/index.d.ts +2 -0
- package/dist/openapi/comment/index.js +7 -1
- package/dist/openapi/comment/manage.d.ts +118 -0
- package/dist/openapi/comment/manage.js +88 -0
- package/dist/openapi/content/index.d.ts +2 -0
- package/dist/openapi/content/index.js +5 -1
- package/dist/openapi/content/video-data.d.ts +94 -0
- package/dist/openapi/content/video-data.js +56 -0
- package/dist/openapi/im/group.d.ts +119 -0
- package/dist/openapi/im/group.js +91 -0
- package/dist/openapi/im/index.d.ts +2 -1
- package/dist/openapi/im/index.js +8 -0
- package/dist/openapi/index.d.ts +21 -11
- package/dist/openapi/index.js +64 -23
- package/dist/openapi/live/index.d.ts +2 -1
- package/dist/openapi/live/index.js +5 -0
- package/dist/openapi/live/room.d.ts +60 -0
- package/dist/openapi/live/room.js +42 -0
- package/dist/openapi/music/collection.d.ts +42 -0
- package/dist/openapi/music/collection.js +20 -0
- package/dist/openapi/music/index.d.ts +2 -0
- package/dist/openapi/music/index.js +6 -0
- package/dist/openapi/relation/fans.d.ts +72 -0
- package/dist/openapi/relation/fans.js +71 -0
- package/dist/openapi/relation/index.d.ts +4 -1
- package/dist/openapi/relation/index.js +10 -0
- package/dist/openapi/relation/social.d.ts +56 -0
- package/dist/openapi/relation/social.js +40 -0
- package/package.json +58 -2
|
@@ -0,0 +1,118 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
}
|
|
@@ -4,3 +4,5 @@ export { getRecommend } from './recommend';
|
|
|
4
4
|
export type { RecommendRequest, RecommendItem, RecommendResponse } from './recommend';
|
|
5
5
|
export { getFollowHotWord, getFollowFeed, getFeed } from './follow';
|
|
6
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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFeed = exports.getFollowFeed = exports.getFollowHotWord = exports.getRecommend = exports.getHighQualityText = void 0;
|
|
3
|
+
exports.getVideoPack = exports.getSingleVideoDetail = exports.getVideoDetailList = exports.getFeed = exports.getFollowFeed = exports.getFollowHotWord = exports.getRecommend = exports.getHighQualityText = void 0;
|
|
4
4
|
var video_1 = require("./video");
|
|
5
5
|
Object.defineProperty(exports, "getHighQualityText", { enumerable: true, get: function () { return video_1.getHighQualityText; } });
|
|
6
6
|
var recommend_1 = require("./recommend");
|
|
@@ -9,3 +9,7 @@ var follow_1 = require("./follow");
|
|
|
9
9
|
Object.defineProperty(exports, "getFollowHotWord", { enumerable: true, get: function () { return follow_1.getFollowHotWord; } });
|
|
10
10
|
Object.defineProperty(exports, "getFollowFeed", { enumerable: true, get: function () { return follow_1.getFollowFeed; } });
|
|
11
11
|
Object.defineProperty(exports, "getFeed", { enumerable: true, get: function () { return follow_1.getFeed; } });
|
|
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
|
+
Object.defineProperty(exports, "getVideoPack", { enumerable: true, get: function () { return video_data_1.getVideoPack; } });
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
export interface VideoPackParams {
|
|
61
|
+
/** 作品 ID 列表,JSON 数组形式,如 [1774790056399461524] */
|
|
62
|
+
item_ids: number[] | string[];
|
|
63
|
+
/** 来源用户 open_id */
|
|
64
|
+
from_uid?: string;
|
|
65
|
+
/** 设备 ID */
|
|
66
|
+
device_id?: string | number;
|
|
67
|
+
}
|
|
68
|
+
export interface VideoPackItem {
|
|
69
|
+
/** 视频/作品 ID */
|
|
70
|
+
item_id?: string;
|
|
71
|
+
/** 作品标题 */
|
|
72
|
+
title?: string;
|
|
73
|
+
/** 作者信息 */
|
|
74
|
+
author?: Record<string, unknown>;
|
|
75
|
+
/** 锚点信息 */
|
|
76
|
+
anchor?: Record<string, unknown>;
|
|
77
|
+
/** 互动统计(点赞、评论、分享等) */
|
|
78
|
+
statistics?: Record<string, unknown>;
|
|
79
|
+
}
|
|
80
|
+
export interface VideoPackResponse {
|
|
81
|
+
/** 合规打包后的作品列表(不合规作品会被过滤) */
|
|
82
|
+
list?: VideoPackItem[];
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* 抖音视频合规打包(获取视频互动数据)
|
|
86
|
+
*
|
|
87
|
+
* - Path: `/dy_open_api/v1/video/pack/`
|
|
88
|
+
* - Capability: `dy.open.aweme.video.pack`
|
|
89
|
+
* - Scope: `aweme.video.pack`
|
|
90
|
+
* - 需要用户授权: 是(按表格 F 列配置,调用前需用户授权 `aweme.video.pack` scope)
|
|
91
|
+
*
|
|
92
|
+
* @remarks 获取视频的基本信息摘要、作者信息、锚点信息等字段,不合规视频会被过滤。
|
|
93
|
+
*/
|
|
94
|
+
export declare function getVideoPack(params: VideoPackParams, options?: CallOptions): Promise<OpenAPIResponse<VideoPackResponse>>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getVideoDetailList = getVideoDetailList;
|
|
4
|
+
exports.getSingleVideoDetail = getSingleVideoDetail;
|
|
5
|
+
exports.getVideoPack = getVideoPack;
|
|
6
|
+
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
|
+
/**
|
|
40
|
+
* 抖音视频合规打包(获取视频互动数据)
|
|
41
|
+
*
|
|
42
|
+
* - Path: `/dy_open_api/v1/video/pack/`
|
|
43
|
+
* - Capability: `dy.open.aweme.video.pack`
|
|
44
|
+
* - Scope: `aweme.video.pack`
|
|
45
|
+
* - 需要用户授权: 是(按表格 F 列配置,调用前需用户授权 `aweme.video.pack` scope)
|
|
46
|
+
*
|
|
47
|
+
* @remarks 获取视频的基本信息摘要、作者信息、锚点信息等字段,不合规视频会被过滤。
|
|
48
|
+
*/
|
|
49
|
+
async function getVideoPack(params, options) {
|
|
50
|
+
return (0, core_1.callOpenAPI)({
|
|
51
|
+
path: '/dy_open_api/v1/video/pack/',
|
|
52
|
+
method: 'GET',
|
|
53
|
+
queryParams: params,
|
|
54
|
+
domain: 'open.douyin.com',
|
|
55
|
+
}, options);
|
|
56
|
+
}
|
|
@@ -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';
|
package/dist/openapi/im/index.js
CHANGED
|
@@ -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; } });
|
package/dist/openapi/index.d.ts
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
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';
|
|
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 {
|
|
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';
|