@ikenxuan/amagi 5.0.0 → 5.0.1
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/default/cjs/index.cjs +413 -67
- package/dist/default/esm/index.mjs +412 -66
- package/dist/default/index.d.ts +76 -1
- package/package.json +1 -1
package/dist/default/index.d.ts
CHANGED
|
@@ -15827,21 +15827,96 @@ type DouyinMethodOptionsWithoutMethodType = {
|
|
|
15827
15827
|
[K in keyof DouyinMethodOptionsMap]: OmitMethodType<DouyinMethodOptionsMap[K]>;
|
|
15828
15828
|
};
|
|
15829
15829
|
declare class DouyinAPI {
|
|
15830
|
+
private browserVersion;
|
|
15831
|
+
/**
|
|
15832
|
+
* 构造函数
|
|
15833
|
+
* @param userAgent - 用户代理字符串,用于提取浏览器版本信息
|
|
15834
|
+
*/
|
|
15835
|
+
constructor(userAgent?: string);
|
|
15836
|
+
/**
|
|
15837
|
+
* 获取通用的基础参数
|
|
15838
|
+
* @returns 通用基础参数对象
|
|
15839
|
+
*/
|
|
15840
|
+
private getBaseParams;
|
|
15841
|
+
/**
|
|
15842
|
+
* 获取视频或图集数据的接口地址
|
|
15843
|
+
* @param data - 请求参数,包含aweme_id
|
|
15844
|
+
* @returns 完整的接口URL
|
|
15845
|
+
*/
|
|
15830
15846
|
视频或图集(data: DouyinMethodOptionsWithoutMethodType['WorkParams']): string;
|
|
15847
|
+
/**
|
|
15848
|
+
* 获取评论数据的接口地址
|
|
15849
|
+
* @param data - 请求参数,包含aweme_id、cursor、number等
|
|
15850
|
+
* @returns 完整的接口URL
|
|
15851
|
+
*/
|
|
15831
15852
|
评论(data: DouyinMethodOptionsWithoutMethodType['CommentParams']): string;
|
|
15853
|
+
/**
|
|
15854
|
+
* 获取二级评论数据的接口地址
|
|
15855
|
+
* @param data - 请求参数,包含aweme_id、comment_id等
|
|
15856
|
+
* @returns 完整的接口URL
|
|
15857
|
+
*/
|
|
15832
15858
|
二级评论(data: DouyinMethodOptionsWithoutMethodType['CommentReplyParams']): string;
|
|
15859
|
+
/**
|
|
15860
|
+
* 获取动图数据的接口地址
|
|
15861
|
+
* @param data - 请求参数,包含aweme_id
|
|
15862
|
+
* @returns 完整的接口URL
|
|
15863
|
+
*/
|
|
15833
15864
|
动图(data: DouyinMethodOptionsWithoutMethodType['WorkParams']): string;
|
|
15865
|
+
/**
|
|
15866
|
+
* 获取表情数据的接口地址
|
|
15867
|
+
* @returns 完整的接口URL
|
|
15868
|
+
*/
|
|
15834
15869
|
表情(): string;
|
|
15870
|
+
/**
|
|
15871
|
+
* 获取用户主页视频数据的接口地址
|
|
15872
|
+
* @param data - 请求参数,包含sec_uid
|
|
15873
|
+
* @returns 完整的接口URL
|
|
15874
|
+
*/
|
|
15835
15875
|
用户主页视频(data: DouyinMethodOptionsWithoutMethodType['UserParams']): string;
|
|
15876
|
+
/**
|
|
15877
|
+
* 获取用户主页信息的接口地址
|
|
15878
|
+
* @param data - 请求参数,包含sec_uid
|
|
15879
|
+
* @returns 完整的接口URL
|
|
15880
|
+
*/
|
|
15836
15881
|
用户主页信息(data: DouyinMethodOptionsWithoutMethodType['UserParams']): string;
|
|
15882
|
+
/**
|
|
15883
|
+
* 获取热点词数据的接口地址
|
|
15884
|
+
* @param data - 请求参数,包含query
|
|
15885
|
+
* @returns 完整的接口URL
|
|
15886
|
+
*/
|
|
15837
15887
|
热点词(data: DouyinMethodOptionsWithoutMethodType['SearchParams']): string;
|
|
15888
|
+
/**
|
|
15889
|
+
* 获取搜索数据的接口地址
|
|
15890
|
+
* @param data - 请求参数,包含query、number、search_id等
|
|
15891
|
+
* @returns 完整的接口URL
|
|
15892
|
+
*/
|
|
15838
15893
|
搜索(data: DouyinMethodOptionsWithoutMethodType['SearchParams']): string;
|
|
15894
|
+
/**
|
|
15895
|
+
* 获取互动表情数据的接口地址
|
|
15896
|
+
* @returns 完整的接口URL
|
|
15897
|
+
*/
|
|
15839
15898
|
互动表情(): string;
|
|
15899
|
+
/**
|
|
15900
|
+
* 获取背景音乐数据的接口地址
|
|
15901
|
+
* @param data - 请求参数,包含music_id
|
|
15902
|
+
* @returns 完整的接口URL
|
|
15903
|
+
*/
|
|
15840
15904
|
背景音乐(data: DouyinMethodOptionsWithoutMethodType['MusicParams']): string;
|
|
15905
|
+
/**
|
|
15906
|
+
* 获取直播间信息的接口地址
|
|
15907
|
+
* @param data - 请求参数,包含web_rid、room_id
|
|
15908
|
+
* @returns 完整的接口URL
|
|
15909
|
+
*/
|
|
15841
15910
|
直播间信息(data: DouyinMethodOptionsWithoutMethodType['LiveRoomParams']): string;
|
|
15911
|
+
/**
|
|
15912
|
+
* 获取申请二维码的接口地址
|
|
15913
|
+
* @param data - 请求参数,包含verify_fp
|
|
15914
|
+
* @returns 完整的接口URL
|
|
15915
|
+
*/
|
|
15842
15916
|
申请二维码(data: DouyinMethodOptionsWithoutMethodType['QrcodeParams']): string;
|
|
15843
15917
|
}
|
|
15844
15918
|
/**
|
|
15919
|
+
* 默认的DouyinAPI实例(使用默认浏览器版本125.0.0.0)
|
|
15845
15920
|
* 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
|
|
15846
15921
|
*
|
|
15847
15922
|
* 缺少 `a_bougs` 参数,请自行生成拼接
|
|
@@ -15860,7 +15935,7 @@ declare class douyinSign {
|
|
|
15860
15935
|
* @param url 需要签名的地址
|
|
15861
15936
|
* @returns 对此地址签名后的URL查询参数
|
|
15862
15937
|
*/
|
|
15863
|
-
static AB(url: string): string;
|
|
15938
|
+
static AB(url: string, userAgent?: string): string;
|
|
15864
15939
|
/** 生成一个唯一的验证字符串 */
|
|
15865
15940
|
static VerifyFpManager(): string;
|
|
15866
15941
|
}
|