@open-dy/ai_coding_sdk 1.0.13 → 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.
- package/dist/openapi/account/certification.d.ts +27 -1
- package/dist/openapi/account/certification.js +20 -0
- package/dist/openapi/account/index.d.ts +2 -0
- package/dist/openapi/account/index.js +3 -1
- package/dist/openapi/content/video-data.d.ts +1 -1
- package/dist/openapi/content/video-data.js +1 -1
- package/dist/openapi/index.d.ts +2 -2
- package/dist/openapi/index.js +4 -3
- package/dist/openapi/music/collection.d.ts +1 -1
- package/dist/openapi/music/collection.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CallOptions, OpenAPIResponse } from '../core';
|
|
2
|
+
export interface UserCertLabelsInfoParams {
|
|
3
|
+
/** 待查询用户 open_id,通过 /oauth/access_token/ 获取 */
|
|
4
|
+
open_id: string;
|
|
5
|
+
}
|
|
6
|
+
export type UserCertLabelStyle = 0 | 3 | 5 | 7;
|
|
7
|
+
export interface UserCertLabelInfo {
|
|
8
|
+
/** 认证类型:0 不展示,3 黄 V,5 蓝 V,7 红 V */
|
|
9
|
+
LabelStyle?: UserCertLabelStyle;
|
|
10
|
+
/** 认证文案 */
|
|
11
|
+
LabelText?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UserCertLabelsInfoResponse {
|
|
14
|
+
/** 所查询用户认证标识信息 */
|
|
15
|
+
CertLabelInfo?: UserCertLabelInfo;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 获取用户的抖音身份认证标识
|
|
19
|
+
*
|
|
20
|
+
* - Path: `/dy_open_api/v1/user/cert_labels_info/`
|
|
21
|
+
* - Capability: `dy.open.user.cert.labels_info`
|
|
22
|
+
* - Scope: `user.cert.labels_info`
|
|
23
|
+
* - 需要用户授权: 是(按表格 F 列配置,且 RPC ScopeMap 中 `NeedUserAuth=1`)
|
|
24
|
+
*
|
|
25
|
+
* @remarks 返回用户在抖音的认证类型和认证文案。
|
|
26
|
+
*/
|
|
27
|
+
export declare function getUserCertLabelsInfo(params: UserCertLabelsInfoParams, options?: CallOptions): Promise<OpenAPIResponse<UserCertLabelsInfoResponse>>;
|
|
@@ -1,2 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUserCertLabelsInfo = getUserCertLabelsInfo;
|
|
4
|
+
const core_1 = require("../core");
|
|
5
|
+
/**
|
|
6
|
+
* 获取用户的抖音身份认证标识
|
|
7
|
+
*
|
|
8
|
+
* - Path: `/dy_open_api/v1/user/cert_labels_info/`
|
|
9
|
+
* - Capability: `dy.open.user.cert.labels_info`
|
|
10
|
+
* - Scope: `user.cert.labels_info`
|
|
11
|
+
* - 需要用户授权: 是(按表格 F 列配置,且 RPC ScopeMap 中 `NeedUserAuth=1`)
|
|
12
|
+
*
|
|
13
|
+
* @remarks 返回用户在抖音的认证类型和认证文案。
|
|
14
|
+
*/
|
|
15
|
+
async function getUserCertLabelsInfo(params, options) {
|
|
16
|
+
return (0, core_1.callOpenAPI)({
|
|
17
|
+
path: '/dy_open_api/v1/user/cert_labels_info/',
|
|
18
|
+
method: 'GET',
|
|
19
|
+
queryParams: params,
|
|
20
|
+
domain: 'open.douyin.com',
|
|
21
|
+
}, options);
|
|
22
|
+
}
|
|
@@ -4,6 +4,8 @@ export { getAIUserItemList } from './ai_items';
|
|
|
4
4
|
export type { AIUserItem, AIUserItemListParams, AIUserItemListResponse } from './ai_items';
|
|
5
5
|
export { getAIUserProfile } from './ai_profile';
|
|
6
6
|
export type { AIUserInfo, AIUserProfileParams, AIUserProfileResponse } from './ai_profile';
|
|
7
|
+
export { getUserCertLabelsInfo } from './certification';
|
|
8
|
+
export type { UserCertLabelInfo, UserCertLabelsInfoParams, UserCertLabelsInfoResponse, UserCertLabelStyle } from './certification';
|
|
7
9
|
export { getFirmSubjectDetail } from './firm';
|
|
8
10
|
export type { FirmSubjectDetail, FirmSubjectDetailParams, FirmSubjectDetailResponse } from './firm';
|
|
9
11
|
export { getUserCommentData, getUserFansData, getUserItemData, getUserLikeData, getUserProfileData, getUserShareData } from './homepage-data';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUserPublicInfo = exports.getUserConstellation = exports.getUserHashMobile = exports.getRelatedId = exports.getAffiliateId = exports.getUserShareData = exports.getUserProfileData = exports.getUserLikeData = exports.getUserItemData = exports.getUserFansData = exports.getUserCommentData = exports.getFirmSubjectDetail = exports.getAIUserProfile = exports.getAIUserItemList = exports.getAIUserDataInfo = void 0;
|
|
3
|
+
exports.getUserPublicInfo = exports.getUserConstellation = exports.getUserHashMobile = exports.getRelatedId = exports.getAffiliateId = exports.getUserShareData = exports.getUserProfileData = exports.getUserLikeData = exports.getUserItemData = exports.getUserFansData = exports.getUserCommentData = exports.getFirmSubjectDetail = exports.getUserCertLabelsInfo = exports.getAIUserProfile = exports.getAIUserItemList = exports.getAIUserDataInfo = void 0;
|
|
4
4
|
var ai_data_1 = require("./ai_data");
|
|
5
5
|
Object.defineProperty(exports, "getAIUserDataInfo", { enumerable: true, get: function () { return ai_data_1.getAIUserDataInfo; } });
|
|
6
6
|
var ai_items_1 = require("./ai_items");
|
|
7
7
|
Object.defineProperty(exports, "getAIUserItemList", { enumerable: true, get: function () { return ai_items_1.getAIUserItemList; } });
|
|
8
8
|
var ai_profile_1 = require("./ai_profile");
|
|
9
9
|
Object.defineProperty(exports, "getAIUserProfile", { enumerable: true, get: function () { return ai_profile_1.getAIUserProfile; } });
|
|
10
|
+
var certification_1 = require("./certification");
|
|
11
|
+
Object.defineProperty(exports, "getUserCertLabelsInfo", { enumerable: true, get: function () { return certification_1.getUserCertLabelsInfo; } });
|
|
10
12
|
var firm_1 = require("./firm");
|
|
11
13
|
Object.defineProperty(exports, "getFirmSubjectDetail", { enumerable: true, get: function () { return firm_1.getFirmSubjectDetail; } });
|
|
12
14
|
var homepage_data_1 = require("./homepage-data");
|
|
@@ -87,7 +87,7 @@ export interface VideoPackResponse {
|
|
|
87
87
|
* - Path: `/dy_open_api/v1/video/pack/`
|
|
88
88
|
* - Capability: `dy.open.aweme.video.pack`
|
|
89
89
|
* - Scope: `aweme.video.pack`
|
|
90
|
-
* - 需要用户授权:
|
|
90
|
+
* - 需要用户授权: 是
|
|
91
91
|
*
|
|
92
92
|
* @remarks 获取视频的基本信息摘要、作者信息、锚点信息等字段,不合规视频会被过滤。
|
|
93
93
|
*/
|
|
@@ -42,7 +42,7 @@ async function getSingleVideoDetail(params, options) {
|
|
|
42
42
|
* - Path: `/dy_open_api/v1/video/pack/`
|
|
43
43
|
* - Capability: `dy.open.aweme.video.pack`
|
|
44
44
|
* - Scope: `aweme.video.pack`
|
|
45
|
-
* - 需要用户授权:
|
|
45
|
+
* - 需要用户授权: 是
|
|
46
46
|
*
|
|
47
47
|
* @remarks 获取视频的基本信息摘要、作者信息、锚点信息等字段,不合规视频会被过滤。
|
|
48
48
|
*/
|
package/dist/openapi/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { getAIUserDataInfo, getAIUserItemList, getAIUserProfile,
|
|
2
|
-
export type { AIUserBase, AIUserDataInfoParams, AIUserDataInfoResponse, AIUserInfo, AIUserItem, AIUserItemListParams, AIUserItemListResponse, AIUserProfileParams, AIUserProfileResponse, ConstellationResponse, FirmSubjectDetail, FirmSubjectDetailParams, FirmSubjectDetailResponse, GetRelatedIdRequest, GetRelatedIdResponse, HomepageDailyResult, HomepageDataParams, HomepageDateType, HomepageItemParams, HomepageResultResponse, UserHashMobileParams, UserHashMobileResponse, UserPublicInfo, UserPublicInfoParams, UserPublicInfoResponse } from './account';
|
|
1
|
+
export { getAffiliateId, getAIUserDataInfo, getAIUserItemList, getAIUserProfile, 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
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
5
|
export { deleteComment, diggComment, getCommentList, getCommentReplyList, publishComment, searchComment } from './comment';
|
package/dist/openapi/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
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 = void 0;
|
|
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;
|
|
5
5
|
var account_1 = require("./account");
|
|
6
|
+
Object.defineProperty(exports, "getAffiliateId", { enumerable: true, get: function () { return account_1.getAffiliateId; } });
|
|
6
7
|
Object.defineProperty(exports, "getAIUserDataInfo", { enumerable: true, get: function () { return account_1.getAIUserDataInfo; } });
|
|
7
8
|
Object.defineProperty(exports, "getAIUserItemList", { enumerable: true, get: function () { return account_1.getAIUserItemList; } });
|
|
8
9
|
Object.defineProperty(exports, "getAIUserProfile", { enumerable: true, get: function () { return account_1.getAIUserProfile; } });
|
|
9
|
-
Object.defineProperty(exports, "getAffiliateId", { enumerable: true, get: function () { return account_1.getAffiliateId; } });
|
|
10
10
|
Object.defineProperty(exports, "getFirmSubjectDetail", { enumerable: true, get: function () { return account_1.getFirmSubjectDetail; } });
|
|
11
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; } });
|
|
12
13
|
Object.defineProperty(exports, "getUserCommentData", { enumerable: true, get: function () { return account_1.getUserCommentData; } });
|
|
13
14
|
Object.defineProperty(exports, "getUserConstellation", { enumerable: true, get: function () { return account_1.getUserConstellation; } });
|
|
14
15
|
Object.defineProperty(exports, "getUserFansData", { enumerable: true, get: function () { return account_1.getUserFansData; } });
|
|
@@ -37,6 +37,6 @@ export interface MusicCollectionListResponse {
|
|
|
37
37
|
* - Path: `/music/collection/list/`
|
|
38
38
|
* - Capability: `dy.open.music.collection.list`
|
|
39
39
|
* - Scope: `music.collection.list`
|
|
40
|
-
* - 需要用户授权:
|
|
40
|
+
* - 需要用户授权: 是
|
|
41
41
|
*/
|
|
42
42
|
export declare function getMusicCollectionList(params: MusicCollectionListParams, options?: CallOptions): Promise<OpenAPIResponse<MusicCollectionListResponse>>;
|
|
@@ -8,7 +8,7 @@ const core_1 = require("../core");
|
|
|
8
8
|
* - Path: `/music/collection/list/`
|
|
9
9
|
* - Capability: `dy.open.music.collection.list`
|
|
10
10
|
* - Scope: `music.collection.list`
|
|
11
|
-
* - 需要用户授权:
|
|
11
|
+
* - 需要用户授权: 是
|
|
12
12
|
*/
|
|
13
13
|
async function getMusicCollectionList(params, options) {
|
|
14
14
|
return (0, core_1.callOpenAPI)({
|