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/sonarr.js
CHANGED
|
@@ -818,7 +818,7 @@ var getApi = (options) => {
|
|
|
818
818
|
...options
|
|
819
819
|
});
|
|
820
820
|
};
|
|
821
|
-
var
|
|
821
|
+
var getApiV3SystemBackup = (options) => {
|
|
822
822
|
return (options?.client ?? client).get({
|
|
823
823
|
security: [
|
|
824
824
|
{
|
|
@@ -831,11 +831,1284 @@ var getApiV5Log = (options) => {
|
|
|
831
831
|
type: "apiKey"
|
|
832
832
|
}
|
|
833
833
|
],
|
|
834
|
-
url: "/api/
|
|
834
|
+
url: "/api/v3/system/backup",
|
|
835
835
|
...options
|
|
836
836
|
});
|
|
837
837
|
};
|
|
838
|
-
var
|
|
838
|
+
var deleteApiV3SystemBackupById = (options) => {
|
|
839
|
+
return (options.client ?? client).delete({
|
|
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/{id}",
|
|
852
|
+
...options
|
|
853
|
+
});
|
|
854
|
+
};
|
|
855
|
+
var postApiV3SystemBackupRestoreById = (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/{id}",
|
|
869
|
+
...options
|
|
870
|
+
});
|
|
871
|
+
};
|
|
872
|
+
var postApiV3SystemBackupRestoreUpload = (options) => {
|
|
873
|
+
return (options?.client ?? client).post({
|
|
874
|
+
security: [
|
|
875
|
+
{
|
|
876
|
+
name: "X-Api-Key",
|
|
877
|
+
type: "apiKey"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
in: "query",
|
|
881
|
+
name: "apikey",
|
|
882
|
+
type: "apiKey"
|
|
883
|
+
}
|
|
884
|
+
],
|
|
885
|
+
url: "/api/v3/system/backup/restore/upload",
|
|
886
|
+
...options
|
|
887
|
+
});
|
|
888
|
+
};
|
|
889
|
+
var getApiV3Command = (options) => {
|
|
890
|
+
return (options?.client ?? client).get({
|
|
891
|
+
security: [
|
|
892
|
+
{
|
|
893
|
+
name: "X-Api-Key",
|
|
894
|
+
type: "apiKey"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
in: "query",
|
|
898
|
+
name: "apikey",
|
|
899
|
+
type: "apiKey"
|
|
900
|
+
}
|
|
901
|
+
],
|
|
902
|
+
url: "/api/v3/command",
|
|
903
|
+
...options
|
|
904
|
+
});
|
|
905
|
+
};
|
|
906
|
+
var postApiV3Command = (options) => {
|
|
907
|
+
return (options?.client ?? client).post({
|
|
908
|
+
security: [
|
|
909
|
+
{
|
|
910
|
+
name: "X-Api-Key",
|
|
911
|
+
type: "apiKey"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
in: "query",
|
|
915
|
+
name: "apikey",
|
|
916
|
+
type: "apiKey"
|
|
917
|
+
}
|
|
918
|
+
],
|
|
919
|
+
url: "/api/v3/command",
|
|
920
|
+
...options,
|
|
921
|
+
headers: {
|
|
922
|
+
"Content-Type": "application/json",
|
|
923
|
+
...options?.headers
|
|
924
|
+
}
|
|
925
|
+
});
|
|
926
|
+
};
|
|
927
|
+
var getApiV3CommandById = (options) => {
|
|
928
|
+
return (options.client ?? client).get({
|
|
929
|
+
security: [
|
|
930
|
+
{
|
|
931
|
+
name: "X-Api-Key",
|
|
932
|
+
type: "apiKey"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
in: "query",
|
|
936
|
+
name: "apikey",
|
|
937
|
+
type: "apiKey"
|
|
938
|
+
}
|
|
939
|
+
],
|
|
940
|
+
url: "/api/v3/command/{id}",
|
|
941
|
+
...options
|
|
942
|
+
});
|
|
943
|
+
};
|
|
944
|
+
var getApiV3Customformat = (options) => {
|
|
945
|
+
return (options?.client ?? client).get({
|
|
946
|
+
security: [
|
|
947
|
+
{
|
|
948
|
+
name: "X-Api-Key",
|
|
949
|
+
type: "apiKey"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
in: "query",
|
|
953
|
+
name: "apikey",
|
|
954
|
+
type: "apiKey"
|
|
955
|
+
}
|
|
956
|
+
],
|
|
957
|
+
url: "/api/v3/customformat",
|
|
958
|
+
...options
|
|
959
|
+
});
|
|
960
|
+
};
|
|
961
|
+
var postApiV3Customformat = (options) => {
|
|
962
|
+
return (options?.client ?? client).post({
|
|
963
|
+
security: [
|
|
964
|
+
{
|
|
965
|
+
name: "X-Api-Key",
|
|
966
|
+
type: "apiKey"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
in: "query",
|
|
970
|
+
name: "apikey",
|
|
971
|
+
type: "apiKey"
|
|
972
|
+
}
|
|
973
|
+
],
|
|
974
|
+
url: "/api/v3/customformat",
|
|
975
|
+
...options,
|
|
976
|
+
headers: {
|
|
977
|
+
"Content-Type": "application/json",
|
|
978
|
+
...options?.headers
|
|
979
|
+
}
|
|
980
|
+
});
|
|
981
|
+
};
|
|
982
|
+
var deleteApiV3CustomformatById = (options) => {
|
|
983
|
+
return (options.client ?? client).delete({
|
|
984
|
+
security: [
|
|
985
|
+
{
|
|
986
|
+
name: "X-Api-Key",
|
|
987
|
+
type: "apiKey"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
in: "query",
|
|
991
|
+
name: "apikey",
|
|
992
|
+
type: "apiKey"
|
|
993
|
+
}
|
|
994
|
+
],
|
|
995
|
+
url: "/api/v3/customformat/{id}",
|
|
996
|
+
...options
|
|
997
|
+
});
|
|
998
|
+
};
|
|
999
|
+
var getApiV3CustomformatById = (options) => {
|
|
1000
|
+
return (options.client ?? client).get({
|
|
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/v3/customformat/{id}",
|
|
1013
|
+
...options
|
|
1014
|
+
});
|
|
1015
|
+
};
|
|
1016
|
+
var putApiV3CustomformatById = (options) => {
|
|
1017
|
+
return (options.client ?? client).put({
|
|
1018
|
+
security: [
|
|
1019
|
+
{
|
|
1020
|
+
name: "X-Api-Key",
|
|
1021
|
+
type: "apiKey"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
in: "query",
|
|
1025
|
+
name: "apikey",
|
|
1026
|
+
type: "apiKey"
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
url: "/api/v3/customformat/{id}",
|
|
1030
|
+
...options,
|
|
1031
|
+
headers: {
|
|
1032
|
+
"Content-Type": "application/json",
|
|
1033
|
+
...options.headers
|
|
1034
|
+
}
|
|
1035
|
+
});
|
|
1036
|
+
};
|
|
1037
|
+
var deleteApiV3CustomformatBulk = (options) => {
|
|
1038
|
+
return (options?.client ?? client).delete({
|
|
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/v3/customformat/bulk",
|
|
1051
|
+
...options,
|
|
1052
|
+
headers: {
|
|
1053
|
+
"Content-Type": "application/json",
|
|
1054
|
+
...options?.headers
|
|
1055
|
+
}
|
|
1056
|
+
});
|
|
1057
|
+
};
|
|
1058
|
+
var putApiV3CustomformatBulk = (options) => {
|
|
1059
|
+
return (options?.client ?? client).put({
|
|
1060
|
+
security: [
|
|
1061
|
+
{
|
|
1062
|
+
name: "X-Api-Key",
|
|
1063
|
+
type: "apiKey"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
in: "query",
|
|
1067
|
+
name: "apikey",
|
|
1068
|
+
type: "apiKey"
|
|
1069
|
+
}
|
|
1070
|
+
],
|
|
1071
|
+
url: "/api/v3/customformat/bulk",
|
|
1072
|
+
...options,
|
|
1073
|
+
headers: {
|
|
1074
|
+
"Content-Type": "application/json",
|
|
1075
|
+
...options?.headers
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
1078
|
+
};
|
|
1079
|
+
var getApiV3CustomformatSchema = (options) => {
|
|
1080
|
+
return (options?.client ?? client).get({
|
|
1081
|
+
security: [
|
|
1082
|
+
{
|
|
1083
|
+
name: "X-Api-Key",
|
|
1084
|
+
type: "apiKey"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
in: "query",
|
|
1088
|
+
name: "apikey",
|
|
1089
|
+
type: "apiKey"
|
|
1090
|
+
}
|
|
1091
|
+
],
|
|
1092
|
+
url: "/api/v3/customformat/schema",
|
|
1093
|
+
...options
|
|
1094
|
+
});
|
|
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
|
+
};
|
|
1113
|
+
var getApiV3Downloadclient = (options) => {
|
|
1114
|
+
return (options?.client ?? client).get({
|
|
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/v3/downloadclient",
|
|
1127
|
+
...options
|
|
1128
|
+
});
|
|
1129
|
+
};
|
|
1130
|
+
var postApiV3Downloadclient = (options) => {
|
|
1131
|
+
return (options?.client ?? client).post({
|
|
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/v3/downloadclient",
|
|
1144
|
+
...options,
|
|
1145
|
+
headers: {
|
|
1146
|
+
"Content-Type": "application/json",
|
|
1147
|
+
...options?.headers
|
|
1148
|
+
}
|
|
1149
|
+
});
|
|
1150
|
+
};
|
|
1151
|
+
var deleteApiV3DownloadclientById = (options) => {
|
|
1152
|
+
return (options.client ?? client).delete({
|
|
1153
|
+
security: [
|
|
1154
|
+
{
|
|
1155
|
+
name: "X-Api-Key",
|
|
1156
|
+
type: "apiKey"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
in: "query",
|
|
1160
|
+
name: "apikey",
|
|
1161
|
+
type: "apiKey"
|
|
1162
|
+
}
|
|
1163
|
+
],
|
|
1164
|
+
url: "/api/v3/downloadclient/{id}",
|
|
1165
|
+
...options
|
|
1166
|
+
});
|
|
1167
|
+
};
|
|
1168
|
+
var getApiV3DownloadclientById = (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/v3/downloadclient/{id}",
|
|
1182
|
+
...options
|
|
1183
|
+
});
|
|
1184
|
+
};
|
|
1185
|
+
var putApiV3DownloadclientById = (options) => {
|
|
1186
|
+
return (options.client ?? client).put({
|
|
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/v3/downloadclient/{id}",
|
|
1199
|
+
...options,
|
|
1200
|
+
headers: {
|
|
1201
|
+
"Content-Type": "application/json",
|
|
1202
|
+
...options.headers
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1205
|
+
};
|
|
1206
|
+
var deleteApiV3DownloadclientBulk = (options) => {
|
|
1207
|
+
return (options?.client ?? client).delete({
|
|
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/v3/downloadclient/bulk",
|
|
1220
|
+
...options,
|
|
1221
|
+
headers: {
|
|
1222
|
+
"Content-Type": "application/json",
|
|
1223
|
+
...options?.headers
|
|
1224
|
+
}
|
|
1225
|
+
});
|
|
1226
|
+
};
|
|
1227
|
+
var putApiV3DownloadclientBulk = (options) => {
|
|
1228
|
+
return (options?.client ?? client).put({
|
|
1229
|
+
security: [
|
|
1230
|
+
{
|
|
1231
|
+
name: "X-Api-Key",
|
|
1232
|
+
type: "apiKey"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
in: "query",
|
|
1236
|
+
name: "apikey",
|
|
1237
|
+
type: "apiKey"
|
|
1238
|
+
}
|
|
1239
|
+
],
|
|
1240
|
+
url: "/api/v3/downloadclient/bulk",
|
|
1241
|
+
...options,
|
|
1242
|
+
headers: {
|
|
1243
|
+
"Content-Type": "application/json",
|
|
1244
|
+
...options?.headers
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
};
|
|
1248
|
+
var getApiV3DownloadclientSchema = (options) => {
|
|
1249
|
+
return (options?.client ?? client).get({
|
|
1250
|
+
security: [
|
|
1251
|
+
{
|
|
1252
|
+
name: "X-Api-Key",
|
|
1253
|
+
type: "apiKey"
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
in: "query",
|
|
1257
|
+
name: "apikey",
|
|
1258
|
+
type: "apiKey"
|
|
1259
|
+
}
|
|
1260
|
+
],
|
|
1261
|
+
url: "/api/v3/downloadclient/schema",
|
|
1262
|
+
...options
|
|
1263
|
+
});
|
|
1264
|
+
};
|
|
1265
|
+
var postApiV3DownloadclientTest = (options) => {
|
|
1266
|
+
return (options?.client ?? client).post({
|
|
1267
|
+
security: [
|
|
1268
|
+
{
|
|
1269
|
+
name: "X-Api-Key",
|
|
1270
|
+
type: "apiKey"
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
in: "query",
|
|
1274
|
+
name: "apikey",
|
|
1275
|
+
type: "apiKey"
|
|
1276
|
+
}
|
|
1277
|
+
],
|
|
1278
|
+
url: "/api/v3/downloadclient/test",
|
|
1279
|
+
...options,
|
|
1280
|
+
headers: {
|
|
1281
|
+
"Content-Type": "application/json",
|
|
1282
|
+
...options?.headers
|
|
1283
|
+
}
|
|
1284
|
+
});
|
|
1285
|
+
};
|
|
1286
|
+
var postApiV3DownloadclientTestall = (options) => {
|
|
1287
|
+
return (options?.client ?? client).post({
|
|
1288
|
+
security: [
|
|
1289
|
+
{
|
|
1290
|
+
name: "X-Api-Key",
|
|
1291
|
+
type: "apiKey"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
in: "query",
|
|
1295
|
+
name: "apikey",
|
|
1296
|
+
type: "apiKey"
|
|
1297
|
+
}
|
|
1298
|
+
],
|
|
1299
|
+
url: "/api/v3/downloadclient/testall",
|
|
1300
|
+
...options
|
|
1301
|
+
});
|
|
1302
|
+
};
|
|
1303
|
+
var getApiV3Episode = (options) => {
|
|
1304
|
+
return (options?.client ?? client).get({
|
|
1305
|
+
security: [
|
|
1306
|
+
{
|
|
1307
|
+
name: "X-Api-Key",
|
|
1308
|
+
type: "apiKey"
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
in: "query",
|
|
1312
|
+
name: "apikey",
|
|
1313
|
+
type: "apiKey"
|
|
1314
|
+
}
|
|
1315
|
+
],
|
|
1316
|
+
url: "/api/v3/episode",
|
|
1317
|
+
...options
|
|
1318
|
+
});
|
|
1319
|
+
};
|
|
1320
|
+
var getApiV3EpisodeById = (options) => {
|
|
1321
|
+
return (options.client ?? client).get({
|
|
1322
|
+
security: [
|
|
1323
|
+
{
|
|
1324
|
+
name: "X-Api-Key",
|
|
1325
|
+
type: "apiKey"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
in: "query",
|
|
1329
|
+
name: "apikey",
|
|
1330
|
+
type: "apiKey"
|
|
1331
|
+
}
|
|
1332
|
+
],
|
|
1333
|
+
url: "/api/v3/episode/{id}",
|
|
1334
|
+
...options
|
|
1335
|
+
});
|
|
1336
|
+
};
|
|
1337
|
+
var putApiV3EpisodeById = (options) => {
|
|
1338
|
+
return (options.client ?? client).put({
|
|
1339
|
+
security: [
|
|
1340
|
+
{
|
|
1341
|
+
name: "X-Api-Key",
|
|
1342
|
+
type: "apiKey"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
in: "query",
|
|
1346
|
+
name: "apikey",
|
|
1347
|
+
type: "apiKey"
|
|
1348
|
+
}
|
|
1349
|
+
],
|
|
1350
|
+
url: "/api/v3/episode/{id}",
|
|
1351
|
+
...options,
|
|
1352
|
+
headers: {
|
|
1353
|
+
"Content-Type": "application/json",
|
|
1354
|
+
...options.headers
|
|
1355
|
+
}
|
|
1356
|
+
});
|
|
1357
|
+
};
|
|
1358
|
+
var getApiV3ConfigHost = (options) => {
|
|
1359
|
+
return (options?.client ?? client).get({
|
|
1360
|
+
security: [
|
|
1361
|
+
{
|
|
1362
|
+
name: "X-Api-Key",
|
|
1363
|
+
type: "apiKey"
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
in: "query",
|
|
1367
|
+
name: "apikey",
|
|
1368
|
+
type: "apiKey"
|
|
1369
|
+
}
|
|
1370
|
+
],
|
|
1371
|
+
url: "/api/v3/config/host",
|
|
1372
|
+
...options
|
|
1373
|
+
});
|
|
1374
|
+
};
|
|
1375
|
+
var getApiV3ConfigHostById = (options) => {
|
|
1376
|
+
return (options.client ?? client).get({
|
|
1377
|
+
security: [
|
|
1378
|
+
{
|
|
1379
|
+
name: "X-Api-Key",
|
|
1380
|
+
type: "apiKey"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
in: "query",
|
|
1384
|
+
name: "apikey",
|
|
1385
|
+
type: "apiKey"
|
|
1386
|
+
}
|
|
1387
|
+
],
|
|
1388
|
+
url: "/api/v3/config/host/{id}",
|
|
1389
|
+
...options
|
|
1390
|
+
});
|
|
1391
|
+
};
|
|
1392
|
+
var putApiV3ConfigHostById = (options) => {
|
|
1393
|
+
return (options.client ?? client).put({
|
|
1394
|
+
security: [
|
|
1395
|
+
{
|
|
1396
|
+
name: "X-Api-Key",
|
|
1397
|
+
type: "apiKey"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
in: "query",
|
|
1401
|
+
name: "apikey",
|
|
1402
|
+
type: "apiKey"
|
|
1403
|
+
}
|
|
1404
|
+
],
|
|
1405
|
+
url: "/api/v3/config/host/{id}",
|
|
1406
|
+
...options,
|
|
1407
|
+
headers: {
|
|
1408
|
+
"Content-Type": "application/json",
|
|
1409
|
+
...options.headers
|
|
1410
|
+
}
|
|
1411
|
+
});
|
|
1412
|
+
};
|
|
1413
|
+
var getApiV3Importlist = (options) => {
|
|
1414
|
+
return (options?.client ?? client).get({
|
|
1415
|
+
security: [
|
|
1416
|
+
{
|
|
1417
|
+
name: "X-Api-Key",
|
|
1418
|
+
type: "apiKey"
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
in: "query",
|
|
1422
|
+
name: "apikey",
|
|
1423
|
+
type: "apiKey"
|
|
1424
|
+
}
|
|
1425
|
+
],
|
|
1426
|
+
url: "/api/v3/importlist",
|
|
1427
|
+
...options
|
|
1428
|
+
});
|
|
1429
|
+
};
|
|
1430
|
+
var postApiV3Importlist = (options) => {
|
|
1431
|
+
return (options?.client ?? client).post({
|
|
1432
|
+
security: [
|
|
1433
|
+
{
|
|
1434
|
+
name: "X-Api-Key",
|
|
1435
|
+
type: "apiKey"
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
in: "query",
|
|
1439
|
+
name: "apikey",
|
|
1440
|
+
type: "apiKey"
|
|
1441
|
+
}
|
|
1442
|
+
],
|
|
1443
|
+
url: "/api/v3/importlist",
|
|
1444
|
+
...options,
|
|
1445
|
+
headers: {
|
|
1446
|
+
"Content-Type": "application/json",
|
|
1447
|
+
...options?.headers
|
|
1448
|
+
}
|
|
1449
|
+
});
|
|
1450
|
+
};
|
|
1451
|
+
var deleteApiV3ImportlistById = (options) => {
|
|
1452
|
+
return (options.client ?? client).delete({
|
|
1453
|
+
security: [
|
|
1454
|
+
{
|
|
1455
|
+
name: "X-Api-Key",
|
|
1456
|
+
type: "apiKey"
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
in: "query",
|
|
1460
|
+
name: "apikey",
|
|
1461
|
+
type: "apiKey"
|
|
1462
|
+
}
|
|
1463
|
+
],
|
|
1464
|
+
url: "/api/v3/importlist/{id}",
|
|
1465
|
+
...options
|
|
1466
|
+
});
|
|
1467
|
+
};
|
|
1468
|
+
var getApiV3ImportlistById = (options) => {
|
|
1469
|
+
return (options.client ?? client).get({
|
|
1470
|
+
security: [
|
|
1471
|
+
{
|
|
1472
|
+
name: "X-Api-Key",
|
|
1473
|
+
type: "apiKey"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
in: "query",
|
|
1477
|
+
name: "apikey",
|
|
1478
|
+
type: "apiKey"
|
|
1479
|
+
}
|
|
1480
|
+
],
|
|
1481
|
+
url: "/api/v3/importlist/{id}",
|
|
1482
|
+
...options
|
|
1483
|
+
});
|
|
1484
|
+
};
|
|
1485
|
+
var putApiV3ImportlistById = (options) => {
|
|
1486
|
+
return (options.client ?? client).put({
|
|
1487
|
+
security: [
|
|
1488
|
+
{
|
|
1489
|
+
name: "X-Api-Key",
|
|
1490
|
+
type: "apiKey"
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
in: "query",
|
|
1494
|
+
name: "apikey",
|
|
1495
|
+
type: "apiKey"
|
|
1496
|
+
}
|
|
1497
|
+
],
|
|
1498
|
+
url: "/api/v3/importlist/{id}",
|
|
1499
|
+
...options,
|
|
1500
|
+
headers: {
|
|
1501
|
+
"Content-Type": "application/json",
|
|
1502
|
+
...options.headers
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1505
|
+
};
|
|
1506
|
+
var getApiV3ImportlistSchema = (options) => {
|
|
1507
|
+
return (options?.client ?? client).get({
|
|
1508
|
+
security: [
|
|
1509
|
+
{
|
|
1510
|
+
name: "X-Api-Key",
|
|
1511
|
+
type: "apiKey"
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
in: "query",
|
|
1515
|
+
name: "apikey",
|
|
1516
|
+
type: "apiKey"
|
|
1517
|
+
}
|
|
1518
|
+
],
|
|
1519
|
+
url: "/api/v3/importlist/schema",
|
|
1520
|
+
...options
|
|
1521
|
+
});
|
|
1522
|
+
};
|
|
1523
|
+
var postApiV3ImportlistTest = (options) => {
|
|
1524
|
+
return (options?.client ?? client).post({
|
|
1525
|
+
security: [
|
|
1526
|
+
{
|
|
1527
|
+
name: "X-Api-Key",
|
|
1528
|
+
type: "apiKey"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
in: "query",
|
|
1532
|
+
name: "apikey",
|
|
1533
|
+
type: "apiKey"
|
|
1534
|
+
}
|
|
1535
|
+
],
|
|
1536
|
+
url: "/api/v3/importlist/test",
|
|
1537
|
+
...options,
|
|
1538
|
+
headers: {
|
|
1539
|
+
"Content-Type": "application/json",
|
|
1540
|
+
...options?.headers
|
|
1541
|
+
}
|
|
1542
|
+
});
|
|
1543
|
+
};
|
|
1544
|
+
var postApiV3ImportlistTestall = (options) => {
|
|
1545
|
+
return (options?.client ?? client).post({
|
|
1546
|
+
security: [
|
|
1547
|
+
{
|
|
1548
|
+
name: "X-Api-Key",
|
|
1549
|
+
type: "apiKey"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
in: "query",
|
|
1553
|
+
name: "apikey",
|
|
1554
|
+
type: "apiKey"
|
|
1555
|
+
}
|
|
1556
|
+
],
|
|
1557
|
+
url: "/api/v3/importlist/testall",
|
|
1558
|
+
...options
|
|
1559
|
+
});
|
|
1560
|
+
};
|
|
1561
|
+
var getApiV3Indexer = (options) => {
|
|
1562
|
+
return (options?.client ?? client).get({
|
|
1563
|
+
security: [
|
|
1564
|
+
{
|
|
1565
|
+
name: "X-Api-Key",
|
|
1566
|
+
type: "apiKey"
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
in: "query",
|
|
1570
|
+
name: "apikey",
|
|
1571
|
+
type: "apiKey"
|
|
1572
|
+
}
|
|
1573
|
+
],
|
|
1574
|
+
url: "/api/v3/indexer",
|
|
1575
|
+
...options
|
|
1576
|
+
});
|
|
1577
|
+
};
|
|
1578
|
+
var postApiV3Indexer = (options) => {
|
|
1579
|
+
return (options?.client ?? client).post({
|
|
1580
|
+
security: [
|
|
1581
|
+
{
|
|
1582
|
+
name: "X-Api-Key",
|
|
1583
|
+
type: "apiKey"
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
in: "query",
|
|
1587
|
+
name: "apikey",
|
|
1588
|
+
type: "apiKey"
|
|
1589
|
+
}
|
|
1590
|
+
],
|
|
1591
|
+
url: "/api/v3/indexer",
|
|
1592
|
+
...options,
|
|
1593
|
+
headers: {
|
|
1594
|
+
"Content-Type": "application/json",
|
|
1595
|
+
...options?.headers
|
|
1596
|
+
}
|
|
1597
|
+
});
|
|
1598
|
+
};
|
|
1599
|
+
var deleteApiV3IndexerById = (options) => {
|
|
1600
|
+
return (options.client ?? client).delete({
|
|
1601
|
+
security: [
|
|
1602
|
+
{
|
|
1603
|
+
name: "X-Api-Key",
|
|
1604
|
+
type: "apiKey"
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
in: "query",
|
|
1608
|
+
name: "apikey",
|
|
1609
|
+
type: "apiKey"
|
|
1610
|
+
}
|
|
1611
|
+
],
|
|
1612
|
+
url: "/api/v3/indexer/{id}",
|
|
1613
|
+
...options
|
|
1614
|
+
});
|
|
1615
|
+
};
|
|
1616
|
+
var getApiV3IndexerById = (options) => {
|
|
1617
|
+
return (options.client ?? client).get({
|
|
1618
|
+
security: [
|
|
1619
|
+
{
|
|
1620
|
+
name: "X-Api-Key",
|
|
1621
|
+
type: "apiKey"
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
in: "query",
|
|
1625
|
+
name: "apikey",
|
|
1626
|
+
type: "apiKey"
|
|
1627
|
+
}
|
|
1628
|
+
],
|
|
1629
|
+
url: "/api/v3/indexer/{id}",
|
|
1630
|
+
...options
|
|
1631
|
+
});
|
|
1632
|
+
};
|
|
1633
|
+
var putApiV3IndexerById = (options) => {
|
|
1634
|
+
return (options.client ?? client).put({
|
|
1635
|
+
security: [
|
|
1636
|
+
{
|
|
1637
|
+
name: "X-Api-Key",
|
|
1638
|
+
type: "apiKey"
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
in: "query",
|
|
1642
|
+
name: "apikey",
|
|
1643
|
+
type: "apiKey"
|
|
1644
|
+
}
|
|
1645
|
+
],
|
|
1646
|
+
url: "/api/v3/indexer/{id}",
|
|
1647
|
+
...options,
|
|
1648
|
+
headers: {
|
|
1649
|
+
"Content-Type": "application/json",
|
|
1650
|
+
...options.headers
|
|
1651
|
+
}
|
|
1652
|
+
});
|
|
1653
|
+
};
|
|
1654
|
+
var getApiV3IndexerSchema = (options) => {
|
|
1655
|
+
return (options?.client ?? client).get({
|
|
1656
|
+
security: [
|
|
1657
|
+
{
|
|
1658
|
+
name: "X-Api-Key",
|
|
1659
|
+
type: "apiKey"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
in: "query",
|
|
1663
|
+
name: "apikey",
|
|
1664
|
+
type: "apiKey"
|
|
1665
|
+
}
|
|
1666
|
+
],
|
|
1667
|
+
url: "/api/v3/indexer/schema",
|
|
1668
|
+
...options
|
|
1669
|
+
});
|
|
1670
|
+
};
|
|
1671
|
+
var postApiV3IndexerTest = (options) => {
|
|
1672
|
+
return (options?.client ?? client).post({
|
|
1673
|
+
security: [
|
|
1674
|
+
{
|
|
1675
|
+
name: "X-Api-Key",
|
|
1676
|
+
type: "apiKey"
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
in: "query",
|
|
1680
|
+
name: "apikey",
|
|
1681
|
+
type: "apiKey"
|
|
1682
|
+
}
|
|
1683
|
+
],
|
|
1684
|
+
url: "/api/v3/indexer/test",
|
|
1685
|
+
...options,
|
|
1686
|
+
headers: {
|
|
1687
|
+
"Content-Type": "application/json",
|
|
1688
|
+
...options?.headers
|
|
1689
|
+
}
|
|
1690
|
+
});
|
|
1691
|
+
};
|
|
1692
|
+
var postApiV3IndexerTestall = (options) => {
|
|
1693
|
+
return (options?.client ?? client).post({
|
|
1694
|
+
security: [
|
|
1695
|
+
{
|
|
1696
|
+
name: "X-Api-Key",
|
|
1697
|
+
type: "apiKey"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
in: "query",
|
|
1701
|
+
name: "apikey",
|
|
1702
|
+
type: "apiKey"
|
|
1703
|
+
}
|
|
1704
|
+
],
|
|
1705
|
+
url: "/api/v3/indexer/testall",
|
|
1706
|
+
...options
|
|
1707
|
+
});
|
|
1708
|
+
};
|
|
1709
|
+
var getApiV3Log = (options) => {
|
|
1710
|
+
return (options?.client ?? client).get({
|
|
1711
|
+
security: [
|
|
1712
|
+
{
|
|
1713
|
+
name: "X-Api-Key",
|
|
1714
|
+
type: "apiKey"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
in: "query",
|
|
1718
|
+
name: "apikey",
|
|
1719
|
+
type: "apiKey"
|
|
1720
|
+
}
|
|
1721
|
+
],
|
|
1722
|
+
url: "/api/v3/log",
|
|
1723
|
+
...options
|
|
1724
|
+
});
|
|
1725
|
+
};
|
|
1726
|
+
var getApiV3ConfigMediamanagement = (options) => {
|
|
1727
|
+
return (options?.client ?? client).get({
|
|
1728
|
+
security: [
|
|
1729
|
+
{
|
|
1730
|
+
name: "X-Api-Key",
|
|
1731
|
+
type: "apiKey"
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
in: "query",
|
|
1735
|
+
name: "apikey",
|
|
1736
|
+
type: "apiKey"
|
|
1737
|
+
}
|
|
1738
|
+
],
|
|
1739
|
+
url: "/api/v3/config/mediamanagement",
|
|
1740
|
+
...options
|
|
1741
|
+
});
|
|
1742
|
+
};
|
|
1743
|
+
var getApiV3ConfigMediamanagementById = (options) => {
|
|
1744
|
+
return (options.client ?? client).get({
|
|
1745
|
+
security: [
|
|
1746
|
+
{
|
|
1747
|
+
name: "X-Api-Key",
|
|
1748
|
+
type: "apiKey"
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
in: "query",
|
|
1752
|
+
name: "apikey",
|
|
1753
|
+
type: "apiKey"
|
|
1754
|
+
}
|
|
1755
|
+
],
|
|
1756
|
+
url: "/api/v3/config/mediamanagement/{id}",
|
|
1757
|
+
...options
|
|
1758
|
+
});
|
|
1759
|
+
};
|
|
1760
|
+
var putApiV3ConfigMediamanagementById = (options) => {
|
|
1761
|
+
return (options.client ?? client).put({
|
|
1762
|
+
security: [
|
|
1763
|
+
{
|
|
1764
|
+
name: "X-Api-Key",
|
|
1765
|
+
type: "apiKey"
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
in: "query",
|
|
1769
|
+
name: "apikey",
|
|
1770
|
+
type: "apiKey"
|
|
1771
|
+
}
|
|
1772
|
+
],
|
|
1773
|
+
url: "/api/v3/config/mediamanagement/{id}",
|
|
1774
|
+
...options,
|
|
1775
|
+
headers: {
|
|
1776
|
+
"Content-Type": "application/json",
|
|
1777
|
+
...options.headers
|
|
1778
|
+
}
|
|
1779
|
+
});
|
|
1780
|
+
};
|
|
1781
|
+
var getApiV3ConfigNaming = (options) => {
|
|
1782
|
+
return (options?.client ?? client).get({
|
|
1783
|
+
security: [
|
|
1784
|
+
{
|
|
1785
|
+
name: "X-Api-Key",
|
|
1786
|
+
type: "apiKey"
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
in: "query",
|
|
1790
|
+
name: "apikey",
|
|
1791
|
+
type: "apiKey"
|
|
1792
|
+
}
|
|
1793
|
+
],
|
|
1794
|
+
url: "/api/v3/config/naming",
|
|
1795
|
+
...options
|
|
1796
|
+
});
|
|
1797
|
+
};
|
|
1798
|
+
var getApiV3ConfigNamingById = (options) => {
|
|
1799
|
+
return (options.client ?? client).get({
|
|
1800
|
+
security: [
|
|
1801
|
+
{
|
|
1802
|
+
name: "X-Api-Key",
|
|
1803
|
+
type: "apiKey"
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
in: "query",
|
|
1807
|
+
name: "apikey",
|
|
1808
|
+
type: "apiKey"
|
|
1809
|
+
}
|
|
1810
|
+
],
|
|
1811
|
+
url: "/api/v3/config/naming/{id}",
|
|
1812
|
+
...options
|
|
1813
|
+
});
|
|
1814
|
+
};
|
|
1815
|
+
var putApiV3ConfigNamingById = (options) => {
|
|
1816
|
+
return (options.client ?? client).put({
|
|
1817
|
+
security: [
|
|
1818
|
+
{
|
|
1819
|
+
name: "X-Api-Key",
|
|
1820
|
+
type: "apiKey"
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
in: "query",
|
|
1824
|
+
name: "apikey",
|
|
1825
|
+
type: "apiKey"
|
|
1826
|
+
}
|
|
1827
|
+
],
|
|
1828
|
+
url: "/api/v3/config/naming/{id}",
|
|
1829
|
+
...options,
|
|
1830
|
+
headers: {
|
|
1831
|
+
"Content-Type": "application/json",
|
|
1832
|
+
...options.headers
|
|
1833
|
+
}
|
|
1834
|
+
});
|
|
1835
|
+
};
|
|
1836
|
+
var getApiV3ConfigNamingExamples = (options) => {
|
|
1837
|
+
return (options?.client ?? client).get({
|
|
1838
|
+
security: [
|
|
1839
|
+
{
|
|
1840
|
+
name: "X-Api-Key",
|
|
1841
|
+
type: "apiKey"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
in: "query",
|
|
1845
|
+
name: "apikey",
|
|
1846
|
+
type: "apiKey"
|
|
1847
|
+
}
|
|
1848
|
+
],
|
|
1849
|
+
url: "/api/v3/config/naming/examples",
|
|
1850
|
+
...options
|
|
1851
|
+
});
|
|
1852
|
+
};
|
|
1853
|
+
var getApiV3Notification = (options) => {
|
|
1854
|
+
return (options?.client ?? client).get({
|
|
1855
|
+
security: [
|
|
1856
|
+
{
|
|
1857
|
+
name: "X-Api-Key",
|
|
1858
|
+
type: "apiKey"
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
in: "query",
|
|
1862
|
+
name: "apikey",
|
|
1863
|
+
type: "apiKey"
|
|
1864
|
+
}
|
|
1865
|
+
],
|
|
1866
|
+
url: "/api/v3/notification",
|
|
1867
|
+
...options
|
|
1868
|
+
});
|
|
1869
|
+
};
|
|
1870
|
+
var postApiV3Notification = (options) => {
|
|
1871
|
+
return (options?.client ?? client).post({
|
|
1872
|
+
security: [
|
|
1873
|
+
{
|
|
1874
|
+
name: "X-Api-Key",
|
|
1875
|
+
type: "apiKey"
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
in: "query",
|
|
1879
|
+
name: "apikey",
|
|
1880
|
+
type: "apiKey"
|
|
1881
|
+
}
|
|
1882
|
+
],
|
|
1883
|
+
url: "/api/v3/notification",
|
|
1884
|
+
...options,
|
|
1885
|
+
headers: {
|
|
1886
|
+
"Content-Type": "application/json",
|
|
1887
|
+
...options?.headers
|
|
1888
|
+
}
|
|
1889
|
+
});
|
|
1890
|
+
};
|
|
1891
|
+
var deleteApiV3NotificationById = (options) => {
|
|
1892
|
+
return (options.client ?? client).delete({
|
|
1893
|
+
security: [
|
|
1894
|
+
{
|
|
1895
|
+
name: "X-Api-Key",
|
|
1896
|
+
type: "apiKey"
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
in: "query",
|
|
1900
|
+
name: "apikey",
|
|
1901
|
+
type: "apiKey"
|
|
1902
|
+
}
|
|
1903
|
+
],
|
|
1904
|
+
url: "/api/v3/notification/{id}",
|
|
1905
|
+
...options
|
|
1906
|
+
});
|
|
1907
|
+
};
|
|
1908
|
+
var getApiV3NotificationById = (options) => {
|
|
1909
|
+
return (options.client ?? client).get({
|
|
1910
|
+
security: [
|
|
1911
|
+
{
|
|
1912
|
+
name: "X-Api-Key",
|
|
1913
|
+
type: "apiKey"
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
in: "query",
|
|
1917
|
+
name: "apikey",
|
|
1918
|
+
type: "apiKey"
|
|
1919
|
+
}
|
|
1920
|
+
],
|
|
1921
|
+
url: "/api/v3/notification/{id}",
|
|
1922
|
+
...options
|
|
1923
|
+
});
|
|
1924
|
+
};
|
|
1925
|
+
var putApiV3NotificationById = (options) => {
|
|
1926
|
+
return (options.client ?? client).put({
|
|
1927
|
+
security: [
|
|
1928
|
+
{
|
|
1929
|
+
name: "X-Api-Key",
|
|
1930
|
+
type: "apiKey"
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
in: "query",
|
|
1934
|
+
name: "apikey",
|
|
1935
|
+
type: "apiKey"
|
|
1936
|
+
}
|
|
1937
|
+
],
|
|
1938
|
+
url: "/api/v3/notification/{id}",
|
|
1939
|
+
...options,
|
|
1940
|
+
headers: {
|
|
1941
|
+
"Content-Type": "application/json",
|
|
1942
|
+
...options.headers
|
|
1943
|
+
}
|
|
1944
|
+
});
|
|
1945
|
+
};
|
|
1946
|
+
var getApiV3NotificationSchema = (options) => {
|
|
1947
|
+
return (options?.client ?? client).get({
|
|
1948
|
+
security: [
|
|
1949
|
+
{
|
|
1950
|
+
name: "X-Api-Key",
|
|
1951
|
+
type: "apiKey"
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
in: "query",
|
|
1955
|
+
name: "apikey",
|
|
1956
|
+
type: "apiKey"
|
|
1957
|
+
}
|
|
1958
|
+
],
|
|
1959
|
+
url: "/api/v3/notification/schema",
|
|
1960
|
+
...options
|
|
1961
|
+
});
|
|
1962
|
+
};
|
|
1963
|
+
var postApiV3NotificationTest = (options) => {
|
|
1964
|
+
return (options?.client ?? client).post({
|
|
1965
|
+
security: [
|
|
1966
|
+
{
|
|
1967
|
+
name: "X-Api-Key",
|
|
1968
|
+
type: "apiKey"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
in: "query",
|
|
1972
|
+
name: "apikey",
|
|
1973
|
+
type: "apiKey"
|
|
1974
|
+
}
|
|
1975
|
+
],
|
|
1976
|
+
url: "/api/v3/notification/test",
|
|
1977
|
+
...options,
|
|
1978
|
+
headers: {
|
|
1979
|
+
"Content-Type": "application/json",
|
|
1980
|
+
...options?.headers
|
|
1981
|
+
}
|
|
1982
|
+
});
|
|
1983
|
+
};
|
|
1984
|
+
var postApiV3NotificationTestall = (options) => {
|
|
1985
|
+
return (options?.client ?? client).post({
|
|
1986
|
+
security: [
|
|
1987
|
+
{
|
|
1988
|
+
name: "X-Api-Key",
|
|
1989
|
+
type: "apiKey"
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
in: "query",
|
|
1993
|
+
name: "apikey",
|
|
1994
|
+
type: "apiKey"
|
|
1995
|
+
}
|
|
1996
|
+
],
|
|
1997
|
+
url: "/api/v3/notification/testall",
|
|
1998
|
+
...options
|
|
1999
|
+
});
|
|
2000
|
+
};
|
|
2001
|
+
var getApiV3Qualityprofile = (options) => {
|
|
2002
|
+
return (options?.client ?? client).get({
|
|
2003
|
+
security: [
|
|
2004
|
+
{
|
|
2005
|
+
name: "X-Api-Key",
|
|
2006
|
+
type: "apiKey"
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
in: "query",
|
|
2010
|
+
name: "apikey",
|
|
2011
|
+
type: "apiKey"
|
|
2012
|
+
}
|
|
2013
|
+
],
|
|
2014
|
+
url: "/api/v3/qualityprofile",
|
|
2015
|
+
...options
|
|
2016
|
+
});
|
|
2017
|
+
};
|
|
2018
|
+
var postApiV3Qualityprofile = (options) => {
|
|
2019
|
+
return (options?.client ?? client).post({
|
|
2020
|
+
security: [
|
|
2021
|
+
{
|
|
2022
|
+
name: "X-Api-Key",
|
|
2023
|
+
type: "apiKey"
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
in: "query",
|
|
2027
|
+
name: "apikey",
|
|
2028
|
+
type: "apiKey"
|
|
2029
|
+
}
|
|
2030
|
+
],
|
|
2031
|
+
url: "/api/v3/qualityprofile",
|
|
2032
|
+
...options,
|
|
2033
|
+
headers: {
|
|
2034
|
+
"Content-Type": "application/json",
|
|
2035
|
+
...options?.headers
|
|
2036
|
+
}
|
|
2037
|
+
});
|
|
2038
|
+
};
|
|
2039
|
+
var deleteApiV3QualityprofileById = (options) => {
|
|
2040
|
+
return (options.client ?? client).delete({
|
|
2041
|
+
security: [
|
|
2042
|
+
{
|
|
2043
|
+
name: "X-Api-Key",
|
|
2044
|
+
type: "apiKey"
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
in: "query",
|
|
2048
|
+
name: "apikey",
|
|
2049
|
+
type: "apiKey"
|
|
2050
|
+
}
|
|
2051
|
+
],
|
|
2052
|
+
url: "/api/v3/qualityprofile/{id}",
|
|
2053
|
+
...options
|
|
2054
|
+
});
|
|
2055
|
+
};
|
|
2056
|
+
var getApiV3QualityprofileById = (options) => {
|
|
2057
|
+
return (options.client ?? client).get({
|
|
2058
|
+
security: [
|
|
2059
|
+
{
|
|
2060
|
+
name: "X-Api-Key",
|
|
2061
|
+
type: "apiKey"
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
in: "query",
|
|
2065
|
+
name: "apikey",
|
|
2066
|
+
type: "apiKey"
|
|
2067
|
+
}
|
|
2068
|
+
],
|
|
2069
|
+
url: "/api/v3/qualityprofile/{id}",
|
|
2070
|
+
...options
|
|
2071
|
+
});
|
|
2072
|
+
};
|
|
2073
|
+
var putApiV3QualityprofileById = (options) => {
|
|
2074
|
+
return (options.client ?? client).put({
|
|
2075
|
+
security: [
|
|
2076
|
+
{
|
|
2077
|
+
name: "X-Api-Key",
|
|
2078
|
+
type: "apiKey"
|
|
2079
|
+
},
|
|
2080
|
+
{
|
|
2081
|
+
in: "query",
|
|
2082
|
+
name: "apikey",
|
|
2083
|
+
type: "apiKey"
|
|
2084
|
+
}
|
|
2085
|
+
],
|
|
2086
|
+
url: "/api/v3/qualityprofile/{id}",
|
|
2087
|
+
...options,
|
|
2088
|
+
headers: {
|
|
2089
|
+
"Content-Type": "application/json",
|
|
2090
|
+
...options.headers
|
|
2091
|
+
}
|
|
2092
|
+
});
|
|
2093
|
+
};
|
|
2094
|
+
var getApiV3QualityprofileSchema = (options) => {
|
|
2095
|
+
return (options?.client ?? client).get({
|
|
2096
|
+
security: [
|
|
2097
|
+
{
|
|
2098
|
+
name: "X-Api-Key",
|
|
2099
|
+
type: "apiKey"
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
in: "query",
|
|
2103
|
+
name: "apikey",
|
|
2104
|
+
type: "apiKey"
|
|
2105
|
+
}
|
|
2106
|
+
],
|
|
2107
|
+
url: "/api/v3/qualityprofile/schema",
|
|
2108
|
+
...options
|
|
2109
|
+
});
|
|
2110
|
+
};
|
|
2111
|
+
var getApiV3Series = (options) => {
|
|
839
2112
|
return (options?.client ?? client).get({
|
|
840
2113
|
security: [
|
|
841
2114
|
{
|
|
@@ -848,11 +2121,11 @@ var getApiV5Series = (options) => {
|
|
|
848
2121
|
type: "apiKey"
|
|
849
2122
|
}
|
|
850
2123
|
],
|
|
851
|
-
url: "/api/
|
|
2124
|
+
url: "/api/v3/series",
|
|
852
2125
|
...options
|
|
853
2126
|
});
|
|
854
2127
|
};
|
|
855
|
-
var
|
|
2128
|
+
var postApiV3Series = (options) => {
|
|
856
2129
|
return (options?.client ?? client).post({
|
|
857
2130
|
security: [
|
|
858
2131
|
{
|
|
@@ -865,7 +2138,7 @@ var postApiV5Series = (options) => {
|
|
|
865
2138
|
type: "apiKey"
|
|
866
2139
|
}
|
|
867
2140
|
],
|
|
868
|
-
url: "/api/
|
|
2141
|
+
url: "/api/v3/series",
|
|
869
2142
|
...options,
|
|
870
2143
|
headers: {
|
|
871
2144
|
"Content-Type": "application/json",
|
|
@@ -873,7 +2146,7 @@ var postApiV5Series = (options) => {
|
|
|
873
2146
|
}
|
|
874
2147
|
});
|
|
875
2148
|
};
|
|
876
|
-
var
|
|
2149
|
+
var deleteApiV3SeriesById = (options) => {
|
|
877
2150
|
return (options.client ?? client).delete({
|
|
878
2151
|
security: [
|
|
879
2152
|
{
|
|
@@ -886,11 +2159,11 @@ var deleteApiV5SeriesById = (options) => {
|
|
|
886
2159
|
type: "apiKey"
|
|
887
2160
|
}
|
|
888
2161
|
],
|
|
889
|
-
url: "/api/
|
|
2162
|
+
url: "/api/v3/series/{id}",
|
|
890
2163
|
...options
|
|
891
2164
|
});
|
|
892
2165
|
};
|
|
893
|
-
var
|
|
2166
|
+
var getApiV3SeriesById = (options) => {
|
|
894
2167
|
return (options.client ?? client).get({
|
|
895
2168
|
security: [
|
|
896
2169
|
{
|
|
@@ -903,11 +2176,11 @@ var getApiV5SeriesById = (options) => {
|
|
|
903
2176
|
type: "apiKey"
|
|
904
2177
|
}
|
|
905
2178
|
],
|
|
906
|
-
url: "/api/
|
|
2179
|
+
url: "/api/v3/series/{id}",
|
|
907
2180
|
...options
|
|
908
2181
|
});
|
|
909
2182
|
};
|
|
910
|
-
var
|
|
2183
|
+
var putApiV3SeriesById = (options) => {
|
|
911
2184
|
return (options.client ?? client).put({
|
|
912
2185
|
security: [
|
|
913
2186
|
{
|
|
@@ -920,7 +2193,7 @@ var putApiV5SeriesById = (options) => {
|
|
|
920
2193
|
type: "apiKey"
|
|
921
2194
|
}
|
|
922
2195
|
],
|
|
923
|
-
url: "/api/
|
|
2196
|
+
url: "/api/v3/series/{id}",
|
|
924
2197
|
...options,
|
|
925
2198
|
headers: {
|
|
926
2199
|
"Content-Type": "application/json",
|
|
@@ -928,7 +2201,7 @@ var putApiV5SeriesById = (options) => {
|
|
|
928
2201
|
}
|
|
929
2202
|
});
|
|
930
2203
|
};
|
|
931
|
-
var
|
|
2204
|
+
var getApiV3SeriesByIdFolder = (options) => {
|
|
932
2205
|
return (options.client ?? client).get({
|
|
933
2206
|
security: [
|
|
934
2207
|
{
|
|
@@ -941,11 +2214,11 @@ var getApiV5SeriesByIdFolder = (options) => {
|
|
|
941
2214
|
type: "apiKey"
|
|
942
2215
|
}
|
|
943
2216
|
],
|
|
944
|
-
url: "/api/
|
|
2217
|
+
url: "/api/v3/series/{id}/folder",
|
|
945
2218
|
...options
|
|
946
2219
|
});
|
|
947
2220
|
};
|
|
948
|
-
var
|
|
2221
|
+
var getApiV3SeriesLookup = (options) => {
|
|
949
2222
|
return (options?.client ?? client).get({
|
|
950
2223
|
security: [
|
|
951
2224
|
{
|
|
@@ -958,11 +2231,45 @@ var getApiV5SeriesLookup = (options) => {
|
|
|
958
2231
|
type: "apiKey"
|
|
959
2232
|
}
|
|
960
2233
|
],
|
|
961
|
-
url: "/api/
|
|
2234
|
+
url: "/api/v3/series/lookup",
|
|
2235
|
+
...options
|
|
2236
|
+
});
|
|
2237
|
+
};
|
|
2238
|
+
var postApiV3SystemShutdown = (options) => {
|
|
2239
|
+
return (options?.client ?? client).post({
|
|
2240
|
+
security: [
|
|
2241
|
+
{
|
|
2242
|
+
name: "X-Api-Key",
|
|
2243
|
+
type: "apiKey"
|
|
2244
|
+
},
|
|
2245
|
+
{
|
|
2246
|
+
in: "query",
|
|
2247
|
+
name: "apikey",
|
|
2248
|
+
type: "apiKey"
|
|
2249
|
+
}
|
|
2250
|
+
],
|
|
2251
|
+
url: "/api/v3/system/shutdown",
|
|
2252
|
+
...options
|
|
2253
|
+
});
|
|
2254
|
+
};
|
|
2255
|
+
var postApiV3SystemRestart = (options) => {
|
|
2256
|
+
return (options?.client ?? client).post({
|
|
2257
|
+
security: [
|
|
2258
|
+
{
|
|
2259
|
+
name: "X-Api-Key",
|
|
2260
|
+
type: "apiKey"
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
in: "query",
|
|
2264
|
+
name: "apikey",
|
|
2265
|
+
type: "apiKey"
|
|
2266
|
+
}
|
|
2267
|
+
],
|
|
2268
|
+
url: "/api/v3/system/restart",
|
|
962
2269
|
...options
|
|
963
2270
|
});
|
|
964
2271
|
};
|
|
965
|
-
var
|
|
2272
|
+
var getApiV3Tag = (options) => {
|
|
966
2273
|
return (options?.client ?? client).get({
|
|
967
2274
|
security: [
|
|
968
2275
|
{
|
|
@@ -975,11 +2282,87 @@ var getApiV5Update = (options) => {
|
|
|
975
2282
|
type: "apiKey"
|
|
976
2283
|
}
|
|
977
2284
|
],
|
|
978
|
-
url: "/api/
|
|
2285
|
+
url: "/api/v3/tag",
|
|
2286
|
+
...options
|
|
2287
|
+
});
|
|
2288
|
+
};
|
|
2289
|
+
var postApiV3Tag = (options) => {
|
|
2290
|
+
return (options?.client ?? client).post({
|
|
2291
|
+
security: [
|
|
2292
|
+
{
|
|
2293
|
+
name: "X-Api-Key",
|
|
2294
|
+
type: "apiKey"
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
in: "query",
|
|
2298
|
+
name: "apikey",
|
|
2299
|
+
type: "apiKey"
|
|
2300
|
+
}
|
|
2301
|
+
],
|
|
2302
|
+
url: "/api/v3/tag",
|
|
2303
|
+
...options,
|
|
2304
|
+
headers: {
|
|
2305
|
+
"Content-Type": "application/json",
|
|
2306
|
+
...options?.headers
|
|
2307
|
+
}
|
|
2308
|
+
});
|
|
2309
|
+
};
|
|
2310
|
+
var deleteApiV3TagById = (options) => {
|
|
2311
|
+
return (options.client ?? client).delete({
|
|
2312
|
+
security: [
|
|
2313
|
+
{
|
|
2314
|
+
name: "X-Api-Key",
|
|
2315
|
+
type: "apiKey"
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
in: "query",
|
|
2319
|
+
name: "apikey",
|
|
2320
|
+
type: "apiKey"
|
|
2321
|
+
}
|
|
2322
|
+
],
|
|
2323
|
+
url: "/api/v3/tag/{id}",
|
|
2324
|
+
...options
|
|
2325
|
+
});
|
|
2326
|
+
};
|
|
2327
|
+
var getApiV3TagById = (options) => {
|
|
2328
|
+
return (options.client ?? client).get({
|
|
2329
|
+
security: [
|
|
2330
|
+
{
|
|
2331
|
+
name: "X-Api-Key",
|
|
2332
|
+
type: "apiKey"
|
|
2333
|
+
},
|
|
2334
|
+
{
|
|
2335
|
+
in: "query",
|
|
2336
|
+
name: "apikey",
|
|
2337
|
+
type: "apiKey"
|
|
2338
|
+
}
|
|
2339
|
+
],
|
|
2340
|
+
url: "/api/v3/tag/{id}",
|
|
979
2341
|
...options
|
|
980
2342
|
});
|
|
981
2343
|
};
|
|
982
|
-
var
|
|
2344
|
+
var putApiV3TagById = (options) => {
|
|
2345
|
+
return (options.client ?? client).put({
|
|
2346
|
+
security: [
|
|
2347
|
+
{
|
|
2348
|
+
name: "X-Api-Key",
|
|
2349
|
+
type: "apiKey"
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
in: "query",
|
|
2353
|
+
name: "apikey",
|
|
2354
|
+
type: "apiKey"
|
|
2355
|
+
}
|
|
2356
|
+
],
|
|
2357
|
+
url: "/api/v3/tag/{id}",
|
|
2358
|
+
...options,
|
|
2359
|
+
headers: {
|
|
2360
|
+
"Content-Type": "application/json",
|
|
2361
|
+
...options.headers
|
|
2362
|
+
}
|
|
2363
|
+
});
|
|
2364
|
+
};
|
|
2365
|
+
var getApiV3TagDetail = (options) => {
|
|
983
2366
|
return (options?.client ?? client).get({
|
|
984
2367
|
security: [
|
|
985
2368
|
{
|
|
@@ -992,11 +2375,28 @@ var getApiV5SettingsUpdate = (options) => {
|
|
|
992
2375
|
type: "apiKey"
|
|
993
2376
|
}
|
|
994
2377
|
],
|
|
995
|
-
url: "/api/
|
|
2378
|
+
url: "/api/v3/tag/detail",
|
|
2379
|
+
...options
|
|
2380
|
+
});
|
|
2381
|
+
};
|
|
2382
|
+
var getApiV3TagDetailById = (options) => {
|
|
2383
|
+
return (options.client ?? client).get({
|
|
2384
|
+
security: [
|
|
2385
|
+
{
|
|
2386
|
+
name: "X-Api-Key",
|
|
2387
|
+
type: "apiKey"
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
in: "query",
|
|
2391
|
+
name: "apikey",
|
|
2392
|
+
type: "apiKey"
|
|
2393
|
+
}
|
|
2394
|
+
],
|
|
2395
|
+
url: "/api/v3/tag/detail/{id}",
|
|
996
2396
|
...options
|
|
997
2397
|
});
|
|
998
2398
|
};
|
|
999
|
-
var
|
|
2399
|
+
var getApiV3ConfigUiById = (options) => {
|
|
1000
2400
|
return (options.client ?? client).get({
|
|
1001
2401
|
security: [
|
|
1002
2402
|
{
|
|
@@ -1009,7 +2409,62 @@ var getApiV5SettingsUpdateById = (options) => {
|
|
|
1009
2409
|
type: "apiKey"
|
|
1010
2410
|
}
|
|
1011
2411
|
],
|
|
1012
|
-
url: "/api/
|
|
2412
|
+
url: "/api/v3/config/ui/{id}",
|
|
2413
|
+
...options
|
|
2414
|
+
});
|
|
2415
|
+
};
|
|
2416
|
+
var putApiV3ConfigUiById = (options) => {
|
|
2417
|
+
return (options.client ?? client).put({
|
|
2418
|
+
security: [
|
|
2419
|
+
{
|
|
2420
|
+
name: "X-Api-Key",
|
|
2421
|
+
type: "apiKey"
|
|
2422
|
+
},
|
|
2423
|
+
{
|
|
2424
|
+
in: "query",
|
|
2425
|
+
name: "apikey",
|
|
2426
|
+
type: "apiKey"
|
|
2427
|
+
}
|
|
2428
|
+
],
|
|
2429
|
+
url: "/api/v3/config/ui/{id}",
|
|
2430
|
+
...options,
|
|
2431
|
+
headers: {
|
|
2432
|
+
"Content-Type": "application/json",
|
|
2433
|
+
...options.headers
|
|
2434
|
+
}
|
|
2435
|
+
});
|
|
2436
|
+
};
|
|
2437
|
+
var getApiV3ConfigUi = (options) => {
|
|
2438
|
+
return (options?.client ?? client).get({
|
|
2439
|
+
security: [
|
|
2440
|
+
{
|
|
2441
|
+
name: "X-Api-Key",
|
|
2442
|
+
type: "apiKey"
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
in: "query",
|
|
2446
|
+
name: "apikey",
|
|
2447
|
+
type: "apiKey"
|
|
2448
|
+
}
|
|
2449
|
+
],
|
|
2450
|
+
url: "/api/v3/config/ui",
|
|
2451
|
+
...options
|
|
2452
|
+
});
|
|
2453
|
+
};
|
|
2454
|
+
var getApiV3Update = (options) => {
|
|
2455
|
+
return (options?.client ?? client).get({
|
|
2456
|
+
security: [
|
|
2457
|
+
{
|
|
2458
|
+
name: "X-Api-Key",
|
|
2459
|
+
type: "apiKey"
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
in: "query",
|
|
2463
|
+
name: "apikey",
|
|
2464
|
+
type: "apiKey"
|
|
2465
|
+
}
|
|
2466
|
+
],
|
|
2467
|
+
url: "/api/v3/update",
|
|
1013
2468
|
...options
|
|
1014
2469
|
});
|
|
1015
2470
|
};
|
|
@@ -1042,25 +2497,25 @@ class SonarrClient {
|
|
|
1042
2497
|
});
|
|
1043
2498
|
}
|
|
1044
2499
|
async getSeries() {
|
|
1045
|
-
return
|
|
2500
|
+
return getApiV3Series();
|
|
1046
2501
|
}
|
|
1047
2502
|
async getSeriesById(id) {
|
|
1048
|
-
return
|
|
2503
|
+
return getApiV3SeriesById({ path: { id } });
|
|
1049
2504
|
}
|
|
1050
2505
|
async addSeries(series) {
|
|
1051
|
-
return
|
|
2506
|
+
return postApiV3Series({ body: series });
|
|
1052
2507
|
}
|
|
1053
2508
|
async updateSeries(id, series) {
|
|
1054
|
-
return
|
|
2509
|
+
return putApiV3SeriesById({ path: { id }, body: series });
|
|
1055
2510
|
}
|
|
1056
2511
|
async deleteSeries(id) {
|
|
1057
|
-
return
|
|
2512
|
+
return deleteApiV3SeriesById({ path: { id } });
|
|
1058
2513
|
}
|
|
1059
2514
|
async getSeriesFolder(id) {
|
|
1060
|
-
return
|
|
2515
|
+
return getApiV3SeriesByIdFolder({ path: { id } });
|
|
1061
2516
|
}
|
|
1062
2517
|
async searchSeries(term) {
|
|
1063
|
-
return
|
|
2518
|
+
return getApiV3SeriesLookup({ query: { term } });
|
|
1064
2519
|
}
|
|
1065
2520
|
async getLogs(page, pageSize, sortKey, sortDirection, level) {
|
|
1066
2521
|
const query = {};
|
|
@@ -1074,16 +2529,259 @@ class SonarrClient {
|
|
|
1074
2529
|
query.sortDirection = sortDirection;
|
|
1075
2530
|
if (level)
|
|
1076
2531
|
query.level = level;
|
|
1077
|
-
return
|
|
2532
|
+
return getApiV3Log(Object.keys(query).length > 0 ? { query } : {});
|
|
1078
2533
|
}
|
|
1079
2534
|
async getUpdates() {
|
|
1080
|
-
return
|
|
2535
|
+
return getApiV3Update();
|
|
1081
2536
|
}
|
|
1082
2537
|
async getUpdateSettings() {
|
|
1083
|
-
return
|
|
2538
|
+
return getApiV3Update();
|
|
2539
|
+
}
|
|
2540
|
+
async getUpdateSetting() {
|
|
2541
|
+
return getApiV3Update();
|
|
2542
|
+
}
|
|
2543
|
+
async getHostConfig() {
|
|
2544
|
+
return getApiV3ConfigHost();
|
|
2545
|
+
}
|
|
2546
|
+
async getHostConfigById(id) {
|
|
2547
|
+
return getApiV3ConfigHostById({ path: { id } });
|
|
2548
|
+
}
|
|
2549
|
+
async updateHostConfig(id, config) {
|
|
2550
|
+
return putApiV3ConfigHostById({ path: { id }, body: config });
|
|
2551
|
+
}
|
|
2552
|
+
async getNamingConfig() {
|
|
2553
|
+
return getApiV3ConfigNaming();
|
|
2554
|
+
}
|
|
2555
|
+
async getNamingConfigById(id) {
|
|
2556
|
+
return getApiV3ConfigNamingById({ path: { id } });
|
|
2557
|
+
}
|
|
2558
|
+
async updateNamingConfig(id, config) {
|
|
2559
|
+
return putApiV3ConfigNamingById({ path: { id }, body: config });
|
|
2560
|
+
}
|
|
2561
|
+
async getNamingConfigExamples() {
|
|
2562
|
+
return getApiV3ConfigNamingExamples();
|
|
2563
|
+
}
|
|
2564
|
+
async getMediaManagementConfig() {
|
|
2565
|
+
return getApiV3ConfigMediamanagement();
|
|
2566
|
+
}
|
|
2567
|
+
async getMediaManagementConfigById(id) {
|
|
2568
|
+
return getApiV3ConfigMediamanagementById({ path: { id } });
|
|
2569
|
+
}
|
|
2570
|
+
async updateMediaManagementConfig(id, config) {
|
|
2571
|
+
return putApiV3ConfigMediamanagementById({ path: { id }, body: config });
|
|
2572
|
+
}
|
|
2573
|
+
async getUiConfig() {
|
|
2574
|
+
return getApiV3ConfigUi();
|
|
2575
|
+
}
|
|
2576
|
+
async getUiConfigById(id) {
|
|
2577
|
+
return getApiV3ConfigUiById({ path: { id } });
|
|
2578
|
+
}
|
|
2579
|
+
async updateUiConfig(id, config) {
|
|
2580
|
+
return putApiV3ConfigUiById({ path: { id }, body: config });
|
|
2581
|
+
}
|
|
2582
|
+
async restartSystem() {
|
|
2583
|
+
return postApiV3SystemRestart();
|
|
2584
|
+
}
|
|
2585
|
+
async shutdownSystem() {
|
|
2586
|
+
return postApiV3SystemShutdown();
|
|
2587
|
+
}
|
|
2588
|
+
async getSystemBackups() {
|
|
2589
|
+
return getApiV3SystemBackup();
|
|
2590
|
+
}
|
|
2591
|
+
async deleteSystemBackup(id) {
|
|
2592
|
+
return deleteApiV3SystemBackupById({ path: { id } });
|
|
2593
|
+
}
|
|
2594
|
+
async restoreSystemBackup(id) {
|
|
2595
|
+
return postApiV3SystemBackupRestoreById({ path: { id } });
|
|
2596
|
+
}
|
|
2597
|
+
async uploadSystemBackup() {
|
|
2598
|
+
return postApiV3SystemBackupRestoreUpload();
|
|
2599
|
+
}
|
|
2600
|
+
async getDiskSpace() {
|
|
2601
|
+
return getApiV3Diskspace();
|
|
2602
|
+
}
|
|
2603
|
+
async getTags() {
|
|
2604
|
+
return getApiV3Tag();
|
|
2605
|
+
}
|
|
2606
|
+
async addTag(tag) {
|
|
2607
|
+
return postApiV3Tag({ body: tag });
|
|
2608
|
+
}
|
|
2609
|
+
async getTag(id) {
|
|
2610
|
+
return getApiV3TagById({ path: { id } });
|
|
2611
|
+
}
|
|
2612
|
+
async updateTag(id, tag) {
|
|
2613
|
+
return putApiV3TagById({ path: { id }, body: tag });
|
|
2614
|
+
}
|
|
2615
|
+
async deleteTag(id) {
|
|
2616
|
+
return deleteApiV3TagById({ path: { id } });
|
|
2617
|
+
}
|
|
2618
|
+
async getTagDetails() {
|
|
2619
|
+
return getApiV3TagDetail();
|
|
2620
|
+
}
|
|
2621
|
+
async getTagDetailById(id) {
|
|
2622
|
+
return getApiV3TagDetailById({ path: { id } });
|
|
2623
|
+
}
|
|
2624
|
+
async getEpisodes() {
|
|
2625
|
+
return getApiV3Episode();
|
|
2626
|
+
}
|
|
2627
|
+
async getEpisode(id) {
|
|
2628
|
+
return getApiV3EpisodeById({ path: { id } });
|
|
2629
|
+
}
|
|
2630
|
+
async updateEpisode(id, episode) {
|
|
2631
|
+
return putApiV3EpisodeById({ path: { id }, body: episode });
|
|
2632
|
+
}
|
|
2633
|
+
async getQualityProfiles() {
|
|
2634
|
+
return getApiV3Qualityprofile();
|
|
2635
|
+
}
|
|
2636
|
+
async getQualityProfile(id) {
|
|
2637
|
+
return getApiV3QualityprofileById({ path: { id } });
|
|
2638
|
+
}
|
|
2639
|
+
async addQualityProfile(profile) {
|
|
2640
|
+
return postApiV3Qualityprofile({ body: profile });
|
|
2641
|
+
}
|
|
2642
|
+
async updateQualityProfile(id, profile) {
|
|
2643
|
+
return putApiV3QualityprofileById({ path: { id }, body: profile });
|
|
2644
|
+
}
|
|
2645
|
+
async deleteQualityProfile(id) {
|
|
2646
|
+
return deleteApiV3QualityprofileById({ path: { id } });
|
|
2647
|
+
}
|
|
2648
|
+
async getQualityProfileSchema() {
|
|
2649
|
+
return getApiV3QualityprofileSchema();
|
|
2650
|
+
}
|
|
2651
|
+
async getCustomFormats() {
|
|
2652
|
+
return getApiV3Customformat();
|
|
2653
|
+
}
|
|
2654
|
+
async getCustomFormat(id) {
|
|
2655
|
+
return getApiV3CustomformatById({ path: { id } });
|
|
2656
|
+
}
|
|
2657
|
+
async addCustomFormat(format) {
|
|
2658
|
+
return postApiV3Customformat({ body: format });
|
|
2659
|
+
}
|
|
2660
|
+
async updateCustomFormat(id, format) {
|
|
2661
|
+
return putApiV3CustomformatById({ path: { id }, body: format });
|
|
2662
|
+
}
|
|
2663
|
+
async deleteCustomFormat(id) {
|
|
2664
|
+
return deleteApiV3CustomformatById({ path: { id } });
|
|
2665
|
+
}
|
|
2666
|
+
async updateCustomFormatsBulk(formats) {
|
|
2667
|
+
return putApiV3CustomformatBulk({ body: formats });
|
|
2668
|
+
}
|
|
2669
|
+
async deleteCustomFormatsBulk(ids) {
|
|
2670
|
+
return deleteApiV3CustomformatBulk({ body: { ids } });
|
|
2671
|
+
}
|
|
2672
|
+
async getCustomFormatSchema() {
|
|
2673
|
+
return getApiV3CustomformatSchema();
|
|
2674
|
+
}
|
|
2675
|
+
async getDownloadClients() {
|
|
2676
|
+
return getApiV3Downloadclient();
|
|
2677
|
+
}
|
|
2678
|
+
async getDownloadClient(id) {
|
|
2679
|
+
return getApiV3DownloadclientById({ path: { id } });
|
|
2680
|
+
}
|
|
2681
|
+
async addDownloadClient(client2) {
|
|
2682
|
+
return postApiV3Downloadclient({ body: client2 });
|
|
2683
|
+
}
|
|
2684
|
+
async updateDownloadClient(id, client2) {
|
|
2685
|
+
return putApiV3DownloadclientById({ path: { id }, body: client2 });
|
|
2686
|
+
}
|
|
2687
|
+
async deleteDownloadClient(id) {
|
|
2688
|
+
return deleteApiV3DownloadclientById({ path: { id } });
|
|
2689
|
+
}
|
|
2690
|
+
async updateDownloadClientsBulk(clients) {
|
|
2691
|
+
return putApiV3DownloadclientBulk({ body: clients });
|
|
2692
|
+
}
|
|
2693
|
+
async deleteDownloadClientsBulk(ids) {
|
|
2694
|
+
return deleteApiV3DownloadclientBulk({ body: { ids } });
|
|
2695
|
+
}
|
|
2696
|
+
async getDownloadClientSchema() {
|
|
2697
|
+
return getApiV3DownloadclientSchema();
|
|
2698
|
+
}
|
|
2699
|
+
async testDownloadClient(client2) {
|
|
2700
|
+
return postApiV3DownloadclientTest({ body: client2 });
|
|
2701
|
+
}
|
|
2702
|
+
async testAllDownloadClients() {
|
|
2703
|
+
return postApiV3DownloadclientTestall();
|
|
2704
|
+
}
|
|
2705
|
+
async getIndexers() {
|
|
2706
|
+
return getApiV3Indexer();
|
|
2707
|
+
}
|
|
2708
|
+
async getIndexer(id) {
|
|
2709
|
+
return getApiV3IndexerById({ path: { id } });
|
|
2710
|
+
}
|
|
2711
|
+
async addIndexer(indexer) {
|
|
2712
|
+
return postApiV3Indexer({ body: indexer });
|
|
2713
|
+
}
|
|
2714
|
+
async updateIndexer(id, indexer) {
|
|
2715
|
+
return putApiV3IndexerById({ path: { id }, body: indexer });
|
|
2716
|
+
}
|
|
2717
|
+
async deleteIndexer(id) {
|
|
2718
|
+
return deleteApiV3IndexerById({ path: { id } });
|
|
2719
|
+
}
|
|
2720
|
+
async getIndexerSchema() {
|
|
2721
|
+
return getApiV3IndexerSchema();
|
|
2722
|
+
}
|
|
2723
|
+
async testIndexer(indexer) {
|
|
2724
|
+
return postApiV3IndexerTest({ body: indexer });
|
|
2725
|
+
}
|
|
2726
|
+
async testAllIndexers() {
|
|
2727
|
+
return postApiV3IndexerTestall();
|
|
2728
|
+
}
|
|
2729
|
+
async getImportLists() {
|
|
2730
|
+
return getApiV3Importlist();
|
|
2731
|
+
}
|
|
2732
|
+
async getImportList(id) {
|
|
2733
|
+
return getApiV3ImportlistById({ path: { id } });
|
|
2734
|
+
}
|
|
2735
|
+
async addImportList(importList) {
|
|
2736
|
+
return postApiV3Importlist({ body: importList });
|
|
2737
|
+
}
|
|
2738
|
+
async updateImportList(id, importList) {
|
|
2739
|
+
return putApiV3ImportlistById({ path: { id }, body: importList });
|
|
2740
|
+
}
|
|
2741
|
+
async deleteImportList(id) {
|
|
2742
|
+
return deleteApiV3ImportlistById({ path: { id } });
|
|
2743
|
+
}
|
|
2744
|
+
async getImportListSchema() {
|
|
2745
|
+
return getApiV3ImportlistSchema();
|
|
2746
|
+
}
|
|
2747
|
+
async testImportList(importList) {
|
|
2748
|
+
return postApiV3ImportlistTest({ body: importList });
|
|
2749
|
+
}
|
|
2750
|
+
async testAllImportLists() {
|
|
2751
|
+
return postApiV3ImportlistTestall();
|
|
2752
|
+
}
|
|
2753
|
+
async getNotifications() {
|
|
2754
|
+
return getApiV3Notification();
|
|
2755
|
+
}
|
|
2756
|
+
async getNotification(id) {
|
|
2757
|
+
return getApiV3NotificationById({ path: { id } });
|
|
2758
|
+
}
|
|
2759
|
+
async addNotification(notification) {
|
|
2760
|
+
return postApiV3Notification({ body: notification });
|
|
2761
|
+
}
|
|
2762
|
+
async updateNotification(id, notification) {
|
|
2763
|
+
return putApiV3NotificationById({ path: { id }, body: notification });
|
|
2764
|
+
}
|
|
2765
|
+
async deleteNotification(id) {
|
|
2766
|
+
return deleteApiV3NotificationById({ path: { id } });
|
|
2767
|
+
}
|
|
2768
|
+
async getNotificationSchema() {
|
|
2769
|
+
return getApiV3NotificationSchema();
|
|
2770
|
+
}
|
|
2771
|
+
async testNotification(notification) {
|
|
2772
|
+
return postApiV3NotificationTest({ body: notification });
|
|
2773
|
+
}
|
|
2774
|
+
async testAllNotifications() {
|
|
2775
|
+
return postApiV3NotificationTestall();
|
|
2776
|
+
}
|
|
2777
|
+
async runCommand(command) {
|
|
2778
|
+
return postApiV3Command({ body: command });
|
|
2779
|
+
}
|
|
2780
|
+
async getCommands() {
|
|
2781
|
+
return getApiV3Command();
|
|
1084
2782
|
}
|
|
1085
|
-
async
|
|
1086
|
-
return
|
|
2783
|
+
async getCommand(id) {
|
|
2784
|
+
return getApiV3CommandById({ path: { id } });
|
|
1087
2785
|
}
|
|
1088
2786
|
updateConfig(newConfig) {
|
|
1089
2787
|
const updatedConfig = { ...this.clientConfig.config, ...newConfig };
|