@ikenxuan/amagi 6.0.0 → 6.1.2
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 +56 -21
- package/dist/default/index.cjs +2222 -145
- package/dist/default/index.d.ts +723 -42
- package/dist/default/index.mjs +2219 -146
- package/package.json +3 -2
package/dist/default/index.d.ts
CHANGED
|
@@ -1109,6 +1109,25 @@ interface KuaishouMethodOptionsMap {
|
|
|
1109
1109
|
/** 作品ID */
|
|
1110
1110
|
photoId: string;
|
|
1111
1111
|
};
|
|
1112
|
+
UserProfileParams: {
|
|
1113
|
+
methodType: 'userProfile';
|
|
1114
|
+
/** 用户主页 principalId,可直接取 profile 页 URL 末段 */
|
|
1115
|
+
principalId: string;
|
|
1116
|
+
};
|
|
1117
|
+
UserWorkListParams: {
|
|
1118
|
+
methodType: 'userWorkList';
|
|
1119
|
+
/** 用户主页 principalId,可直接取 profile 页 URL 末段 */
|
|
1120
|
+
principalId: string;
|
|
1121
|
+
/** 分页游标;为空时请求首屏作品列表 */
|
|
1122
|
+
pcursor?: string;
|
|
1123
|
+
/** 每页数量,默认 12 */
|
|
1124
|
+
count?: number;
|
|
1125
|
+
};
|
|
1126
|
+
LiveRoomInfoParams: {
|
|
1127
|
+
methodType: 'liveRoomInfo';
|
|
1128
|
+
/** 直播间 principalId,可直接取 /u/{principalId} URL 末段 */
|
|
1129
|
+
principalId: string;
|
|
1130
|
+
};
|
|
1112
1131
|
EmojiListParams: {
|
|
1113
1132
|
methodType: 'emojiList';
|
|
1114
1133
|
};
|
|
@@ -1119,6 +1138,9 @@ interface KuaishouMethodOptionsMap {
|
|
|
1119
1138
|
type KuaishouMethodOptMap = {
|
|
1120
1139
|
videoWork: KuaishouMethodOptionsMap['VideoInfoParams'];
|
|
1121
1140
|
comments: KuaishouMethodOptionsMap['CommentParams'];
|
|
1141
|
+
userProfile: KuaishouMethodOptionsMap['UserProfileParams'];
|
|
1142
|
+
userWorkList: KuaishouMethodOptionsMap['UserWorkListParams'];
|
|
1143
|
+
liveRoomInfo: KuaishouMethodOptionsMap['LiveRoomInfoParams'];
|
|
1122
1144
|
emojiList: KuaishouMethodOptionsMap['EmojiListParams'];
|
|
1123
1145
|
};
|
|
1124
1146
|
//#endregion
|
|
@@ -1131,6 +1153,18 @@ declare const KuaishouVideoParamsSchema: zod.ZodType<KuaishouMethodOptionsMap['V
|
|
|
1131
1153
|
* 快手评论参数验证模式
|
|
1132
1154
|
*/
|
|
1133
1155
|
declare const KuaishouCommentParamsSchema: zod.ZodType<KuaishouMethodOptionsMap['CommentParams']>;
|
|
1156
|
+
/**
|
|
1157
|
+
* 快手用户主页参数验证模式
|
|
1158
|
+
*/
|
|
1159
|
+
declare const KuaishouUserProfileParamsSchema: zod.ZodType<KuaishouMethodOptionsMap['UserProfileParams']>;
|
|
1160
|
+
/**
|
|
1161
|
+
* 快手用户作品列表参数验证模式
|
|
1162
|
+
*/
|
|
1163
|
+
declare const KuaishouUserWorkListParamsSchema: zod.ZodType<KuaishouMethodOptionsMap['UserWorkListParams']>;
|
|
1164
|
+
/**
|
|
1165
|
+
* 快手直播间信息参数验证模式
|
|
1166
|
+
*/
|
|
1167
|
+
declare const KuaishouLiveRoomInfoParamsSchema: zod.ZodType<KuaishouMethodOptionsMap['LiveRoomInfoParams']>;
|
|
1134
1168
|
/**
|
|
1135
1169
|
* 快手表情参数验证模式
|
|
1136
1170
|
*/
|
|
@@ -1153,6 +1187,31 @@ declare const KuaishouValidationSchemas: {
|
|
|
1153
1187
|
methodType: "comments";
|
|
1154
1188
|
photoId: string;
|
|
1155
1189
|
}, unknown>>;
|
|
1190
|
+
readonly userProfile: zod.ZodType<{
|
|
1191
|
+
methodType: "userProfile";
|
|
1192
|
+
principalId: string;
|
|
1193
|
+
}, unknown, zod.core.$ZodTypeInternals<{
|
|
1194
|
+
methodType: "userProfile";
|
|
1195
|
+
principalId: string;
|
|
1196
|
+
}, unknown>>;
|
|
1197
|
+
readonly userWorkList: zod.ZodType<{
|
|
1198
|
+
methodType: "userWorkList";
|
|
1199
|
+
principalId: string;
|
|
1200
|
+
pcursor?: string;
|
|
1201
|
+
count?: number;
|
|
1202
|
+
}, unknown, zod.core.$ZodTypeInternals<{
|
|
1203
|
+
methodType: "userWorkList";
|
|
1204
|
+
principalId: string;
|
|
1205
|
+
pcursor?: string;
|
|
1206
|
+
count?: number;
|
|
1207
|
+
}, unknown>>;
|
|
1208
|
+
readonly liveRoomInfo: zod.ZodType<{
|
|
1209
|
+
methodType: "liveRoomInfo";
|
|
1210
|
+
principalId: string;
|
|
1211
|
+
}, unknown, zod.core.$ZodTypeInternals<{
|
|
1212
|
+
methodType: "liveRoomInfo";
|
|
1213
|
+
principalId: string;
|
|
1214
|
+
}, unknown>>;
|
|
1156
1215
|
readonly emojiList: zod.ZodType<{
|
|
1157
1216
|
methodType: "emojiList";
|
|
1158
1217
|
}, unknown, zod.core.$ZodTypeInternals<{
|
|
@@ -1165,6 +1224,9 @@ declare const KuaishouValidationSchemas: {
|
|
|
1165
1224
|
declare const KuaishouMethodRoutes: {
|
|
1166
1225
|
readonly videoWork: "/fetch_one_work";
|
|
1167
1226
|
readonly comments: "/fetch_work_comments";
|
|
1227
|
+
readonly userProfile: "/fetch_user_profile";
|
|
1228
|
+
readonly userWorkList: "/fetch_user_work_list";
|
|
1229
|
+
readonly liveRoomInfo: "/fetch_live_room_info";
|
|
1168
1230
|
readonly emojiList: "/fetch_emoji_list";
|
|
1169
1231
|
};
|
|
1170
1232
|
type KuaishouMethodType = keyof typeof KuaishouValidationSchemas;
|
|
@@ -23547,6 +23609,123 @@ type IconUrls = {
|
|
|
23547
23609
|
[property: string]: any;
|
|
23548
23610
|
};
|
|
23549
23611
|
//#endregion
|
|
23612
|
+
//#region src/types/ReturnDataType/Kuaishou/LiveRoomDetail.d.ts
|
|
23613
|
+
type KsLiveRoomInfo = {
|
|
23614
|
+
principalId?: string;
|
|
23615
|
+
activeIndex: number;
|
|
23616
|
+
current: KsLiveRoomPlayItem | null;
|
|
23617
|
+
playList: KsLiveRoomPlayItem[];
|
|
23618
|
+
websocketUrls: string[];
|
|
23619
|
+
token: string;
|
|
23620
|
+
noticeList: any[];
|
|
23621
|
+
loading: boolean;
|
|
23622
|
+
emoji: KsLiveRoomEmojiState;
|
|
23623
|
+
[property: string]: any;
|
|
23624
|
+
};
|
|
23625
|
+
type KsLiveRoomDetail = KsLiveRoomInfo;
|
|
23626
|
+
type KsLiveRoomEmojiState = {
|
|
23627
|
+
iconUrls: Record<string, string>;
|
|
23628
|
+
giftList: KsLiveRoomGift[];
|
|
23629
|
+
giftPanelList: any[];
|
|
23630
|
+
token: string;
|
|
23631
|
+
panelToken: string;
|
|
23632
|
+
longSendGiftType: number | string | null;
|
|
23633
|
+
[property: string]: any;
|
|
23634
|
+
};
|
|
23635
|
+
type KsLiveRoomGift = {
|
|
23636
|
+
id: number;
|
|
23637
|
+
name: string;
|
|
23638
|
+
type: number;
|
|
23639
|
+
unitPrice: number;
|
|
23640
|
+
maxBatchSize: number;
|
|
23641
|
+
actionType: number;
|
|
23642
|
+
canCombo: boolean;
|
|
23643
|
+
canPreview: boolean;
|
|
23644
|
+
virtualPrice: number;
|
|
23645
|
+
promptMessages: Record<string, string>;
|
|
23646
|
+
giftTypeName: string;
|
|
23647
|
+
liveGiftDescriptionKey: string;
|
|
23648
|
+
liveGiftRuleUrl: string;
|
|
23649
|
+
picUrl: Array<Record<string, string>>;
|
|
23650
|
+
subscriptImageUrl?: Array<Record<string, string>>;
|
|
23651
|
+
liveGiftBackgroundColorList?: string[];
|
|
23652
|
+
[property: string]: any;
|
|
23653
|
+
};
|
|
23654
|
+
type KsLiveRoomPlayItem = {
|
|
23655
|
+
liveStream: KsLiveStreamInfo;
|
|
23656
|
+
author: KsLiveRoomAuthor;
|
|
23657
|
+
gameInfo: KsLiveRoomGameInfo;
|
|
23658
|
+
isLiving: boolean;
|
|
23659
|
+
authToken: string | null;
|
|
23660
|
+
config: KsLiveRoomConfig;
|
|
23661
|
+
websocketInfo: any;
|
|
23662
|
+
status: number | Record<string, any>;
|
|
23663
|
+
[property: string]: any;
|
|
23664
|
+
};
|
|
23665
|
+
type KsLiveStreamInfo = {
|
|
23666
|
+
id: string;
|
|
23667
|
+
poster: string;
|
|
23668
|
+
playUrls: Record<string, any> | any[];
|
|
23669
|
+
url: string;
|
|
23670
|
+
hlsPlayUrl: string;
|
|
23671
|
+
location: string | null;
|
|
23672
|
+
type: string;
|
|
23673
|
+
liveGuess: boolean;
|
|
23674
|
+
expTag: string;
|
|
23675
|
+
privateLive: boolean;
|
|
23676
|
+
[property: string]: any;
|
|
23677
|
+
};
|
|
23678
|
+
type KsLiveRoomAuthor = {
|
|
23679
|
+
id: string;
|
|
23680
|
+
name: string;
|
|
23681
|
+
description: string;
|
|
23682
|
+
avatar: string;
|
|
23683
|
+
sex: string;
|
|
23684
|
+
living: boolean;
|
|
23685
|
+
followStatus: string;
|
|
23686
|
+
constellation: string;
|
|
23687
|
+
cityName: string;
|
|
23688
|
+
originUserId: number;
|
|
23689
|
+
privacy: boolean;
|
|
23690
|
+
isNew: boolean;
|
|
23691
|
+
timestamp: number;
|
|
23692
|
+
verifiedStatus: Record<string, any>;
|
|
23693
|
+
bannedStatus: Record<string, any>;
|
|
23694
|
+
counts: Record<string, any>;
|
|
23695
|
+
[property: string]: any;
|
|
23696
|
+
};
|
|
23697
|
+
type KsLiveRoomGameInfo = {
|
|
23698
|
+
id?: string | number;
|
|
23699
|
+
name?: string;
|
|
23700
|
+
poster?: string;
|
|
23701
|
+
description?: string;
|
|
23702
|
+
categoryAbbr?: string;
|
|
23703
|
+
categoryName?: string;
|
|
23704
|
+
watchingCount?: string;
|
|
23705
|
+
roomCount?: string;
|
|
23706
|
+
[property: string]: any;
|
|
23707
|
+
};
|
|
23708
|
+
type KsLiveRoomConfig = {
|
|
23709
|
+
rtCoverUrl?: string;
|
|
23710
|
+
hlsPlayUrl?: string;
|
|
23711
|
+
liveStreamId?: string;
|
|
23712
|
+
coverUrl?: string;
|
|
23713
|
+
caption?: string;
|
|
23714
|
+
likeCount?: string;
|
|
23715
|
+
coverHeight?: number;
|
|
23716
|
+
coverWidth?: number;
|
|
23717
|
+
privateLive?: boolean;
|
|
23718
|
+
synthesizeLive?: boolean;
|
|
23719
|
+
revenueRankWinnerIcon?: any[];
|
|
23720
|
+
liveWish?: boolean;
|
|
23721
|
+
watchingCount?: string;
|
|
23722
|
+
gameInfo?: Record<string, any>;
|
|
23723
|
+
landscape?: boolean;
|
|
23724
|
+
multiResolutionPlayUrls?: any[];
|
|
23725
|
+
user?: Record<string, any>;
|
|
23726
|
+
[property: string]: any;
|
|
23727
|
+
};
|
|
23728
|
+
//#endregion
|
|
23550
23729
|
//#region src/types/ReturnDataType/Kuaishou/OneWork.d.ts
|
|
23551
23730
|
type KsOneWork = {
|
|
23552
23731
|
data: Data$1;
|
|
@@ -23846,6 +24025,222 @@ type Tag$1 = {
|
|
|
23846
24025
|
[property: string]: any;
|
|
23847
24026
|
};
|
|
23848
24027
|
//#endregion
|
|
24028
|
+
//#region src/types/ReturnDataType/Kuaishou/UserCommon.d.ts
|
|
24029
|
+
type KsUserProfileUserInfo = {
|
|
24030
|
+
id: string;
|
|
24031
|
+
name: string;
|
|
24032
|
+
description: string;
|
|
24033
|
+
avatar: string;
|
|
24034
|
+
sex: string;
|
|
24035
|
+
living: boolean;
|
|
24036
|
+
followStatus: string;
|
|
24037
|
+
constellation: string;
|
|
24038
|
+
cityName: string;
|
|
24039
|
+
originUserId: number;
|
|
24040
|
+
privacy: boolean;
|
|
24041
|
+
isNew: boolean;
|
|
24042
|
+
timestamp: number;
|
|
24043
|
+
verifiedStatus: KsVerifiedStatus;
|
|
24044
|
+
bannedStatus: KsBannedStatus;
|
|
24045
|
+
counts: Record<string, any>;
|
|
24046
|
+
[property: string]: any;
|
|
24047
|
+
};
|
|
24048
|
+
type KsVerifiedStatus = {
|
|
24049
|
+
verified: boolean;
|
|
24050
|
+
description: string;
|
|
24051
|
+
type: number;
|
|
24052
|
+
new: boolean;
|
|
24053
|
+
iconUrl: string;
|
|
24054
|
+
[property: string]: any;
|
|
24055
|
+
};
|
|
24056
|
+
type KsBannedStatus = {
|
|
24057
|
+
banned: boolean;
|
|
24058
|
+
socialBanned: boolean;
|
|
24059
|
+
isolate: boolean;
|
|
24060
|
+
defriend: boolean;
|
|
24061
|
+
[property: string]: any;
|
|
24062
|
+
};
|
|
24063
|
+
type KsUserProfileSensitiveInfo = {
|
|
24064
|
+
kwaiId?: string;
|
|
24065
|
+
originUserId?: number;
|
|
24066
|
+
constellation?: string;
|
|
24067
|
+
cityName?: string;
|
|
24068
|
+
counts?: KsUserProfileCounts;
|
|
24069
|
+
[property: string]: any;
|
|
24070
|
+
};
|
|
24071
|
+
type KsUserProfileLiveInfo = {
|
|
24072
|
+
id: string;
|
|
24073
|
+
poster: string;
|
|
24074
|
+
playUrls: any[] | Record<string, any>;
|
|
24075
|
+
caption: string;
|
|
24076
|
+
statrtTime: number;
|
|
24077
|
+
author: KsUserProfileUserInfo;
|
|
24078
|
+
gameInfo: KsUserProfileGameInfo;
|
|
24079
|
+
hasRedPack: boolean;
|
|
24080
|
+
hasBet: boolean;
|
|
24081
|
+
followed: boolean;
|
|
24082
|
+
expTag: string;
|
|
24083
|
+
hotIcon: string;
|
|
24084
|
+
living: boolean;
|
|
24085
|
+
quality: string;
|
|
24086
|
+
qualityLabel: string;
|
|
24087
|
+
watchingCount: string;
|
|
24088
|
+
landscape: boolean;
|
|
24089
|
+
likeCount: string;
|
|
24090
|
+
type: string;
|
|
24091
|
+
[property: string]: any;
|
|
24092
|
+
};
|
|
24093
|
+
type KsUserProfileGameInfo = {
|
|
24094
|
+
gameId?: number;
|
|
24095
|
+
coverUrl?: string;
|
|
24096
|
+
name?: string;
|
|
24097
|
+
type?: number;
|
|
24098
|
+
category?: string;
|
|
24099
|
+
[property: string]: any;
|
|
24100
|
+
};
|
|
24101
|
+
type KsUserProfileCounts = {
|
|
24102
|
+
fan?: string;
|
|
24103
|
+
photo?: number;
|
|
24104
|
+
follow?: string;
|
|
24105
|
+
playback?: number;
|
|
24106
|
+
review?: number;
|
|
24107
|
+
open?: number;
|
|
24108
|
+
[property: string]: any;
|
|
24109
|
+
};
|
|
24110
|
+
//#endregion
|
|
24111
|
+
//#region src/types/ReturnDataType/Kuaishou/UserHomeDetail.d.ts
|
|
24112
|
+
type KsUserHomeDetail = {
|
|
24113
|
+
principalId: string;
|
|
24114
|
+
author: KsUserHomeAuthorInfo;
|
|
24115
|
+
profile: KsUserHomeProfileState;
|
|
24116
|
+
follow: KsUserHomeFollowState | null;
|
|
24117
|
+
followButton: KsUserHomeFollowButtonState | null;
|
|
24118
|
+
interestMask: KsUserHomeInterestCategory[];
|
|
24119
|
+
categoryMask: KsUserHomeCategoryMask;
|
|
24120
|
+
[property: string]: any;
|
|
24121
|
+
};
|
|
24122
|
+
type KsUserHomeAuthorInfo = {
|
|
24123
|
+
principalId: string;
|
|
24124
|
+
userInfo: KsUserProfileUserInfo;
|
|
24125
|
+
sensitiveInfo: KsUserProfileSensitiveInfo | null;
|
|
24126
|
+
followInfo: Record<string, any>;
|
|
24127
|
+
banStateMap: Record<string, string>;
|
|
24128
|
+
[property: string]: any;
|
|
24129
|
+
};
|
|
24130
|
+
type KsUserHomeProfileState = {
|
|
24131
|
+
currentTab: string;
|
|
24132
|
+
pageSize: number;
|
|
24133
|
+
tabTypeMap: Record<string, string>;
|
|
24134
|
+
showPlayback: boolean;
|
|
24135
|
+
publicData: KsUserHomeTabData;
|
|
24136
|
+
privateData: KsUserHomeTabData;
|
|
24137
|
+
likedData: KsUserHomeTabData;
|
|
24138
|
+
playbackData: KsUserHomeTabData;
|
|
24139
|
+
interestList: KsUserHomeInterestAuthor[];
|
|
24140
|
+
currentProduct: Record<string, any>;
|
|
24141
|
+
[property: string]: any;
|
|
24142
|
+
};
|
|
24143
|
+
type KsUserHomeTabData = {
|
|
24144
|
+
live?: KsUserProfileLiveInfo | null;
|
|
24145
|
+
list: KsUserHomeWork[];
|
|
24146
|
+
pcursor: string;
|
|
24147
|
+
showPlayback?: boolean;
|
|
24148
|
+
result?: number;
|
|
24149
|
+
[property: string]: any;
|
|
24150
|
+
};
|
|
24151
|
+
type KsUserHomeWork = {
|
|
24152
|
+
id: string;
|
|
24153
|
+
poster: string;
|
|
24154
|
+
width: number;
|
|
24155
|
+
height: number;
|
|
24156
|
+
counts: Record<string, any>;
|
|
24157
|
+
workType: string;
|
|
24158
|
+
liked: boolean;
|
|
24159
|
+
author: Record<string, any>;
|
|
24160
|
+
expTag: string;
|
|
24161
|
+
onlyFollowerCanComment: boolean;
|
|
24162
|
+
type: string;
|
|
24163
|
+
useVideoPlayer: boolean;
|
|
24164
|
+
imgUrls: string[];
|
|
24165
|
+
imgSizes: any[];
|
|
24166
|
+
playUrl?: string;
|
|
24167
|
+
[property: string]: any;
|
|
24168
|
+
};
|
|
24169
|
+
type KsUserHomeInterestAuthor = {
|
|
24170
|
+
kwaiId?: string;
|
|
24171
|
+
principalId: string;
|
|
24172
|
+
fanCount: string;
|
|
24173
|
+
live: boolean;
|
|
24174
|
+
following: boolean;
|
|
24175
|
+
verified: boolean;
|
|
24176
|
+
eid: string;
|
|
24177
|
+
headurl: string;
|
|
24178
|
+
headurls: Array<Record<string, string>>;
|
|
24179
|
+
visitorBeFollowed: boolean;
|
|
24180
|
+
user_id: number;
|
|
24181
|
+
user_name: string;
|
|
24182
|
+
user_sex: string;
|
|
24183
|
+
user_text: string;
|
|
24184
|
+
isFavorited: boolean;
|
|
24185
|
+
[property: string]: any;
|
|
24186
|
+
};
|
|
24187
|
+
type KsUserHomeInterestCategory = {
|
|
24188
|
+
id: number;
|
|
24189
|
+
name: string;
|
|
24190
|
+
categoryType: number;
|
|
24191
|
+
authorList: KsUserHomeInterestAuthor[];
|
|
24192
|
+
[property: string]: any;
|
|
24193
|
+
};
|
|
24194
|
+
type KsUserHomeCategoryMask = {
|
|
24195
|
+
config: any[];
|
|
24196
|
+
list: any[];
|
|
24197
|
+
hotList: KsUserHomeHotCategory[];
|
|
24198
|
+
hasMore: boolean;
|
|
24199
|
+
hasMoreHot: boolean;
|
|
24200
|
+
[property: string]: any;
|
|
24201
|
+
};
|
|
24202
|
+
type KsUserHomeHotCategory = {
|
|
24203
|
+
id: string;
|
|
24204
|
+
name: string;
|
|
24205
|
+
poster: string;
|
|
24206
|
+
iconUrl: string;
|
|
24207
|
+
description: string;
|
|
24208
|
+
categoryAbbr: string;
|
|
24209
|
+
categoryName: string;
|
|
24210
|
+
roomCount: string;
|
|
24211
|
+
[property: string]: any;
|
|
24212
|
+
};
|
|
24213
|
+
type KsUserHomeFollowState = {
|
|
24214
|
+
currentFollowStatus: string;
|
|
24215
|
+
needToFollow: boolean;
|
|
24216
|
+
authorId: string;
|
|
24217
|
+
data: number;
|
|
24218
|
+
[property: string]: any;
|
|
24219
|
+
};
|
|
24220
|
+
type KsUserHomeFollowButtonState = {
|
|
24221
|
+
followStatus: string;
|
|
24222
|
+
[property: string]: any;
|
|
24223
|
+
};
|
|
24224
|
+
//#endregion
|
|
24225
|
+
//#region src/types/ReturnDataType/Kuaishou/UserProfile.d.ts
|
|
24226
|
+
type KsUserProfile = KsUserHomeDetail;
|
|
24227
|
+
//#endregion
|
|
24228
|
+
//#region src/types/ReturnDataType/Kuaishou/UserWorkList.d.ts
|
|
24229
|
+
/**
|
|
24230
|
+
* 快手用户公开视频列表。
|
|
24231
|
+
*
|
|
24232
|
+
* 该结构对应 `live_api/profile/public` 的分页结果,
|
|
24233
|
+
* 用于对标抖音等平台的独立用户作品列表能力。
|
|
24234
|
+
*/
|
|
24235
|
+
type KsUserWorkList = {
|
|
24236
|
+
principalId: string;
|
|
24237
|
+
list: KsUserHomeWork[];
|
|
24238
|
+
pcursor: string;
|
|
24239
|
+
hasMore: boolean;
|
|
24240
|
+
result: number;
|
|
24241
|
+
[property: string]: any;
|
|
24242
|
+
};
|
|
24243
|
+
//#endregion
|
|
23849
24244
|
//#region src/types/ReturnDataType/Kuaishou/WorkComments.d.ts
|
|
23850
24245
|
type KsWorkComments = {
|
|
23851
24246
|
data: Data;
|
|
@@ -23906,6 +24301,9 @@ interface KuaishouReturnTypeMap {
|
|
|
23906
24301
|
videoWork: KsOneWork;
|
|
23907
24302
|
comments: KsWorkComments;
|
|
23908
24303
|
emojiList: KsEmojiList;
|
|
24304
|
+
userProfile: KsUserProfile;
|
|
24305
|
+
userWorkList: KsUserWorkList;
|
|
24306
|
+
liveRoomInfo: KsLiveRoomInfo;
|
|
23909
24307
|
}
|
|
23910
24308
|
//#endregion
|
|
23911
24309
|
//#region src/types/ReturnDataType/Xiaohongshu/HomeFeed.d.ts
|
|
@@ -24482,12 +24880,18 @@ declare const DouyinFetcherMethods: {
|
|
|
24482
24880
|
declare const KuaishouInternalMethods: {
|
|
24483
24881
|
readonly VIDEO_WORK: "单个视频作品数据";
|
|
24484
24882
|
readonly WORK_COMMENTS: "评论数据";
|
|
24883
|
+
readonly USER_PROFILE: "用户主页数据";
|
|
24884
|
+
readonly USER_WORK_LIST: "用户作品列表数据";
|
|
24885
|
+
readonly LIVE_ROOM_INFO: "直播间信息数据";
|
|
24485
24886
|
readonly EMOJI_LIST: "Emoji数据";
|
|
24486
24887
|
};
|
|
24487
24888
|
/** 快手 Fetcher 方法名 (英文,对外 API) */
|
|
24488
24889
|
declare const KuaishouFetcherMethods: {
|
|
24489
24890
|
readonly VIDEO_WORK: "fetchVideoWork";
|
|
24490
24891
|
readonly WORK_COMMENTS: "fetchWorkComments";
|
|
24892
|
+
readonly USER_PROFILE: "fetchUserProfile";
|
|
24893
|
+
readonly USER_WORK_LIST: "fetchUserWorkList";
|
|
24894
|
+
readonly LIVE_ROOM_INFO: "fetchLiveRoomInfo";
|
|
24491
24895
|
readonly EMOJI_LIST: "fetchEmojiList";
|
|
24492
24896
|
};
|
|
24493
24897
|
/** 小红书内部方法名 (中文,用于 getdata.ts) */
|
|
@@ -24643,11 +25047,17 @@ declare const MethodMaps: {
|
|
|
24643
25047
|
readonly internal: {
|
|
24644
25048
|
readonly VIDEO_WORK: "单个视频作品数据";
|
|
24645
25049
|
readonly WORK_COMMENTS: "评论数据";
|
|
25050
|
+
readonly USER_PROFILE: "用户主页数据";
|
|
25051
|
+
readonly USER_WORK_LIST: "用户作品列表数据";
|
|
25052
|
+
readonly LIVE_ROOM_INFO: "直播间信息数据";
|
|
24646
25053
|
readonly EMOJI_LIST: "Emoji数据";
|
|
24647
25054
|
};
|
|
24648
25055
|
readonly fetcher: {
|
|
24649
25056
|
readonly VIDEO_WORK: "fetchVideoWork";
|
|
24650
25057
|
readonly WORK_COMMENTS: "fetchWorkComments";
|
|
25058
|
+
readonly USER_PROFILE: "fetchUserProfile";
|
|
25059
|
+
readonly USER_WORK_LIST: "fetchUserWorkList";
|
|
25060
|
+
readonly LIVE_ROOM_INFO: "fetchLiveRoomInfo";
|
|
24651
25061
|
readonly EMOJI_LIST: "fetchEmojiList";
|
|
24652
25062
|
};
|
|
24653
25063
|
readonly toFetcher: Record<KuaishouInternalMethodKey, KuaishouFetcherMethodKey>;
|
|
@@ -25581,6 +25991,25 @@ interface KuaishouCommentsOptions extends BaseRequestOptions {
|
|
|
25581
25991
|
/** 作品 ID (photoId) */
|
|
25582
25992
|
photoId: string;
|
|
25583
25993
|
}
|
|
25994
|
+
/** 快手用户资料请求参数 */
|
|
25995
|
+
interface KuaishouUserProfileOptions extends BaseRequestOptions {
|
|
25996
|
+
/** 用户主页 principalId,可直接取 profile 页 URL 末段 */
|
|
25997
|
+
principalId: string;
|
|
25998
|
+
}
|
|
25999
|
+
/** 快手用户作品列表请求参数 */
|
|
26000
|
+
interface KuaishouUserWorkListOptions extends BaseRequestOptions {
|
|
26001
|
+
/** 用户主页 principalId,可直接取 profile 页 URL 末段 */
|
|
26002
|
+
principalId: string;
|
|
26003
|
+
/** 分页游标;为空时请求首屏作品列表 */
|
|
26004
|
+
pcursor?: string;
|
|
26005
|
+
/** 每页数量,默认 12 */
|
|
26006
|
+
count?: number;
|
|
26007
|
+
}
|
|
26008
|
+
/** 快手直播间信息请求参数 */
|
|
26009
|
+
interface KuaishouLiveRoomInfoOptions extends BaseRequestOptions {
|
|
26010
|
+
/** 直播间 principalId,可直接取 /u/{principalId} URL 末段 */
|
|
26011
|
+
principalId: string;
|
|
26012
|
+
}
|
|
25584
26013
|
/**
|
|
25585
26014
|
* 快手 Fetcher 接口定义
|
|
25586
26015
|
* 包含所有快手 API 方法的类型签名
|
|
@@ -25594,6 +26023,12 @@ interface IKuaishouFetcher {
|
|
|
25594
26023
|
* 获取快手作品评论数据
|
|
25595
26024
|
*/
|
|
25596
26025
|
fetchWorkComments: MethodOverload<KuaishouCommentsOptions, KuaishouReturnTypeMap['comments']>;
|
|
26026
|
+
/** 获取快手用户主页数据 */
|
|
26027
|
+
fetchUserProfile: MethodOverload<KuaishouUserProfileOptions, KuaishouReturnTypeMap['userProfile']>;
|
|
26028
|
+
/** 获取快手用户作品列表数据 */
|
|
26029
|
+
fetchUserWorkList: MethodOverload<KuaishouUserWorkListOptions, KuaishouReturnTypeMap['userWorkList']>;
|
|
26030
|
+
/** 获取快手直播间信息数据 */
|
|
26031
|
+
fetchLiveRoomInfo: MethodOverload<KuaishouLiveRoomInfoOptions, KuaishouReturnTypeMap['liveRoomInfo']>;
|
|
25597
26032
|
/**
|
|
25598
26033
|
* 获取快手表情列表
|
|
25599
26034
|
*/
|
|
@@ -25608,6 +26043,12 @@ interface IBoundKuaishouFetcher {
|
|
|
25608
26043
|
fetchVideoWork: BoundMethodOverload<KuaishouVideoWorkOptions, KuaishouReturnTypeMap['videoWork']>;
|
|
25609
26044
|
/** 获取快手作品评论数据 */
|
|
25610
26045
|
fetchWorkComments: BoundMethodOverload<KuaishouCommentsOptions, KuaishouReturnTypeMap['comments']>;
|
|
26046
|
+
/** 获取快手用户主页数据 */
|
|
26047
|
+
fetchUserProfile: BoundMethodOverload<KuaishouUserProfileOptions, KuaishouReturnTypeMap['userProfile']>;
|
|
26048
|
+
/** 获取快手用户作品列表数据 */
|
|
26049
|
+
fetchUserWorkList: BoundMethodOverload<KuaishouUserWorkListOptions, KuaishouReturnTypeMap['userWorkList']>;
|
|
26050
|
+
/** 获取快手直播间信息数据 */
|
|
26051
|
+
fetchLiveRoomInfo: BoundMethodOverload<KuaishouLiveRoomInfoOptions, KuaishouReturnTypeMap['liveRoomInfo']>;
|
|
25611
26052
|
/** 获取快手表情列表 */
|
|
25612
26053
|
fetchEmojiList: BoundNoParamMethodOverload<KuaishouReturnTypeMap['emojiList']>;
|
|
25613
26054
|
}
|
|
@@ -26226,10 +26667,14 @@ declare const createAmagiClient: (options?: Options) => {
|
|
|
26226
26667
|
api: {
|
|
26227
26668
|
getWorkInfo: (..._args: any[]) => never;
|
|
26228
26669
|
getComments: (..._args: any[]) => never;
|
|
26670
|
+
getUserProfile: (..._args: any[]) => never;
|
|
26671
|
+
getUserWorkList: (..._args: any[]) => never;
|
|
26672
|
+
getLiveRoomInfo: (..._args: any[]) => never;
|
|
26229
26673
|
getEmojiList: (..._args: any[]) => never;
|
|
26230
26674
|
};
|
|
26231
26675
|
/** fetcher */
|
|
26232
26676
|
fetcher: IBoundKuaishouFetcher;
|
|
26677
|
+
sign: typeof kuaishouSign;
|
|
26233
26678
|
kuaishouApiUrls: typeof kuaishouApiUrls;
|
|
26234
26679
|
};
|
|
26235
26680
|
xiaohongshu: {
|
|
@@ -26712,9 +27157,39 @@ declare const douyinUtils: douyinUtilsModel;
|
|
|
26712
27157
|
* 根据 KuaishouMethodOptionsMap 创建一个新的类型,去除每个字段中的 methodType
|
|
26713
27158
|
*/
|
|
26714
27159
|
type KuaishouMethodOptionsWithoutMethodType = { [K in keyof KuaishouMethodOptionsMap]: OmitMethodType<KuaishouMethodOptionsMap[K]> };
|
|
27160
|
+
type KuaishouUserProfileListRequest = KuaishouMethodOptionsWithoutMethodType['UserProfileParams'] | KuaishouMethodOptionsWithoutMethodType['UserWorkListParams'];
|
|
27161
|
+
type KuaishouBaseApiRequest = {
|
|
27162
|
+
type: string;
|
|
27163
|
+
url: string;
|
|
27164
|
+
};
|
|
27165
|
+
/**
|
|
27166
|
+
* 快手 `live_api` 请求描述对象。
|
|
27167
|
+
*
|
|
27168
|
+
* 除了最终请求地址外,还可以携带 `signPath`,用于声明
|
|
27169
|
+
* `__NS_hxfalcon` 实际参与签名的规范路径。
|
|
27170
|
+
*/
|
|
27171
|
+
type KuaishouLiveApiRequest = KuaishouBaseApiRequest & {
|
|
27172
|
+
method: 'GET' | 'POST';
|
|
27173
|
+
requiresSign?: boolean;
|
|
27174
|
+
signPath?: string;
|
|
27175
|
+
body?: Record<string, unknown>;
|
|
27176
|
+
};
|
|
27177
|
+
/**
|
|
27178
|
+
* 快手 GraphQL 请求描述对象。
|
|
27179
|
+
*
|
|
27180
|
+
* 该结构只负责描述请求,不负责执行网络请求。
|
|
27181
|
+
*/
|
|
27182
|
+
type KuaishouGraphqlRequest = KuaishouBaseApiRequest & {
|
|
27183
|
+
body: {
|
|
27184
|
+
operationName: string;
|
|
27185
|
+
variables: Record<string, unknown>;
|
|
27186
|
+
query: string;
|
|
27187
|
+
};
|
|
27188
|
+
};
|
|
26715
27189
|
/**
|
|
26716
27190
|
* 快手 API 地址构建类
|
|
26717
|
-
*
|
|
27191
|
+
* 该类下的方法只负责返回请求描述对象,需要手动请求对应地址以获取数据。
|
|
27192
|
+
* 其中 `live_api` 方法会在必要时额外携带 `signPath`,用于声明快手签名算法实际参与计算的规范路径。
|
|
26718
27193
|
*/
|
|
26719
27194
|
declare class API {
|
|
26720
27195
|
/**
|
|
@@ -26722,57 +27197,243 @@ declare class API {
|
|
|
26722
27197
|
* @param data - 作品参数
|
|
26723
27198
|
* @returns 请求配置
|
|
26724
27199
|
*/
|
|
26725
|
-
videoWork<T extends KuaishouMethodOptionsWithoutMethodType['VideoInfoParams']>(data: T):
|
|
26726
|
-
/** 接口类型 */
|
|
26727
|
-
type: string;
|
|
26728
|
-
/** 请求url */
|
|
26729
|
-
url: string;
|
|
26730
|
-
/** 请求参数 */
|
|
26731
|
-
body: {
|
|
26732
|
-
/** 接口类型 */
|
|
26733
|
-
operationName: string;
|
|
26734
|
-
variables: {
|
|
26735
|
-
/** 作品ID */
|
|
26736
|
-
photoId: string;
|
|
26737
|
-
page: string;
|
|
26738
|
-
};
|
|
26739
|
-
query: string;
|
|
26740
|
-
};
|
|
26741
|
-
};
|
|
27200
|
+
videoWork<T extends KuaishouMethodOptionsWithoutMethodType['VideoInfoParams']>(data: T): KuaishouGraphqlRequest;
|
|
26742
27201
|
/**
|
|
26743
27202
|
* 获取作品评论信息
|
|
26744
27203
|
* @param data - 评论参数
|
|
26745
27204
|
* @returns 请求配置
|
|
26746
27205
|
*/
|
|
26747
|
-
comments<T extends KuaishouMethodOptionsWithoutMethodType['CommentParams']>(data: T):
|
|
27206
|
+
comments<T extends KuaishouMethodOptionsWithoutMethodType['CommentParams']>(data: T): KuaishouGraphqlRequest;
|
|
27207
|
+
/**
|
|
27208
|
+
* 获取用户主页基础资料接口地址。
|
|
27209
|
+
*
|
|
27210
|
+
* 该接口需要 `__NS_hxfalcon`,且签名使用的规范路径并不是公开 `live_api`
|
|
27211
|
+
* 路径,而是内部的 `/rest/k/user/info`。
|
|
27212
|
+
*
|
|
27213
|
+
* @param data - 用户主页参数
|
|
27214
|
+
* @returns 请求配置
|
|
27215
|
+
*/
|
|
27216
|
+
userInfoById<T extends KuaishouMethodOptionsWithoutMethodType['UserProfileParams']>(data: T): KuaishouLiveApiRequest;
|
|
27217
|
+
/**
|
|
27218
|
+
* 获取用户敏感资料接口地址
|
|
27219
|
+
* @param data - 用户主页参数
|
|
27220
|
+
* @returns 请求配置
|
|
27221
|
+
*/
|
|
27222
|
+
userSensitiveInfo<T extends KuaishouMethodOptionsWithoutMethodType['UserProfileParams']>(data: T): KuaishouLiveApiRequest;
|
|
27223
|
+
/**
|
|
27224
|
+
* 获取用户主页公开数据接口地址
|
|
27225
|
+
* @param data - 用户主页参数
|
|
27226
|
+
* @returns 请求配置
|
|
27227
|
+
*/
|
|
27228
|
+
profilePublic<T extends KuaishouUserProfileListRequest>(data: T): KuaishouLiveApiRequest;
|
|
27229
|
+
/**
|
|
27230
|
+
* 获取用户主页公开视频列表接口地址。
|
|
27231
|
+
*
|
|
27232
|
+
* 该方法对 `live_api/profile/public` 做领域化封装,
|
|
27233
|
+
* 用于独立承接用户作品列表与分页能力。
|
|
27234
|
+
*
|
|
27235
|
+
* @param data - 用户作品列表参数
|
|
27236
|
+
* @returns 请求配置
|
|
27237
|
+
*/
|
|
27238
|
+
userWorkList<T extends KuaishouMethodOptionsWithoutMethodType['UserWorkListParams']>(data: T): {
|
|
26748
27239
|
type: string;
|
|
26749
27240
|
url: string;
|
|
26750
|
-
|
|
26751
|
-
|
|
26752
|
-
|
|
26753
|
-
|
|
26754
|
-
pcursor: string;
|
|
26755
|
-
};
|
|
26756
|
-
query: string;
|
|
26757
|
-
};
|
|
27241
|
+
method: "GET" | "POST";
|
|
27242
|
+
requiresSign?: boolean;
|
|
27243
|
+
signPath?: string;
|
|
27244
|
+
body?: Record<string, unknown>;
|
|
26758
27245
|
};
|
|
27246
|
+
/**
|
|
27247
|
+
* 获取用户主页私密列表接口地址。
|
|
27248
|
+
*
|
|
27249
|
+
* 真实页面抓包表明该接口可以直接走纯协议请求,不必额外追加 `__NS_hxfalcon`。
|
|
27250
|
+
*
|
|
27251
|
+
* @param data - 用户主页参数
|
|
27252
|
+
* @returns 请求配置
|
|
27253
|
+
*/
|
|
27254
|
+
profilePrivate<T extends KuaishouMethodOptionsWithoutMethodType['UserProfileParams']>(data: T): KuaishouLiveApiRequest;
|
|
27255
|
+
/**
|
|
27256
|
+
* 获取用户主页点赞列表接口地址。
|
|
27257
|
+
*
|
|
27258
|
+
* @param data - 用户主页参数
|
|
27259
|
+
* @returns 请求配置
|
|
27260
|
+
*/
|
|
27261
|
+
profileLiked<T extends KuaishouMethodOptionsWithoutMethodType['UserProfileParams']>(data: T): KuaishouLiveApiRequest;
|
|
27262
|
+
/**
|
|
27263
|
+
* 获取用户主页兴趣推荐列表接口地址
|
|
27264
|
+
* @param data - 用户主页参数
|
|
27265
|
+
* @returns 请求配置
|
|
27266
|
+
*/
|
|
27267
|
+
profileInterestList<T extends KuaishouMethodOptionsWithoutMethodType['UserProfileParams']>(data: T): KuaishouLiveApiRequest;
|
|
27268
|
+
/**
|
|
27269
|
+
* 获取主播回放列表接口地址。
|
|
27270
|
+
*
|
|
27271
|
+
* 快手页面使用 `cursor` 作为翻页参数,而返回体里仍沿用 `pcursor`。
|
|
27272
|
+
*
|
|
27273
|
+
* @param data - 用户主页参数
|
|
27274
|
+
* @returns 请求配置
|
|
27275
|
+
*/
|
|
27276
|
+
playbackList<T extends KuaishouMethodOptionsWithoutMethodType['UserProfileParams']>(data: T): KuaishouLiveApiRequest;
|
|
27277
|
+
/**
|
|
27278
|
+
* 获取用户主页兴趣分组接口地址。
|
|
27279
|
+
*
|
|
27280
|
+
* `interestMask/list` 是当前协议链中更贴近用户兴趣分组语义的接口,
|
|
27281
|
+
* 相比旧的 `profileInterestMask/list` 更适合作为领域数据源。
|
|
27282
|
+
*
|
|
27283
|
+
* @returns 请求配置
|
|
27284
|
+
*/
|
|
27285
|
+
interestMaskList(): KuaishouLiveApiRequest;
|
|
27286
|
+
/**
|
|
27287
|
+
* 获取分类配置接口地址。
|
|
27288
|
+
*
|
|
27289
|
+
* 该接口可用于构造用户主页 `categoryMask.config`。
|
|
27290
|
+
*
|
|
27291
|
+
* @returns 请求配置
|
|
27292
|
+
*/
|
|
27293
|
+
categoryConfig(): KuaishouLiveApiRequest;
|
|
27294
|
+
/**
|
|
27295
|
+
* 获取热门分类列表接口地址。
|
|
27296
|
+
*
|
|
27297
|
+
* 该接口提供完整的分类卡片字段,可直接映射到
|
|
27298
|
+
* 用户主页 `categoryMask.hotList`。
|
|
27299
|
+
*
|
|
27300
|
+
* @returns 请求配置
|
|
27301
|
+
*/
|
|
27302
|
+
categoryData(): KuaishouLiveApiRequest;
|
|
27303
|
+
/**
|
|
27304
|
+
* 获取分类分组列表接口地址。
|
|
27305
|
+
*
|
|
27306
|
+
* @returns 请求配置
|
|
27307
|
+
*/
|
|
27308
|
+
categoryClassify(): KuaishouLiveApiRequest;
|
|
27309
|
+
/**
|
|
27310
|
+
* 获取直播间详情主接口地址。
|
|
27311
|
+
*
|
|
27312
|
+
* 真实页面 store 会用该接口按 `principalId` 获取当前房间主体,
|
|
27313
|
+
* 返回结构中直接包含 `liveStream`、`author`、`gameInfo`、`noticeList`
|
|
27314
|
+
* 与基础 `config`,比 `userFollowCount` 更符合“直播间详情”语义。
|
|
27315
|
+
*
|
|
27316
|
+
* @param data - 直播间参数
|
|
27317
|
+
* @param authToken - 私密房间等场景下可能需要的 authToken
|
|
27318
|
+
* @returns 请求配置
|
|
27319
|
+
*/
|
|
27320
|
+
liveDetail<T extends KuaishouMethodOptionsWithoutMethodType['LiveRoomInfoParams']>(data: T, authToken?: string): KuaishouLiveApiRequest;
|
|
27321
|
+
/**
|
|
27322
|
+
* 获取当前登录用户关注中的开播列表接口地址。
|
|
27323
|
+
*
|
|
27324
|
+
* 该接口更接近“关注流”而不是“当前直播间详情”,
|
|
27325
|
+
* 因此不应再作为直播间主对象的首选来源。
|
|
27326
|
+
*
|
|
27327
|
+
* @returns 请求配置
|
|
27328
|
+
*/
|
|
27329
|
+
userFollowCount(): KuaishouLiveApiRequest;
|
|
27330
|
+
/**
|
|
27331
|
+
* 获取直播间推荐流接口地址。
|
|
27332
|
+
*
|
|
27333
|
+
* 该接口使用 POST JSON,请求体中的 `gameFavour`
|
|
27334
|
+
* 会影响推荐房间列表的主题偏好。
|
|
27335
|
+
*
|
|
27336
|
+
* @param gameId - 当前直播房间所属游戏 ID
|
|
27337
|
+
* @returns 请求配置
|
|
27338
|
+
*/
|
|
27339
|
+
liveReco(gameId?: number | string): KuaishouLiveApiRequest;
|
|
27340
|
+
/**
|
|
27341
|
+
* 获取直播间 WebSocket 元信息接口地址。
|
|
27342
|
+
*
|
|
27343
|
+
* @param liveStreamId - 直播流 ID
|
|
27344
|
+
* @returns 请求配置
|
|
27345
|
+
*/
|
|
27346
|
+
liveWebsocketInfo(liveStreamId: string): KuaishouLiveApiRequest;
|
|
27347
|
+
/**
|
|
27348
|
+
* 获取直播间礼物列表接口地址
|
|
27349
|
+
* @param liveStreamId - 直播流 ID
|
|
27350
|
+
* @returns 请求配置
|
|
27351
|
+
*/
|
|
27352
|
+
liveGiftList(liveStreamId: string): KuaishouLiveApiRequest;
|
|
26759
27353
|
/**
|
|
26760
27354
|
* 获取表情列表
|
|
26761
27355
|
* @returns 请求配置
|
|
26762
27356
|
*/
|
|
26763
|
-
emojiList():
|
|
26764
|
-
type: string;
|
|
26765
|
-
url: string;
|
|
26766
|
-
body: {
|
|
26767
|
-
operationName: string;
|
|
26768
|
-
variables: {};
|
|
26769
|
-
query: string;
|
|
26770
|
-
};
|
|
26771
|
-
};
|
|
27357
|
+
emojiList(): KuaishouGraphqlRequest;
|
|
26772
27358
|
}
|
|
26773
|
-
/**
|
|
27359
|
+
/**
|
|
27360
|
+
* 快手 API 请求描述集合。
|
|
27361
|
+
*
|
|
27362
|
+
* 该对象只负责返回请求描述,不直接发起网络请求。
|
|
27363
|
+
*/
|
|
26774
27364
|
declare const kuaishouApiUrls: API;
|
|
26775
27365
|
//#endregion
|
|
27366
|
+
//#region src/platform/kuaishou/sign/helpers.d.ts
|
|
27367
|
+
/**
|
|
27368
|
+
* 快手 `__NS_hxfalcon` 组包所需的标准化载荷。
|
|
27369
|
+
*
|
|
27370
|
+
* 这里的 `url` 已经是参与签名的规范路径,而不是最终请求 URL。
|
|
27371
|
+
*/
|
|
27372
|
+
type KuaishouHxfalconPayload = {
|
|
27373
|
+
url: string;
|
|
27374
|
+
query: Record<string, string>;
|
|
27375
|
+
form: Record<string, string>;
|
|
27376
|
+
requestBody: Record<string, unknown>;
|
|
27377
|
+
};
|
|
27378
|
+
//#endregion
|
|
27379
|
+
//#region src/platform/kuaishou/sign/index.d.ts
|
|
27380
|
+
/**
|
|
27381
|
+
* 快手 `live_api` 请求签名结果。
|
|
27382
|
+
*/
|
|
27383
|
+
type KuaishouLiveApiSignature = {
|
|
27384
|
+
url: string;
|
|
27385
|
+
headers: Record<string, string>;
|
|
27386
|
+
signResult: string;
|
|
27387
|
+
signInput: string;
|
|
27388
|
+
catVersion: string;
|
|
27389
|
+
};
|
|
27390
|
+
/**
|
|
27391
|
+
* 快手签名工具集。
|
|
27392
|
+
*
|
|
27393
|
+
* 负责将请求描述对象转换为带 `__NS_hxfalcon` / `kww` 的最终请求材料。
|
|
27394
|
+
*/
|
|
27395
|
+
declare class kuaishouSign {
|
|
27396
|
+
/**
|
|
27397
|
+
* 获取当前纯算法运行时使用的 `caver`。
|
|
27398
|
+
*
|
|
27399
|
+
* @returns 快手 `caver` 值
|
|
27400
|
+
*/
|
|
27401
|
+
static getCatVersion(): string;
|
|
27402
|
+
/**
|
|
27403
|
+
* 生成快手请求头中的 `kww` 值。
|
|
27404
|
+
*
|
|
27405
|
+
* @param cookie - 原始 Cookie 字符串
|
|
27406
|
+
* @returns `kww` 请求头值
|
|
27407
|
+
*/
|
|
27408
|
+
static generateKww(cookie?: string): string;
|
|
27409
|
+
/**
|
|
27410
|
+
* 根据结构化签名载荷生成 `__NS_hxfalcon`。
|
|
27411
|
+
*
|
|
27412
|
+
* @param payload - 已标准化的快手签名载荷
|
|
27413
|
+
* @returns 包含最终签名串、sign input 与 `caver` 的结果
|
|
27414
|
+
*/
|
|
27415
|
+
static generateHxfalconFromPayload(payload: KuaishouHxfalconPayload): Pick<KuaishouLiveApiSignature, 'signResult' | 'signInput' | 'catVersion'>;
|
|
27416
|
+
/**
|
|
27417
|
+
* 为快手 `live_api` URL 签名。
|
|
27418
|
+
*
|
|
27419
|
+
* @param url - 实际请求 URL
|
|
27420
|
+
* @param cookie - 原始 Cookie 字符串
|
|
27421
|
+
* @param signPath - 可选的规范签名路径
|
|
27422
|
+
* @returns 带签名 URL、附加请求头和调试信息
|
|
27423
|
+
*/
|
|
27424
|
+
static signLiveApiUrl(url: string, cookie?: string, signPath?: string): KuaishouLiveApiSignature;
|
|
27425
|
+
/**
|
|
27426
|
+
* 为结构化的快手 `live_api` 请求描述对象签名。
|
|
27427
|
+
*
|
|
27428
|
+
* 这是项目层更推荐使用的入口,因为它能显式保留 `signPath` 元数据。
|
|
27429
|
+
*
|
|
27430
|
+
* @param request - 快手 `live_api` 请求描述对象
|
|
27431
|
+
* @param cookie - 原始 Cookie 字符串
|
|
27432
|
+
* @returns 带签名 URL、附加请求头和调试信息
|
|
27433
|
+
*/
|
|
27434
|
+
static signLiveApiRequest(request: KuaishouLiveApiRequest, cookie?: string): KuaishouLiveApiSignature;
|
|
27435
|
+
}
|
|
27436
|
+
//#endregion
|
|
26776
27437
|
//#region src/platform/kuaishou/KuaishouApi.d.ts
|
|
26777
27438
|
/**
|
|
26778
27439
|
* 快手相关 API 的命名空间。
|
|
@@ -26782,8 +27443,14 @@ declare const kuaishouApiUrls: API;
|
|
|
26782
27443
|
declare const kuaishou: {
|
|
26783
27444
|
/** @deprecated 请使用 kuaishouFetcher.fetchVideoWork 替代 */
|
|
26784
27445
|
getWorkInfo: (..._args: any[]) => never;
|
|
26785
|
-
/** @deprecated 请使用 kuaishouFetcher.
|
|
27446
|
+
/** @deprecated 请使用 kuaishouFetcher.fetchWorkComments 替代 */
|
|
26786
27447
|
getComments: (..._args: any[]) => never;
|
|
27448
|
+
/** @deprecated 请使用 kuaishouFetcher.fetchUserProfile 替代 */
|
|
27449
|
+
getUserProfile: (..._args: any[]) => never;
|
|
27450
|
+
/** @deprecated 请使用 kuaishouFetcher.fetchUserWorkList 替代 */
|
|
27451
|
+
getUserWorkList: (..._args: any[]) => never;
|
|
27452
|
+
/** @deprecated 请使用 kuaishouFetcher.fetchLiveRoomInfo 替代 */
|
|
27453
|
+
getLiveRoomInfo: (..._args: any[]) => never;
|
|
26787
27454
|
/** @deprecated 请使用 kuaishouFetcher.fetchEmojiList 替代 */
|
|
26788
27455
|
getEmojiList: (..._args: any[]) => never;
|
|
26789
27456
|
};
|
|
@@ -26795,8 +27462,14 @@ declare const kuaishou: {
|
|
|
26795
27462
|
declare const createBoundKuaishouApi: (_cookie: string, _requestConfig: RequestConfig) => {
|
|
26796
27463
|
/** @deprecated 请使用 kuaishouFetcher.fetchVideoWork 替代 */
|
|
26797
27464
|
getWorkInfo: (..._args: any[]) => never;
|
|
26798
|
-
/** @deprecated 请使用 kuaishouFetcher.
|
|
27465
|
+
/** @deprecated 请使用 kuaishouFetcher.fetchWorkComments 替代 */
|
|
26799
27466
|
getComments: (..._args: any[]) => never;
|
|
27467
|
+
/** @deprecated 请使用 kuaishouFetcher.fetchUserProfile 替代 */
|
|
27468
|
+
getUserProfile: (..._args: any[]) => never;
|
|
27469
|
+
/** @deprecated 请使用 kuaishouFetcher.fetchUserWorkList 替代 */
|
|
27470
|
+
getUserWorkList: (..._args: any[]) => never;
|
|
27471
|
+
/** @deprecated 请使用 kuaishouFetcher.fetchLiveRoomInfo 替代 */
|
|
27472
|
+
getLiveRoomInfo: (..._args: any[]) => never;
|
|
26800
27473
|
/** @deprecated 请使用 kuaishouFetcher.fetchEmojiList 替代 */
|
|
26801
27474
|
getEmojiList: (..._args: any[]) => never;
|
|
26802
27475
|
};
|
|
@@ -26816,12 +27489,14 @@ declare const createKuaishouRoutes: (cookie: string, requestConfig?: RequestConf
|
|
|
26816
27489
|
//#endregion
|
|
26817
27490
|
//#region src/platform/kuaishou/index.d.ts
|
|
26818
27491
|
type kuaishouUtilsModel = {
|
|
26819
|
-
/**
|
|
27492
|
+
/** 签名算法相关 */
|
|
27493
|
+
sign: typeof kuaishouSign;
|
|
27494
|
+
/** 该类下的方法只会返回请求描述对象,需要手动请求对应地址以获取数据 */
|
|
26820
27495
|
kuaishouApiUrls: typeof kuaishouApiUrls;
|
|
26821
27496
|
/**
|
|
26822
27497
|
* 封装了所有快手相关的API请求,采用对象化的方式组织。
|
|
26823
27498
|
*
|
|
26824
|
-
*
|
|
27499
|
+
* 提供了一系列方法,用于与快手相关的 API 进行交互。
|
|
26825
27500
|
*
|
|
26826
27501
|
* 每个方法都接受参数和 Cookie,返回 Promise,解析为接口返回的原始数据。
|
|
26827
27502
|
*/
|
|
@@ -27255,6 +27930,9 @@ type BilibiliMethodValue = typeof BilibiliMethodMapping[BilibiliMethodKey];
|
|
|
27255
27930
|
declare const KuaishouMethodMapping: {
|
|
27256
27931
|
readonly 单个视频作品数据: "fetchVideoWork";
|
|
27257
27932
|
readonly 评论数据: "fetchWorkComments";
|
|
27933
|
+
readonly 用户主页数据: "fetchUserProfile";
|
|
27934
|
+
readonly 用户作品列表数据: "fetchUserWorkList";
|
|
27935
|
+
readonly 直播间信息数据: "fetchLiveRoomInfo";
|
|
27258
27936
|
readonly Emoji数据: "fetchEmojiList";
|
|
27259
27937
|
};
|
|
27260
27938
|
type KuaishouMethodKey = keyof typeof KuaishouMethodMapping;
|
|
@@ -27338,6 +28016,9 @@ declare const BilibiliApiRoutes: {
|
|
|
27338
28016
|
declare const KuaishouApiRoutes: {
|
|
27339
28017
|
readonly videoWork: "/work";
|
|
27340
28018
|
readonly comments: "/comments";
|
|
28019
|
+
readonly userProfile: "/user";
|
|
28020
|
+
readonly userWorkList: "/user/works";
|
|
28021
|
+
readonly liveRoomInfo: "/live";
|
|
27341
28022
|
readonly emojiList: "/emoji";
|
|
27342
28023
|
};
|
|
27343
28024
|
/**
|
|
@@ -27443,5 +28124,5 @@ declare const amagi: typeof Client;
|
|
|
27443
28124
|
*/
|
|
27444
28125
|
|
|
27445
28126
|
//#endregion
|
|
27446
|
-
export { APIErrorType, AdditionalType, type AmagiEventMap, type AmagiEventType, type ApiEndpoint, ApiError, type ApiErrorEventData, ApiResponse, type ApiSuccessEventData, ArticleCard, ArticleContent, ArticleInfo, ArticleWork, BaseRequestOptions, BaseResponse, BiliAv2Bv, BiliBangumiVideoInfo, BiliBangumiVideoPlayurlIsLogin, BiliBangumiVideoPlayurlNoLogin, BiliBiliVideoPlayurlNoLogin, BiliBv2AV, BiliCheckQrcode, BiliCommentReply, BiliDynamicCard, BiliDynamicInfo, BiliDynamicInfoUnion, BiliEmojiList, BiliLiveRoomDef, BiliLiveRoomDetail, BiliNewLoginQrcode, BiliOneWork, BiliProtobufDanmaku, BiliUserDynamic, BiliUserFullView, BiliUserProfile, BiliVideoPlayurlIsLogin, BiliWorkComments, BilibiliApiRoutes, type BilibiliApplyCaptchaOptions, BilibiliApplyCaptchaParamsSchema, type BilibiliArticleCardOptions, BilibiliArticleCardParamsSchema, BilibiliArticleInfoParamsSchema, type BilibiliArticleOptions, BilibiliArticleParamsSchema, type BilibiliAv2BvOptions, BilibiliAv2BvParamsSchema, type BilibiliBangumiInfoOptions, BilibiliBangumiInfoParamsSchema, type BilibiliBangumiStreamOptions, BilibiliBangumiStreamParamsSchema, type BilibiliBv2AvOptions, BilibiliBv2AvParamsSchema, BilibiliColumnInfoParamsSchema, BilibiliCommentParamsSchema, type BilibiliCommentRepliesOptions, BilibiliCommentReplyParamsSchema, type BilibiliCommentsOptions, type BilibiliDanmakuOptions, BilibiliDanmakuParamsSchema, BilibiliDataOptions, BilibiliDataOptionsMap, type BilibiliDynamicOptions, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, type BilibiliFetcher, BilibiliFetcherMethodKey, BilibiliFetcherMethods, BilibiliInternalMethodKey, BilibiliInternalMethods, BilibiliLiveParamsSchema, type BilibiliLiveRoomOptions, BilibiliLoginParamsSchema, type BilibiliMethodKey, BilibiliMethodMapping, BilibiliMethodOptMap, BilibiliMethodOptionsMap, BilibiliMethodRoutes, BilibiliMethodToFetcher, type BilibiliMethodType, type BilibiliMethodValue, BilibiliQrcodeParamsSchema, type BilibiliQrcodeStatusOptions, BilibiliQrcodeStatusParamsSchema, BilibiliReturnTypeMap, type BilibiliUserOptions, BilibiliUserParamsSchema, type BilibiliValidateCaptchaOptions, BilibiliValidateCaptchaParamsSchema, BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, type BilibiliVideoInfoOptions, BilibiliVideoParamsSchema, type BilibiliVideoStreamOptions, BoundBilibiliApi, type BoundBilibiliFetcher, BoundDouyinApi, type BoundDouyinFetcher, BoundKuaishouApi, type BoundKuaishouFetcher, BoundXiaohongshuApi, type BoundXiaohongshuFetcher, ColumnInfo, CommentReply, CommentType, ConditionalReturnType, CookieConfig, CreateApp, DouyinApiRoutes, DouyinCommentParamsSchema, type DouyinCommentRepliesOptions, DouyinCommentReplyParamsSchema, type DouyinCommentsOptions, type DouyinDanmakuOptions, DouyinDanmakuParamsSchema, DouyinDataOptions, DouyinDataOptionsMap, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, type DouyinFetcher, DouyinFetcherMethodKey, DouyinFetcherMethods, DouyinHotWordsParamsSchema, DouyinInternalMethodKey, DouyinInternalMethods, type DouyinLiveRoomOptions, DouyinLiveRoomParamsSchema, type DouyinMethodKey, DouyinMethodMapping, DouyinMethodOptMap, DouyinMethodOptionsMap, DouyinMethodRoutes, DouyinMethodToFetcher, type DouyinMethodType, type DouyinMethodValue, type DouyinMusicOptions, DouyinMusicParamsSchema, type DouyinQrcodeOptions, DouyinQrcodeParamsSchema, DouyinReturnTypeMap, type DouyinSearchOptions, DouyinSearchParamsSchema, type DouyinSuggestWordsOptions, type DouyinUserListOptions, DouyinUserListParamsSchema, type DouyinUserOptions, DouyinUserParamsSchema, DouyinValidationSchemas, type DouyinWorkOptions, DouyinWorkParamsSchema, DyDanmakuList, DyEmojiList, DyEmojiProList, DyImageAlbumWork, DyMusicWork, DySearchInfo, DySlidesWork, DySuggestWords, DyUserInfo, DyUserLiveVideos, DyUserPostVideos, DyVideoWork, DyWorkComments, DynamicType, DynamicTypeAV, DynamicTypeArticle, DynamicTypeDraw, DynamicTypeForward, DynamicTypeForwardUnion, DynamicTypeLiveRcmd, DynamicTypeWord, ErrorResult, ExtractTypeMode, FetcherConfig, HomeFeed, type HttpMethod, type HttpRequestEventData, type HttpResponseEventData, type IBilibiliFetcher, type IBoundBilibiliFetcher, type IBoundDouyinFetcher, type IBoundKuaishouFetcher, type IBoundXiaohongshuFetcher, type IDouyinFetcher, type IKuaishouFetcher, type IXiaohongshuFetcher, KsEmojiList, KsOneWork, KsWorkComments, KuaishouApiRoutes, KuaishouCommentParamsSchema, type KuaishouCommentsOptions, KuaishouDataOptions, KuaishouDataOptionsMap, KuaishouEmojiParamsSchema, type KuaishouFetcher, KuaishouFetcherMethodKey, KuaishouFetcherMethods, KuaishouInternalMethodKey, KuaishouInternalMethods, type KuaishouMethodKey, KuaishouMethodMapping, KuaishouMethodOptMap, KuaishouMethodOptionsMap, KuaishouMethodRoutes, KuaishouMethodToFetcher, type KuaishouMethodType, type KuaishouMethodValue, KuaishouReturnTypeMap, KuaishouValidationSchemas, KuaishouVideoParamsSchema, type KuaishouVideoWorkOptions, type LogEventData, MajorType, MethodMaps, type NetworkErrorEventData, type NetworkRetryEventData, type NetworksConfigType, NoteComments, OmitMethodType, OneNote, Options, type Platform, RequestConfig, Result, SearchInfoGeneralData, SearchInfoUser, SearchInfoVideo, SearchNotes, SuccessResult, TypeControl, TypeMode, ValidationError, XiaohongshuApiRoutes, type XiaohongshuCommentsOptions, XiaohongshuDataOptions, XiaohongshuDataOptionsMap, XiaohongshuEmojiList, type XiaohongshuFetcher, XiaohongshuFetcherMethodKey, XiaohongshuFetcherMethods, type XiaohongshuHomeFeedOptions, XiaohongshuInternalMethodKey, XiaohongshuInternalMethods, type XiaohongshuMethodKey, XiaohongshuMethodMapping, XiaohongshuMethodOptMap, XiaohongshuMethodOptionsMap, XiaohongshuMethodRoutes, XiaohongshuMethodToFetcher, XiaohongshuMethodType, type XiaohongshuMethodValue, type XiaohongshuNoteDetailOptions, XiaohongshuReturnTypeMap, type XiaohongshuSearchNotesOptions, type XiaohongshuUserNotesOptions, XiaohongshuUserProfile, type XiaohongshuUserProfileOptions, XiaohongshuValidationSchemas, amagi, amagiClient, amagiEvents, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliFetcher, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBilibiliRoutes as registerBilibiliRoutes, createBoundBilibiliApi, createBoundBilibiliFetcher, createBoundDouyinApi, createBoundDouyinFetcher, createBoundKuaishouApi, createBoundKuaishouFetcher, createBoundXiaohongshuApi, createBoundXiaohongshuFetcher, createDouyinRoutes, createDouyinRoutes as registerDouyinRoutes, createErrorResponse, createKuaishouRoutes, createKuaishouRoutes as registerKuaishouRoutes, createSuccessResponse, createXiaohongshuRoutes, createXiaohongshuRoutes as registerXiaohongshuRoutes, Client as default, douyin, douyinApiUrls, douyinFetcher, douyinSign, douyinUtils, emitApiError, emitApiSuccess, emitHttpRequest, emitHttpResponse, emitLog, emitLogDebug, emitLogError, emitLogInfo, emitLogMark, emitLogWarn, emitNetworkError, emitNetworkRetry, fetchData, fetchResponse, getApiRoute, getBilibiliData, getDouyinData, getEnglishMethodName, getHeadersAndData, getKuaishouData, handleError, httpLogger, initLogger, isNetworkErrorResult, kuaishou, kuaishouApiUrls, kuaishouFetcher, kuaishouUtils, logMiddleware, logger, parseDmSegMobileReply, qtparam, toFetcherMethod, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, validateXiaohongshuParams, wbi_sign, xiaohongshu, xiaohongshuApiUrls, xiaohongshuFetcher, xiaohongshuSign, xiaohongshuUtils };
|
|
28127
|
+
export { APIErrorType, AdditionalType, type AmagiEventMap, type AmagiEventType, type ApiEndpoint, ApiError, type ApiErrorEventData, ApiResponse, type ApiSuccessEventData, ArticleCard, ArticleContent, ArticleInfo, ArticleWork, BaseRequestOptions, BaseResponse, BiliAv2Bv, BiliBangumiVideoInfo, BiliBangumiVideoPlayurlIsLogin, BiliBangumiVideoPlayurlNoLogin, BiliBiliVideoPlayurlNoLogin, BiliBv2AV, BiliCheckQrcode, BiliCommentReply, BiliDynamicCard, BiliDynamicInfo, BiliDynamicInfoUnion, BiliEmojiList, BiliLiveRoomDef, BiliLiveRoomDetail, BiliNewLoginQrcode, BiliOneWork, BiliProtobufDanmaku, BiliUserDynamic, BiliUserFullView, BiliUserProfile, BiliVideoPlayurlIsLogin, BiliWorkComments, BilibiliApiRoutes, type BilibiliApplyCaptchaOptions, BilibiliApplyCaptchaParamsSchema, type BilibiliArticleCardOptions, BilibiliArticleCardParamsSchema, BilibiliArticleInfoParamsSchema, type BilibiliArticleOptions, BilibiliArticleParamsSchema, type BilibiliAv2BvOptions, BilibiliAv2BvParamsSchema, type BilibiliBangumiInfoOptions, BilibiliBangumiInfoParamsSchema, type BilibiliBangumiStreamOptions, BilibiliBangumiStreamParamsSchema, type BilibiliBv2AvOptions, BilibiliBv2AvParamsSchema, BilibiliColumnInfoParamsSchema, BilibiliCommentParamsSchema, type BilibiliCommentRepliesOptions, BilibiliCommentReplyParamsSchema, type BilibiliCommentsOptions, type BilibiliDanmakuOptions, BilibiliDanmakuParamsSchema, BilibiliDataOptions, BilibiliDataOptionsMap, type BilibiliDynamicOptions, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, type BilibiliFetcher, BilibiliFetcherMethodKey, BilibiliFetcherMethods, BilibiliInternalMethodKey, BilibiliInternalMethods, BilibiliLiveParamsSchema, type BilibiliLiveRoomOptions, BilibiliLoginParamsSchema, type BilibiliMethodKey, BilibiliMethodMapping, BilibiliMethodOptMap, BilibiliMethodOptionsMap, BilibiliMethodRoutes, BilibiliMethodToFetcher, type BilibiliMethodType, type BilibiliMethodValue, BilibiliQrcodeParamsSchema, type BilibiliQrcodeStatusOptions, BilibiliQrcodeStatusParamsSchema, BilibiliReturnTypeMap, type BilibiliUserOptions, BilibiliUserParamsSchema, type BilibiliValidateCaptchaOptions, BilibiliValidateCaptchaParamsSchema, BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, type BilibiliVideoInfoOptions, BilibiliVideoParamsSchema, type BilibiliVideoStreamOptions, BoundBilibiliApi, type BoundBilibiliFetcher, BoundDouyinApi, type BoundDouyinFetcher, BoundKuaishouApi, type BoundKuaishouFetcher, BoundXiaohongshuApi, type BoundXiaohongshuFetcher, ColumnInfo, CommentReply, CommentType, ConditionalReturnType, CookieConfig, CreateApp, DouyinApiRoutes, DouyinCommentParamsSchema, type DouyinCommentRepliesOptions, DouyinCommentReplyParamsSchema, type DouyinCommentsOptions, type DouyinDanmakuOptions, DouyinDanmakuParamsSchema, DouyinDataOptions, DouyinDataOptionsMap, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, type DouyinFetcher, DouyinFetcherMethodKey, DouyinFetcherMethods, DouyinHotWordsParamsSchema, DouyinInternalMethodKey, DouyinInternalMethods, type DouyinLiveRoomOptions, DouyinLiveRoomParamsSchema, type DouyinMethodKey, DouyinMethodMapping, DouyinMethodOptMap, DouyinMethodOptionsMap, DouyinMethodRoutes, DouyinMethodToFetcher, type DouyinMethodType, type DouyinMethodValue, type DouyinMusicOptions, DouyinMusicParamsSchema, type DouyinQrcodeOptions, DouyinQrcodeParamsSchema, DouyinReturnTypeMap, type DouyinSearchOptions, DouyinSearchParamsSchema, type DouyinSuggestWordsOptions, type DouyinUserListOptions, DouyinUserListParamsSchema, type DouyinUserOptions, DouyinUserParamsSchema, DouyinValidationSchemas, type DouyinWorkOptions, DouyinWorkParamsSchema, DyDanmakuList, DyEmojiList, DyEmojiProList, DyImageAlbumWork, DyMusicWork, DySearchInfo, DySlidesWork, DySuggestWords, DyUserInfo, DyUserLiveVideos, DyUserPostVideos, DyVideoWork, DyWorkComments, DynamicType, DynamicTypeAV, DynamicTypeArticle, DynamicTypeDraw, DynamicTypeForward, DynamicTypeForwardUnion, DynamicTypeLiveRcmd, DynamicTypeWord, ErrorResult, ExtractTypeMode, FetcherConfig, HomeFeed, type HttpMethod, type HttpRequestEventData, type HttpResponseEventData, type IBilibiliFetcher, type IBoundBilibiliFetcher, type IBoundDouyinFetcher, type IBoundKuaishouFetcher, type IBoundXiaohongshuFetcher, type IDouyinFetcher, type IKuaishouFetcher, type IXiaohongshuFetcher, type KsBannedStatus, KsEmojiList, KsLiveRoomDetail, KsLiveRoomInfo, KsOneWork, KsUserHomeAuthorInfo, KsUserHomeCategoryMask, KsUserHomeDetail, KsUserHomeFollowButtonState, KsUserHomeFollowState, KsUserHomeHotCategory, KsUserHomeInterestAuthor, KsUserHomeInterestCategory, KsUserHomeProfileState, KsUserHomeTabData, type KsUserHomeWork, KsUserProfile, type KsUserProfileCounts, type KsUserProfileGameInfo, type KsUserProfileLiveInfo, type KsUserProfileSensitiveInfo, type KsUserProfileUserInfo, KsUserWorkList, type KsVerifiedStatus, KsWorkComments, KuaishouApiRoutes, KuaishouCommentParamsSchema, type KuaishouCommentsOptions, KuaishouDataOptions, KuaishouDataOptionsMap, KuaishouEmojiParamsSchema, type KuaishouFetcher, KuaishouFetcherMethodKey, KuaishouFetcherMethods, type KuaishouGraphqlRequest, KuaishouInternalMethodKey, KuaishouInternalMethods, type KuaishouLiveApiRequest, type KuaishouLiveRoomInfoOptions, KuaishouLiveRoomInfoParamsSchema, type KuaishouMethodKey, KuaishouMethodMapping, KuaishouMethodOptMap, KuaishouMethodOptionsMap, KuaishouMethodRoutes, KuaishouMethodToFetcher, type KuaishouMethodType, type KuaishouMethodValue, KuaishouReturnTypeMap, type KuaishouUserProfileOptions, KuaishouUserProfileParamsSchema, type KuaishouUserWorkListOptions, KuaishouUserWorkListParamsSchema, KuaishouValidationSchemas, KuaishouVideoParamsSchema, type KuaishouVideoWorkOptions, type LogEventData, MajorType, MethodMaps, type NetworkErrorEventData, type NetworkRetryEventData, type NetworksConfigType, NoteComments, OmitMethodType, OneNote, Options, type Platform, RequestConfig, Result, SearchInfoGeneralData, SearchInfoUser, SearchInfoVideo, SearchNotes, SuccessResult, TypeControl, TypeMode, ValidationError, XiaohongshuApiRoutes, type XiaohongshuCommentsOptions, XiaohongshuDataOptions, XiaohongshuDataOptionsMap, XiaohongshuEmojiList, type XiaohongshuFetcher, XiaohongshuFetcherMethodKey, XiaohongshuFetcherMethods, type XiaohongshuHomeFeedOptions, XiaohongshuInternalMethodKey, XiaohongshuInternalMethods, type XiaohongshuMethodKey, XiaohongshuMethodMapping, XiaohongshuMethodOptMap, XiaohongshuMethodOptionsMap, XiaohongshuMethodRoutes, XiaohongshuMethodToFetcher, XiaohongshuMethodType, type XiaohongshuMethodValue, type XiaohongshuNoteDetailOptions, XiaohongshuReturnTypeMap, type XiaohongshuSearchNotesOptions, type XiaohongshuUserNotesOptions, XiaohongshuUserProfile, type XiaohongshuUserProfileOptions, XiaohongshuValidationSchemas, amagi, amagiClient, amagiEvents, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliFetcher, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBilibiliRoutes as registerBilibiliRoutes, createBoundBilibiliApi, createBoundBilibiliFetcher, createBoundDouyinApi, createBoundDouyinFetcher, createBoundKuaishouApi, createBoundKuaishouFetcher, createBoundXiaohongshuApi, createBoundXiaohongshuFetcher, createDouyinRoutes, createDouyinRoutes as registerDouyinRoutes, createErrorResponse, createKuaishouRoutes, createKuaishouRoutes as registerKuaishouRoutes, createSuccessResponse, createXiaohongshuRoutes, createXiaohongshuRoutes as registerXiaohongshuRoutes, Client as default, douyin, douyinApiUrls, douyinFetcher, douyinSign, douyinUtils, emitApiError, emitApiSuccess, emitHttpRequest, emitHttpResponse, emitLog, emitLogDebug, emitLogError, emitLogInfo, emitLogMark, emitLogWarn, emitNetworkError, emitNetworkRetry, fetchData, fetchResponse, getApiRoute, getBilibiliData, getDouyinData, getEnglishMethodName, getHeadersAndData, getKuaishouData, handleError, httpLogger, initLogger, isNetworkErrorResult, kuaishou, kuaishouApiUrls, kuaishouFetcher, kuaishouSign, kuaishouUtils, logMiddleware, logger, parseDmSegMobileReply, qtparam, toFetcherMethod, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, validateXiaohongshuParams, wbi_sign, xiaohongshu, xiaohongshuApiUrls, xiaohongshuFetcher, xiaohongshuSign, xiaohongshuUtils };
|
|
27447
28128
|
//# sourceMappingURL=index.d.mts.map
|