@ikenxuan/amagi 1.4.3

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.
Files changed (58) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +82 -0
  3. package/config/config.yaml +5 -0
  4. package/config/default_config.yaml +5 -0
  5. package/lib/app.d.ts +1 -0
  6. package/lib/app.js +2 -0
  7. package/lib/business/bilibili/API.d.ts +39 -0
  8. package/lib/business/bilibili/API.js +37 -0
  9. package/lib/business/bilibili/getdata.d.ts +9 -0
  10. package/lib/business/bilibili/getdata.js +169 -0
  11. package/lib/business/bilibili/getid.d.ts +26 -0
  12. package/lib/business/bilibili/getid.js +41 -0
  13. package/lib/business/bilibili/index.d.ts +7 -0
  14. package/lib/business/bilibili/index.js +7 -0
  15. package/lib/business/bilibili/qtparam.d.ts +13 -0
  16. package/lib/business/bilibili/qtparam.js +16 -0
  17. package/lib/business/bilibili/result.d.ts +6 -0
  18. package/lib/business/bilibili/result.js +36 -0
  19. package/lib/business/bilibili/sign/CorrespondPath.d.ts +1 -0
  20. package/lib/business/bilibili/sign/CorrespondPath.js +11 -0
  21. package/lib/business/bilibili/sign/wbi.d.ts +1 -0
  22. package/lib/business/bilibili/sign/wbi.js +56 -0
  23. package/lib/business/douyin/API.d.ts +37 -0
  24. package/lib/business/douyin/API.js +42 -0
  25. package/lib/business/douyin/getdata.d.ts +9 -0
  26. package/lib/business/douyin/getdata.js +119 -0
  27. package/lib/business/douyin/getid.d.ts +13 -0
  28. package/lib/business/douyin/getid.js +36 -0
  29. package/lib/business/douyin/index.d.ts +6 -0
  30. package/lib/business/douyin/index.js +6 -0
  31. package/lib/business/douyin/result.d.ts +6 -0
  32. package/lib/business/douyin/result.js +39 -0
  33. package/lib/business/douyin/sign/a_bougs.js +487 -0
  34. package/lib/business/douyin/sign/index.d.ts +8 -0
  35. package/lib/business/douyin/sign/index.js +29 -0
  36. package/lib/index.d.ts +30 -0
  37. package/lib/index.js +113 -0
  38. package/lib/model/config.d.ts +70 -0
  39. package/lib/model/config.js +173 -0
  40. package/lib/model/index.d.ts +4 -0
  41. package/lib/model/index.js +4 -0
  42. package/lib/model/logger.d.ts +3 -0
  43. package/lib/model/logger.js +28 -0
  44. package/lib/model/networks.d.ts +38 -0
  45. package/lib/model/networks.js +224 -0
  46. package/lib/types/ConfigType.d.ts +10 -0
  47. package/lib/types/ConfigType.js +1 -0
  48. package/lib/types/DataType.d.ts +32 -0
  49. package/lib/types/DataType.js +1 -0
  50. package/lib/types/GetDataResponseType.d.ts +17 -0
  51. package/lib/types/GetDataResponseType.js +1 -0
  52. package/lib/types/NetworksConfigType.d.ts +30 -0
  53. package/lib/types/NetworksConfigType.js +1 -0
  54. package/lib/types/OptionsType.d.ts +66 -0
  55. package/lib/types/OptionsType.js +1 -0
  56. package/lib/types/index.d.ts +6 -0
  57. package/lib/types/index.js +1 -0
  58. package/package.json +49 -0
@@ -0,0 +1,66 @@
1
+ /**
2
+ * 接口公共查询参数
3
+ */
4
+ export type DouyinOptionsType = {
5
+ /**
6
+ * 视频分享URL
7
+ */
8
+ url?: string;
9
+ /**
10
+ * 作品ID,囊括视频、静态图集、实况图集、实况视频
11
+ */
12
+ aweme_id?: string;
13
+ /**
14
+ * 评论ID
15
+ */
16
+ comment_id?: string;
17
+ /**
18
+ * 用户ID
19
+ */
20
+ sec_uid?: string;
21
+ /**
22
+ * 查询关键词
23
+ */
24
+ query?: string;
25
+ /**
26
+ * 音乐ID
27
+ */
28
+ music_id?: string;
29
+ };
30
+ /**
31
+ * 接口公共查询参数
32
+ */
33
+ export type BilibiliOptionsType = {
34
+ /**
35
+ * 以后再搞这个id,有点麻烦
36
+ */
37
+ id?: string;
38
+ /**
39
+ * 视频分享URL
40
+ */
41
+ url?: string;
42
+ /**
43
+ * AV号
44
+ */
45
+ avid?: string;
46
+ /**
47
+ * BV号
48
+ */
49
+ bvid?: string;
50
+ /**
51
+ * 用户ID
52
+ */
53
+ host_mid?: string;
54
+ /**
55
+ * 动态ID
56
+ */
57
+ dynamic_id?: string;
58
+ /**
59
+ * 番剧视频CID
60
+ */
61
+ cid?: string;
62
+ /**
63
+ * 番剧视频EPID
64
+ */
65
+ ep_id?: string;
66
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { DouyinDataType, BilibiliDataType } from './DataType.js';
2
+ import { type DouyinOptionsType, type BilibiliOptionsType } from './OptionsType.js';
3
+ import { type GetDataResponseType } from './GetDataResponseType.js';
4
+ import { type ConfigType } from './ConfigType.js';
5
+ import { type NetworksConfigType } from './NetworksConfigType.js';
6
+ export { DouyinDataType, BilibiliDataType, DouyinOptionsType, BilibiliOptionsType, GetDataResponseType, ConfigType, NetworksConfigType, };
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@ikenxuan/amagi",
3
+ "version": "1.4.3",
4
+ "type": "module",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "homepage": "https://github.com/ikenxuan/amagi",
8
+ "scripts": {
9
+ "app": "node lib/app.js",
10
+ "start": "pm2 start lib/pm2.json",
11
+ "stop": "pm2 stop lib/pm2.json",
12
+ "log": "pm2 log amagi",
13
+ "restart": "pm2 restart lib/pm2.json",
14
+ "delpkg": "node src/pkg.js --type del",
15
+ "dev": "tsx watch src/index.ts",
16
+ "build": "tsc --project tsconfig.json && tsc-alias -p tsconfig.json && tsx src/build.ts && tsx src/cp.ts && npm run delpkg"
17
+ },
18
+ "files": [
19
+ "/lib/**/*.js",
20
+ "/lib/**/*.d.ts",
21
+ "/config/*.yaml",
22
+ "LICENSE",
23
+ "package.json",
24
+ "README.md"
25
+ ],
26
+ "bugs": {
27
+ "url": "https://github.com/ikenxuan/amagi/issues"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/ikenxuan/amagi.git"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public",
35
+ "registry": "https://registry.npmjs.org"
36
+ },
37
+ "dependencies": {
38
+ "@fastify/autoload": "^5.10.0",
39
+ "chalk": "^5.3.0",
40
+ "chokidar": "^3.6.0",
41
+ "fastify": "^4.28.1",
42
+ "lodash": "4.17.21",
43
+ "log4js": "^6.9.1",
44
+ "md5": "^2.3.0",
45
+ "node-fetch": "^3.3.2",
46
+ "pm2": "^5.4.2",
47
+ "yaml": "^2.4.5"
48
+ }
49
+ }