tsarr 1.3.0 → 1.5.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/README.md +5 -6
- package/dist/clients/lidarr.d.ts +872 -1
- package/dist/clients/lidarr.d.ts.map +1 -1
- package/dist/clients/lidarr.js +1496 -72
- package/dist/clients/prowlarr.d.ts +560 -1
- package/dist/clients/prowlarr.d.ts.map +1 -1
- package/dist/clients/prowlarr.js +929 -21
- package/dist/clients/radarr.d.ts +391 -1
- package/dist/clients/radarr.d.ts.map +1 -1
- package/dist/clients/radarr.js +624 -0
- package/dist/clients/readarr.d.ts +1093 -1
- package/dist/clients/readarr.d.ts.map +1 -1
- package/dist/clients/readarr.js +1806 -19
- package/dist/clients/sonarr.d.ts +1059 -6
- package/dist/clients/sonarr.d.ts.map +1 -1
- package/dist/clients/sonarr.js +1732 -34
- package/dist/generated/sonarr/sdk.gen.d.ts +245 -13
- package/dist/generated/sonarr/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sonarr/types.gen.d.ts +4251 -115
- package/dist/generated/sonarr/types.gen.d.ts.map +1 -1
- package/dist/index.js +16 -16
- package/dist/tsarr-1.5.0.tgz +0 -0
- package/package.json +1 -1
- package/dist/tsarr-1.3.0.tgz +0 -0
package/dist/clients/radarr.js
CHANGED
|
@@ -801,6 +801,74 @@ var createClient = (config = {}) => {
|
|
|
801
801
|
var client = createClient(createConfig());
|
|
802
802
|
|
|
803
803
|
// src/generated/radarr/sdk.gen.ts
|
|
804
|
+
var getApiV3SystemBackup = (options) => {
|
|
805
|
+
return (options?.client ?? client).get({
|
|
806
|
+
security: [
|
|
807
|
+
{
|
|
808
|
+
name: "X-Api-Key",
|
|
809
|
+
type: "apiKey"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
in: "query",
|
|
813
|
+
name: "apikey",
|
|
814
|
+
type: "apiKey"
|
|
815
|
+
}
|
|
816
|
+
],
|
|
817
|
+
url: "/api/v3/system/backup",
|
|
818
|
+
...options
|
|
819
|
+
});
|
|
820
|
+
};
|
|
821
|
+
var deleteApiV3SystemBackupById = (options) => {
|
|
822
|
+
return (options.client ?? client).delete({
|
|
823
|
+
security: [
|
|
824
|
+
{
|
|
825
|
+
name: "X-Api-Key",
|
|
826
|
+
type: "apiKey"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
in: "query",
|
|
830
|
+
name: "apikey",
|
|
831
|
+
type: "apiKey"
|
|
832
|
+
}
|
|
833
|
+
],
|
|
834
|
+
url: "/api/v3/system/backup/{id}",
|
|
835
|
+
...options
|
|
836
|
+
});
|
|
837
|
+
};
|
|
838
|
+
var postApiV3SystemBackupRestoreById = (options) => {
|
|
839
|
+
return (options.client ?? client).post({
|
|
840
|
+
security: [
|
|
841
|
+
{
|
|
842
|
+
name: "X-Api-Key",
|
|
843
|
+
type: "apiKey"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
in: "query",
|
|
847
|
+
name: "apikey",
|
|
848
|
+
type: "apiKey"
|
|
849
|
+
}
|
|
850
|
+
],
|
|
851
|
+
url: "/api/v3/system/backup/restore/{id}",
|
|
852
|
+
...options
|
|
853
|
+
});
|
|
854
|
+
};
|
|
855
|
+
var postApiV3SystemBackupRestoreUpload = (options) => {
|
|
856
|
+
return (options?.client ?? client).post({
|
|
857
|
+
security: [
|
|
858
|
+
{
|
|
859
|
+
name: "X-Api-Key",
|
|
860
|
+
type: "apiKey"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
in: "query",
|
|
864
|
+
name: "apikey",
|
|
865
|
+
type: "apiKey"
|
|
866
|
+
}
|
|
867
|
+
],
|
|
868
|
+
url: "/api/v3/system/backup/restore/upload",
|
|
869
|
+
...options
|
|
870
|
+
});
|
|
871
|
+
};
|
|
804
872
|
var getApiV3Calendar = (options) => {
|
|
805
873
|
return (options?.client ?? client).get({
|
|
806
874
|
security: [
|
|
@@ -1025,6 +1093,23 @@ var getApiV3CustomformatSchema = (options) => {
|
|
|
1025
1093
|
...options
|
|
1026
1094
|
});
|
|
1027
1095
|
};
|
|
1096
|
+
var getApiV3Diskspace = (options) => {
|
|
1097
|
+
return (options?.client ?? client).get({
|
|
1098
|
+
security: [
|
|
1099
|
+
{
|
|
1100
|
+
name: "X-Api-Key",
|
|
1101
|
+
type: "apiKey"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
in: "query",
|
|
1105
|
+
name: "apikey",
|
|
1106
|
+
type: "apiKey"
|
|
1107
|
+
}
|
|
1108
|
+
],
|
|
1109
|
+
url: "/api/v3/diskspace",
|
|
1110
|
+
...options
|
|
1111
|
+
});
|
|
1112
|
+
};
|
|
1028
1113
|
var getApiV3Downloadclient = (options) => {
|
|
1029
1114
|
return (options?.client ?? client).get({
|
|
1030
1115
|
security: [
|
|
@@ -1334,6 +1419,61 @@ var postApiV3HistoryFailedById = (options) => {
|
|
|
1334
1419
|
...options
|
|
1335
1420
|
});
|
|
1336
1421
|
};
|
|
1422
|
+
var getApiV3ConfigHost = (options) => {
|
|
1423
|
+
return (options?.client ?? client).get({
|
|
1424
|
+
security: [
|
|
1425
|
+
{
|
|
1426
|
+
name: "X-Api-Key",
|
|
1427
|
+
type: "apiKey"
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
in: "query",
|
|
1431
|
+
name: "apikey",
|
|
1432
|
+
type: "apiKey"
|
|
1433
|
+
}
|
|
1434
|
+
],
|
|
1435
|
+
url: "/api/v3/config/host",
|
|
1436
|
+
...options
|
|
1437
|
+
});
|
|
1438
|
+
};
|
|
1439
|
+
var getApiV3ConfigHostById = (options) => {
|
|
1440
|
+
return (options.client ?? client).get({
|
|
1441
|
+
security: [
|
|
1442
|
+
{
|
|
1443
|
+
name: "X-Api-Key",
|
|
1444
|
+
type: "apiKey"
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
in: "query",
|
|
1448
|
+
name: "apikey",
|
|
1449
|
+
type: "apiKey"
|
|
1450
|
+
}
|
|
1451
|
+
],
|
|
1452
|
+
url: "/api/v3/config/host/{id}",
|
|
1453
|
+
...options
|
|
1454
|
+
});
|
|
1455
|
+
};
|
|
1456
|
+
var putApiV3ConfigHostById = (options) => {
|
|
1457
|
+
return (options.client ?? client).put({
|
|
1458
|
+
security: [
|
|
1459
|
+
{
|
|
1460
|
+
name: "X-Api-Key",
|
|
1461
|
+
type: "apiKey"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
in: "query",
|
|
1465
|
+
name: "apikey",
|
|
1466
|
+
type: "apiKey"
|
|
1467
|
+
}
|
|
1468
|
+
],
|
|
1469
|
+
url: "/api/v3/config/host/{id}",
|
|
1470
|
+
...options,
|
|
1471
|
+
headers: {
|
|
1472
|
+
"Content-Type": "application/json",
|
|
1473
|
+
...options.headers
|
|
1474
|
+
}
|
|
1475
|
+
});
|
|
1476
|
+
};
|
|
1337
1477
|
var getApiV3Importlist = (options) => {
|
|
1338
1478
|
return (options?.client ?? client).get({
|
|
1339
1479
|
security: [
|
|
@@ -1630,6 +1770,112 @@ var postApiV3IndexerTestall = (options) => {
|
|
|
1630
1770
|
...options
|
|
1631
1771
|
});
|
|
1632
1772
|
};
|
|
1773
|
+
var getApiV3Log = (options) => {
|
|
1774
|
+
return (options?.client ?? client).get({
|
|
1775
|
+
security: [
|
|
1776
|
+
{
|
|
1777
|
+
name: "X-Api-Key",
|
|
1778
|
+
type: "apiKey"
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
in: "query",
|
|
1782
|
+
name: "apikey",
|
|
1783
|
+
type: "apiKey"
|
|
1784
|
+
}
|
|
1785
|
+
],
|
|
1786
|
+
url: "/api/v3/log",
|
|
1787
|
+
...options
|
|
1788
|
+
});
|
|
1789
|
+
};
|
|
1790
|
+
var getApiV3LogFile = (options) => {
|
|
1791
|
+
return (options?.client ?? client).get({
|
|
1792
|
+
security: [
|
|
1793
|
+
{
|
|
1794
|
+
name: "X-Api-Key",
|
|
1795
|
+
type: "apiKey"
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
in: "query",
|
|
1799
|
+
name: "apikey",
|
|
1800
|
+
type: "apiKey"
|
|
1801
|
+
}
|
|
1802
|
+
],
|
|
1803
|
+
url: "/api/v3/log/file",
|
|
1804
|
+
...options
|
|
1805
|
+
});
|
|
1806
|
+
};
|
|
1807
|
+
var getApiV3LogFileByFilename = (options) => {
|
|
1808
|
+
return (options.client ?? client).get({
|
|
1809
|
+
security: [
|
|
1810
|
+
{
|
|
1811
|
+
name: "X-Api-Key",
|
|
1812
|
+
type: "apiKey"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
in: "query",
|
|
1816
|
+
name: "apikey",
|
|
1817
|
+
type: "apiKey"
|
|
1818
|
+
}
|
|
1819
|
+
],
|
|
1820
|
+
url: "/api/v3/log/file/{filename}",
|
|
1821
|
+
...options
|
|
1822
|
+
});
|
|
1823
|
+
};
|
|
1824
|
+
var getApiV3ConfigMediamanagement = (options) => {
|
|
1825
|
+
return (options?.client ?? client).get({
|
|
1826
|
+
security: [
|
|
1827
|
+
{
|
|
1828
|
+
name: "X-Api-Key",
|
|
1829
|
+
type: "apiKey"
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
in: "query",
|
|
1833
|
+
name: "apikey",
|
|
1834
|
+
type: "apiKey"
|
|
1835
|
+
}
|
|
1836
|
+
],
|
|
1837
|
+
url: "/api/v3/config/mediamanagement",
|
|
1838
|
+
...options
|
|
1839
|
+
});
|
|
1840
|
+
};
|
|
1841
|
+
var getApiV3ConfigMediamanagementById = (options) => {
|
|
1842
|
+
return (options.client ?? client).get({
|
|
1843
|
+
security: [
|
|
1844
|
+
{
|
|
1845
|
+
name: "X-Api-Key",
|
|
1846
|
+
type: "apiKey"
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
in: "query",
|
|
1850
|
+
name: "apikey",
|
|
1851
|
+
type: "apiKey"
|
|
1852
|
+
}
|
|
1853
|
+
],
|
|
1854
|
+
url: "/api/v3/config/mediamanagement/{id}",
|
|
1855
|
+
...options
|
|
1856
|
+
});
|
|
1857
|
+
};
|
|
1858
|
+
var putApiV3ConfigMediamanagementById = (options) => {
|
|
1859
|
+
return (options.client ?? client).put({
|
|
1860
|
+
security: [
|
|
1861
|
+
{
|
|
1862
|
+
name: "X-Api-Key",
|
|
1863
|
+
type: "apiKey"
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
in: "query",
|
|
1867
|
+
name: "apikey",
|
|
1868
|
+
type: "apiKey"
|
|
1869
|
+
}
|
|
1870
|
+
],
|
|
1871
|
+
url: "/api/v3/config/mediamanagement/{id}",
|
|
1872
|
+
...options,
|
|
1873
|
+
headers: {
|
|
1874
|
+
"Content-Type": "application/json",
|
|
1875
|
+
...options.headers
|
|
1876
|
+
}
|
|
1877
|
+
});
|
|
1878
|
+
};
|
|
1633
1879
|
var getApiV3Movie = (options) => {
|
|
1634
1880
|
return (options?.client ?? client).get({
|
|
1635
1881
|
security: [
|
|
@@ -1761,6 +2007,78 @@ var getApiV3MovieLookup = (options) => {
|
|
|
1761
2007
|
...options
|
|
1762
2008
|
});
|
|
1763
2009
|
};
|
|
2010
|
+
var getApiV3ConfigNaming = (options) => {
|
|
2011
|
+
return (options?.client ?? client).get({
|
|
2012
|
+
security: [
|
|
2013
|
+
{
|
|
2014
|
+
name: "X-Api-Key",
|
|
2015
|
+
type: "apiKey"
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
in: "query",
|
|
2019
|
+
name: "apikey",
|
|
2020
|
+
type: "apiKey"
|
|
2021
|
+
}
|
|
2022
|
+
],
|
|
2023
|
+
url: "/api/v3/config/naming",
|
|
2024
|
+
...options
|
|
2025
|
+
});
|
|
2026
|
+
};
|
|
2027
|
+
var getApiV3ConfigNamingById = (options) => {
|
|
2028
|
+
return (options.client ?? client).get({
|
|
2029
|
+
security: [
|
|
2030
|
+
{
|
|
2031
|
+
name: "X-Api-Key",
|
|
2032
|
+
type: "apiKey"
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
in: "query",
|
|
2036
|
+
name: "apikey",
|
|
2037
|
+
type: "apiKey"
|
|
2038
|
+
}
|
|
2039
|
+
],
|
|
2040
|
+
url: "/api/v3/config/naming/{id}",
|
|
2041
|
+
...options
|
|
2042
|
+
});
|
|
2043
|
+
};
|
|
2044
|
+
var putApiV3ConfigNamingById = (options) => {
|
|
2045
|
+
return (options.client ?? client).put({
|
|
2046
|
+
security: [
|
|
2047
|
+
{
|
|
2048
|
+
name: "X-Api-Key",
|
|
2049
|
+
type: "apiKey"
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
in: "query",
|
|
2053
|
+
name: "apikey",
|
|
2054
|
+
type: "apiKey"
|
|
2055
|
+
}
|
|
2056
|
+
],
|
|
2057
|
+
url: "/api/v3/config/naming/{id}",
|
|
2058
|
+
...options,
|
|
2059
|
+
headers: {
|
|
2060
|
+
"Content-Type": "application/json",
|
|
2061
|
+
...options.headers
|
|
2062
|
+
}
|
|
2063
|
+
});
|
|
2064
|
+
};
|
|
2065
|
+
var getApiV3ConfigNamingExamples = (options) => {
|
|
2066
|
+
return (options?.client ?? client).get({
|
|
2067
|
+
security: [
|
|
2068
|
+
{
|
|
2069
|
+
name: "X-Api-Key",
|
|
2070
|
+
type: "apiKey"
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
in: "query",
|
|
2074
|
+
name: "apikey",
|
|
2075
|
+
type: "apiKey"
|
|
2076
|
+
}
|
|
2077
|
+
],
|
|
2078
|
+
url: "/api/v3/config/naming/examples",
|
|
2079
|
+
...options
|
|
2080
|
+
});
|
|
2081
|
+
};
|
|
1764
2082
|
var getApiV3Notification = (options) => {
|
|
1765
2083
|
return (options?.client ?? client).get({
|
|
1766
2084
|
security: [
|
|
@@ -2218,6 +2536,222 @@ var getApiV3SystemStatus = (options) => {
|
|
|
2218
2536
|
...options
|
|
2219
2537
|
});
|
|
2220
2538
|
};
|
|
2539
|
+
var postApiV3SystemShutdown = (options) => {
|
|
2540
|
+
return (options?.client ?? client).post({
|
|
2541
|
+
security: [
|
|
2542
|
+
{
|
|
2543
|
+
name: "X-Api-Key",
|
|
2544
|
+
type: "apiKey"
|
|
2545
|
+
},
|
|
2546
|
+
{
|
|
2547
|
+
in: "query",
|
|
2548
|
+
name: "apikey",
|
|
2549
|
+
type: "apiKey"
|
|
2550
|
+
}
|
|
2551
|
+
],
|
|
2552
|
+
url: "/api/v3/system/shutdown",
|
|
2553
|
+
...options
|
|
2554
|
+
});
|
|
2555
|
+
};
|
|
2556
|
+
var postApiV3SystemRestart = (options) => {
|
|
2557
|
+
return (options?.client ?? client).post({
|
|
2558
|
+
security: [
|
|
2559
|
+
{
|
|
2560
|
+
name: "X-Api-Key",
|
|
2561
|
+
type: "apiKey"
|
|
2562
|
+
},
|
|
2563
|
+
{
|
|
2564
|
+
in: "query",
|
|
2565
|
+
name: "apikey",
|
|
2566
|
+
type: "apiKey"
|
|
2567
|
+
}
|
|
2568
|
+
],
|
|
2569
|
+
url: "/api/v3/system/restart",
|
|
2570
|
+
...options
|
|
2571
|
+
});
|
|
2572
|
+
};
|
|
2573
|
+
var getApiV3Tag = (options) => {
|
|
2574
|
+
return (options?.client ?? client).get({
|
|
2575
|
+
security: [
|
|
2576
|
+
{
|
|
2577
|
+
name: "X-Api-Key",
|
|
2578
|
+
type: "apiKey"
|
|
2579
|
+
},
|
|
2580
|
+
{
|
|
2581
|
+
in: "query",
|
|
2582
|
+
name: "apikey",
|
|
2583
|
+
type: "apiKey"
|
|
2584
|
+
}
|
|
2585
|
+
],
|
|
2586
|
+
url: "/api/v3/tag",
|
|
2587
|
+
...options
|
|
2588
|
+
});
|
|
2589
|
+
};
|
|
2590
|
+
var postApiV3Tag = (options) => {
|
|
2591
|
+
return (options?.client ?? client).post({
|
|
2592
|
+
security: [
|
|
2593
|
+
{
|
|
2594
|
+
name: "X-Api-Key",
|
|
2595
|
+
type: "apiKey"
|
|
2596
|
+
},
|
|
2597
|
+
{
|
|
2598
|
+
in: "query",
|
|
2599
|
+
name: "apikey",
|
|
2600
|
+
type: "apiKey"
|
|
2601
|
+
}
|
|
2602
|
+
],
|
|
2603
|
+
url: "/api/v3/tag",
|
|
2604
|
+
...options,
|
|
2605
|
+
headers: {
|
|
2606
|
+
"Content-Type": "application/json",
|
|
2607
|
+
...options?.headers
|
|
2608
|
+
}
|
|
2609
|
+
});
|
|
2610
|
+
};
|
|
2611
|
+
var deleteApiV3TagById = (options) => {
|
|
2612
|
+
return (options.client ?? client).delete({
|
|
2613
|
+
security: [
|
|
2614
|
+
{
|
|
2615
|
+
name: "X-Api-Key",
|
|
2616
|
+
type: "apiKey"
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
in: "query",
|
|
2620
|
+
name: "apikey",
|
|
2621
|
+
type: "apiKey"
|
|
2622
|
+
}
|
|
2623
|
+
],
|
|
2624
|
+
url: "/api/v3/tag/{id}",
|
|
2625
|
+
...options
|
|
2626
|
+
});
|
|
2627
|
+
};
|
|
2628
|
+
var getApiV3TagById = (options) => {
|
|
2629
|
+
return (options.client ?? client).get({
|
|
2630
|
+
security: [
|
|
2631
|
+
{
|
|
2632
|
+
name: "X-Api-Key",
|
|
2633
|
+
type: "apiKey"
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
in: "query",
|
|
2637
|
+
name: "apikey",
|
|
2638
|
+
type: "apiKey"
|
|
2639
|
+
}
|
|
2640
|
+
],
|
|
2641
|
+
url: "/api/v3/tag/{id}",
|
|
2642
|
+
...options
|
|
2643
|
+
});
|
|
2644
|
+
};
|
|
2645
|
+
var putApiV3TagById = (options) => {
|
|
2646
|
+
return (options.client ?? client).put({
|
|
2647
|
+
security: [
|
|
2648
|
+
{
|
|
2649
|
+
name: "X-Api-Key",
|
|
2650
|
+
type: "apiKey"
|
|
2651
|
+
},
|
|
2652
|
+
{
|
|
2653
|
+
in: "query",
|
|
2654
|
+
name: "apikey",
|
|
2655
|
+
type: "apiKey"
|
|
2656
|
+
}
|
|
2657
|
+
],
|
|
2658
|
+
url: "/api/v3/tag/{id}",
|
|
2659
|
+
...options,
|
|
2660
|
+
headers: {
|
|
2661
|
+
"Content-Type": "application/json",
|
|
2662
|
+
...options.headers
|
|
2663
|
+
}
|
|
2664
|
+
});
|
|
2665
|
+
};
|
|
2666
|
+
var getApiV3TagDetail = (options) => {
|
|
2667
|
+
return (options?.client ?? client).get({
|
|
2668
|
+
security: [
|
|
2669
|
+
{
|
|
2670
|
+
name: "X-Api-Key",
|
|
2671
|
+
type: "apiKey"
|
|
2672
|
+
},
|
|
2673
|
+
{
|
|
2674
|
+
in: "query",
|
|
2675
|
+
name: "apikey",
|
|
2676
|
+
type: "apiKey"
|
|
2677
|
+
}
|
|
2678
|
+
],
|
|
2679
|
+
url: "/api/v3/tag/detail",
|
|
2680
|
+
...options
|
|
2681
|
+
});
|
|
2682
|
+
};
|
|
2683
|
+
var getApiV3TagDetailById = (options) => {
|
|
2684
|
+
return (options.client ?? client).get({
|
|
2685
|
+
security: [
|
|
2686
|
+
{
|
|
2687
|
+
name: "X-Api-Key",
|
|
2688
|
+
type: "apiKey"
|
|
2689
|
+
},
|
|
2690
|
+
{
|
|
2691
|
+
in: "query",
|
|
2692
|
+
name: "apikey",
|
|
2693
|
+
type: "apiKey"
|
|
2694
|
+
}
|
|
2695
|
+
],
|
|
2696
|
+
url: "/api/v3/tag/detail/{id}",
|
|
2697
|
+
...options
|
|
2698
|
+
});
|
|
2699
|
+
};
|
|
2700
|
+
var getApiV3ConfigUiById = (options) => {
|
|
2701
|
+
return (options.client ?? client).get({
|
|
2702
|
+
security: [
|
|
2703
|
+
{
|
|
2704
|
+
name: "X-Api-Key",
|
|
2705
|
+
type: "apiKey"
|
|
2706
|
+
},
|
|
2707
|
+
{
|
|
2708
|
+
in: "query",
|
|
2709
|
+
name: "apikey",
|
|
2710
|
+
type: "apiKey"
|
|
2711
|
+
}
|
|
2712
|
+
],
|
|
2713
|
+
url: "/api/v3/config/ui/{id}",
|
|
2714
|
+
...options
|
|
2715
|
+
});
|
|
2716
|
+
};
|
|
2717
|
+
var putApiV3ConfigUiById = (options) => {
|
|
2718
|
+
return (options.client ?? client).put({
|
|
2719
|
+
security: [
|
|
2720
|
+
{
|
|
2721
|
+
name: "X-Api-Key",
|
|
2722
|
+
type: "apiKey"
|
|
2723
|
+
},
|
|
2724
|
+
{
|
|
2725
|
+
in: "query",
|
|
2726
|
+
name: "apikey",
|
|
2727
|
+
type: "apiKey"
|
|
2728
|
+
}
|
|
2729
|
+
],
|
|
2730
|
+
url: "/api/v3/config/ui/{id}",
|
|
2731
|
+
...options,
|
|
2732
|
+
headers: {
|
|
2733
|
+
"Content-Type": "application/json",
|
|
2734
|
+
...options.headers
|
|
2735
|
+
}
|
|
2736
|
+
});
|
|
2737
|
+
};
|
|
2738
|
+
var getApiV3ConfigUi = (options) => {
|
|
2739
|
+
return (options?.client ?? client).get({
|
|
2740
|
+
security: [
|
|
2741
|
+
{
|
|
2742
|
+
name: "X-Api-Key",
|
|
2743
|
+
type: "apiKey"
|
|
2744
|
+
},
|
|
2745
|
+
{
|
|
2746
|
+
in: "query",
|
|
2747
|
+
name: "apikey",
|
|
2748
|
+
type: "apiKey"
|
|
2749
|
+
}
|
|
2750
|
+
],
|
|
2751
|
+
url: "/api/v3/config/ui",
|
|
2752
|
+
...options
|
|
2753
|
+
});
|
|
2754
|
+
};
|
|
2221
2755
|
|
|
2222
2756
|
// src/clients/radarr.ts
|
|
2223
2757
|
class RadarrClient {
|
|
@@ -2518,6 +3052,96 @@ class RadarrClient {
|
|
|
2518
3052
|
async markHistoryItemFailed(id) {
|
|
2519
3053
|
return postApiV3HistoryFailedById({ path: { id } });
|
|
2520
3054
|
}
|
|
3055
|
+
async getHostConfig() {
|
|
3056
|
+
return getApiV3ConfigHost();
|
|
3057
|
+
}
|
|
3058
|
+
async getHostConfigById(id) {
|
|
3059
|
+
return getApiV3ConfigHostById({ path: { id } });
|
|
3060
|
+
}
|
|
3061
|
+
async updateHostConfig(id, config) {
|
|
3062
|
+
return putApiV3ConfigHostById({ path: { id: String(id) }, body: config });
|
|
3063
|
+
}
|
|
3064
|
+
async getNamingConfig() {
|
|
3065
|
+
return getApiV3ConfigNaming();
|
|
3066
|
+
}
|
|
3067
|
+
async getNamingConfigById(id) {
|
|
3068
|
+
return getApiV3ConfigNamingById({ path: { id } });
|
|
3069
|
+
}
|
|
3070
|
+
async updateNamingConfig(id, config) {
|
|
3071
|
+
return putApiV3ConfigNamingById({ path: { id: String(id) }, body: config });
|
|
3072
|
+
}
|
|
3073
|
+
async getNamingConfigExamples() {
|
|
3074
|
+
return getApiV3ConfigNamingExamples();
|
|
3075
|
+
}
|
|
3076
|
+
async getMediaManagementConfig() {
|
|
3077
|
+
return getApiV3ConfigMediamanagement();
|
|
3078
|
+
}
|
|
3079
|
+
async getMediaManagementConfigById(id) {
|
|
3080
|
+
return getApiV3ConfigMediamanagementById({ path: { id } });
|
|
3081
|
+
}
|
|
3082
|
+
async updateMediaManagementConfig(id, config) {
|
|
3083
|
+
return putApiV3ConfigMediamanagementById({ path: { id: String(id) }, body: config });
|
|
3084
|
+
}
|
|
3085
|
+
async getUiConfig() {
|
|
3086
|
+
return getApiV3ConfigUi();
|
|
3087
|
+
}
|
|
3088
|
+
async getUiConfigById(id) {
|
|
3089
|
+
return getApiV3ConfigUiById({ path: { id } });
|
|
3090
|
+
}
|
|
3091
|
+
async updateUiConfig(id, config) {
|
|
3092
|
+
return putApiV3ConfigUiById({ path: { id: String(id) }, body: config });
|
|
3093
|
+
}
|
|
3094
|
+
async restartSystem() {
|
|
3095
|
+
return postApiV3SystemRestart();
|
|
3096
|
+
}
|
|
3097
|
+
async shutdownSystem() {
|
|
3098
|
+
return postApiV3SystemShutdown();
|
|
3099
|
+
}
|
|
3100
|
+
async getSystemBackups() {
|
|
3101
|
+
return getApiV3SystemBackup();
|
|
3102
|
+
}
|
|
3103
|
+
async deleteSystemBackup(id) {
|
|
3104
|
+
return deleteApiV3SystemBackupById({ path: { id } });
|
|
3105
|
+
}
|
|
3106
|
+
async restoreSystemBackup(id) {
|
|
3107
|
+
return postApiV3SystemBackupRestoreById({ path: { id } });
|
|
3108
|
+
}
|
|
3109
|
+
async uploadSystemBackup() {
|
|
3110
|
+
return postApiV3SystemBackupRestoreUpload();
|
|
3111
|
+
}
|
|
3112
|
+
async getSystemLogs() {
|
|
3113
|
+
return getApiV3Log();
|
|
3114
|
+
}
|
|
3115
|
+
async getLogFiles() {
|
|
3116
|
+
return getApiV3LogFile();
|
|
3117
|
+
}
|
|
3118
|
+
async getLogFileByName(filename) {
|
|
3119
|
+
return getApiV3LogFileByFilename({ path: { filename } });
|
|
3120
|
+
}
|
|
3121
|
+
async getDiskSpace() {
|
|
3122
|
+
return getApiV3Diskspace();
|
|
3123
|
+
}
|
|
3124
|
+
async getTags() {
|
|
3125
|
+
return getApiV3Tag();
|
|
3126
|
+
}
|
|
3127
|
+
async addTag(tag) {
|
|
3128
|
+
return postApiV3Tag({ body: tag });
|
|
3129
|
+
}
|
|
3130
|
+
async getTag(id) {
|
|
3131
|
+
return getApiV3TagById({ path: { id } });
|
|
3132
|
+
}
|
|
3133
|
+
async updateTag(id, tag) {
|
|
3134
|
+
return putApiV3TagById({ path: { id: String(id) }, body: tag });
|
|
3135
|
+
}
|
|
3136
|
+
async deleteTag(id) {
|
|
3137
|
+
return deleteApiV3TagById({ path: { id } });
|
|
3138
|
+
}
|
|
3139
|
+
async getTagDetails() {
|
|
3140
|
+
return getApiV3TagDetail();
|
|
3141
|
+
}
|
|
3142
|
+
async getTagDetailById(id) {
|
|
3143
|
+
return getApiV3TagDetailById({ path: { id } });
|
|
3144
|
+
}
|
|
2521
3145
|
updateConfig(newConfig) {
|
|
2522
3146
|
const updatedConfig = { ...this.clientConfig.config, ...newConfig };
|
|
2523
3147
|
this.clientConfig = createServarrClient(updatedConfig);
|