koishi-plugin-video-parser-all 0.3.7 → 0.3.9

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 (3) hide show
  1. package/lib/index.d.ts +115 -53
  2. package/lib/index.js +821 -228
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1,54 +1,116 @@
1
- import { Schema, Context } from 'koishi';
1
+ import { Schema, Dict } from 'koishi';
2
2
  export declare const name = "video-parser-all";
3
- export declare const Config: Schema<Schemastery.ObjectS<{
4
- enable: Schema<boolean, boolean>;
5
- showWaitingTip: Schema<boolean, boolean>;
6
- waitingTipText: Schema<string, string>;
7
- sameLinkInterval: Schema<number, number>;
8
- imageParseFormat: Schema<string, string>;
9
- returnContent: Schema<Schemastery.ObjectS<{
10
- showImageText: Schema<boolean, boolean>;
11
- showVideoUrl: Schema<boolean, boolean>;
12
- showVideoFile: Schema<boolean, boolean>;
13
- }>, Schemastery.ObjectT<{
14
- showImageText: Schema<boolean, boolean>;
15
- showVideoUrl: Schema<boolean, boolean>;
16
- showVideoFile: Schema<boolean, boolean>;
17
- }>>;
18
- maxDescLength: Schema<number, number>;
19
- timeout: Schema<number, number>;
20
- ignoreSendError: Schema<boolean, boolean>;
21
- enableForward: Schema<boolean, boolean>;
22
- downloadVideoBeforeSend: Schema<boolean, boolean>;
23
- messageBufferDelay: Schema<number, number>;
24
- retryTimes: Schema<number, number>;
25
- retryInterval: Schema<number, number>;
26
- videoSendTimeout: Schema<number, number>;
27
- autoClearCacheInterval: Schema<number, number>;
28
- }>, Schemastery.ObjectT<{
29
- enable: Schema<boolean, boolean>;
30
- showWaitingTip: Schema<boolean, boolean>;
31
- waitingTipText: Schema<string, string>;
32
- sameLinkInterval: Schema<number, number>;
33
- imageParseFormat: Schema<string, string>;
34
- returnContent: Schema<Schemastery.ObjectS<{
35
- showImageText: Schema<boolean, boolean>;
36
- showVideoUrl: Schema<boolean, boolean>;
37
- showVideoFile: Schema<boolean, boolean>;
38
- }>, Schemastery.ObjectT<{
39
- showImageText: Schema<boolean, boolean>;
40
- showVideoUrl: Schema<boolean, boolean>;
41
- showVideoFile: Schema<boolean, boolean>;
42
- }>>;
43
- maxDescLength: Schema<number, number>;
44
- timeout: Schema<number, number>;
45
- ignoreSendError: Schema<boolean, boolean>;
46
- enableForward: Schema<boolean, boolean>;
47
- downloadVideoBeforeSend: Schema<boolean, boolean>;
48
- messageBufferDelay: Schema<number, number>;
49
- retryTimes: Schema<number, number>;
50
- retryInterval: Schema<number, number>;
51
- videoSendTimeout: Schema<number, number>;
52
- autoClearCacheInterval: Schema<number, number>;
53
- }>>;
54
- export declare function apply(ctx: Context, config: any): void;
3
+ export declare const Config: Schema<{
4
+ enable?: boolean | null | undefined;
5
+ botName?: string | null | undefined;
6
+ showWaitingTip?: boolean | null | undefined;
7
+ waitingTipText?: string | null | undefined;
8
+ sameLinkInterval?: number | null | undefined;
9
+ maxVideoSize?: number | null | undefined;
10
+ downloadThreads?: number | null | undefined;
11
+ } & Dict & {
12
+ platformEnable?: ({
13
+ bilibili?: boolean | null | undefined;
14
+ douyin?: boolean | null | undefined;
15
+ kuaishou?: boolean | null | undefined;
16
+ xigua?: boolean | null | undefined;
17
+ xiaohongshu?: boolean | null | undefined;
18
+ weibo?: boolean | null | undefined;
19
+ toutiao?: boolean | null | undefined;
20
+ pipigx?: boolean | null | undefined;
21
+ pipixia?: boolean | null | undefined;
22
+ zuiyou?: boolean | null | undefined;
23
+ } & Dict) | null | undefined;
24
+ } & {
25
+ platformFormat?: ({
26
+ bilibili?: string | null | undefined;
27
+ douyin?: string | null | undefined;
28
+ kuaishou?: string | null | undefined;
29
+ xigua?: string | null | undefined;
30
+ xiaohongshu?: string | null | undefined;
31
+ weibo?: string | null | undefined;
32
+ toutiao?: string | null | undefined;
33
+ pipigx?: string | null | undefined;
34
+ pipixia?: string | null | undefined;
35
+ zuiyou?: string | null | undefined;
36
+ } & Dict) | null | undefined;
37
+ } & {
38
+ showImageText?: boolean | null | undefined;
39
+ showVideoUrl?: boolean | null | undefined;
40
+ showVideoFile?: boolean | null | undefined;
41
+ } & {
42
+ maxDescLength?: number | null | undefined;
43
+ } & {
44
+ timeout?: number | null | undefined;
45
+ videoSendTimeout?: number | null | undefined;
46
+ userAgent?: string | null | undefined;
47
+ bilibiliAccessKey?: string | null | undefined;
48
+ } & {
49
+ ignoreSendError?: boolean | null | undefined;
50
+ retryTimes?: number | null | undefined;
51
+ retryInterval?: number | null | undefined;
52
+ } & {
53
+ enableForward?: boolean | null | undefined;
54
+ downloadVideoBeforeSend?: boolean | null | undefined;
55
+ } & {
56
+ messageBufferDelay?: number | null | undefined;
57
+ } & {
58
+ autoClearCacheInterval?: number | null | undefined;
59
+ }, {
60
+ enable: boolean;
61
+ botName: string;
62
+ showWaitingTip: boolean;
63
+ waitingTipText: string;
64
+ sameLinkInterval: number;
65
+ maxVideoSize: number;
66
+ downloadThreads: number;
67
+ } & Dict & {
68
+ platformEnable: Schemastery.ObjectT<{
69
+ bilibili: Schema<boolean, boolean>;
70
+ douyin: Schema<boolean, boolean>;
71
+ kuaishou: Schema<boolean, boolean>;
72
+ xigua: Schema<boolean, boolean>;
73
+ xiaohongshu: Schema<boolean, boolean>;
74
+ weibo: Schema<boolean, boolean>;
75
+ toutiao: Schema<boolean, boolean>;
76
+ pipigx: Schema<boolean, boolean>;
77
+ pipixia: Schema<boolean, boolean>;
78
+ zuiyou: Schema<boolean, boolean>;
79
+ }>;
80
+ } & {
81
+ platformFormat: Schemastery.ObjectT<{
82
+ bilibili: Schema<string, string>;
83
+ douyin: Schema<string, string>;
84
+ kuaishou: Schema<string, string>;
85
+ xigua: Schema<string, string>;
86
+ xiaohongshu: Schema<string, string>;
87
+ weibo: Schema<string, string>;
88
+ toutiao: Schema<string, string>;
89
+ pipigx: Schema<string, string>;
90
+ pipixia: Schema<string, string>;
91
+ zuiyou: Schema<string, string>;
92
+ }>;
93
+ } & {
94
+ showImageText: boolean;
95
+ showVideoUrl: boolean;
96
+ showVideoFile: boolean;
97
+ } & {
98
+ maxDescLength: number;
99
+ } & {
100
+ timeout: number;
101
+ videoSendTimeout: number;
102
+ userAgent: string;
103
+ bilibiliAccessKey: string;
104
+ } & {
105
+ ignoreSendError: boolean;
106
+ retryTimes: number;
107
+ retryInterval: number;
108
+ } & {
109
+ enableForward: boolean;
110
+ downloadVideoBeforeSend: boolean;
111
+ } & {
112
+ messageBufferDelay: number;
113
+ } & {
114
+ autoClearCacheInterval: number;
115
+ }>;
116
+ export declare function apply(ctx: any, config: any): void;