@open-dy/ai_coding_sdk 1.0.7 → 1.0.8
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/index.d.ts +2 -2
- package/dist/openapi/index.js +4 -4
- package/dist/openapi/platform/following.d.ts +19 -3
- package/dist/openapi/platform/following.js +3 -3
- package/dist/openapi/platform/index.d.ts +5 -5
- package/dist/openapi/platform/index.js +4 -4
- package/dist/openapi/platform/topic.d.ts +5 -4
- package/dist/openapi/platform/topic.js +3 -3
- package/dist/openapi/platform/user-basic.d.ts +4 -1
- package/dist/openapi/platform/user-basic.js +3 -3
- package/package.json +1 -1
package/dist/openapi/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { searchVideo, searchUser, searchLive, searchExperience, searchMusic, sea
|
|
|
8
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
9
|
export { searchComment } from './comment';
|
|
10
10
|
export type { CommentSearchParams, CommentSearchItem, CommentSearchResponse } from './comment';
|
|
11
|
-
export {
|
|
12
|
-
export type {
|
|
11
|
+
export { topicSearch, getUserFollowing, getUserBasicData } from './platform';
|
|
12
|
+
export type { TopicSearchParams, TopicSearchResponse, FollowingListParams, FollowingListResponse, FollowingListData, FollowingUser, UserBasicDataParams, UserBasicDataResponse, UserInfo } from './platform';
|
|
13
13
|
export { getHotList } from './hot';
|
|
14
14
|
export type { HotListParams, HotBoardItem, HotListResponse } from './hot';
|
package/dist/openapi/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getHotList = exports.
|
|
3
|
+
exports.getHotList = exports.getUserBasicData = exports.getUserFollowing = exports.topicSearch = exports.searchComment = exports.searchPoi = exports.searchVision = exports.searchGeneral = exports.searchMusic = exports.searchExperience = exports.searchLive = exports.searchUser = exports.searchVideo = exports.getFeed = exports.getFollowFeed = exports.getFollowHotWord = exports.getRecommend = exports.getHighQualityText = exports.getAIUserItemList = exports.getAIUserDataInfo = exports.getAIUserProfile = exports.getAffiliateId = exports.getRelatedId = exports.getUserConstellation = exports.callOpenAPI = void 0;
|
|
4
4
|
var core_1 = require("./core");
|
|
5
5
|
Object.defineProperty(exports, "callOpenAPI", { enumerable: true, get: function () { return core_1.callOpenAPI; } });
|
|
6
6
|
var account_1 = require("./account");
|
|
@@ -28,8 +28,8 @@ Object.defineProperty(exports, "searchPoi", { enumerable: true, get: function ()
|
|
|
28
28
|
var comment_1 = require("./comment");
|
|
29
29
|
Object.defineProperty(exports, "searchComment", { enumerable: true, get: function () { return comment_1.searchComment; } });
|
|
30
30
|
var platform_1 = require("./platform");
|
|
31
|
-
Object.defineProperty(exports, "
|
|
32
|
-
Object.defineProperty(exports, "
|
|
33
|
-
Object.defineProperty(exports, "
|
|
31
|
+
Object.defineProperty(exports, "topicSearch", { enumerable: true, get: function () { return platform_1.topicSearch; } });
|
|
32
|
+
Object.defineProperty(exports, "getUserFollowing", { enumerable: true, get: function () { return platform_1.getUserFollowing; } });
|
|
33
|
+
Object.defineProperty(exports, "getUserBasicData", { enumerable: true, get: function () { return platform_1.getUserBasicData; } });
|
|
34
34
|
var hot_1 = require("./hot");
|
|
35
35
|
Object.defineProperty(exports, "getHotList", { enumerable: true, get: function () { return hot_1.getHotList; } });
|
|
@@ -2,13 +2,29 @@ import type { CallOptions, OpenAPIResponse } from '../core';
|
|
|
2
2
|
export interface FollowingListParams {
|
|
3
3
|
user_id: string;
|
|
4
4
|
cursor?: number;
|
|
5
|
-
count
|
|
5
|
+
count: number;
|
|
6
|
+
}
|
|
7
|
+
export interface FollowingUser {
|
|
8
|
+
open_id: string;
|
|
9
|
+
union_id?: string;
|
|
10
|
+
nickname: string;
|
|
11
|
+
avatar: string;
|
|
12
|
+
city: string;
|
|
13
|
+
province: string;
|
|
14
|
+
country: string;
|
|
15
|
+
gender: number;
|
|
16
|
+
}
|
|
17
|
+
export interface FollowingListData {
|
|
18
|
+
cursor: number;
|
|
19
|
+
has_more: boolean;
|
|
20
|
+
list: FollowingUser[];
|
|
21
|
+
create_time_list?: number[];
|
|
6
22
|
}
|
|
7
23
|
export interface FollowingListResponse {
|
|
8
|
-
|
|
24
|
+
data?: FollowingListData;
|
|
9
25
|
}
|
|
10
26
|
/**
|
|
11
27
|
* 查询用户关注列表
|
|
12
28
|
* 需要 PPE 环境:options 中设置 ppeEnv
|
|
13
29
|
*/
|
|
14
|
-
export declare function
|
|
30
|
+
export declare function getUserFollowing(params: FollowingListParams, options?: CallOptions): Promise<OpenAPIResponse<FollowingListResponse>>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getUserFollowing = getUserFollowing;
|
|
4
4
|
const core_1 = require("../core");
|
|
5
5
|
/**
|
|
6
6
|
* 查询用户关注列表
|
|
7
7
|
* 需要 PPE 环境:options 中设置 ppeEnv
|
|
8
8
|
*/
|
|
9
|
-
async function
|
|
9
|
+
async function getUserFollowing(params, options) {
|
|
10
10
|
return (0, core_1.callOpenAPI)({
|
|
11
|
-
path: '/dy_open_api/ai_platform/data/
|
|
11
|
+
path: '/dy_open_api/ai_platform/data/get_following_list_info/',
|
|
12
12
|
method: 'POST',
|
|
13
13
|
body: params,
|
|
14
14
|
domain: 'open.douyin.com',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
4
|
-
export type { FollowingListParams, FollowingListResponse } from './following';
|
|
5
|
-
export {
|
|
1
|
+
export { topicSearch } from './topic';
|
|
2
|
+
export type { TopicSearchParams, TopicSearchResponse } from './topic';
|
|
3
|
+
export { getUserFollowing } from './following';
|
|
4
|
+
export type { FollowingListParams, FollowingListResponse, FollowingListData, FollowingUser } from './following';
|
|
5
|
+
export { getUserBasicData } from './user-basic';
|
|
6
6
|
export type { UserBasicDataParams, UserBasicDataResponse, UserInfo } from './user-basic';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getUserBasicData = exports.getUserFollowing = exports.topicSearch = void 0;
|
|
4
4
|
var topic_1 = require("./topic");
|
|
5
|
-
Object.defineProperty(exports, "
|
|
5
|
+
Object.defineProperty(exports, "topicSearch", { enumerable: true, get: function () { return topic_1.topicSearch; } });
|
|
6
6
|
var following_1 = require("./following");
|
|
7
|
-
Object.defineProperty(exports, "
|
|
7
|
+
Object.defineProperty(exports, "getUserFollowing", { enumerable: true, get: function () { return following_1.getUserFollowing; } });
|
|
8
8
|
var user_basic_1 = require("./user-basic");
|
|
9
|
-
Object.defineProperty(exports, "
|
|
9
|
+
Object.defineProperty(exports, "getUserBasicData", { enumerable: true, get: function () { return user_basic_1.getUserBasicData; } });
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { CallOptions, OpenAPIResponse } from '../core';
|
|
2
|
-
export interface
|
|
2
|
+
export interface TopicSearchParams {
|
|
3
3
|
query: string;
|
|
4
|
+
top_k?: number;
|
|
4
5
|
}
|
|
5
|
-
export interface
|
|
6
|
+
export interface TopicSearchResponse {
|
|
6
7
|
list: string[];
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* 搜索热点话题
|
|
10
11
|
* 需要 PPE 环境:options 中设置 ppeEnv,或环境变量 APP_ENV=ppe_0629
|
|
11
12
|
*/
|
|
12
|
-
export declare function
|
|
13
|
+
export declare function topicSearch(params: TopicSearchParams, options?: CallOptions): Promise<OpenAPIResponse<TopicSearchResponse>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.topicSearch = topicSearch;
|
|
4
4
|
const core_1 = require("../core");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* 搜索热点话题
|
|
7
7
|
* 需要 PPE 环境:options 中设置 ppeEnv,或环境变量 APP_ENV=ppe_0629
|
|
8
8
|
*/
|
|
9
|
-
async function
|
|
9
|
+
async function topicSearch(params, options) {
|
|
10
10
|
return (0, core_1.callOpenAPI)({
|
|
11
11
|
path: '/dy_open_api/ai_platform/data/query_topic/',
|
|
12
12
|
method: 'POST',
|
|
@@ -4,6 +4,9 @@ export interface UserBasicDataParams {
|
|
|
4
4
|
}
|
|
5
5
|
export interface UserInfo {
|
|
6
6
|
user_id: string;
|
|
7
|
+
signature?: string;
|
|
8
|
+
college_group_id?: string;
|
|
9
|
+
college_group_name?: string;
|
|
7
10
|
birthday: string;
|
|
8
11
|
register_age: string;
|
|
9
12
|
register_gender: string;
|
|
@@ -17,4 +20,4 @@ export interface UserBasicDataResponse {
|
|
|
17
20
|
* 查询用户基础数据
|
|
18
21
|
* 需要 PPE 环境:options 中设置 ppeEnv
|
|
19
22
|
*/
|
|
20
|
-
export declare function
|
|
23
|
+
export declare function getUserBasicData(params: UserBasicDataParams, options?: CallOptions): Promise<OpenAPIResponse<UserBasicDataResponse>>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getUserBasicData = getUserBasicData;
|
|
4
4
|
const core_1 = require("../core");
|
|
5
5
|
/**
|
|
6
6
|
* 查询用户基础数据
|
|
7
7
|
* 需要 PPE 环境:options 中设置 ppeEnv
|
|
8
8
|
*/
|
|
9
|
-
async function
|
|
9
|
+
async function getUserBasicData(params, options) {
|
|
10
10
|
return (0, core_1.callOpenAPI)({
|
|
11
|
-
path: '/dy_open_api/ai_platform/data/
|
|
11
|
+
path: '/dy_open_api/ai_platform/data/query_user_basic_info/',
|
|
12
12
|
method: 'POST',
|
|
13
13
|
body: params,
|
|
14
14
|
domain: 'open.douyin.com',
|