@open-dy/ai_coding_sdk 1.0.14 → 1.0.16
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/dist/ai_platform_llm/permission.d.ts +15 -0
- package/dist/ai_platform_llm/permission.js +44 -0
- package/dist/ai_platform_llm/types.d.ts +2 -0
- package/dist/openapi/account/index.d.ts +2 -2
- package/dist/openapi/account/index.js +3 -3
- package/dist/openapi/account/realname.d.ts +29 -1
- package/dist/openapi/account/realname.js +20 -0
- package/dist/openapi/comment/index.d.ts +1 -3
- package/dist/openapi/comment/index.js +1 -7
- package/dist/openapi/content/index.d.ts +6 -6
- package/dist/openapi/content/index.js +7 -9
- package/dist/openapi/content/video-data.d.ts +0 -58
- package/dist/openapi/content/video-data.js +0 -34
- package/dist/openapi/im/index.d.ts +1 -2
- package/dist/openapi/im/index.js +0 -8
- package/dist/openapi/index.d.ts +6 -8
- package/dist/openapi/index.js +2 -16
- package/dist/openapi/relation/social.d.ts +1 -1
- package/dist/openapi/relation/social.js +1 -1
- package/package.json +1 -1
- package/dist/openapi/account/firm.d.ts +0 -31
- package/dist/openapi/account/firm.js +0 -23
- package/dist/openapi/comment/manage.d.ts +0 -118
- package/dist/openapi/comment/manage.js +0 -88
- package/dist/openapi/im/group.d.ts +0 -119
- package/dist/openapi/im/group.js +0 -91
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AIPlatformCallOptions, CheckMiniProgramModelPermissionRequest, CheckMiniProgramModelPermissionResponse } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* 判断小程序是否有目标模型权限。
|
|
4
|
+
* 这里保留原始响应,避免在未知响应结构上做过度假设。
|
|
5
|
+
*/
|
|
6
|
+
export declare function checkMiniProgramModelPermission(req: CheckMiniProgramModelPermissionRequest, options?: AIPlatformCallOptions): Promise<CheckMiniProgramModelPermissionResponse>;
|
|
7
|
+
/**
|
|
8
|
+
* 基于常见布尔字段做轻量归一化。
|
|
9
|
+
* 如果接口未返回这些字段,则返回 null,让上层自行读取原始响应。
|
|
10
|
+
*/
|
|
11
|
+
export declare function getMiniProgramModelPermissionStatus(response: CheckMiniProgramModelPermissionResponse): boolean | null;
|
|
12
|
+
/**
|
|
13
|
+
* 权限明确为 false 时抛错;响应里没有标准布尔字段时,只返回原始响应。
|
|
14
|
+
*/
|
|
15
|
+
export declare function assertMiniProgramModelPermission(req: CheckMiniProgramModelPermissionRequest, options?: AIPlatformCallOptions): Promise<CheckMiniProgramModelPermissionResponse>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkMiniProgramModelPermission = checkMiniProgramModelPermission;
|
|
4
|
+
exports.getMiniProgramModelPermissionStatus = getMiniProgramModelPermissionStatus;
|
|
5
|
+
exports.assertMiniProgramModelPermission = assertMiniProgramModelPermission;
|
|
6
|
+
const core_1 = require("./core");
|
|
7
|
+
/**
|
|
8
|
+
* 判断小程序是否有目标模型权限。
|
|
9
|
+
* 这里保留原始响应,避免在未知响应结构上做过度假设。
|
|
10
|
+
*/
|
|
11
|
+
async function checkMiniProgramModelPermission(req, options) {
|
|
12
|
+
return (0, core_1.postMiniProgramModelPermission)(req, options);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 基于常见布尔字段做轻量归一化。
|
|
16
|
+
* 如果接口未返回这些字段,则返回 null,让上层自行读取原始响应。
|
|
17
|
+
*/
|
|
18
|
+
function getMiniProgramModelPermissionStatus(response) {
|
|
19
|
+
const candidates = [
|
|
20
|
+
response.data?.allowed,
|
|
21
|
+
response.data?.allow,
|
|
22
|
+
response.data?.has_permission,
|
|
23
|
+
response.data?.can_use,
|
|
24
|
+
];
|
|
25
|
+
for (const candidate of candidates) {
|
|
26
|
+
if (typeof candidate === 'boolean') {
|
|
27
|
+
return candidate;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 权限明确为 false 时抛错;响应里没有标准布尔字段时,只返回原始响应。
|
|
34
|
+
*/
|
|
35
|
+
async function assertMiniProgramModelPermission(req, options) {
|
|
36
|
+
const response = await checkMiniProgramModelPermission(req, options);
|
|
37
|
+
const granted = getMiniProgramModelPermissionStatus(response);
|
|
38
|
+
if (granted === false) {
|
|
39
|
+
throw new Error(response.message ||
|
|
40
|
+
response.err_msg ||
|
|
41
|
+
'mini_program_model_permission_denied');
|
|
42
|
+
}
|
|
43
|
+
return response;
|
|
44
|
+
}
|
|
@@ -60,6 +60,7 @@ export interface StreamGenerateRequest {
|
|
|
60
60
|
parameters: string;
|
|
61
61
|
}>;
|
|
62
62
|
extra?: Record<string, string>;
|
|
63
|
+
source: number;
|
|
63
64
|
}
|
|
64
65
|
export interface GenerateMessage {
|
|
65
66
|
Role: Role;
|
|
@@ -108,6 +109,7 @@ export interface GenerateRequest {
|
|
|
108
109
|
Parameters: string;
|
|
109
110
|
}>;
|
|
110
111
|
Extra?: Record<string, string>;
|
|
112
|
+
Source: number;
|
|
111
113
|
}
|
|
112
114
|
/**
|
|
113
115
|
* 图片生成请求。
|
|
@@ -6,8 +6,6 @@ export { getAIUserProfile } from './ai_profile';
|
|
|
6
6
|
export type { AIUserInfo, AIUserProfileParams, AIUserProfileResponse } from './ai_profile';
|
|
7
7
|
export { getUserCertLabelsInfo } from './certification';
|
|
8
8
|
export type { UserCertLabelInfo, UserCertLabelsInfoParams, UserCertLabelsInfoResponse, UserCertLabelStyle } from './certification';
|
|
9
|
-
export { getFirmSubjectDetail } from './firm';
|
|
10
|
-
export type { FirmSubjectDetail, FirmSubjectDetailParams, FirmSubjectDetailResponse } from './firm';
|
|
11
9
|
export { getUserCommentData, getUserFansData, getUserItemData, getUserLikeData, getUserProfileData, getUserShareData } from './homepage-data';
|
|
12
10
|
export type { HomepageDailyResult, HomepageDataParams, HomepageDateType, HomepageItemParams, HomepageResultResponse } from './homepage-data';
|
|
13
11
|
export { getAffiliateId, getRelatedId } from './identity';
|
|
@@ -18,3 +16,5 @@ export { getUserConstellation } from './profile';
|
|
|
18
16
|
export type { ConstellationResponse } from './profile';
|
|
19
17
|
export { getUserPublicInfo } from './public-info';
|
|
20
18
|
export type { UserPublicInfo, UserPublicInfoParams, UserPublicInfoResponse } from './public-info';
|
|
19
|
+
export { getRealNameInfo } from './realname';
|
|
20
|
+
export type { AgeRange, RealNameInfoData, RealNameInfoParams } from './realname';
|
|
@@ -1,6 +1,6 @@
|
|
|
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.
|
|
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");
|
|
@@ -9,8 +9,6 @@ var ai_profile_1 = require("./ai_profile");
|
|
|
9
9
|
Object.defineProperty(exports, "getAIUserProfile", { enumerable: true, get: function () { return ai_profile_1.getAIUserProfile; } });
|
|
10
10
|
var certification_1 = require("./certification");
|
|
11
11
|
Object.defineProperty(exports, "getUserCertLabelsInfo", { enumerable: true, get: function () { return certification_1.getUserCertLabelsInfo; } });
|
|
12
|
-
var firm_1 = require("./firm");
|
|
13
|
-
Object.defineProperty(exports, "getFirmSubjectDetail", { enumerable: true, get: function () { return firm_1.getFirmSubjectDetail; } });
|
|
14
12
|
var homepage_data_1 = require("./homepage-data");
|
|
15
13
|
Object.defineProperty(exports, "getUserCommentData", { enumerable: true, get: function () { return homepage_data_1.getUserCommentData; } });
|
|
16
14
|
Object.defineProperty(exports, "getUserFansData", { enumerable: true, get: function () { return homepage_data_1.getUserFansData; } });
|
|
@@ -27,3 +25,5 @@ var profile_1 = require("./profile");
|
|
|
27
25
|
Object.defineProperty(exports, "getUserConstellation", { enumerable: true, get: function () { return profile_1.getUserConstellation; } });
|
|
28
26
|
var public_info_1 = require("./public-info");
|
|
29
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
|
-
|
|
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 {
|
|
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.
|
|
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 {
|
|
4
|
-
export type {
|
|
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.
|
|
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[];
|
|
@@ -1,41 +1,7 @@
|
|
|
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
|
*
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type { GroupQueryParams, GroupSettingMsg, GroupSettingSetRequest, GroupSettingSetResponse, FansGroup, FansGroupListResponse, GroupQuotaResponse, CreateFansGroupRequest, CreateFansGroupResponse, GroupEnterAuditSetRequest, GroupEnterAuditSetResponse, } from './group';
|
|
1
|
+
export {};
|
package/dist/openapi/im/index.js
CHANGED
|
@@ -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; } });
|
package/dist/openapi/index.d.ts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
export { getAffiliateId, getAIUserDataInfo, getAIUserItemList, getAIUserProfile,
|
|
2
|
-
export type { AIUserBase, AIUserDataInfoParams, AIUserDataInfoResponse, AIUserInfo, AIUserItem, AIUserItemListParams, AIUserItemListResponse, AIUserProfileParams, AIUserProfileResponse,
|
|
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 {
|
|
6
|
-
export type {
|
|
7
|
-
export { getFeed, getFollowFeed, getFollowHotWord, getHighQualityText, getRecommend,
|
|
8
|
-
export type { FeedItem, FeedResponse, FollowFeedItem, FollowFeedResponse, HighQualityTextParams, HighQualityTextResponse, HotWordItem, HotWordResponse, HotWordUrl, RecommendItem, RecommendRequest, RecommendResponse,
|
|
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';
|
package/dist/openapi/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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;
|
|
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");
|
|
6
5
|
Object.defineProperty(exports, "getAffiliateId", { enumerable: true, get: function () { return account_1.getAffiliateId; } });
|
|
7
6
|
Object.defineProperty(exports, "getAIUserDataInfo", { enumerable: true, get: function () { return account_1.getAIUserDataInfo; } });
|
|
8
7
|
Object.defineProperty(exports, "getAIUserItemList", { enumerable: true, get: function () { return account_1.getAIUserItemList; } });
|
|
9
8
|
Object.defineProperty(exports, "getAIUserProfile", { enumerable: true, get: function () { return account_1.getAIUserProfile; } });
|
|
10
|
-
Object.defineProperty(exports, "
|
|
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; } });
|
|
12
11
|
Object.defineProperty(exports, "getUserCertLabelsInfo", { enumerable: true, get: function () { return account_1.getUserCertLabelsInfo; } });
|
|
13
12
|
Object.defineProperty(exports, "getUserCommentData", { enumerable: true, get: function () { return account_1.getUserCommentData; } });
|
|
@@ -25,11 +24,6 @@ Object.defineProperty(exports, "modifyActivity", { enumerable: true, get: functi
|
|
|
25
24
|
Object.defineProperty(exports, "queryActivityInfo", { enumerable: true, get: function () { return business_1.queryActivityInfo; } });
|
|
26
25
|
Object.defineProperty(exports, "queryActivityUserCompletionStatus", { enumerable: true, get: function () { return business_1.queryActivityUserCompletionStatus; } });
|
|
27
26
|
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
27
|
Object.defineProperty(exports, "searchComment", { enumerable: true, get: function () { return comment_1.searchComment; } });
|
|
34
28
|
var content_1 = require("./content");
|
|
35
29
|
Object.defineProperty(exports, "getFeed", { enumerable: true, get: function () { return content_1.getFeed; } });
|
|
@@ -37,19 +31,11 @@ Object.defineProperty(exports, "getFollowFeed", { enumerable: true, get: functio
|
|
|
37
31
|
Object.defineProperty(exports, "getFollowHotWord", { enumerable: true, get: function () { return content_1.getFollowHotWord; } });
|
|
38
32
|
Object.defineProperty(exports, "getHighQualityText", { enumerable: true, get: function () { return content_1.getHighQualityText; } });
|
|
39
33
|
Object.defineProperty(exports, "getRecommend", { enumerable: true, get: function () { return content_1.getRecommend; } });
|
|
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
34
|
Object.defineProperty(exports, "getVideoPack", { enumerable: true, get: function () { return content_1.getVideoPack; } });
|
|
43
35
|
var core_1 = require("./core");
|
|
44
36
|
Object.defineProperty(exports, "callOpenAPI", { enumerable: true, get: function () { return core_1.callOpenAPI; } });
|
|
45
37
|
var hot_1 = require("./hot");
|
|
46
38
|
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
39
|
var live_1 = require("./live");
|
|
54
40
|
Object.defineProperty(exports, "getRoomRealTimeData", { enumerable: true, get: function () { return live_1.getRoomRealTimeData; } });
|
|
55
41
|
Object.defineProperty(exports, "queryRoomData", { enumerable: true, get: function () { return live_1.queryRoomData; } });
|
package/package.json
CHANGED
|
@@ -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>>;
|
package/dist/openapi/im/group.js
DELETED
|
@@ -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
|
-
}
|