@ikenxuan/amagi 5.0.3 → 5.1.0
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 +37 -3
- package/dist/default/esm/index.mjs +35 -3
- package/dist/default/index.d.ts +4520 -2433
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ var express__default = /*#__PURE__*/_interopDefault(express);
|
|
|
27
27
|
* GPL-3.0 Licensed
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.
|
|
30
|
+
// node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.4_tsx@4.20.4_typescript@5.9.2/node_modules/tsup/assets/cjs_shims.js
|
|
31
31
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
32
32
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
33
33
|
var getPackageLogsPath = () => {
|
|
@@ -305,10 +305,10 @@ var BiLiBiLiAPI = class {
|
|
|
305
305
|
return `https://api.bilibili.com/pgc/player/web/playurl?cid=${data2.cid}&ep_id=${data2.ep_id}`;
|
|
306
306
|
}
|
|
307
307
|
\u7528\u6237\u7A7A\u95F4\u52A8\u6001(data2) {
|
|
308
|
-
return `https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space?host_mid=${data2.host_mid}`;
|
|
308
|
+
return `https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space?host_mid=${data2.host_mid}&features=itemOpusStyle,listOnlyfans,opusBigCover,onlyfansVote,forwardListHidden,decorationCard,commentsNewVersion,onlyfansAssetsV2,ugcDelete,onlyfansQaCard`;
|
|
309
309
|
}
|
|
310
310
|
\u52A8\u6001\u8BE6\u60C5(data2) {
|
|
311
|
-
return `https://api.bilibili.com/x/polymer/web-dynamic/v1/detail?id=${data2.dynamic_id}`;
|
|
311
|
+
return `https://api.bilibili.com/x/polymer/web-dynamic/v1/detail?id=${data2.dynamic_id}&features=itemOpusStyle,opusBigCover,onlyfansVote,endFooterHidden,decorationCard,onlyfansAssetsV2,ugcDelete,onlyfansQaCard,editable,opusPrivateVisible,avatarAutoTheme`;
|
|
312
312
|
}
|
|
313
313
|
\u52A8\u6001\u5361\u7247\u4FE1\u606F(data2) {
|
|
314
314
|
return `https://api.vc.bilibili.com/dynamic_svr/v1/dynamic_svr/get_dynamic_detail?dynamic_id=${data2.dynamic_id}`;
|
|
@@ -3429,6 +3429,38 @@ var createAmagiClient = (options) => {
|
|
|
3429
3429
|
};
|
|
3430
3430
|
};
|
|
3431
3431
|
|
|
3432
|
+
// src/types/ReturnDataType/Bilibili/DynamicInfo.ts
|
|
3433
|
+
var DynamicType = /* @__PURE__ */ ((DynamicType2) => {
|
|
3434
|
+
DynamicType2["AV"] = "DYNAMIC_TYPE_AV";
|
|
3435
|
+
DynamicType2["DRAW"] = "DYNAMIC_TYPE_DRAW";
|
|
3436
|
+
DynamicType2["WORD"] = "DYNAMIC_TYPE_WORD";
|
|
3437
|
+
DynamicType2["LIVE_RCMD"] = "DYNAMIC_TYPE_LIVE_RCMD";
|
|
3438
|
+
DynamicType2["FORWARD"] = "DYNAMIC_TYPE_FORWARD";
|
|
3439
|
+
return DynamicType2;
|
|
3440
|
+
})(DynamicType || {});
|
|
3441
|
+
|
|
3442
|
+
// src/types/ReturnDataType/Bilibili/Dynamic/index.ts
|
|
3443
|
+
var MajorType = /* @__PURE__ */ ((MajorType2) => {
|
|
3444
|
+
MajorType2["NONE"] = "MAJOR_TYPE_NONE";
|
|
3445
|
+
MajorType2["OPUS"] = "MAJOR_TYPE_OPUS";
|
|
3446
|
+
MajorType2["ARCHIVE"] = "MAJOR_TYPE_ARCHIVE";
|
|
3447
|
+
MajorType2["PGC"] = "MAJOR_TYPE_PGC";
|
|
3448
|
+
MajorType2["COURSES"] = "MAJOR_TYPE_COURSES";
|
|
3449
|
+
MajorType2["DRAW"] = "MAJOR_TYPE_DRAW";
|
|
3450
|
+
MajorType2["ARTICLE"] = "MAJOR_TYPE_ARTICLE";
|
|
3451
|
+
MajorType2["MUSIC"] = "MAJOR_TYPE_MUSIC";
|
|
3452
|
+
MajorType2["COMMON"] = "MAJOR_TYPE_COMMON";
|
|
3453
|
+
MajorType2["LIVE"] = "MAJOR_TYPE_LIVE";
|
|
3454
|
+
MajorType2["MEDIALIST"] = "MAJOR_TYPE_MEDIALIST";
|
|
3455
|
+
MajorType2["APPLET"] = "MAJOR_TYPE_APPLET";
|
|
3456
|
+
MajorType2["SUBSCRIPTION"] = "MAJOR_TYPE_SUBSCRIPTION";
|
|
3457
|
+
MajorType2["LIVE_RCMD"] = "MAJOR_TYPE_LIVE_RCMD";
|
|
3458
|
+
MajorType2["UGC_SEASON"] = "MAJOR_TYPE_UGC_SEASON";
|
|
3459
|
+
MajorType2["SUBSCRIPTION_NEW"] = "MAJOR_TYPE_SUBSCRIPTION_NEW";
|
|
3460
|
+
MajorType2["UPOWER_COMMON"] = "MAJOR_TYPE_UPOWER_COMMON";
|
|
3461
|
+
return MajorType2;
|
|
3462
|
+
})(MajorType || {});
|
|
3463
|
+
|
|
3432
3464
|
// src/index.ts
|
|
3433
3465
|
var amagiClient = createAmagiClient;
|
|
3434
3466
|
function CreateAmagiApp(options = {}) {
|
|
@@ -3479,10 +3511,12 @@ exports.DouyinSearchParamsSchema = DouyinSearchParamsSchema;
|
|
|
3479
3511
|
exports.DouyinUserParamsSchema = DouyinUserParamsSchema;
|
|
3480
3512
|
exports.DouyinValidationSchemas = DouyinValidationSchemas2;
|
|
3481
3513
|
exports.DouyinWorkParamsSchema = DouyinWorkParamsSchema;
|
|
3514
|
+
exports.DynamicType = DynamicType;
|
|
3482
3515
|
exports.KuaishouCommentParamsSchema = KuaishouCommentParamsSchema;
|
|
3483
3516
|
exports.KuaishouEmojiParamsSchema = KuaishouEmojiParamsSchema;
|
|
3484
3517
|
exports.KuaishouValidationSchemas = KuaishouValidationSchemas2;
|
|
3485
3518
|
exports.KuaishouVideoParamsSchema = KuaishouVideoParamsSchema;
|
|
3519
|
+
exports.MajorType = MajorType;
|
|
3486
3520
|
exports.ValidationError = ValidationError;
|
|
3487
3521
|
exports.amagi = amagi;
|
|
3488
3522
|
exports.amagiClient = amagiClient;
|
|
@@ -289,10 +289,10 @@ var BiLiBiLiAPI = class {
|
|
|
289
289
|
return `https://api.bilibili.com/pgc/player/web/playurl?cid=${data2.cid}&ep_id=${data2.ep_id}`;
|
|
290
290
|
}
|
|
291
291
|
\u7528\u6237\u7A7A\u95F4\u52A8\u6001(data2) {
|
|
292
|
-
return `https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space?host_mid=${data2.host_mid}`;
|
|
292
|
+
return `https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space?host_mid=${data2.host_mid}&features=itemOpusStyle,listOnlyfans,opusBigCover,onlyfansVote,forwardListHidden,decorationCard,commentsNewVersion,onlyfansAssetsV2,ugcDelete,onlyfansQaCard`;
|
|
293
293
|
}
|
|
294
294
|
\u52A8\u6001\u8BE6\u60C5(data2) {
|
|
295
|
-
return `https://api.bilibili.com/x/polymer/web-dynamic/v1/detail?id=${data2.dynamic_id}`;
|
|
295
|
+
return `https://api.bilibili.com/x/polymer/web-dynamic/v1/detail?id=${data2.dynamic_id}&features=itemOpusStyle,opusBigCover,onlyfansVote,endFooterHidden,decorationCard,onlyfansAssetsV2,ugcDelete,onlyfansQaCard,editable,opusPrivateVisible,avatarAutoTheme`;
|
|
296
296
|
}
|
|
297
297
|
\u52A8\u6001\u5361\u7247\u4FE1\u606F(data2) {
|
|
298
298
|
return `https://api.vc.bilibili.com/dynamic_svr/v1/dynamic_svr/get_dynamic_detail?dynamic_id=${data2.dynamic_id}`;
|
|
@@ -3413,6 +3413,38 @@ var createAmagiClient = (options) => {
|
|
|
3413
3413
|
};
|
|
3414
3414
|
};
|
|
3415
3415
|
|
|
3416
|
+
// src/types/ReturnDataType/Bilibili/DynamicInfo.ts
|
|
3417
|
+
var DynamicType = /* @__PURE__ */ ((DynamicType2) => {
|
|
3418
|
+
DynamicType2["AV"] = "DYNAMIC_TYPE_AV";
|
|
3419
|
+
DynamicType2["DRAW"] = "DYNAMIC_TYPE_DRAW";
|
|
3420
|
+
DynamicType2["WORD"] = "DYNAMIC_TYPE_WORD";
|
|
3421
|
+
DynamicType2["LIVE_RCMD"] = "DYNAMIC_TYPE_LIVE_RCMD";
|
|
3422
|
+
DynamicType2["FORWARD"] = "DYNAMIC_TYPE_FORWARD";
|
|
3423
|
+
return DynamicType2;
|
|
3424
|
+
})(DynamicType || {});
|
|
3425
|
+
|
|
3426
|
+
// src/types/ReturnDataType/Bilibili/Dynamic/index.ts
|
|
3427
|
+
var MajorType = /* @__PURE__ */ ((MajorType2) => {
|
|
3428
|
+
MajorType2["NONE"] = "MAJOR_TYPE_NONE";
|
|
3429
|
+
MajorType2["OPUS"] = "MAJOR_TYPE_OPUS";
|
|
3430
|
+
MajorType2["ARCHIVE"] = "MAJOR_TYPE_ARCHIVE";
|
|
3431
|
+
MajorType2["PGC"] = "MAJOR_TYPE_PGC";
|
|
3432
|
+
MajorType2["COURSES"] = "MAJOR_TYPE_COURSES";
|
|
3433
|
+
MajorType2["DRAW"] = "MAJOR_TYPE_DRAW";
|
|
3434
|
+
MajorType2["ARTICLE"] = "MAJOR_TYPE_ARTICLE";
|
|
3435
|
+
MajorType2["MUSIC"] = "MAJOR_TYPE_MUSIC";
|
|
3436
|
+
MajorType2["COMMON"] = "MAJOR_TYPE_COMMON";
|
|
3437
|
+
MajorType2["LIVE"] = "MAJOR_TYPE_LIVE";
|
|
3438
|
+
MajorType2["MEDIALIST"] = "MAJOR_TYPE_MEDIALIST";
|
|
3439
|
+
MajorType2["APPLET"] = "MAJOR_TYPE_APPLET";
|
|
3440
|
+
MajorType2["SUBSCRIPTION"] = "MAJOR_TYPE_SUBSCRIPTION";
|
|
3441
|
+
MajorType2["LIVE_RCMD"] = "MAJOR_TYPE_LIVE_RCMD";
|
|
3442
|
+
MajorType2["UGC_SEASON"] = "MAJOR_TYPE_UGC_SEASON";
|
|
3443
|
+
MajorType2["SUBSCRIPTION_NEW"] = "MAJOR_TYPE_SUBSCRIPTION_NEW";
|
|
3444
|
+
MajorType2["UPOWER_COMMON"] = "MAJOR_TYPE_UPOWER_COMMON";
|
|
3445
|
+
return MajorType2;
|
|
3446
|
+
})(MajorType || {});
|
|
3447
|
+
|
|
3416
3448
|
// src/index.ts
|
|
3417
3449
|
var amagiClient = createAmagiClient;
|
|
3418
3450
|
function CreateAmagiApp(options = {}) {
|
|
@@ -3436,4 +3468,4 @@ var amagi = Client;
|
|
|
3436
3468
|
* GPL-3.0 Licensed
|
|
3437
3469
|
*/
|
|
3438
3470
|
|
|
3439
|
-
export { ApiError, BilibiliAv2BvParamsSchema, BilibiliBangumiInfoParamsSchema, BilibiliBangumiStreamParamsSchema, BilibiliBv2AvParamsSchema, BilibiliCommentParamsSchema, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, BilibiliLiveParamsSchema, BilibiliLoginParamsSchema, BilibiliQrcodeParamsSchema, BilibiliQrcodeStatusParamsSchema, BilibiliUserParamsSchema, BilibiliValidationSchemas2 as BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, BilibiliVideoParamsSchema, CreateApp, DouyinCommentParamsSchema, DouyinCommentReplyParamsSchema, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, DouyinMusicParamsSchema, DouyinQrcodeParamsSchema, DouyinSearchParamsSchema, DouyinUserParamsSchema, DouyinValidationSchemas2 as DouyinValidationSchemas, DouyinWorkParamsSchema, KuaishouCommentParamsSchema, KuaishouEmojiParamsSchema, KuaishouValidationSchemas2 as KuaishouValidationSchemas, KuaishouVideoParamsSchema, ValidationError, amagi, amagiClient, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBoundBilibiliApi, createBoundDouyinApi, createBoundKuaishouApi, createDouyinRoutes, createErrorResponse, createKuaishouRoutes, createSuccessResponse, Client as default, douyin, douyinApiUrls, douyinSign, douyinUtils, fetchData, fetchResponse, getBilibiliData, getDouyinData, getHeadersAndData, getKuaishouData, handleError, httpLogger, kuaishou, kuaishouApiUrls, kuaishouUtils, logMiddleware, logger, qtparam, createBilibiliRoutes as registerBilibiliRoutes, createDouyinRoutes as registerDouyinRoutes, createKuaishouRoutes as registerKuaishouRoutes, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, wbi_sign };
|
|
3471
|
+
export { ApiError, BilibiliAv2BvParamsSchema, BilibiliBangumiInfoParamsSchema, BilibiliBangumiStreamParamsSchema, BilibiliBv2AvParamsSchema, BilibiliCommentParamsSchema, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, BilibiliLiveParamsSchema, BilibiliLoginParamsSchema, BilibiliQrcodeParamsSchema, BilibiliQrcodeStatusParamsSchema, BilibiliUserParamsSchema, BilibiliValidationSchemas2 as BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, BilibiliVideoParamsSchema, CreateApp, DouyinCommentParamsSchema, DouyinCommentReplyParamsSchema, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, DouyinMusicParamsSchema, DouyinQrcodeParamsSchema, DouyinSearchParamsSchema, DouyinUserParamsSchema, DouyinValidationSchemas2 as DouyinValidationSchemas, DouyinWorkParamsSchema, DynamicType, KuaishouCommentParamsSchema, KuaishouEmojiParamsSchema, KuaishouValidationSchemas2 as KuaishouValidationSchemas, KuaishouVideoParamsSchema, MajorType, ValidationError, amagi, amagiClient, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBoundBilibiliApi, createBoundDouyinApi, createBoundKuaishouApi, createDouyinRoutes, createErrorResponse, createKuaishouRoutes, createSuccessResponse, Client as default, douyin, douyinApiUrls, douyinSign, douyinUtils, fetchData, fetchResponse, getBilibiliData, getDouyinData, getHeadersAndData, getKuaishouData, handleError, httpLogger, kuaishou, kuaishouApiUrls, kuaishouUtils, logMiddleware, logger, qtparam, createBilibiliRoutes as registerBilibiliRoutes, createDouyinRoutes as registerDouyinRoutes, createKuaishouRoutes as registerKuaishouRoutes, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, wbi_sign };
|