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.
@@ -911,6 +911,74 @@ var getApiV1AuthorLookup = (options) => {
911
911
  ...options
912
912
  });
913
913
  };
914
+ var getApiV1SystemBackup = (options) => {
915
+ return (options?.client ?? client).get({
916
+ security: [
917
+ {
918
+ name: "X-Api-Key",
919
+ type: "apiKey"
920
+ },
921
+ {
922
+ in: "query",
923
+ name: "apikey",
924
+ type: "apiKey"
925
+ }
926
+ ],
927
+ url: "/api/v1/system/backup",
928
+ ...options
929
+ });
930
+ };
931
+ var deleteApiV1SystemBackupById = (options) => {
932
+ return (options.client ?? client).delete({
933
+ security: [
934
+ {
935
+ name: "X-Api-Key",
936
+ type: "apiKey"
937
+ },
938
+ {
939
+ in: "query",
940
+ name: "apikey",
941
+ type: "apiKey"
942
+ }
943
+ ],
944
+ url: "/api/v1/system/backup/{id}",
945
+ ...options
946
+ });
947
+ };
948
+ var postApiV1SystemBackupRestoreById = (options) => {
949
+ return (options.client ?? client).post({
950
+ security: [
951
+ {
952
+ name: "X-Api-Key",
953
+ type: "apiKey"
954
+ },
955
+ {
956
+ in: "query",
957
+ name: "apikey",
958
+ type: "apiKey"
959
+ }
960
+ ],
961
+ url: "/api/v1/system/backup/restore/{id}",
962
+ ...options
963
+ });
964
+ };
965
+ var postApiV1SystemBackupRestoreUpload = (options) => {
966
+ return (options?.client ?? client).post({
967
+ security: [
968
+ {
969
+ name: "X-Api-Key",
970
+ type: "apiKey"
971
+ },
972
+ {
973
+ in: "query",
974
+ name: "apikey",
975
+ type: "apiKey"
976
+ }
977
+ ],
978
+ url: "/api/v1/system/backup/restore/upload",
979
+ ...options
980
+ });
981
+ };
914
982
  var getApiV1Book = (options) => {
915
983
  return (options?.client ?? client).get({
916
984
  security: [
@@ -924,12 +992,1332 @@ var getApiV1Book = (options) => {
924
992
  type: "apiKey"
925
993
  }
926
994
  ],
927
- url: "/api/v1/book",
995
+ url: "/api/v1/book",
996
+ ...options
997
+ });
998
+ };
999
+ var postApiV1Book = (options) => {
1000
+ return (options?.client ?? client).post({
1001
+ security: [
1002
+ {
1003
+ name: "X-Api-Key",
1004
+ type: "apiKey"
1005
+ },
1006
+ {
1007
+ in: "query",
1008
+ name: "apikey",
1009
+ type: "apiKey"
1010
+ }
1011
+ ],
1012
+ url: "/api/v1/book",
1013
+ ...options,
1014
+ headers: {
1015
+ "Content-Type": "application/json",
1016
+ ...options?.headers
1017
+ }
1018
+ });
1019
+ };
1020
+ var deleteApiV1BookById = (options) => {
1021
+ return (options.client ?? client).delete({
1022
+ security: [
1023
+ {
1024
+ name: "X-Api-Key",
1025
+ type: "apiKey"
1026
+ },
1027
+ {
1028
+ in: "query",
1029
+ name: "apikey",
1030
+ type: "apiKey"
1031
+ }
1032
+ ],
1033
+ url: "/api/v1/book/{id}",
1034
+ ...options
1035
+ });
1036
+ };
1037
+ var getApiV1BookById = (options) => {
1038
+ return (options.client ?? client).get({
1039
+ security: [
1040
+ {
1041
+ name: "X-Api-Key",
1042
+ type: "apiKey"
1043
+ },
1044
+ {
1045
+ in: "query",
1046
+ name: "apikey",
1047
+ type: "apiKey"
1048
+ }
1049
+ ],
1050
+ url: "/api/v1/book/{id}",
1051
+ ...options
1052
+ });
1053
+ };
1054
+ var putApiV1BookById = (options) => {
1055
+ return (options.client ?? client).put({
1056
+ security: [
1057
+ {
1058
+ name: "X-Api-Key",
1059
+ type: "apiKey"
1060
+ },
1061
+ {
1062
+ in: "query",
1063
+ name: "apikey",
1064
+ type: "apiKey"
1065
+ }
1066
+ ],
1067
+ url: "/api/v1/book/{id}",
1068
+ ...options,
1069
+ headers: {
1070
+ "Content-Type": "application/json",
1071
+ ...options.headers
1072
+ }
1073
+ });
1074
+ };
1075
+ var getApiV1BookLookup = (options) => {
1076
+ return (options?.client ?? client).get({
1077
+ security: [
1078
+ {
1079
+ name: "X-Api-Key",
1080
+ type: "apiKey"
1081
+ },
1082
+ {
1083
+ in: "query",
1084
+ name: "apikey",
1085
+ type: "apiKey"
1086
+ }
1087
+ ],
1088
+ url: "/api/v1/book/lookup",
1089
+ ...options
1090
+ });
1091
+ };
1092
+ var getApiV1Command = (options) => {
1093
+ return (options?.client ?? client).get({
1094
+ security: [
1095
+ {
1096
+ name: "X-Api-Key",
1097
+ type: "apiKey"
1098
+ },
1099
+ {
1100
+ in: "query",
1101
+ name: "apikey",
1102
+ type: "apiKey"
1103
+ }
1104
+ ],
1105
+ url: "/api/v1/command",
1106
+ ...options
1107
+ });
1108
+ };
1109
+ var postApiV1Command = (options) => {
1110
+ return (options?.client ?? client).post({
1111
+ security: [
1112
+ {
1113
+ name: "X-Api-Key",
1114
+ type: "apiKey"
1115
+ },
1116
+ {
1117
+ in: "query",
1118
+ name: "apikey",
1119
+ type: "apiKey"
1120
+ }
1121
+ ],
1122
+ url: "/api/v1/command",
1123
+ ...options,
1124
+ headers: {
1125
+ "Content-Type": "application/json",
1126
+ ...options?.headers
1127
+ }
1128
+ });
1129
+ };
1130
+ var getApiV1Customformat = (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/customformat",
1144
+ ...options
1145
+ });
1146
+ };
1147
+ var postApiV1Customformat = (options) => {
1148
+ return (options?.client ?? client).post({
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/customformat",
1161
+ ...options,
1162
+ headers: {
1163
+ "Content-Type": "application/json",
1164
+ ...options?.headers
1165
+ }
1166
+ });
1167
+ };
1168
+ var deleteApiV1CustomformatById = (options) => {
1169
+ return (options.client ?? client).delete({
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/customformat/{id}",
1182
+ ...options
1183
+ });
1184
+ };
1185
+ var getApiV1CustomformatById = (options) => {
1186
+ return (options.client ?? client).get({
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/customformat/{id}",
1199
+ ...options
1200
+ });
1201
+ };
1202
+ var putApiV1CustomformatById = (options) => {
1203
+ return (options.client ?? client).put({
1204
+ security: [
1205
+ {
1206
+ name: "X-Api-Key",
1207
+ type: "apiKey"
1208
+ },
1209
+ {
1210
+ in: "query",
1211
+ name: "apikey",
1212
+ type: "apiKey"
1213
+ }
1214
+ ],
1215
+ url: "/api/v1/customformat/{id}",
1216
+ ...options,
1217
+ headers: {
1218
+ "Content-Type": "application/json",
1219
+ ...options.headers
1220
+ }
1221
+ });
1222
+ };
1223
+ var getApiV1CustomformatSchema = (options) => {
1224
+ return (options?.client ?? client).get({
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/customformat/schema",
1237
+ ...options
1238
+ });
1239
+ };
1240
+ var getApiV1ConfigDevelopment = (options) => {
1241
+ return (options?.client ?? client).get({
1242
+ security: [
1243
+ {
1244
+ name: "X-Api-Key",
1245
+ type: "apiKey"
1246
+ },
1247
+ {
1248
+ in: "query",
1249
+ name: "apikey",
1250
+ type: "apiKey"
1251
+ }
1252
+ ],
1253
+ url: "/api/v1/config/development",
1254
+ ...options
1255
+ });
1256
+ };
1257
+ var getApiV1ConfigDevelopmentById = (options) => {
1258
+ return (options.client ?? client).get({
1259
+ security: [
1260
+ {
1261
+ name: "X-Api-Key",
1262
+ type: "apiKey"
1263
+ },
1264
+ {
1265
+ in: "query",
1266
+ name: "apikey",
1267
+ type: "apiKey"
1268
+ }
1269
+ ],
1270
+ url: "/api/v1/config/development/{id}",
1271
+ ...options
1272
+ });
1273
+ };
1274
+ var putApiV1ConfigDevelopmentById = (options) => {
1275
+ return (options.client ?? client).put({
1276
+ security: [
1277
+ {
1278
+ name: "X-Api-Key",
1279
+ type: "apiKey"
1280
+ },
1281
+ {
1282
+ in: "query",
1283
+ name: "apikey",
1284
+ type: "apiKey"
1285
+ }
1286
+ ],
1287
+ url: "/api/v1/config/development/{id}",
1288
+ ...options,
1289
+ headers: {
1290
+ "Content-Type": "application/json",
1291
+ ...options.headers
1292
+ }
1293
+ });
1294
+ };
1295
+ var getApiV1Diskspace = (options) => {
1296
+ return (options?.client ?? client).get({
1297
+ security: [
1298
+ {
1299
+ name: "X-Api-Key",
1300
+ type: "apiKey"
1301
+ },
1302
+ {
1303
+ in: "query",
1304
+ name: "apikey",
1305
+ type: "apiKey"
1306
+ }
1307
+ ],
1308
+ url: "/api/v1/diskspace",
1309
+ ...options
1310
+ });
1311
+ };
1312
+ var getApiV1Downloadclient = (options) => {
1313
+ return (options?.client ?? client).get({
1314
+ security: [
1315
+ {
1316
+ name: "X-Api-Key",
1317
+ type: "apiKey"
1318
+ },
1319
+ {
1320
+ in: "query",
1321
+ name: "apikey",
1322
+ type: "apiKey"
1323
+ }
1324
+ ],
1325
+ url: "/api/v1/downloadclient",
1326
+ ...options
1327
+ });
1328
+ };
1329
+ var postApiV1Downloadclient = (options) => {
1330
+ return (options?.client ?? client).post({
1331
+ security: [
1332
+ {
1333
+ name: "X-Api-Key",
1334
+ type: "apiKey"
1335
+ },
1336
+ {
1337
+ in: "query",
1338
+ name: "apikey",
1339
+ type: "apiKey"
1340
+ }
1341
+ ],
1342
+ url: "/api/v1/downloadclient",
1343
+ ...options,
1344
+ headers: {
1345
+ "Content-Type": "application/json",
1346
+ ...options?.headers
1347
+ }
1348
+ });
1349
+ };
1350
+ var deleteApiV1DownloadclientById = (options) => {
1351
+ return (options.client ?? client).delete({
1352
+ security: [
1353
+ {
1354
+ name: "X-Api-Key",
1355
+ type: "apiKey"
1356
+ },
1357
+ {
1358
+ in: "query",
1359
+ name: "apikey",
1360
+ type: "apiKey"
1361
+ }
1362
+ ],
1363
+ url: "/api/v1/downloadclient/{id}",
1364
+ ...options
1365
+ });
1366
+ };
1367
+ var getApiV1DownloadclientById = (options) => {
1368
+ return (options.client ?? client).get({
1369
+ security: [
1370
+ {
1371
+ name: "X-Api-Key",
1372
+ type: "apiKey"
1373
+ },
1374
+ {
1375
+ in: "query",
1376
+ name: "apikey",
1377
+ type: "apiKey"
1378
+ }
1379
+ ],
1380
+ url: "/api/v1/downloadclient/{id}",
1381
+ ...options
1382
+ });
1383
+ };
1384
+ var putApiV1DownloadclientById = (options) => {
1385
+ return (options.client ?? client).put({
1386
+ security: [
1387
+ {
1388
+ name: "X-Api-Key",
1389
+ type: "apiKey"
1390
+ },
1391
+ {
1392
+ in: "query",
1393
+ name: "apikey",
1394
+ type: "apiKey"
1395
+ }
1396
+ ],
1397
+ url: "/api/v1/downloadclient/{id}",
1398
+ ...options,
1399
+ headers: {
1400
+ "Content-Type": "application/json",
1401
+ ...options.headers
1402
+ }
1403
+ });
1404
+ };
1405
+ var getApiV1DownloadclientSchema = (options) => {
1406
+ return (options?.client ?? client).get({
1407
+ security: [
1408
+ {
1409
+ name: "X-Api-Key",
1410
+ type: "apiKey"
1411
+ },
1412
+ {
1413
+ in: "query",
1414
+ name: "apikey",
1415
+ type: "apiKey"
1416
+ }
1417
+ ],
1418
+ url: "/api/v1/downloadclient/schema",
1419
+ ...options
1420
+ });
1421
+ };
1422
+ var postApiV1DownloadclientTest = (options) => {
1423
+ return (options?.client ?? client).post({
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/v1/downloadclient/test",
1436
+ ...options,
1437
+ headers: {
1438
+ "Content-Type": "application/json",
1439
+ ...options?.headers
1440
+ }
1441
+ });
1442
+ };
1443
+ var postApiV1DownloadclientTestall = (options) => {
1444
+ return (options?.client ?? client).post({
1445
+ security: [
1446
+ {
1447
+ name: "X-Api-Key",
1448
+ type: "apiKey"
1449
+ },
1450
+ {
1451
+ in: "query",
1452
+ name: "apikey",
1453
+ type: "apiKey"
1454
+ }
1455
+ ],
1456
+ url: "/api/v1/downloadclient/testall",
1457
+ ...options
1458
+ });
1459
+ };
1460
+ var getApiV1Health = (options) => {
1461
+ return (options?.client ?? client).get({
1462
+ security: [
1463
+ {
1464
+ name: "X-Api-Key",
1465
+ type: "apiKey"
1466
+ },
1467
+ {
1468
+ in: "query",
1469
+ name: "apikey",
1470
+ type: "apiKey"
1471
+ }
1472
+ ],
1473
+ url: "/api/v1/health",
1474
+ ...options
1475
+ });
1476
+ };
1477
+ var getApiV1ConfigHost = (options) => {
1478
+ return (options?.client ?? client).get({
1479
+ security: [
1480
+ {
1481
+ name: "X-Api-Key",
1482
+ type: "apiKey"
1483
+ },
1484
+ {
1485
+ in: "query",
1486
+ name: "apikey",
1487
+ type: "apiKey"
1488
+ }
1489
+ ],
1490
+ url: "/api/v1/config/host",
1491
+ ...options
1492
+ });
1493
+ };
1494
+ var getApiV1ConfigHostById = (options) => {
1495
+ return (options.client ?? client).get({
1496
+ security: [
1497
+ {
1498
+ name: "X-Api-Key",
1499
+ type: "apiKey"
1500
+ },
1501
+ {
1502
+ in: "query",
1503
+ name: "apikey",
1504
+ type: "apiKey"
1505
+ }
1506
+ ],
1507
+ url: "/api/v1/config/host/{id}",
1508
+ ...options
1509
+ });
1510
+ };
1511
+ var putApiV1ConfigHostById = (options) => {
1512
+ return (options.client ?? client).put({
1513
+ security: [
1514
+ {
1515
+ name: "X-Api-Key",
1516
+ type: "apiKey"
1517
+ },
1518
+ {
1519
+ in: "query",
1520
+ name: "apikey",
1521
+ type: "apiKey"
1522
+ }
1523
+ ],
1524
+ url: "/api/v1/config/host/{id}",
1525
+ ...options,
1526
+ headers: {
1527
+ "Content-Type": "application/json",
1528
+ ...options.headers
1529
+ }
1530
+ });
1531
+ };
1532
+ var getApiV1Importlist = (options) => {
1533
+ return (options?.client ?? client).get({
1534
+ security: [
1535
+ {
1536
+ name: "X-Api-Key",
1537
+ type: "apiKey"
1538
+ },
1539
+ {
1540
+ in: "query",
1541
+ name: "apikey",
1542
+ type: "apiKey"
1543
+ }
1544
+ ],
1545
+ url: "/api/v1/importlist",
1546
+ ...options
1547
+ });
1548
+ };
1549
+ var postApiV1Importlist = (options) => {
1550
+ return (options?.client ?? client).post({
1551
+ security: [
1552
+ {
1553
+ name: "X-Api-Key",
1554
+ type: "apiKey"
1555
+ },
1556
+ {
1557
+ in: "query",
1558
+ name: "apikey",
1559
+ type: "apiKey"
1560
+ }
1561
+ ],
1562
+ url: "/api/v1/importlist",
1563
+ ...options,
1564
+ headers: {
1565
+ "Content-Type": "application/json",
1566
+ ...options?.headers
1567
+ }
1568
+ });
1569
+ };
1570
+ var deleteApiV1ImportlistById = (options) => {
1571
+ return (options.client ?? client).delete({
1572
+ security: [
1573
+ {
1574
+ name: "X-Api-Key",
1575
+ type: "apiKey"
1576
+ },
1577
+ {
1578
+ in: "query",
1579
+ name: "apikey",
1580
+ type: "apiKey"
1581
+ }
1582
+ ],
1583
+ url: "/api/v1/importlist/{id}",
1584
+ ...options
1585
+ });
1586
+ };
1587
+ var getApiV1ImportlistById = (options) => {
1588
+ return (options.client ?? client).get({
1589
+ security: [
1590
+ {
1591
+ name: "X-Api-Key",
1592
+ type: "apiKey"
1593
+ },
1594
+ {
1595
+ in: "query",
1596
+ name: "apikey",
1597
+ type: "apiKey"
1598
+ }
1599
+ ],
1600
+ url: "/api/v1/importlist/{id}",
1601
+ ...options
1602
+ });
1603
+ };
1604
+ var putApiV1ImportlistById = (options) => {
1605
+ return (options.client ?? client).put({
1606
+ security: [
1607
+ {
1608
+ name: "X-Api-Key",
1609
+ type: "apiKey"
1610
+ },
1611
+ {
1612
+ in: "query",
1613
+ name: "apikey",
1614
+ type: "apiKey"
1615
+ }
1616
+ ],
1617
+ url: "/api/v1/importlist/{id}",
1618
+ ...options,
1619
+ headers: {
1620
+ "Content-Type": "application/json",
1621
+ ...options.headers
1622
+ }
1623
+ });
1624
+ };
1625
+ var getApiV1ImportlistSchema = (options) => {
1626
+ return (options?.client ?? client).get({
1627
+ security: [
1628
+ {
1629
+ name: "X-Api-Key",
1630
+ type: "apiKey"
1631
+ },
1632
+ {
1633
+ in: "query",
1634
+ name: "apikey",
1635
+ type: "apiKey"
1636
+ }
1637
+ ],
1638
+ url: "/api/v1/importlist/schema",
1639
+ ...options
1640
+ });
1641
+ };
1642
+ var postApiV1ImportlistTest = (options) => {
1643
+ return (options?.client ?? client).post({
1644
+ security: [
1645
+ {
1646
+ name: "X-Api-Key",
1647
+ type: "apiKey"
1648
+ },
1649
+ {
1650
+ in: "query",
1651
+ name: "apikey",
1652
+ type: "apiKey"
1653
+ }
1654
+ ],
1655
+ url: "/api/v1/importlist/test",
1656
+ ...options,
1657
+ headers: {
1658
+ "Content-Type": "application/json",
1659
+ ...options?.headers
1660
+ }
1661
+ });
1662
+ };
1663
+ var postApiV1ImportlistTestall = (options) => {
1664
+ return (options?.client ?? client).post({
1665
+ security: [
1666
+ {
1667
+ name: "X-Api-Key",
1668
+ type: "apiKey"
1669
+ },
1670
+ {
1671
+ in: "query",
1672
+ name: "apikey",
1673
+ type: "apiKey"
1674
+ }
1675
+ ],
1676
+ url: "/api/v1/importlist/testall",
1677
+ ...options
1678
+ });
1679
+ };
1680
+ var getApiV1Indexer = (options) => {
1681
+ return (options?.client ?? client).get({
1682
+ security: [
1683
+ {
1684
+ name: "X-Api-Key",
1685
+ type: "apiKey"
1686
+ },
1687
+ {
1688
+ in: "query",
1689
+ name: "apikey",
1690
+ type: "apiKey"
1691
+ }
1692
+ ],
1693
+ url: "/api/v1/indexer",
1694
+ ...options
1695
+ });
1696
+ };
1697
+ var postApiV1Indexer = (options) => {
1698
+ return (options?.client ?? client).post({
1699
+ security: [
1700
+ {
1701
+ name: "X-Api-Key",
1702
+ type: "apiKey"
1703
+ },
1704
+ {
1705
+ in: "query",
1706
+ name: "apikey",
1707
+ type: "apiKey"
1708
+ }
1709
+ ],
1710
+ url: "/api/v1/indexer",
1711
+ ...options,
1712
+ headers: {
1713
+ "Content-Type": "application/json",
1714
+ ...options?.headers
1715
+ }
1716
+ });
1717
+ };
1718
+ var deleteApiV1IndexerById = (options) => {
1719
+ return (options.client ?? client).delete({
1720
+ security: [
1721
+ {
1722
+ name: "X-Api-Key",
1723
+ type: "apiKey"
1724
+ },
1725
+ {
1726
+ in: "query",
1727
+ name: "apikey",
1728
+ type: "apiKey"
1729
+ }
1730
+ ],
1731
+ url: "/api/v1/indexer/{id}",
1732
+ ...options
1733
+ });
1734
+ };
1735
+ var getApiV1IndexerById = (options) => {
1736
+ return (options.client ?? client).get({
1737
+ security: [
1738
+ {
1739
+ name: "X-Api-Key",
1740
+ type: "apiKey"
1741
+ },
1742
+ {
1743
+ in: "query",
1744
+ name: "apikey",
1745
+ type: "apiKey"
1746
+ }
1747
+ ],
1748
+ url: "/api/v1/indexer/{id}",
1749
+ ...options
1750
+ });
1751
+ };
1752
+ var putApiV1IndexerById = (options) => {
1753
+ return (options.client ?? client).put({
1754
+ security: [
1755
+ {
1756
+ name: "X-Api-Key",
1757
+ type: "apiKey"
1758
+ },
1759
+ {
1760
+ in: "query",
1761
+ name: "apikey",
1762
+ type: "apiKey"
1763
+ }
1764
+ ],
1765
+ url: "/api/v1/indexer/{id}",
1766
+ ...options,
1767
+ headers: {
1768
+ "Content-Type": "application/json",
1769
+ ...options.headers
1770
+ }
1771
+ });
1772
+ };
1773
+ var getApiV1IndexerSchema = (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/v1/indexer/schema",
1787
+ ...options
1788
+ });
1789
+ };
1790
+ var postApiV1IndexerTest = (options) => {
1791
+ return (options?.client ?? client).post({
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/v1/indexer/test",
1804
+ ...options,
1805
+ headers: {
1806
+ "Content-Type": "application/json",
1807
+ ...options?.headers
1808
+ }
1809
+ });
1810
+ };
1811
+ var postApiV1IndexerTestall = (options) => {
1812
+ return (options?.client ?? client).post({
1813
+ security: [
1814
+ {
1815
+ name: "X-Api-Key",
1816
+ type: "apiKey"
1817
+ },
1818
+ {
1819
+ in: "query",
1820
+ name: "apikey",
1821
+ type: "apiKey"
1822
+ }
1823
+ ],
1824
+ url: "/api/v1/indexer/testall",
1825
+ ...options
1826
+ });
1827
+ };
1828
+ var getApiV1Log = (options) => {
1829
+ return (options?.client ?? client).get({
1830
+ security: [
1831
+ {
1832
+ name: "X-Api-Key",
1833
+ type: "apiKey"
1834
+ },
1835
+ {
1836
+ in: "query",
1837
+ name: "apikey",
1838
+ type: "apiKey"
1839
+ }
1840
+ ],
1841
+ url: "/api/v1/log",
1842
+ ...options
1843
+ });
1844
+ };
1845
+ var getApiV1LogFile = (options) => {
1846
+ return (options?.client ?? client).get({
1847
+ security: [
1848
+ {
1849
+ name: "X-Api-Key",
1850
+ type: "apiKey"
1851
+ },
1852
+ {
1853
+ in: "query",
1854
+ name: "apikey",
1855
+ type: "apiKey"
1856
+ }
1857
+ ],
1858
+ url: "/api/v1/log/file",
1859
+ ...options
1860
+ });
1861
+ };
1862
+ var getApiV1LogFileByFilename = (options) => {
1863
+ return (options.client ?? client).get({
1864
+ security: [
1865
+ {
1866
+ name: "X-Api-Key",
1867
+ type: "apiKey"
1868
+ },
1869
+ {
1870
+ in: "query",
1871
+ name: "apikey",
1872
+ type: "apiKey"
1873
+ }
1874
+ ],
1875
+ url: "/api/v1/log/file/{filename}",
1876
+ ...options
1877
+ });
1878
+ };
1879
+ var getApiV1ConfigMediamanagement = (options) => {
1880
+ return (options?.client ?? client).get({
1881
+ security: [
1882
+ {
1883
+ name: "X-Api-Key",
1884
+ type: "apiKey"
1885
+ },
1886
+ {
1887
+ in: "query",
1888
+ name: "apikey",
1889
+ type: "apiKey"
1890
+ }
1891
+ ],
1892
+ url: "/api/v1/config/mediamanagement",
1893
+ ...options
1894
+ });
1895
+ };
1896
+ var getApiV1ConfigMediamanagementById = (options) => {
1897
+ return (options.client ?? client).get({
1898
+ security: [
1899
+ {
1900
+ name: "X-Api-Key",
1901
+ type: "apiKey"
1902
+ },
1903
+ {
1904
+ in: "query",
1905
+ name: "apikey",
1906
+ type: "apiKey"
1907
+ }
1908
+ ],
1909
+ url: "/api/v1/config/mediamanagement/{id}",
1910
+ ...options
1911
+ });
1912
+ };
1913
+ var putApiV1ConfigMediamanagementById = (options) => {
1914
+ return (options.client ?? client).put({
1915
+ security: [
1916
+ {
1917
+ name: "X-Api-Key",
1918
+ type: "apiKey"
1919
+ },
1920
+ {
1921
+ in: "query",
1922
+ name: "apikey",
1923
+ type: "apiKey"
1924
+ }
1925
+ ],
1926
+ url: "/api/v1/config/mediamanagement/{id}",
1927
+ ...options,
1928
+ headers: {
1929
+ "Content-Type": "application/json",
1930
+ ...options.headers
1931
+ }
1932
+ });
1933
+ };
1934
+ var getApiV1ConfigMetadataprovider = (options) => {
1935
+ return (options?.client ?? client).get({
1936
+ security: [
1937
+ {
1938
+ name: "X-Api-Key",
1939
+ type: "apiKey"
1940
+ },
1941
+ {
1942
+ in: "query",
1943
+ name: "apikey",
1944
+ type: "apiKey"
1945
+ }
1946
+ ],
1947
+ url: "/api/v1/config/metadataprovider",
1948
+ ...options
1949
+ });
1950
+ };
1951
+ var getApiV1ConfigMetadataproviderById = (options) => {
1952
+ return (options.client ?? client).get({
1953
+ security: [
1954
+ {
1955
+ name: "X-Api-Key",
1956
+ type: "apiKey"
1957
+ },
1958
+ {
1959
+ in: "query",
1960
+ name: "apikey",
1961
+ type: "apiKey"
1962
+ }
1963
+ ],
1964
+ url: "/api/v1/config/metadataprovider/{id}",
1965
+ ...options
1966
+ });
1967
+ };
1968
+ var putApiV1ConfigMetadataproviderById = (options) => {
1969
+ return (options.client ?? client).put({
1970
+ security: [
1971
+ {
1972
+ name: "X-Api-Key",
1973
+ type: "apiKey"
1974
+ },
1975
+ {
1976
+ in: "query",
1977
+ name: "apikey",
1978
+ type: "apiKey"
1979
+ }
1980
+ ],
1981
+ url: "/api/v1/config/metadataprovider/{id}",
1982
+ ...options,
1983
+ headers: {
1984
+ "Content-Type": "application/json",
1985
+ ...options.headers
1986
+ }
1987
+ });
1988
+ };
1989
+ var getApiV1ConfigNaming = (options) => {
1990
+ return (options?.client ?? client).get({
1991
+ security: [
1992
+ {
1993
+ name: "X-Api-Key",
1994
+ type: "apiKey"
1995
+ },
1996
+ {
1997
+ in: "query",
1998
+ name: "apikey",
1999
+ type: "apiKey"
2000
+ }
2001
+ ],
2002
+ url: "/api/v1/config/naming",
2003
+ ...options
2004
+ });
2005
+ };
2006
+ var getApiV1ConfigNamingById = (options) => {
2007
+ return (options.client ?? client).get({
2008
+ security: [
2009
+ {
2010
+ name: "X-Api-Key",
2011
+ type: "apiKey"
2012
+ },
2013
+ {
2014
+ in: "query",
2015
+ name: "apikey",
2016
+ type: "apiKey"
2017
+ }
2018
+ ],
2019
+ url: "/api/v1/config/naming/{id}",
2020
+ ...options
2021
+ });
2022
+ };
2023
+ var putApiV1ConfigNamingById = (options) => {
2024
+ return (options.client ?? client).put({
2025
+ security: [
2026
+ {
2027
+ name: "X-Api-Key",
2028
+ type: "apiKey"
2029
+ },
2030
+ {
2031
+ in: "query",
2032
+ name: "apikey",
2033
+ type: "apiKey"
2034
+ }
2035
+ ],
2036
+ url: "/api/v1/config/naming/{id}",
2037
+ ...options,
2038
+ headers: {
2039
+ "Content-Type": "application/json",
2040
+ ...options.headers
2041
+ }
2042
+ });
2043
+ };
2044
+ var getApiV1ConfigNamingExamples = (options) => {
2045
+ return (options?.client ?? client).get({
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/v1/config/naming/examples",
2058
+ ...options
2059
+ });
2060
+ };
2061
+ var getApiV1Notification = (options) => {
2062
+ return (options?.client ?? client).get({
2063
+ security: [
2064
+ {
2065
+ name: "X-Api-Key",
2066
+ type: "apiKey"
2067
+ },
2068
+ {
2069
+ in: "query",
2070
+ name: "apikey",
2071
+ type: "apiKey"
2072
+ }
2073
+ ],
2074
+ url: "/api/v1/notification",
2075
+ ...options
2076
+ });
2077
+ };
2078
+ var postApiV1Notification = (options) => {
2079
+ return (options?.client ?? client).post({
2080
+ security: [
2081
+ {
2082
+ name: "X-Api-Key",
2083
+ type: "apiKey"
2084
+ },
2085
+ {
2086
+ in: "query",
2087
+ name: "apikey",
2088
+ type: "apiKey"
2089
+ }
2090
+ ],
2091
+ url: "/api/v1/notification",
2092
+ ...options,
2093
+ headers: {
2094
+ "Content-Type": "application/json",
2095
+ ...options?.headers
2096
+ }
2097
+ });
2098
+ };
2099
+ var deleteApiV1NotificationById = (options) => {
2100
+ return (options.client ?? client).delete({
2101
+ security: [
2102
+ {
2103
+ name: "X-Api-Key",
2104
+ type: "apiKey"
2105
+ },
2106
+ {
2107
+ in: "query",
2108
+ name: "apikey",
2109
+ type: "apiKey"
2110
+ }
2111
+ ],
2112
+ url: "/api/v1/notification/{id}",
2113
+ ...options
2114
+ });
2115
+ };
2116
+ var getApiV1NotificationById = (options) => {
2117
+ return (options.client ?? client).get({
2118
+ security: [
2119
+ {
2120
+ name: "X-Api-Key",
2121
+ type: "apiKey"
2122
+ },
2123
+ {
2124
+ in: "query",
2125
+ name: "apikey",
2126
+ type: "apiKey"
2127
+ }
2128
+ ],
2129
+ url: "/api/v1/notification/{id}",
2130
+ ...options
2131
+ });
2132
+ };
2133
+ var putApiV1NotificationById = (options) => {
2134
+ return (options.client ?? client).put({
2135
+ security: [
2136
+ {
2137
+ name: "X-Api-Key",
2138
+ type: "apiKey"
2139
+ },
2140
+ {
2141
+ in: "query",
2142
+ name: "apikey",
2143
+ type: "apiKey"
2144
+ }
2145
+ ],
2146
+ url: "/api/v1/notification/{id}",
2147
+ ...options,
2148
+ headers: {
2149
+ "Content-Type": "application/json",
2150
+ ...options.headers
2151
+ }
2152
+ });
2153
+ };
2154
+ var getApiV1NotificationSchema = (options) => {
2155
+ return (options?.client ?? client).get({
2156
+ security: [
2157
+ {
2158
+ name: "X-Api-Key",
2159
+ type: "apiKey"
2160
+ },
2161
+ {
2162
+ in: "query",
2163
+ name: "apikey",
2164
+ type: "apiKey"
2165
+ }
2166
+ ],
2167
+ url: "/api/v1/notification/schema",
2168
+ ...options
2169
+ });
2170
+ };
2171
+ var postApiV1NotificationTest = (options) => {
2172
+ return (options?.client ?? client).post({
2173
+ security: [
2174
+ {
2175
+ name: "X-Api-Key",
2176
+ type: "apiKey"
2177
+ },
2178
+ {
2179
+ in: "query",
2180
+ name: "apikey",
2181
+ type: "apiKey"
2182
+ }
2183
+ ],
2184
+ url: "/api/v1/notification/test",
2185
+ ...options,
2186
+ headers: {
2187
+ "Content-Type": "application/json",
2188
+ ...options?.headers
2189
+ }
2190
+ });
2191
+ };
2192
+ var postApiV1NotificationTestall = (options) => {
2193
+ return (options?.client ?? client).post({
2194
+ security: [
2195
+ {
2196
+ name: "X-Api-Key",
2197
+ type: "apiKey"
2198
+ },
2199
+ {
2200
+ in: "query",
2201
+ name: "apikey",
2202
+ type: "apiKey"
2203
+ }
2204
+ ],
2205
+ url: "/api/v1/notification/testall",
2206
+ ...options
2207
+ });
2208
+ };
2209
+ var getApiV1Qualityprofile = (options) => {
2210
+ return (options?.client ?? client).get({
2211
+ security: [
2212
+ {
2213
+ name: "X-Api-Key",
2214
+ type: "apiKey"
2215
+ },
2216
+ {
2217
+ in: "query",
2218
+ name: "apikey",
2219
+ type: "apiKey"
2220
+ }
2221
+ ],
2222
+ url: "/api/v1/qualityprofile",
2223
+ ...options
2224
+ });
2225
+ };
2226
+ var postApiV1Qualityprofile = (options) => {
2227
+ return (options?.client ?? client).post({
2228
+ security: [
2229
+ {
2230
+ name: "X-Api-Key",
2231
+ type: "apiKey"
2232
+ },
2233
+ {
2234
+ in: "query",
2235
+ name: "apikey",
2236
+ type: "apiKey"
2237
+ }
2238
+ ],
2239
+ url: "/api/v1/qualityprofile",
2240
+ ...options,
2241
+ headers: {
2242
+ "Content-Type": "application/json",
2243
+ ...options?.headers
2244
+ }
2245
+ });
2246
+ };
2247
+ var deleteApiV1QualityprofileById = (options) => {
2248
+ return (options.client ?? client).delete({
2249
+ security: [
2250
+ {
2251
+ name: "X-Api-Key",
2252
+ type: "apiKey"
2253
+ },
2254
+ {
2255
+ in: "query",
2256
+ name: "apikey",
2257
+ type: "apiKey"
2258
+ }
2259
+ ],
2260
+ url: "/api/v1/qualityprofile/{id}",
2261
+ ...options
2262
+ });
2263
+ };
2264
+ var getApiV1QualityprofileById = (options) => {
2265
+ return (options.client ?? client).get({
2266
+ security: [
2267
+ {
2268
+ name: "X-Api-Key",
2269
+ type: "apiKey"
2270
+ },
2271
+ {
2272
+ in: "query",
2273
+ name: "apikey",
2274
+ type: "apiKey"
2275
+ }
2276
+ ],
2277
+ url: "/api/v1/qualityprofile/{id}",
2278
+ ...options
2279
+ });
2280
+ };
2281
+ var putApiV1QualityprofileById = (options) => {
2282
+ return (options.client ?? client).put({
2283
+ security: [
2284
+ {
2285
+ name: "X-Api-Key",
2286
+ type: "apiKey"
2287
+ },
2288
+ {
2289
+ in: "query",
2290
+ name: "apikey",
2291
+ type: "apiKey"
2292
+ }
2293
+ ],
2294
+ url: "/api/v1/qualityprofile/{id}",
2295
+ ...options,
2296
+ headers: {
2297
+ "Content-Type": "application/json",
2298
+ ...options.headers
2299
+ }
2300
+ });
2301
+ };
2302
+ var getApiV1QualityprofileSchema = (options) => {
2303
+ return (options?.client ?? client).get({
2304
+ security: [
2305
+ {
2306
+ name: "X-Api-Key",
2307
+ type: "apiKey"
2308
+ },
2309
+ {
2310
+ in: "query",
2311
+ name: "apikey",
2312
+ type: "apiKey"
2313
+ }
2314
+ ],
2315
+ url: "/api/v1/qualityprofile/schema",
928
2316
  ...options
929
2317
  });
930
2318
  };
931
- var getApiV1BookById = (options) => {
932
- return (options.client ?? client).get({
2319
+ var getApiV1Rootfolder = (options) => {
2320
+ return (options?.client ?? client).get({
933
2321
  security: [
934
2322
  {
935
2323
  name: "X-Api-Key",
@@ -941,11 +2329,32 @@ var getApiV1BookById = (options) => {
941
2329
  type: "apiKey"
942
2330
  }
943
2331
  ],
944
- url: "/api/v1/book/{id}",
2332
+ url: "/api/v1/rootfolder",
945
2333
  ...options
946
2334
  });
947
2335
  };
948
- var getApiV1Command = (options) => {
2336
+ var postApiV1Rootfolder = (options) => {
2337
+ return (options?.client ?? client).post({
2338
+ security: [
2339
+ {
2340
+ name: "X-Api-Key",
2341
+ type: "apiKey"
2342
+ },
2343
+ {
2344
+ in: "query",
2345
+ name: "apikey",
2346
+ type: "apiKey"
2347
+ }
2348
+ ],
2349
+ url: "/api/v1/rootfolder",
2350
+ ...options,
2351
+ headers: {
2352
+ "Content-Type": "application/json",
2353
+ ...options?.headers
2354
+ }
2355
+ });
2356
+ };
2357
+ var getApiV1SystemStatus = (options) => {
949
2358
  return (options?.client ?? client).get({
950
2359
  security: [
951
2360
  {
@@ -958,11 +2367,11 @@ var getApiV1Command = (options) => {
958
2367
  type: "apiKey"
959
2368
  }
960
2369
  ],
961
- url: "/api/v1/command",
2370
+ url: "/api/v1/system/status",
962
2371
  ...options
963
2372
  });
964
2373
  };
965
- var postApiV1Command = (options) => {
2374
+ var postApiV1SystemShutdown = (options) => {
966
2375
  return (options?.client ?? client).post({
967
2376
  security: [
968
2377
  {
@@ -975,7 +2384,58 @@ var postApiV1Command = (options) => {
975
2384
  type: "apiKey"
976
2385
  }
977
2386
  ],
978
- url: "/api/v1/command",
2387
+ url: "/api/v1/system/shutdown",
2388
+ ...options
2389
+ });
2390
+ };
2391
+ var postApiV1SystemRestart = (options) => {
2392
+ return (options?.client ?? client).post({
2393
+ security: [
2394
+ {
2395
+ name: "X-Api-Key",
2396
+ type: "apiKey"
2397
+ },
2398
+ {
2399
+ in: "query",
2400
+ name: "apikey",
2401
+ type: "apiKey"
2402
+ }
2403
+ ],
2404
+ url: "/api/v1/system/restart",
2405
+ ...options
2406
+ });
2407
+ };
2408
+ var getApiV1Tag = (options) => {
2409
+ return (options?.client ?? client).get({
2410
+ security: [
2411
+ {
2412
+ name: "X-Api-Key",
2413
+ type: "apiKey"
2414
+ },
2415
+ {
2416
+ in: "query",
2417
+ name: "apikey",
2418
+ type: "apiKey"
2419
+ }
2420
+ ],
2421
+ url: "/api/v1/tag",
2422
+ ...options
2423
+ });
2424
+ };
2425
+ var postApiV1Tag = (options) => {
2426
+ return (options?.client ?? client).post({
2427
+ security: [
2428
+ {
2429
+ name: "X-Api-Key",
2430
+ type: "apiKey"
2431
+ },
2432
+ {
2433
+ in: "query",
2434
+ name: "apikey",
2435
+ type: "apiKey"
2436
+ }
2437
+ ],
2438
+ url: "/api/v1/tag",
979
2439
  ...options,
980
2440
  headers: {
981
2441
  "Content-Type": "application/json",
@@ -983,8 +2443,8 @@ var postApiV1Command = (options) => {
983
2443
  }
984
2444
  });
985
2445
  };
986
- var getApiV1Health = (options) => {
987
- return (options?.client ?? client).get({
2446
+ var deleteApiV1TagById = (options) => {
2447
+ return (options.client ?? client).delete({
988
2448
  security: [
989
2449
  {
990
2450
  name: "X-Api-Key",
@@ -996,11 +2456,49 @@ var getApiV1Health = (options) => {
996
2456
  type: "apiKey"
997
2457
  }
998
2458
  ],
999
- url: "/api/v1/health",
2459
+ url: "/api/v1/tag/{id}",
1000
2460
  ...options
1001
2461
  });
1002
2462
  };
1003
- var getApiV1Rootfolder = (options) => {
2463
+ var getApiV1TagById = (options) => {
2464
+ return (options.client ?? client).get({
2465
+ security: [
2466
+ {
2467
+ name: "X-Api-Key",
2468
+ type: "apiKey"
2469
+ },
2470
+ {
2471
+ in: "query",
2472
+ name: "apikey",
2473
+ type: "apiKey"
2474
+ }
2475
+ ],
2476
+ url: "/api/v1/tag/{id}",
2477
+ ...options
2478
+ });
2479
+ };
2480
+ var putApiV1TagById = (options) => {
2481
+ return (options.client ?? client).put({
2482
+ security: [
2483
+ {
2484
+ name: "X-Api-Key",
2485
+ type: "apiKey"
2486
+ },
2487
+ {
2488
+ in: "query",
2489
+ name: "apikey",
2490
+ type: "apiKey"
2491
+ }
2492
+ ],
2493
+ url: "/api/v1/tag/{id}",
2494
+ ...options,
2495
+ headers: {
2496
+ "Content-Type": "application/json",
2497
+ ...options.headers
2498
+ }
2499
+ });
2500
+ };
2501
+ var getApiV1TagDetail = (options) => {
1004
2502
  return (options?.client ?? client).get({
1005
2503
  security: [
1006
2504
  {
@@ -1013,12 +2511,12 @@ var getApiV1Rootfolder = (options) => {
1013
2511
  type: "apiKey"
1014
2512
  }
1015
2513
  ],
1016
- url: "/api/v1/rootfolder",
2514
+ url: "/api/v1/tag/detail",
1017
2515
  ...options
1018
2516
  });
1019
2517
  };
1020
- var postApiV1Rootfolder = (options) => {
1021
- return (options?.client ?? client).post({
2518
+ var getApiV1TagDetailById = (options) => {
2519
+ return (options.client ?? client).get({
1022
2520
  security: [
1023
2521
  {
1024
2522
  name: "X-Api-Key",
@@ -1030,15 +2528,49 @@ var postApiV1Rootfolder = (options) => {
1030
2528
  type: "apiKey"
1031
2529
  }
1032
2530
  ],
1033
- url: "/api/v1/rootfolder",
2531
+ url: "/api/v1/tag/detail/{id}",
2532
+ ...options
2533
+ });
2534
+ };
2535
+ var getApiV1ConfigUiById = (options) => {
2536
+ return (options.client ?? client).get({
2537
+ security: [
2538
+ {
2539
+ name: "X-Api-Key",
2540
+ type: "apiKey"
2541
+ },
2542
+ {
2543
+ in: "query",
2544
+ name: "apikey",
2545
+ type: "apiKey"
2546
+ }
2547
+ ],
2548
+ url: "/api/v1/config/ui/{id}",
2549
+ ...options
2550
+ });
2551
+ };
2552
+ var putApiV1ConfigUiById = (options) => {
2553
+ return (options.client ?? client).put({
2554
+ security: [
2555
+ {
2556
+ name: "X-Api-Key",
2557
+ type: "apiKey"
2558
+ },
2559
+ {
2560
+ in: "query",
2561
+ name: "apikey",
2562
+ type: "apiKey"
2563
+ }
2564
+ ],
2565
+ url: "/api/v1/config/ui/{id}",
1034
2566
  ...options,
1035
2567
  headers: {
1036
2568
  "Content-Type": "application/json",
1037
- ...options?.headers
2569
+ ...options.headers
1038
2570
  }
1039
2571
  });
1040
2572
  };
1041
- var getApiV1SystemStatus = (options) => {
2573
+ var getApiV1ConfigUi = (options) => {
1042
2574
  return (options?.client ?? client).get({
1043
2575
  security: [
1044
2576
  {
@@ -1051,7 +2583,7 @@ var getApiV1SystemStatus = (options) => {
1051
2583
  type: "apiKey"
1052
2584
  }
1053
2585
  ],
1054
- url: "/api/v1/system/status",
2586
+ url: "/api/v1/config/ui",
1055
2587
  ...options
1056
2588
  });
1057
2589
  };
@@ -1106,6 +2638,261 @@ class ReadarrClient {
1106
2638
  body: { path }
1107
2639
  });
1108
2640
  }
2641
+ async getHostConfig() {
2642
+ return getApiV1ConfigHost();
2643
+ }
2644
+ async getHostConfigById(id) {
2645
+ return getApiV1ConfigHostById({ path: { id } });
2646
+ }
2647
+ async updateHostConfig(id, config) {
2648
+ return putApiV1ConfigHostById({ path: { id: String(id) }, body: config });
2649
+ }
2650
+ async getNamingConfig() {
2651
+ return getApiV1ConfigNaming();
2652
+ }
2653
+ async getNamingConfigById(id) {
2654
+ return getApiV1ConfigNamingById({ path: { id } });
2655
+ }
2656
+ async updateNamingConfig(id, config) {
2657
+ return putApiV1ConfigNamingById({ path: { id: String(id) }, body: config });
2658
+ }
2659
+ async getNamingConfigExamples() {
2660
+ return getApiV1ConfigNamingExamples();
2661
+ }
2662
+ async getMediaManagementConfig() {
2663
+ return getApiV1ConfigMediamanagement();
2664
+ }
2665
+ async getMediaManagementConfigById(id) {
2666
+ return getApiV1ConfigMediamanagementById({ path: { id } });
2667
+ }
2668
+ async updateMediaManagementConfig(id, config) {
2669
+ return putApiV1ConfigMediamanagementById({ path: { id: String(id) }, body: config });
2670
+ }
2671
+ async getUiConfig() {
2672
+ return getApiV1ConfigUi();
2673
+ }
2674
+ async getUiConfigById(id) {
2675
+ return getApiV1ConfigUiById({ path: { id } });
2676
+ }
2677
+ async updateUiConfig(id, config) {
2678
+ return putApiV1ConfigUiById({ path: { id: String(id) }, body: config });
2679
+ }
2680
+ async getDevelopmentConfig() {
2681
+ return getApiV1ConfigDevelopment();
2682
+ }
2683
+ async getDevelopmentConfigById(id) {
2684
+ return getApiV1ConfigDevelopmentById({ path: { id } });
2685
+ }
2686
+ async updateDevelopmentConfig(id, config) {
2687
+ return putApiV1ConfigDevelopmentById({ path: { id: String(id) }, body: config });
2688
+ }
2689
+ async getMetadataProviderConfig() {
2690
+ return getApiV1ConfigMetadataprovider();
2691
+ }
2692
+ async getMetadataProviderConfigById(id) {
2693
+ return getApiV1ConfigMetadataproviderById({ path: { id } });
2694
+ }
2695
+ async updateMetadataProviderConfig(id, config) {
2696
+ return putApiV1ConfigMetadataproviderById({
2697
+ path: { id: String(id) },
2698
+ body: config
2699
+ });
2700
+ }
2701
+ async restartSystem() {
2702
+ return postApiV1SystemRestart();
2703
+ }
2704
+ async shutdownSystem() {
2705
+ return postApiV1SystemShutdown();
2706
+ }
2707
+ async getSystemBackups() {
2708
+ return getApiV1SystemBackup();
2709
+ }
2710
+ async deleteSystemBackup(id) {
2711
+ return deleteApiV1SystemBackupById({ path: { id } });
2712
+ }
2713
+ async restoreSystemBackup(id) {
2714
+ return postApiV1SystemBackupRestoreById({ path: { id } });
2715
+ }
2716
+ async uploadSystemBackup() {
2717
+ return postApiV1SystemBackupRestoreUpload();
2718
+ }
2719
+ async getSystemLogs() {
2720
+ return getApiV1Log();
2721
+ }
2722
+ async getLogFiles() {
2723
+ return getApiV1LogFile();
2724
+ }
2725
+ async getLogFileByName(filename) {
2726
+ return getApiV1LogFileByFilename({ path: { filename } });
2727
+ }
2728
+ async getDiskSpace() {
2729
+ return getApiV1Diskspace();
2730
+ }
2731
+ async getTags() {
2732
+ return getApiV1Tag();
2733
+ }
2734
+ async addTag(tag) {
2735
+ return postApiV1Tag({ body: tag });
2736
+ }
2737
+ async getTag(id) {
2738
+ return getApiV1TagById({ path: { id } });
2739
+ }
2740
+ async updateTag(id, tag) {
2741
+ return putApiV1TagById({ path: { id: String(id) }, body: tag });
2742
+ }
2743
+ async deleteTag(id) {
2744
+ return deleteApiV1TagById({ path: { id } });
2745
+ }
2746
+ async getTagDetails() {
2747
+ return getApiV1TagDetail();
2748
+ }
2749
+ async getTagDetailById(id) {
2750
+ return getApiV1TagDetailById({ path: { id } });
2751
+ }
2752
+ async addBook(book) {
2753
+ return postApiV1Book({ body: book });
2754
+ }
2755
+ async updateBook(id, book) {
2756
+ return putApiV1BookById({ path: { id: String(id) }, body: book });
2757
+ }
2758
+ async deleteBook(id) {
2759
+ return deleteApiV1BookById({ path: { id } });
2760
+ }
2761
+ async searchBooks(term) {
2762
+ return getApiV1BookLookup({ query: { term } });
2763
+ }
2764
+ async getQualityProfiles() {
2765
+ return getApiV1Qualityprofile();
2766
+ }
2767
+ async getQualityProfile(id) {
2768
+ return getApiV1QualityprofileById({ path: { id } });
2769
+ }
2770
+ async addQualityProfile(profile) {
2771
+ return postApiV1Qualityprofile({ body: profile });
2772
+ }
2773
+ async updateQualityProfile(id, profile) {
2774
+ return putApiV1QualityprofileById({ path: { id: String(id) }, body: profile });
2775
+ }
2776
+ async deleteQualityProfile(id) {
2777
+ return deleteApiV1QualityprofileById({ path: { id } });
2778
+ }
2779
+ async getQualityProfileSchema() {
2780
+ return getApiV1QualityprofileSchema();
2781
+ }
2782
+ async getCustomFormats() {
2783
+ return getApiV1Customformat();
2784
+ }
2785
+ async getCustomFormat(id) {
2786
+ return getApiV1CustomformatById({ path: { id } });
2787
+ }
2788
+ async addCustomFormat(format) {
2789
+ return postApiV1Customformat({ body: format });
2790
+ }
2791
+ async updateCustomFormat(id, format) {
2792
+ return putApiV1CustomformatById({ path: { id: String(id) }, body: format });
2793
+ }
2794
+ async deleteCustomFormat(id) {
2795
+ return deleteApiV1CustomformatById({ path: { id } });
2796
+ }
2797
+ async getCustomFormatSchema() {
2798
+ return getApiV1CustomformatSchema();
2799
+ }
2800
+ async getDownloadClients() {
2801
+ return getApiV1Downloadclient();
2802
+ }
2803
+ async getDownloadClient(id) {
2804
+ return getApiV1DownloadclientById({ path: { id } });
2805
+ }
2806
+ async addDownloadClient(client2) {
2807
+ return postApiV1Downloadclient({ body: client2 });
2808
+ }
2809
+ async updateDownloadClient(id, client2) {
2810
+ return putApiV1DownloadclientById({ path: { id: String(id) }, body: client2 });
2811
+ }
2812
+ async deleteDownloadClient(id) {
2813
+ return deleteApiV1DownloadclientById({ path: { id } });
2814
+ }
2815
+ async getDownloadClientSchema() {
2816
+ return getApiV1DownloadclientSchema();
2817
+ }
2818
+ async testDownloadClient(client2) {
2819
+ return postApiV1DownloadclientTest({ body: client2 });
2820
+ }
2821
+ async testAllDownloadClients() {
2822
+ return postApiV1DownloadclientTestall();
2823
+ }
2824
+ async getIndexers() {
2825
+ return getApiV1Indexer();
2826
+ }
2827
+ async getIndexer(id) {
2828
+ return getApiV1IndexerById({ path: { id } });
2829
+ }
2830
+ async addIndexer(indexer) {
2831
+ return postApiV1Indexer({ body: indexer });
2832
+ }
2833
+ async updateIndexer(id, indexer) {
2834
+ return putApiV1IndexerById({ path: { id: String(id) }, body: indexer });
2835
+ }
2836
+ async deleteIndexer(id) {
2837
+ return deleteApiV1IndexerById({ path: { id } });
2838
+ }
2839
+ async getIndexerSchema() {
2840
+ return getApiV1IndexerSchema();
2841
+ }
2842
+ async testIndexer(indexer) {
2843
+ return postApiV1IndexerTest({ body: indexer });
2844
+ }
2845
+ async testAllIndexers() {
2846
+ return postApiV1IndexerTestall();
2847
+ }
2848
+ async getImportLists() {
2849
+ return getApiV1Importlist();
2850
+ }
2851
+ async getImportList(id) {
2852
+ return getApiV1ImportlistById({ path: { id } });
2853
+ }
2854
+ async addImportList(importList) {
2855
+ return postApiV1Importlist({ body: importList });
2856
+ }
2857
+ async updateImportList(id, importList) {
2858
+ return putApiV1ImportlistById({ path: { id: String(id) }, body: importList });
2859
+ }
2860
+ async deleteImportList(id) {
2861
+ return deleteApiV1ImportlistById({ path: { id } });
2862
+ }
2863
+ async getImportListSchema() {
2864
+ return getApiV1ImportlistSchema();
2865
+ }
2866
+ async testImportList(importList) {
2867
+ return postApiV1ImportlistTest({ body: importList });
2868
+ }
2869
+ async testAllImportLists() {
2870
+ return postApiV1ImportlistTestall();
2871
+ }
2872
+ async getNotifications() {
2873
+ return getApiV1Notification();
2874
+ }
2875
+ async getNotification(id) {
2876
+ return getApiV1NotificationById({ path: { id } });
2877
+ }
2878
+ async addNotification(notification) {
2879
+ return postApiV1Notification({ body: notification });
2880
+ }
2881
+ async updateNotification(id, notification) {
2882
+ return putApiV1NotificationById({ path: { id: String(id) }, body: notification });
2883
+ }
2884
+ async deleteNotification(id) {
2885
+ return deleteApiV1NotificationById({ path: { id } });
2886
+ }
2887
+ async getNotificationSchema() {
2888
+ return getApiV1NotificationSchema();
2889
+ }
2890
+ async testNotification(notification) {
2891
+ return postApiV1NotificationTest({ body: notification });
2892
+ }
2893
+ async testAllNotifications() {
2894
+ return postApiV1NotificationTestall();
2895
+ }
1109
2896
  updateConfig(newConfig) {
1110
2897
  const updatedConfig = { ...this.clientConfig.config, ...newConfig };
1111
2898
  this.clientConfig = createServarrClient(updatedConfig);