tsarr 1.7.0 → 1.7.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/clients/prowlarr.d.ts +105 -1
- package/dist/clients/prowlarr.d.ts.map +1 -1
- package/dist/clients/prowlarr.js +175 -0
- package/dist/index.js +6 -6
- package/dist/tsarr-1.7.1.tgz +0 -0
- package/package.json +1 -1
- package/dist/tsarr-1.7.0.tgz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ServarrClientConfig } from '../core/types.js';
|
|
2
2
|
import * as ProwlarrApi from '../generated/prowlarr/index.js';
|
|
3
|
-
import type { ApplicationResource, CommandResource, DevelopmentConfigResource, HostConfigResource, IndexerResource, NotificationResource, TagResource, UiConfigResource } from '../generated/prowlarr/types.gen.js';
|
|
3
|
+
import type { ApplicationResource, CommandResource, DevelopmentConfigResource, DownloadClientResource, HostConfigResource, IndexerResource, NotificationResource, TagResource, UiConfigResource } from '../generated/prowlarr/types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Prowlarr API client for indexer management
|
|
6
6
|
*
|
|
@@ -90,6 +90,110 @@ export declare class ProwlarrClient {
|
|
|
90
90
|
request: Request;
|
|
91
91
|
response: Response;
|
|
92
92
|
}>;
|
|
93
|
+
/**
|
|
94
|
+
* Get all configured download clients
|
|
95
|
+
*/
|
|
96
|
+
getDownloadClients(): Promise<({
|
|
97
|
+
data: undefined;
|
|
98
|
+
error: unknown;
|
|
99
|
+
} | {
|
|
100
|
+
data: ProwlarrApi.DownloadClientResource[];
|
|
101
|
+
error: undefined;
|
|
102
|
+
}) & {
|
|
103
|
+
request: Request;
|
|
104
|
+
response: Response;
|
|
105
|
+
}>;
|
|
106
|
+
/**
|
|
107
|
+
* Get a specific download client by ID
|
|
108
|
+
*/
|
|
109
|
+
getDownloadClient(id: number): Promise<({
|
|
110
|
+
data: undefined;
|
|
111
|
+
error: unknown;
|
|
112
|
+
} | {
|
|
113
|
+
data: ProwlarrApi.DownloadClientResource;
|
|
114
|
+
error: undefined;
|
|
115
|
+
}) & {
|
|
116
|
+
request: Request;
|
|
117
|
+
response: Response;
|
|
118
|
+
}>;
|
|
119
|
+
/**
|
|
120
|
+
* Add a new download client
|
|
121
|
+
*/
|
|
122
|
+
addDownloadClient(downloadClient: DownloadClientResource): Promise<({
|
|
123
|
+
data: undefined;
|
|
124
|
+
error: unknown;
|
|
125
|
+
} | {
|
|
126
|
+
data: ProwlarrApi.DownloadClientResource;
|
|
127
|
+
error: undefined;
|
|
128
|
+
}) & {
|
|
129
|
+
request: Request;
|
|
130
|
+
response: Response;
|
|
131
|
+
}>;
|
|
132
|
+
/**
|
|
133
|
+
* Update an existing download client
|
|
134
|
+
*/
|
|
135
|
+
updateDownloadClient(id: number, downloadClient: DownloadClientResource): Promise<({
|
|
136
|
+
data: undefined;
|
|
137
|
+
error: unknown;
|
|
138
|
+
} | {
|
|
139
|
+
data: ProwlarrApi.DownloadClientResource;
|
|
140
|
+
error: undefined;
|
|
141
|
+
}) & {
|
|
142
|
+
request: Request;
|
|
143
|
+
response: Response;
|
|
144
|
+
}>;
|
|
145
|
+
/**
|
|
146
|
+
* Delete a download client
|
|
147
|
+
*/
|
|
148
|
+
deleteDownloadClient(id: number): Promise<({
|
|
149
|
+
data: undefined;
|
|
150
|
+
error: unknown;
|
|
151
|
+
} | {
|
|
152
|
+
data: unknown;
|
|
153
|
+
error: undefined;
|
|
154
|
+
}) & {
|
|
155
|
+
request: Request;
|
|
156
|
+
response: Response;
|
|
157
|
+
}>;
|
|
158
|
+
/**
|
|
159
|
+
* Test a download client configuration
|
|
160
|
+
*/
|
|
161
|
+
testDownloadClient(downloadClient: DownloadClientResource): Promise<({
|
|
162
|
+
data: undefined;
|
|
163
|
+
error: unknown;
|
|
164
|
+
} | {
|
|
165
|
+
data: unknown;
|
|
166
|
+
error: undefined;
|
|
167
|
+
}) & {
|
|
168
|
+
request: Request;
|
|
169
|
+
response: Response;
|
|
170
|
+
}>;
|
|
171
|
+
/**
|
|
172
|
+
* Test all download clients
|
|
173
|
+
*/
|
|
174
|
+
testAllDownloadClients(): Promise<({
|
|
175
|
+
data: undefined;
|
|
176
|
+
error: unknown;
|
|
177
|
+
} | {
|
|
178
|
+
data: unknown;
|
|
179
|
+
error: undefined;
|
|
180
|
+
}) & {
|
|
181
|
+
request: Request;
|
|
182
|
+
response: Response;
|
|
183
|
+
}>;
|
|
184
|
+
/**
|
|
185
|
+
* Get download client schema for available download client types
|
|
186
|
+
*/
|
|
187
|
+
getDownloadClientSchema(): Promise<({
|
|
188
|
+
data: undefined;
|
|
189
|
+
error: unknown;
|
|
190
|
+
} | {
|
|
191
|
+
data: ProwlarrApi.DownloadClientResource[];
|
|
192
|
+
error: undefined;
|
|
193
|
+
}) & {
|
|
194
|
+
request: Request;
|
|
195
|
+
response: Response;
|
|
196
|
+
}>;
|
|
93
197
|
/**
|
|
94
198
|
* Search across all or specific indexers
|
|
95
199
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prowlarr.d.ts","sourceRoot":"","sources":["../../src/clients/prowlarr.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAK,WAAW,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;;;;;;GAYG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,YAAY,CAAyC;gBAEjD,MAAM,EAAE,mBAAmB;IAWjC,eAAe;;;;;;;;;;IAIf,SAAS;;;;;;;;;;IAMf;;OAEG;IACG,WAAW;;;;;;;;;;IAIX,UAAU,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;IAIrB,UAAU,CAAC,OAAO,EAAE,e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;;;;;;;IAIhC;;OAEG;IACG,eAAe,CAAC,YAAY,EAAE,oBAAoB;;;;;;;;;;IAIxD;;OAEG;IACG,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,oBAAoB;;;;;;;;;;IAIvE;;OAEG;IACG,kBAAkB,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;IAInC;;OAEG;IACG,qBAAqB;;;;;;;;;;IAI3B;;OAEG;IACG,gBAAgB,CAAC,YAAY,EAAE,oBAAoB;;;;;;;;;;IAIzD;;OAEG;IACG,oBAAoB;;;;;;;;;;IAI1B,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,mBAAmB,CAAC;;;;;;CAMrD"}
|
package/dist/clients/prowlarr.js
CHANGED
|
@@ -1110,6 +1110,154 @@ var getApiV1ConfigDevelopment = (options) => {
|
|
|
1110
1110
|
...options
|
|
1111
1111
|
});
|
|
1112
1112
|
};
|
|
1113
|
+
var deleteApiV1DownloadclientById = (options) => {
|
|
1114
|
+
return (options.client ?? client).delete({
|
|
1115
|
+
security: [
|
|
1116
|
+
{
|
|
1117
|
+
name: "X-Api-Key",
|
|
1118
|
+
type: "apiKey"
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
in: "query",
|
|
1122
|
+
name: "apikey",
|
|
1123
|
+
type: "apiKey"
|
|
1124
|
+
}
|
|
1125
|
+
],
|
|
1126
|
+
url: "/api/v1/downloadclient/{id}",
|
|
1127
|
+
...options
|
|
1128
|
+
});
|
|
1129
|
+
};
|
|
1130
|
+
var getApiV1DownloadclientById = (options) => {
|
|
1131
|
+
return (options.client ?? client).get({
|
|
1132
|
+
security: [
|
|
1133
|
+
{
|
|
1134
|
+
name: "X-Api-Key",
|
|
1135
|
+
type: "apiKey"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
in: "query",
|
|
1139
|
+
name: "apikey",
|
|
1140
|
+
type: "apiKey"
|
|
1141
|
+
}
|
|
1142
|
+
],
|
|
1143
|
+
url: "/api/v1/downloadclient/{id}",
|
|
1144
|
+
...options
|
|
1145
|
+
});
|
|
1146
|
+
};
|
|
1147
|
+
var putApiV1DownloadclientById = (options) => {
|
|
1148
|
+
return (options.client ?? client).put({
|
|
1149
|
+
security: [
|
|
1150
|
+
{
|
|
1151
|
+
name: "X-Api-Key",
|
|
1152
|
+
type: "apiKey"
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
in: "query",
|
|
1156
|
+
name: "apikey",
|
|
1157
|
+
type: "apiKey"
|
|
1158
|
+
}
|
|
1159
|
+
],
|
|
1160
|
+
url: "/api/v1/downloadclient/{id}",
|
|
1161
|
+
...options,
|
|
1162
|
+
headers: {
|
|
1163
|
+
"Content-Type": "application/json",
|
|
1164
|
+
...options.headers
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
};
|
|
1168
|
+
var getApiV1Downloadclient = (options) => {
|
|
1169
|
+
return (options?.client ?? client).get({
|
|
1170
|
+
security: [
|
|
1171
|
+
{
|
|
1172
|
+
name: "X-Api-Key",
|
|
1173
|
+
type: "apiKey"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
in: "query",
|
|
1177
|
+
name: "apikey",
|
|
1178
|
+
type: "apiKey"
|
|
1179
|
+
}
|
|
1180
|
+
],
|
|
1181
|
+
url: "/api/v1/downloadclient",
|
|
1182
|
+
...options
|
|
1183
|
+
});
|
|
1184
|
+
};
|
|
1185
|
+
var postApiV1Downloadclient = (options) => {
|
|
1186
|
+
return (options?.client ?? client).post({
|
|
1187
|
+
security: [
|
|
1188
|
+
{
|
|
1189
|
+
name: "X-Api-Key",
|
|
1190
|
+
type: "apiKey"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
in: "query",
|
|
1194
|
+
name: "apikey",
|
|
1195
|
+
type: "apiKey"
|
|
1196
|
+
}
|
|
1197
|
+
],
|
|
1198
|
+
url: "/api/v1/downloadclient",
|
|
1199
|
+
...options,
|
|
1200
|
+
headers: {
|
|
1201
|
+
"Content-Type": "application/json",
|
|
1202
|
+
...options?.headers
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1205
|
+
};
|
|
1206
|
+
var getApiV1DownloadclientSchema = (options) => {
|
|
1207
|
+
return (options?.client ?? client).get({
|
|
1208
|
+
security: [
|
|
1209
|
+
{
|
|
1210
|
+
name: "X-Api-Key",
|
|
1211
|
+
type: "apiKey"
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
in: "query",
|
|
1215
|
+
name: "apikey",
|
|
1216
|
+
type: "apiKey"
|
|
1217
|
+
}
|
|
1218
|
+
],
|
|
1219
|
+
url: "/api/v1/downloadclient/schema",
|
|
1220
|
+
...options
|
|
1221
|
+
});
|
|
1222
|
+
};
|
|
1223
|
+
var postApiV1DownloadclientTest = (options) => {
|
|
1224
|
+
return (options?.client ?? client).post({
|
|
1225
|
+
security: [
|
|
1226
|
+
{
|
|
1227
|
+
name: "X-Api-Key",
|
|
1228
|
+
type: "apiKey"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
in: "query",
|
|
1232
|
+
name: "apikey",
|
|
1233
|
+
type: "apiKey"
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
1236
|
+
url: "/api/v1/downloadclient/test",
|
|
1237
|
+
...options,
|
|
1238
|
+
headers: {
|
|
1239
|
+
"Content-Type": "application/json",
|
|
1240
|
+
...options?.headers
|
|
1241
|
+
}
|
|
1242
|
+
});
|
|
1243
|
+
};
|
|
1244
|
+
var postApiV1DownloadclientTestall = (options) => {
|
|
1245
|
+
return (options?.client ?? client).post({
|
|
1246
|
+
security: [
|
|
1247
|
+
{
|
|
1248
|
+
name: "X-Api-Key",
|
|
1249
|
+
type: "apiKey"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
in: "query",
|
|
1253
|
+
name: "apikey",
|
|
1254
|
+
type: "apiKey"
|
|
1255
|
+
}
|
|
1256
|
+
],
|
|
1257
|
+
url: "/api/v1/downloadclient/testall",
|
|
1258
|
+
...options
|
|
1259
|
+
});
|
|
1260
|
+
};
|
|
1113
1261
|
var getApiV1Health = (options) => {
|
|
1114
1262
|
return (options?.client ?? client).get({
|
|
1115
1263
|
security: [
|
|
@@ -1811,6 +1959,33 @@ class ProwlarrClient {
|
|
|
1811
1959
|
async deleteIndexer(id) {
|
|
1812
1960
|
return deleteApiV1IndexerById({ path: { id } });
|
|
1813
1961
|
}
|
|
1962
|
+
async getDownloadClients() {
|
|
1963
|
+
return getApiV1Downloadclient();
|
|
1964
|
+
}
|
|
1965
|
+
async getDownloadClient(id) {
|
|
1966
|
+
return getApiV1DownloadclientById({ path: { id } });
|
|
1967
|
+
}
|
|
1968
|
+
async addDownloadClient(downloadClient) {
|
|
1969
|
+
return postApiV1Downloadclient({ body: downloadClient });
|
|
1970
|
+
}
|
|
1971
|
+
async updateDownloadClient(id, downloadClient) {
|
|
1972
|
+
return putApiV1DownloadclientById({
|
|
1973
|
+
path: { id: String(id) },
|
|
1974
|
+
body: downloadClient
|
|
1975
|
+
});
|
|
1976
|
+
}
|
|
1977
|
+
async deleteDownloadClient(id) {
|
|
1978
|
+
return deleteApiV1DownloadclientById({ path: { id } });
|
|
1979
|
+
}
|
|
1980
|
+
async testDownloadClient(downloadClient) {
|
|
1981
|
+
return postApiV1DownloadclientTest({ body: downloadClient });
|
|
1982
|
+
}
|
|
1983
|
+
async testAllDownloadClients() {
|
|
1984
|
+
return postApiV1DownloadclientTestall();
|
|
1985
|
+
}
|
|
1986
|
+
async getDownloadClientSchema() {
|
|
1987
|
+
return getApiV1DownloadclientSchema();
|
|
1988
|
+
}
|
|
1814
1989
|
async search(query, indexerIds) {
|
|
1815
1990
|
return getApiV1Search({
|
|
1816
1991
|
query: {
|