cross-seed 7.0.0-4 → 7.0.0-6
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/node_modules/@cross-seed/shared/dist/configSchema.d.ts +261 -0
- package/node_modules/@cross-seed/shared/dist/configSchema.d.ts.map +1 -0
- package/node_modules/@cross-seed/shared/dist/configSchema.js +53 -0
- package/node_modules/@cross-seed/shared/dist/configSchema.js.map +1 -0
- package/node_modules/@cross-seed/shared/dist/constants.d.ts +122 -0
- package/node_modules/@cross-seed/shared/dist/constants.d.ts.map +1 -0
- package/node_modules/@cross-seed/shared/dist/constants.js +127 -0
- package/node_modules/@cross-seed/shared/dist/constants.js.map +1 -0
- package/node_modules/@cross-seed/shared/dist/tsconfig.tsbuildinfo +1 -0
- package/node_modules/@cross-seed/shared/dist/utils.d.ts +6 -0
- package/node_modules/@cross-seed/shared/dist/utils.d.ts.map +1 -0
- package/node_modules/@cross-seed/shared/dist/utils.js +9 -0
- package/node_modules/@cross-seed/shared/dist/utils.js.map +1 -0
- package/node_modules/@cross-seed/shared/package.json +24 -0
- package/node_modules/webui/dist/assets/FieldInfo-Blx5VK3C.js +1 -0
- package/node_modules/webui/dist/assets/Page-rASRf9bM.js +1 -0
- package/node_modules/webui/dist/assets/array-field-Kn-qVFDG.js +1 -0
- package/node_modules/webui/dist/assets/badge-CSAFQREd.js +1 -0
- package/node_modules/webui/dist/assets/check-CIoZJNTj.js +1 -0
- package/node_modules/webui/dist/assets/chevron-down-BtLCFLL5.js +1 -0
- package/node_modules/webui/dist/assets/clients-S3-k5s4e.js +1 -0
- package/node_modules/webui/dist/assets/connect-_aKMn6TX.js +1 -0
- package/node_modules/webui/dist/assets/debug-DlsfZcZi.js +1 -0
- package/node_modules/webui/dist/assets/directories-CYxDKOSU.js +1 -0
- package/node_modules/webui/dist/assets/duration-field-Do-7MUTT.js +1 -0
- package/node_modules/webui/dist/assets/general-DVffJwtk.js +1 -0
- package/node_modules/webui/dist/assets/health-C-IZ_Qsb.js +1 -0
- package/node_modules/webui/dist/assets/index-BSoY4eC3.js +54 -0
- package/node_modules/webui/dist/assets/index-Bvz8F9ts.js +1 -0
- package/node_modules/webui/dist/assets/index-C-Ul7GNg.css +1 -0
- package/node_modules/webui/dist/assets/index-CGT0JUiP.js +1 -0
- package/node_modules/webui/dist/assets/jobs-BrOBiXut.js +1 -0
- package/node_modules/webui/dist/assets/library-CJLQmC87.js +1 -0
- package/node_modules/webui/dist/assets/loader-circle-Cc6fnU_c.js +1 -0
- package/node_modules/webui/dist/assets/logs-BHQU-ocg.js +1 -0
- package/node_modules/webui/dist/assets/search-DoI2ztft.js +1 -0
- package/node_modules/webui/dist/assets/select-Cbt-CgMf.js +1 -0
- package/node_modules/webui/dist/assets/select-field-B5d_UHhh.js +1 -0
- package/node_modules/webui/dist/assets/settings--SNnaUag.js +1 -0
- package/node_modules/webui/dist/assets/submit-button-CAeqqEZK.js +1 -0
- package/node_modules/webui/dist/assets/switch-Cg7Q8PKJ.js +1 -0
- package/node_modules/webui/dist/assets/switch-field-C1-Droy4.js +1 -0
- package/node_modules/webui/dist/assets/table-BbK_skLV.js +1 -0
- package/node_modules/webui/dist/assets/test-tube-D2xIe7Dw.js +1 -0
- package/node_modules/webui/dist/assets/text-field-cPfEccn3.js +1 -0
- package/node_modules/webui/dist/assets/time-DvBraUnT.js +1 -0
- package/node_modules/webui/dist/assets/trackers-D02kl_ZZ.js +7 -0
- package/node_modules/webui/dist/assets/use-form-validation-context-KOggoiK9.js +1 -0
- package/node_modules/webui/dist/assets/use-settings-form-submit-CQ5_ChHs.js +2 -0
- package/node_modules/webui/dist/assets/useQuery-DbbWcPI3.js +1 -0
- package/node_modules/webui/dist/index.html +13 -0
- package/node_modules/webui/package.json +68 -0
- package/package.json +2 -1
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Action, LinkType, MatchMode } from "./constants.js";
|
|
3
|
+
export declare const RUNTIME_CONFIG_SCHEMA: z.ZodObject<{
|
|
4
|
+
delay: z.ZodNumber;
|
|
5
|
+
torznab: z.ZodArray<z.ZodString, "many">;
|
|
6
|
+
useClientTorrents: z.ZodBoolean;
|
|
7
|
+
dataDirs: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
matchMode: z.ZodNativeEnum<typeof MatchMode>;
|
|
9
|
+
skipRecheck: z.ZodBoolean;
|
|
10
|
+
autoResumeMaxDownload: z.ZodNumber;
|
|
11
|
+
ignoreNonRelevantFilesToResume: z.ZodBoolean;
|
|
12
|
+
linkDirs: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
linkType: z.ZodNativeEnum<typeof LinkType>;
|
|
14
|
+
flatLinking: z.ZodBoolean;
|
|
15
|
+
maxDataDepth: z.ZodNumber;
|
|
16
|
+
linkCategory: z.ZodOptional<z.ZodString>;
|
|
17
|
+
torrentDir: z.ZodOptional<z.ZodString>;
|
|
18
|
+
outputDir: z.ZodString;
|
|
19
|
+
injectDir: z.ZodOptional<z.ZodString>;
|
|
20
|
+
ignoreTitles: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
includeSingleEpisodes: z.ZodBoolean;
|
|
22
|
+
verbose: z.ZodBoolean;
|
|
23
|
+
includeNonVideos: z.ZodBoolean;
|
|
24
|
+
seasonFromEpisodes: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
fuzzySizeThreshold: z.ZodNumber;
|
|
26
|
+
excludeOlder: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
excludeRecentSearch: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
action: z.ZodNativeEnum<typeof Action>;
|
|
29
|
+
torrentClients: z.ZodArray<z.ZodString, "many">;
|
|
30
|
+
duplicateCategories: z.ZodBoolean;
|
|
31
|
+
notificationWebhookUrls: z.ZodArray<z.ZodString, "many">;
|
|
32
|
+
torrents: z.ZodArray<z.ZodString, "many">;
|
|
33
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
host: z.ZodOptional<z.ZodString>;
|
|
35
|
+
basePath: z.ZodOptional<z.ZodString>;
|
|
36
|
+
searchCadence: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
rssCadence: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
snatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
searchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
searchLimit: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
blockList: z.ZodArray<z.ZodString, "many">;
|
|
42
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
43
|
+
sonarr: z.ZodArray<z.ZodString, "many">;
|
|
44
|
+
radarr: z.ZodArray<z.ZodString, "many">;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
delay: number;
|
|
47
|
+
torznab: string[];
|
|
48
|
+
useClientTorrents: boolean;
|
|
49
|
+
dataDirs: string[];
|
|
50
|
+
matchMode: MatchMode;
|
|
51
|
+
skipRecheck: boolean;
|
|
52
|
+
autoResumeMaxDownload: number;
|
|
53
|
+
ignoreNonRelevantFilesToResume: boolean;
|
|
54
|
+
linkDirs: string[];
|
|
55
|
+
linkType: LinkType;
|
|
56
|
+
flatLinking: boolean;
|
|
57
|
+
maxDataDepth: number;
|
|
58
|
+
outputDir: string;
|
|
59
|
+
includeSingleEpisodes: boolean;
|
|
60
|
+
verbose: boolean;
|
|
61
|
+
includeNonVideos: boolean;
|
|
62
|
+
fuzzySizeThreshold: number;
|
|
63
|
+
action: Action;
|
|
64
|
+
torrentClients: string[];
|
|
65
|
+
duplicateCategories: boolean;
|
|
66
|
+
notificationWebhookUrls: string[];
|
|
67
|
+
torrents: string[];
|
|
68
|
+
blockList: string[];
|
|
69
|
+
sonarr: string[];
|
|
70
|
+
radarr: string[];
|
|
71
|
+
linkCategory?: string | undefined;
|
|
72
|
+
torrentDir?: string | undefined;
|
|
73
|
+
injectDir?: string | undefined;
|
|
74
|
+
ignoreTitles?: boolean | undefined;
|
|
75
|
+
seasonFromEpisodes?: number | undefined;
|
|
76
|
+
excludeOlder?: number | undefined;
|
|
77
|
+
excludeRecentSearch?: number | undefined;
|
|
78
|
+
port?: number | undefined;
|
|
79
|
+
host?: string | undefined;
|
|
80
|
+
basePath?: string | undefined;
|
|
81
|
+
searchCadence?: number | undefined;
|
|
82
|
+
rssCadence?: number | undefined;
|
|
83
|
+
snatchTimeout?: number | undefined;
|
|
84
|
+
searchTimeout?: number | undefined;
|
|
85
|
+
searchLimit?: number | undefined;
|
|
86
|
+
apiKey?: string | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
delay: number;
|
|
89
|
+
torznab: string[];
|
|
90
|
+
useClientTorrents: boolean;
|
|
91
|
+
dataDirs: string[];
|
|
92
|
+
matchMode: MatchMode;
|
|
93
|
+
skipRecheck: boolean;
|
|
94
|
+
autoResumeMaxDownload: number;
|
|
95
|
+
ignoreNonRelevantFilesToResume: boolean;
|
|
96
|
+
linkDirs: string[];
|
|
97
|
+
linkType: LinkType;
|
|
98
|
+
flatLinking: boolean;
|
|
99
|
+
maxDataDepth: number;
|
|
100
|
+
outputDir: string;
|
|
101
|
+
includeSingleEpisodes: boolean;
|
|
102
|
+
verbose: boolean;
|
|
103
|
+
includeNonVideos: boolean;
|
|
104
|
+
fuzzySizeThreshold: number;
|
|
105
|
+
action: Action;
|
|
106
|
+
torrentClients: string[];
|
|
107
|
+
duplicateCategories: boolean;
|
|
108
|
+
notificationWebhookUrls: string[];
|
|
109
|
+
torrents: string[];
|
|
110
|
+
blockList: string[];
|
|
111
|
+
sonarr: string[];
|
|
112
|
+
radarr: string[];
|
|
113
|
+
linkCategory?: string | undefined;
|
|
114
|
+
torrentDir?: string | undefined;
|
|
115
|
+
injectDir?: string | undefined;
|
|
116
|
+
ignoreTitles?: boolean | undefined;
|
|
117
|
+
seasonFromEpisodes?: number | undefined;
|
|
118
|
+
excludeOlder?: number | undefined;
|
|
119
|
+
excludeRecentSearch?: number | undefined;
|
|
120
|
+
port?: number | undefined;
|
|
121
|
+
host?: string | undefined;
|
|
122
|
+
basePath?: string | undefined;
|
|
123
|
+
searchCadence?: number | undefined;
|
|
124
|
+
rssCadence?: number | undefined;
|
|
125
|
+
snatchTimeout?: number | undefined;
|
|
126
|
+
searchTimeout?: number | undefined;
|
|
127
|
+
searchLimit?: number | undefined;
|
|
128
|
+
apiKey?: string | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
export type RuntimeConfig = z.infer<typeof RUNTIME_CONFIG_SCHEMA>;
|
|
131
|
+
export declare const RUNTIME_CONFIG_OVERRIDES_SCHEMA: z.ZodObject<{
|
|
132
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
torznab: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
134
|
+
useClientTorrents: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
dataDirs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
136
|
+
matchMode: z.ZodOptional<z.ZodNativeEnum<typeof MatchMode>>;
|
|
137
|
+
skipRecheck: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
autoResumeMaxDownload: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
ignoreNonRelevantFilesToResume: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
linkDirs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
141
|
+
linkType: z.ZodOptional<z.ZodNativeEnum<typeof LinkType>>;
|
|
142
|
+
flatLinking: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
maxDataDepth: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
linkCategory: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
145
|
+
torrentDir: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
146
|
+
outputDir: z.ZodOptional<z.ZodString>;
|
|
147
|
+
injectDir: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
148
|
+
ignoreTitles: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
149
|
+
includeSingleEpisodes: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
includeNonVideos: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
seasonFromEpisodes: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
153
|
+
fuzzySizeThreshold: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
excludeOlder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
155
|
+
excludeRecentSearch: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
156
|
+
action: z.ZodOptional<z.ZodNativeEnum<typeof Action>>;
|
|
157
|
+
torrentClients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
158
|
+
duplicateCategories: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
notificationWebhookUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
160
|
+
torrents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
161
|
+
port: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
162
|
+
host: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
163
|
+
basePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
164
|
+
searchCadence: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
165
|
+
rssCadence: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
166
|
+
snatchTimeout: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
167
|
+
searchTimeout: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
168
|
+
searchLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
169
|
+
blockList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
170
|
+
apiKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
171
|
+
sonarr: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
172
|
+
radarr: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
delay?: number | undefined;
|
|
175
|
+
torznab?: string[] | undefined;
|
|
176
|
+
useClientTorrents?: boolean | undefined;
|
|
177
|
+
dataDirs?: string[] | undefined;
|
|
178
|
+
matchMode?: MatchMode | undefined;
|
|
179
|
+
skipRecheck?: boolean | undefined;
|
|
180
|
+
autoResumeMaxDownload?: number | undefined;
|
|
181
|
+
ignoreNonRelevantFilesToResume?: boolean | undefined;
|
|
182
|
+
linkDirs?: string[] | undefined;
|
|
183
|
+
linkType?: LinkType | undefined;
|
|
184
|
+
flatLinking?: boolean | undefined;
|
|
185
|
+
maxDataDepth?: number | undefined;
|
|
186
|
+
linkCategory?: string | undefined;
|
|
187
|
+
torrentDir?: string | undefined;
|
|
188
|
+
outputDir?: string | undefined;
|
|
189
|
+
injectDir?: string | undefined;
|
|
190
|
+
ignoreTitles?: boolean | undefined;
|
|
191
|
+
includeSingleEpisodes?: boolean | undefined;
|
|
192
|
+
verbose?: boolean | undefined;
|
|
193
|
+
includeNonVideos?: boolean | undefined;
|
|
194
|
+
seasonFromEpisodes?: number | undefined;
|
|
195
|
+
fuzzySizeThreshold?: number | undefined;
|
|
196
|
+
excludeOlder?: number | undefined;
|
|
197
|
+
excludeRecentSearch?: number | undefined;
|
|
198
|
+
action?: Action | undefined;
|
|
199
|
+
torrentClients?: string[] | undefined;
|
|
200
|
+
duplicateCategories?: boolean | undefined;
|
|
201
|
+
notificationWebhookUrls?: string[] | undefined;
|
|
202
|
+
torrents?: string[] | undefined;
|
|
203
|
+
port?: number | undefined;
|
|
204
|
+
host?: string | undefined;
|
|
205
|
+
basePath?: string | undefined;
|
|
206
|
+
searchCadence?: number | undefined;
|
|
207
|
+
rssCadence?: number | undefined;
|
|
208
|
+
snatchTimeout?: number | undefined;
|
|
209
|
+
searchTimeout?: number | undefined;
|
|
210
|
+
searchLimit?: number | undefined;
|
|
211
|
+
blockList?: string[] | undefined;
|
|
212
|
+
apiKey?: string | undefined;
|
|
213
|
+
sonarr?: string[] | undefined;
|
|
214
|
+
radarr?: string[] | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
delay?: number | undefined;
|
|
217
|
+
torznab?: string[] | undefined;
|
|
218
|
+
useClientTorrents?: boolean | undefined;
|
|
219
|
+
dataDirs?: string[] | undefined;
|
|
220
|
+
matchMode?: MatchMode | undefined;
|
|
221
|
+
skipRecheck?: boolean | undefined;
|
|
222
|
+
autoResumeMaxDownload?: number | undefined;
|
|
223
|
+
ignoreNonRelevantFilesToResume?: boolean | undefined;
|
|
224
|
+
linkDirs?: string[] | undefined;
|
|
225
|
+
linkType?: LinkType | undefined;
|
|
226
|
+
flatLinking?: boolean | undefined;
|
|
227
|
+
maxDataDepth?: number | undefined;
|
|
228
|
+
linkCategory?: string | undefined;
|
|
229
|
+
torrentDir?: string | undefined;
|
|
230
|
+
outputDir?: string | undefined;
|
|
231
|
+
injectDir?: string | undefined;
|
|
232
|
+
ignoreTitles?: boolean | undefined;
|
|
233
|
+
includeSingleEpisodes?: boolean | undefined;
|
|
234
|
+
verbose?: boolean | undefined;
|
|
235
|
+
includeNonVideos?: boolean | undefined;
|
|
236
|
+
seasonFromEpisodes?: number | undefined;
|
|
237
|
+
fuzzySizeThreshold?: number | undefined;
|
|
238
|
+
excludeOlder?: number | undefined;
|
|
239
|
+
excludeRecentSearch?: number | undefined;
|
|
240
|
+
action?: Action | undefined;
|
|
241
|
+
torrentClients?: string[] | undefined;
|
|
242
|
+
duplicateCategories?: boolean | undefined;
|
|
243
|
+
notificationWebhookUrls?: string[] | undefined;
|
|
244
|
+
torrents?: string[] | undefined;
|
|
245
|
+
port?: number | undefined;
|
|
246
|
+
host?: string | undefined;
|
|
247
|
+
basePath?: string | undefined;
|
|
248
|
+
searchCadence?: number | undefined;
|
|
249
|
+
rssCadence?: number | undefined;
|
|
250
|
+
snatchTimeout?: number | undefined;
|
|
251
|
+
searchTimeout?: number | undefined;
|
|
252
|
+
searchLimit?: number | undefined;
|
|
253
|
+
blockList?: string[] | undefined;
|
|
254
|
+
apiKey?: string | undefined;
|
|
255
|
+
sonarr?: string[] | undefined;
|
|
256
|
+
radarr?: string[] | undefined;
|
|
257
|
+
}>;
|
|
258
|
+
export type RuntimeConfigOverrides = z.infer<typeof RUNTIME_CONFIG_OVERRIDES_SCHEMA>;
|
|
259
|
+
export declare function parseRuntimeConfig(config: unknown): RuntimeConfig;
|
|
260
|
+
export declare function parseRuntimeConfigOverrides(config: unknown): Partial<RuntimeConfig>;
|
|
261
|
+
//# sourceMappingURL=configSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configSchema.d.ts","sourceRoot":"","sources":["../configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE7D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ChC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAElE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAC;AAE/E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,+BAA+B,CACtC,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,aAAa,CAEjE;AAED,wBAAgB,2BAA2B,CAC1C,MAAM,EAAE,OAAO,GACb,OAAO,CAAC,aAAa,CAAC,CAExB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Action, LinkType, MatchMode } from "./constants.js";
|
|
3
|
+
export const RUNTIME_CONFIG_SCHEMA = z.object({
|
|
4
|
+
delay: z.number().int().min(30).max(3600),
|
|
5
|
+
torznab: z.array(z.string()),
|
|
6
|
+
useClientTorrents: z.boolean(),
|
|
7
|
+
dataDirs: z.array(z.string()),
|
|
8
|
+
matchMode: z.nativeEnum(MatchMode),
|
|
9
|
+
skipRecheck: z.boolean(),
|
|
10
|
+
autoResumeMaxDownload: z.number().int().min(0).max(52_428_800),
|
|
11
|
+
ignoreNonRelevantFilesToResume: z.boolean(),
|
|
12
|
+
linkDirs: z.array(z.string()),
|
|
13
|
+
linkType: z.nativeEnum(LinkType),
|
|
14
|
+
flatLinking: z.boolean(),
|
|
15
|
+
maxDataDepth: z.number().int().min(1),
|
|
16
|
+
linkCategory: z.string().optional(),
|
|
17
|
+
torrentDir: z.string().optional(),
|
|
18
|
+
outputDir: z.string(),
|
|
19
|
+
injectDir: z.string().optional(),
|
|
20
|
+
ignoreTitles: z.boolean().optional(),
|
|
21
|
+
includeSingleEpisodes: z.boolean(),
|
|
22
|
+
verbose: z.boolean(),
|
|
23
|
+
includeNonVideos: z.boolean(),
|
|
24
|
+
seasonFromEpisodes: z.number().min(0).max(1).optional(),
|
|
25
|
+
fuzzySizeThreshold: z.number().gt(0).lte(1),
|
|
26
|
+
excludeOlder: z.number().optional(),
|
|
27
|
+
excludeRecentSearch: z.number().optional(),
|
|
28
|
+
action: z.nativeEnum(Action),
|
|
29
|
+
torrentClients: z.array(z.string()),
|
|
30
|
+
duplicateCategories: z.boolean(),
|
|
31
|
+
notificationWebhookUrls: z.array(z.string()),
|
|
32
|
+
torrents: z.array(z.string()),
|
|
33
|
+
port: z.number().int().min(1).max(65535).optional(),
|
|
34
|
+
host: z.string().optional(),
|
|
35
|
+
basePath: z.string().optional(),
|
|
36
|
+
searchCadence: z.number().optional(),
|
|
37
|
+
rssCadence: z.number().optional(),
|
|
38
|
+
snatchTimeout: z.number().optional(),
|
|
39
|
+
searchTimeout: z.number().optional(),
|
|
40
|
+
searchLimit: z.number().int().min(0).optional(),
|
|
41
|
+
blockList: z.array(z.string()),
|
|
42
|
+
apiKey: z.string().min(24).optional(),
|
|
43
|
+
sonarr: z.array(z.string()),
|
|
44
|
+
radarr: z.array(z.string()),
|
|
45
|
+
});
|
|
46
|
+
export const RUNTIME_CONFIG_OVERRIDES_SCHEMA = RUNTIME_CONFIG_SCHEMA.partial();
|
|
47
|
+
export function parseRuntimeConfig(config) {
|
|
48
|
+
return RUNTIME_CONFIG_SCHEMA.parse(config);
|
|
49
|
+
}
|
|
50
|
+
export function parseRuntimeConfigOverrides(config) {
|
|
51
|
+
return RUNTIME_CONFIG_OVERRIDES_SCHEMA.parse(config);
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=configSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE7D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACzC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC9B,QAAQ,EAAE,CAAC,CAAC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,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,+BAA+B,GAAG,qBAAqB,CAAC,OAAO,EAAE,CAAC;AAM/E,MAAM,UAAU,kBAAkB,CAAC,MAAe;IACjD,OAAO,qBAAqB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,2BAA2B,CAC1C,MAAe;IAEf,OAAO,+BAA+B,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
export declare enum Action {
|
|
2
|
+
SAVE = "save",
|
|
3
|
+
INJECT = "inject"
|
|
4
|
+
}
|
|
5
|
+
export declare enum MatchMode {
|
|
6
|
+
STRICT = "strict",
|
|
7
|
+
FLEXIBLE = "flexible",
|
|
8
|
+
PARTIAL = "partial"
|
|
9
|
+
}
|
|
10
|
+
export declare enum LinkType {
|
|
11
|
+
SYMLINK = "symlink",
|
|
12
|
+
HARDLINK = "hardlink",
|
|
13
|
+
REFLINK = "reflink",
|
|
14
|
+
REFLINK_OR_COPY = "reflinkOrCopy"
|
|
15
|
+
}
|
|
16
|
+
export declare enum BlocklistType {
|
|
17
|
+
NAME = "name",
|
|
18
|
+
NAME_REGEX = "nameRegex",
|
|
19
|
+
FOLDER = "folder",
|
|
20
|
+
FOLDER_REGEX = "folderRegex",
|
|
21
|
+
CATEGORY = "category",
|
|
22
|
+
TAG = "tag",
|
|
23
|
+
TRACKER = "tracker",
|
|
24
|
+
INFOHASH = "infoHash",
|
|
25
|
+
SIZE_BELOW = "sizeBelow",
|
|
26
|
+
SIZE_ABOVE = "sizeAbove",
|
|
27
|
+
LEGACY = "legacy"
|
|
28
|
+
}
|
|
29
|
+
export declare const NEWLINE_INDENT = "\n\t\t\t\t";
|
|
30
|
+
/**
|
|
31
|
+
* error messages and map returned upon Zod validation failure
|
|
32
|
+
*/
|
|
33
|
+
export declare const ZodErrorMessages: {
|
|
34
|
+
blocklistType: string;
|
|
35
|
+
blocklistEmptyValue: string;
|
|
36
|
+
blocklistRegex: string;
|
|
37
|
+
blocklistFolder: string;
|
|
38
|
+
blocklistTracker: string;
|
|
39
|
+
blocklistHash: string;
|
|
40
|
+
blocklistSize: string;
|
|
41
|
+
blocklistNeedsClient: string;
|
|
42
|
+
blocklistNeedsDataDirs: string;
|
|
43
|
+
vercel: string;
|
|
44
|
+
emptyString: string;
|
|
45
|
+
delayNegative: string;
|
|
46
|
+
delayUnsupported: string;
|
|
47
|
+
rssCadenceUnsupported: string;
|
|
48
|
+
searchCadenceUnsupported: string;
|
|
49
|
+
searchCadenceExcludeRecent: string;
|
|
50
|
+
excludeRecentOlder: string;
|
|
51
|
+
injectNeedsInjectMode: string;
|
|
52
|
+
autoResumeMaxDownloadUnsupported: string;
|
|
53
|
+
numberMustBeRatio: string;
|
|
54
|
+
fuzzySizeThresholdMax: string;
|
|
55
|
+
seasonFromEpisodesMin: string;
|
|
56
|
+
injectUrl: string;
|
|
57
|
+
qBitAutoTMM: string;
|
|
58
|
+
includeSingleEpisodes: string;
|
|
59
|
+
invalidOutputDir: string;
|
|
60
|
+
torrentDirAndUseClientTorrents: string;
|
|
61
|
+
needsClient: string;
|
|
62
|
+
needSearchees: string;
|
|
63
|
+
matchModeInvalid: string;
|
|
64
|
+
matchModeNeedsLinkDirs: string;
|
|
65
|
+
ensembleNeedsClient: string;
|
|
66
|
+
ensembleNeedsLinkDirs: string;
|
|
67
|
+
ensembleNeedsPartial: string;
|
|
68
|
+
linkDirsInOtherDirs: string;
|
|
69
|
+
dataDirsInOtherDirs: string;
|
|
70
|
+
torrentDirInOtherDirs: string;
|
|
71
|
+
outputDirInOtherDirs: string;
|
|
72
|
+
relativePaths: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Default config values
|
|
76
|
+
*/
|
|
77
|
+
export declare const defaultConfig: {
|
|
78
|
+
delay: number;
|
|
79
|
+
torznab: string[];
|
|
80
|
+
useClientTorrents: boolean;
|
|
81
|
+
torrentClients: never[];
|
|
82
|
+
dataDirs: string[];
|
|
83
|
+
matchMode: MatchMode;
|
|
84
|
+
skipRecheck: boolean;
|
|
85
|
+
autoResumeMaxDownload: number;
|
|
86
|
+
linkCategory: null;
|
|
87
|
+
linkDir: null;
|
|
88
|
+
linkDirs: string[];
|
|
89
|
+
linkType: LinkType;
|
|
90
|
+
flatLinking: boolean;
|
|
91
|
+
maxDataDepth: number;
|
|
92
|
+
torrentDir: null;
|
|
93
|
+
outputDir: string;
|
|
94
|
+
injectDir: string;
|
|
95
|
+
includeSingleEpisodes: boolean;
|
|
96
|
+
includeNonVideos: boolean;
|
|
97
|
+
fuzzySizeThreshold: number;
|
|
98
|
+
seasonFromEpisodes: null;
|
|
99
|
+
excludeOlder: null;
|
|
100
|
+
excludeRecentSearch: null;
|
|
101
|
+
action: Action;
|
|
102
|
+
qbittorrentUrl: null;
|
|
103
|
+
rtorrentRpcUrl: null;
|
|
104
|
+
transmissionRpcUrl: null;
|
|
105
|
+
delugeRpcUrl: null;
|
|
106
|
+
duplicateCategories: boolean;
|
|
107
|
+
notificationWebhookUrls: string[];
|
|
108
|
+
port: null;
|
|
109
|
+
host: null;
|
|
110
|
+
rssCadence: null;
|
|
111
|
+
searchCadence: null;
|
|
112
|
+
snatchTimeout: null;
|
|
113
|
+
searchTimeout: null;
|
|
114
|
+
searchLimit: null;
|
|
115
|
+
verbose: boolean;
|
|
116
|
+
torrents: string[];
|
|
117
|
+
blockList: string[];
|
|
118
|
+
apiKey: null;
|
|
119
|
+
radarr: string[];
|
|
120
|
+
sonarr: string[];
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../constants.ts"],"names":[],"mappings":"AAEA,oBAAY,MAAM;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CACjB;AAED,oBAAY,SAAS;IACpB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACnB;AAED,oBAAY,QAAQ;IACnB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,eAAe,kBAAkB;CACjC;AAED,oBAAY,aAAa;IACxB,IAAI,SAAS;IACb,UAAU,cAAc;IACxB,MAAM,WAAW;IACjB,YAAY,gBAAgB;IAC5B,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,UAAU,cAAc;IACxB,UAAU,cAAc;IACxB,MAAM,WAAW;CACjB;AACD,eAAO,MAAM,cAAc,eAAe,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgE5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CzB,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { formatAsList } from "./utils.js";
|
|
2
|
+
export var Action;
|
|
3
|
+
(function (Action) {
|
|
4
|
+
Action["SAVE"] = "save";
|
|
5
|
+
Action["INJECT"] = "inject";
|
|
6
|
+
})(Action || (Action = {}));
|
|
7
|
+
export var MatchMode;
|
|
8
|
+
(function (MatchMode) {
|
|
9
|
+
MatchMode["STRICT"] = "strict";
|
|
10
|
+
MatchMode["FLEXIBLE"] = "flexible";
|
|
11
|
+
MatchMode["PARTIAL"] = "partial";
|
|
12
|
+
})(MatchMode || (MatchMode = {}));
|
|
13
|
+
export var LinkType;
|
|
14
|
+
(function (LinkType) {
|
|
15
|
+
LinkType["SYMLINK"] = "symlink";
|
|
16
|
+
LinkType["HARDLINK"] = "hardlink";
|
|
17
|
+
LinkType["REFLINK"] = "reflink";
|
|
18
|
+
LinkType["REFLINK_OR_COPY"] = "reflinkOrCopy";
|
|
19
|
+
})(LinkType || (LinkType = {}));
|
|
20
|
+
export var BlocklistType;
|
|
21
|
+
(function (BlocklistType) {
|
|
22
|
+
BlocklistType["NAME"] = "name";
|
|
23
|
+
BlocklistType["NAME_REGEX"] = "nameRegex";
|
|
24
|
+
BlocklistType["FOLDER"] = "folder";
|
|
25
|
+
BlocklistType["FOLDER_REGEX"] = "folderRegex";
|
|
26
|
+
BlocklistType["CATEGORY"] = "category";
|
|
27
|
+
BlocklistType["TAG"] = "tag";
|
|
28
|
+
BlocklistType["TRACKER"] = "tracker";
|
|
29
|
+
BlocklistType["INFOHASH"] = "infoHash";
|
|
30
|
+
BlocklistType["SIZE_BELOW"] = "sizeBelow";
|
|
31
|
+
BlocklistType["SIZE_ABOVE"] = "sizeAbove";
|
|
32
|
+
BlocklistType["LEGACY"] = "legacy";
|
|
33
|
+
})(BlocklistType || (BlocklistType = {}));
|
|
34
|
+
export const NEWLINE_INDENT = "\n\t\t\t\t";
|
|
35
|
+
/**
|
|
36
|
+
* error messages and map returned upon Zod validation failure
|
|
37
|
+
*/
|
|
38
|
+
export const ZodErrorMessages = {
|
|
39
|
+
blocklistType: `Blocklist item does not start with a valid prefix. Must be of ${formatAsList(Object.values(BlocklistType), { sort: false, style: "narrow", type: "unit" })}`,
|
|
40
|
+
blocklistEmptyValue: `Blocklist item must have a value after the colon.`,
|
|
41
|
+
blocklistRegex: `Blocklist regex is not a valid regex.`,
|
|
42
|
+
blocklistFolder: `Blocklist folder must not contain path separators`,
|
|
43
|
+
blocklistTracker: `Blocklist tracker is not a valid URL host. If URL is https://user:pass@tracker.example.com:8080/announce/key, you must use "tracker:tracker.example.com:8080"`,
|
|
44
|
+
blocklistHash: `Blocklist hash must be 40 characters and alphanumeric`,
|
|
45
|
+
blocklistSize: `Blocklist size must be an integer for the number of bytes. You can only have one sizeBelow, one sizeAbove, and sizeBelow <= sizeAbove.`,
|
|
46
|
+
blocklistNeedsClient: `Blocklist ${BlocklistType.CATEGORY}:, ${BlocklistType.TAG}:, and ${BlocklistType.TRACKER}: requires torrentDir or useClientTorrents.`,
|
|
47
|
+
blocklistNeedsDataDirs: `Blocklist ${BlocklistType.FOLDER}: and ${BlocklistType.FOLDER_REGEX}: only applies to searchees from dataDirs.`,
|
|
48
|
+
vercel: "format does not follow vercel's `ms` style ( https://github.com/vercel/ms#examples )",
|
|
49
|
+
emptyString: "cannot have an empty string. If you want to unset it, use null or undefined.",
|
|
50
|
+
delayNegative: "delay is in seconds, you can't travel back in time.",
|
|
51
|
+
delayUnsupported: `delay must be 30 seconds to 1 hour.${NEWLINE_INDENT}To even out search loads please see the following documentation:${NEWLINE_INDENT}(https://www.cross-seed.org/docs/basics/options#delay)`,
|
|
52
|
+
rssCadenceUnsupported: "rssCadence must be 10-120 minutes",
|
|
53
|
+
searchCadenceUnsupported: "searchCadence must be at least 1 day.",
|
|
54
|
+
searchCadenceExcludeRecent: "excludeRecentSearch must be at least 3x searchCadence.",
|
|
55
|
+
excludeRecentOlder: "excludeOlder and excludeRecentSearch must be defined for searching. excludeOlder must be 2-5x excludeRecentSearch.",
|
|
56
|
+
injectNeedsInjectMode: "`cross-seed inject` requires the 'inject' action.",
|
|
57
|
+
autoResumeMaxDownloadUnsupported: "autoResumeMaxDownload must be an integer of bytes between between 0 and 52428800 (50 MiB).",
|
|
58
|
+
numberMustBeRatio: "fuzzySizeThreshold and seasonFromEpisodes must be between 0 and 1.",
|
|
59
|
+
fuzzySizeThresholdMax: "fuzzySizeThreshold cannot be greater than 0.1 when using searchCadence or rssCadence.",
|
|
60
|
+
seasonFromEpisodesMin: "seasonFromEpisodes cannot be less than 0.5 when using searchCadence or rssCadence",
|
|
61
|
+
injectUrl: "You need to specify rtorrentRpcUrl, transmissionRpcUrl, qbittorrentUrl, or delugeRpcUrl when using 'inject'",
|
|
62
|
+
qBitAutoTMM: "If using Automatic Torrent Management in qBittorrent, please read: https://www.cross-seed.org/docs/v6-migration#new-folder-structure-for-links",
|
|
63
|
+
includeSingleEpisodes: "includeSingleEpisodes is not recommended when using announce, please read: https://www.cross-seed.org/docs/v6-migration#updated-includesingleepisodes-behavior",
|
|
64
|
+
invalidOutputDir: "outputDir should only contain .torrent files, cross-seed will populate and manage (https://www.cross-seed.org/docs/basics/options#outputdir)",
|
|
65
|
+
torrentDirAndUseClientTorrents: "You cannot have both torrentDir and useClientTorrents.",
|
|
66
|
+
needsClient: "You need to have a client configured for useClientTorrents.",
|
|
67
|
+
needSearchees: "You need to have torrentDir, useClientTorrents or dataDirs for search/rss/announce matching to work.",
|
|
68
|
+
matchModeInvalid: `matchMode must be one of: ${formatAsList(Object.values(MatchMode).map((m) => `"${m}"`), { sort: false, style: "narrow", type: "unit" })}`,
|
|
69
|
+
matchModeNeedsLinkDirs: `When using action: "inject", you need to set linkDirs for flexible and partial matchMode (https://www.cross-seed.org/docs/tutorials/linking). If you cannot use linking, use matchMode: "strict"`,
|
|
70
|
+
ensembleNeedsClient: "seasonFromEpisodes requires a torrent client to connect to when using torrentDir or useClientTorrents.",
|
|
71
|
+
ensembleNeedsLinkDirs: "When using action 'inject', you need to set linkDirs for seasonFromEpisodes (https://www.cross-seed.org/docs/tutorials/linking). If you cannot use linking, disable this option by using seasonFromEpisodes: null",
|
|
72
|
+
ensembleNeedsPartial: "seasonFromEpisodes requires matchMode partial if enabled and value is below 1.",
|
|
73
|
+
linkDirsInOtherDirs: "You cannot have your linkDirs inside of your torrentDir/dataDirs/outputDir. Please adjust your paths to correct this.",
|
|
74
|
+
dataDirsInOtherDirs: "You cannot have your dataDirs inside of your torrentDir/linkDirs/outputDir. Please adjust your paths to correct this.",
|
|
75
|
+
torrentDirInOtherDirs: "You cannot have your torrentDir inside of your dataDirs/linkDirs/outputDir. Please adjust your paths to correct this.",
|
|
76
|
+
outputDirInOtherDirs: "You cannot have your outputDir inside of your torrentDir/dataDirs/linkDirs. Please adjust your paths to correct this.",
|
|
77
|
+
relativePaths: "Absolute paths for torrentDir, linkDirs, dataDirs, and outputDir are recommended.",
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Default config values
|
|
81
|
+
*/
|
|
82
|
+
export const defaultConfig = {
|
|
83
|
+
delay: 30,
|
|
84
|
+
torznab: [""],
|
|
85
|
+
useClientTorrents: false,
|
|
86
|
+
torrentClients: [],
|
|
87
|
+
dataDirs: [""],
|
|
88
|
+
matchMode: MatchMode.STRICT,
|
|
89
|
+
skipRecheck: true,
|
|
90
|
+
autoResumeMaxDownload: 52428800,
|
|
91
|
+
linkCategory: null,
|
|
92
|
+
linkDir: null,
|
|
93
|
+
linkDirs: [""],
|
|
94
|
+
linkType: LinkType.HARDLINK,
|
|
95
|
+
flatLinking: false,
|
|
96
|
+
maxDataDepth: 2,
|
|
97
|
+
torrentDir: null,
|
|
98
|
+
outputDir: "",
|
|
99
|
+
injectDir: "",
|
|
100
|
+
includeSingleEpisodes: false,
|
|
101
|
+
includeNonVideos: false,
|
|
102
|
+
fuzzySizeThreshold: 1,
|
|
103
|
+
seasonFromEpisodes: null,
|
|
104
|
+
excludeOlder: null,
|
|
105
|
+
excludeRecentSearch: null,
|
|
106
|
+
action: Action.INJECT,
|
|
107
|
+
qbittorrentUrl: null,
|
|
108
|
+
rtorrentRpcUrl: null,
|
|
109
|
+
transmissionRpcUrl: null,
|
|
110
|
+
delugeRpcUrl: null,
|
|
111
|
+
duplicateCategories: false,
|
|
112
|
+
notificationWebhookUrls: [""],
|
|
113
|
+
port: null,
|
|
114
|
+
host: null,
|
|
115
|
+
rssCadence: null,
|
|
116
|
+
searchCadence: null,
|
|
117
|
+
snatchTimeout: null,
|
|
118
|
+
searchTimeout: null,
|
|
119
|
+
searchLimit: null,
|
|
120
|
+
verbose: false,
|
|
121
|
+
torrents: [""],
|
|
122
|
+
blockList: [""],
|
|
123
|
+
apiKey: null,
|
|
124
|
+
radarr: [""],
|
|
125
|
+
sonarr: [""],
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAN,IAAY,MAGX;AAHD,WAAY,MAAM;IACjB,uBAAa,CAAA;IACb,2BAAiB,CAAA;AAClB,CAAC,EAHW,MAAM,KAAN,MAAM,QAGjB;AAED,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACpB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,gCAAmB,CAAA;AACpB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAED,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IACnB,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;IACrB,+BAAmB,CAAA;IACnB,6CAAiC,CAAA;AAClC,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAED,MAAM,CAAN,IAAY,aAYX;AAZD,WAAY,aAAa;IACxB,8BAAa,CAAA;IACb,yCAAwB,CAAA;IACxB,kCAAiB,CAAA;IACjB,6CAA4B,CAAA;IAC5B,sCAAqB,CAAA;IACrB,4BAAW,CAAA;IACX,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,yCAAwB,CAAA;IACxB,yCAAwB,CAAA;IACxB,kCAAiB,CAAA;AAClB,CAAC,EAZW,aAAa,KAAb,aAAa,QAYxB;AACD,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,aAAa,EAAE,iEAAiE,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE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aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,CAAC,EAAE,CAAC;IACd,SAAS,EAAE,CAAC,EAAE,CAAC;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,EAAE,CAAC;IACZ,MAAM,EAAE,CAAC,EAAE,CAAC;CACZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/zod/v3/helpers/typealiases.d.cts","../../../node_modules/zod/v3/helpers/util.d.cts","../../../node_modules/zod/v3/index.d.cts","../../../node_modules/zod/v3/zoderror.d.cts","../../../node_modules/zod/v3/locales/en.d.cts","../../../node_modules/zod/v3/errors.d.cts","../../../node_modules/zod/v3/helpers/parseutil.d.cts","../../../node_modules/zod/v3/helpers/enumutil.d.cts","../../../node_modules/zod/v3/helpers/errorutil.d.cts","../../../node_modules/zod/v3/helpers/partialutil.d.cts","../../../node_modules/zod/v3/standard-schema.d.cts","../../../node_modules/zod/v3/types.d.cts","../../../node_modules/zod/v3/external.d.cts","../../../node_modules/zod/index.d.cts","../utils.ts","../constants.ts","../configschema.ts"],"fileIdsList":[[74],[65,66],[62,63,65,67,68,73],[63,65],[73],[65],[62,63,65,68,69,70,71,72],[62,63,64],[75,77],[76]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","impliedFormat":1},{"version":"08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","impliedFormat":1},{"version":"f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","impliedFormat":1},{"version":"e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","impliedFormat":1},{"version":"dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","impliedFormat":1},{"version":"a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","impliedFormat":1},{"version":"5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9","impliedFormat":1},{"version":"f3102cd25142da0d9b968075d5a60c4abf0ff8b799bdacf23165d8e40813f1ca","signature":"9ad406a7340ab64e58bf298fbd162409ea5916e487d19976756d8a2c23afac31","impliedFormat":99},{"version":"023e33424568377204afdd125eaa07f450f6e135ce8d34d6e104a2985cf3733c","signature":"f7be997d55a2afab883d090d242e3b7815e1239b106fc284df3e2ff7ce1f7506","impliedFormat":99},{"version":"c9376a4c821d78b04ec255eb71f8e58cb9e0d790be139e58a75af606ad35ca5e","signature":"f0812317b158cef51af7f6e20497175b1f5814728eca60bf5366931995561100","impliedFormat":99}],"root":[[76,78]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":199,"outDir":"./","rootDir":"..","sourceMap":true,"strictNullChecks":true,"target":9},"referencedMap":[[75,1],[67,2],[74,3],[68,4],[71,5],[64,1],[66,6],[73,7],[65,8],[78,9],[77,10]],"latestChangedDtsFile":"./configSchema.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAC3B,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE;IACR,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC;IAC7B,IAAI,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC;CAC3B,UAOD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function formatAsList(strings, options) {
|
|
2
|
+
if (options.sort)
|
|
3
|
+
strings.sort((a, b) => a.localeCompare(b));
|
|
4
|
+
return new Intl.ListFormat("en", {
|
|
5
|
+
style: options.style ?? "long",
|
|
6
|
+
type: options.type ?? "conjunction",
|
|
7
|
+
}).format(strings);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,YAAY,CAC3B,OAAiB,EACjB,OAIC;IAED,IAAI,OAAO,CAAC,IAAI;QAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;QAChC,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,MAAM;QAC9B,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,aAAa;KACnC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACpB,CAAC"}
|