@brigadasos/nadeshiko-sdk 1.5.0-dev.ca90b30 → 1.5.0-dev.cd60faf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +256 -57
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +256 -57
- package/dist/index.js.map +4 -4
- package/dist/internal/media.gen.d.ts +1 -1
- package/dist/internal/media.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +3 -1
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +32 -11
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +253 -70
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -67,6 +67,7 @@ __export(exports_dev, {
|
|
|
67
67
|
listUserActivity: () => listUserActivity,
|
|
68
68
|
listSeries: () => listSeries,
|
|
69
69
|
listSegments: () => listSegments,
|
|
70
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
70
71
|
listMedia: () => listMedia,
|
|
71
72
|
listEpisodes: () => listEpisodes,
|
|
72
73
|
listCollections: () => listCollections,
|
|
@@ -107,6 +108,7 @@ __export(exports_dev, {
|
|
|
107
108
|
deleteCollection: () => deleteCollection,
|
|
108
109
|
createUserReport: () => createUserReport,
|
|
109
110
|
createSeries: () => createSeries,
|
|
111
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
110
112
|
createSegment: () => createSegment,
|
|
111
113
|
createNadeshikoClient: () => createNadeshikoClient,
|
|
112
114
|
createMedia: () => createMedia,
|
|
@@ -926,7 +928,11 @@ var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }))
|
|
|
926
928
|
|
|
927
929
|
// generated/dev/sdk.gen.ts
|
|
928
930
|
var search = (options) => (options?.client ?? client).post({
|
|
929
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
931
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
932
|
+
in: "cookie",
|
|
933
|
+
name: "nadeshiko.session_token",
|
|
934
|
+
type: "apiKey"
|
|
935
|
+
}],
|
|
930
936
|
url: "/v1/search",
|
|
931
937
|
...options,
|
|
932
938
|
headers: {
|
|
@@ -935,7 +941,11 @@ var search = (options) => (options?.client ?? client).post({
|
|
|
935
941
|
}
|
|
936
942
|
});
|
|
937
943
|
var getSearchStats = (options) => (options?.client ?? client).post({
|
|
938
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
944
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
945
|
+
in: "cookie",
|
|
946
|
+
name: "nadeshiko.session_token",
|
|
947
|
+
type: "apiKey"
|
|
948
|
+
}],
|
|
939
949
|
url: "/v1/search/stats",
|
|
940
950
|
...options,
|
|
941
951
|
headers: {
|
|
@@ -944,7 +954,11 @@ var getSearchStats = (options) => (options?.client ?? client).post({
|
|
|
944
954
|
}
|
|
945
955
|
});
|
|
946
956
|
var searchWords = (options) => (options.client ?? client).post({
|
|
947
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
957
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
958
|
+
in: "cookie",
|
|
959
|
+
name: "nadeshiko.session_token",
|
|
960
|
+
type: "apiKey"
|
|
961
|
+
}],
|
|
948
962
|
url: "/v1/search/words",
|
|
949
963
|
...options,
|
|
950
964
|
headers: {
|
|
@@ -953,12 +967,20 @@ var searchWords = (options) => (options.client ?? client).post({
|
|
|
953
967
|
}
|
|
954
968
|
});
|
|
955
969
|
var listMedia = (options) => (options?.client ?? client).get({
|
|
956
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
970
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
971
|
+
in: "cookie",
|
|
972
|
+
name: "nadeshiko.session_token",
|
|
973
|
+
type: "apiKey"
|
|
974
|
+
}],
|
|
957
975
|
url: "/v1/media",
|
|
958
976
|
...options
|
|
959
977
|
});
|
|
960
978
|
var createMedia = (options) => (options.client ?? client).post({
|
|
961
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
979
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
980
|
+
in: "cookie",
|
|
981
|
+
name: "nadeshiko.session_token",
|
|
982
|
+
type: "apiKey"
|
|
983
|
+
}],
|
|
962
984
|
url: "/v1/media",
|
|
963
985
|
...options,
|
|
964
986
|
headers: {
|
|
@@ -967,12 +989,20 @@ var createMedia = (options) => (options.client ?? client).post({
|
|
|
967
989
|
}
|
|
968
990
|
});
|
|
969
991
|
var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
970
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
992
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
993
|
+
in: "cookie",
|
|
994
|
+
name: "nadeshiko.session_token",
|
|
995
|
+
type: "apiKey"
|
|
996
|
+
}],
|
|
971
997
|
url: "/v1/media/autocomplete",
|
|
972
998
|
...options
|
|
973
999
|
});
|
|
974
1000
|
var getSegmentByUuid = (options) => (options.client ?? client).get({
|
|
975
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1001
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1002
|
+
in: "cookie",
|
|
1003
|
+
name: "nadeshiko.session_token",
|
|
1004
|
+
type: "apiKey"
|
|
1005
|
+
}],
|
|
976
1006
|
url: "/v1/media/segments/{uuid}",
|
|
977
1007
|
...options
|
|
978
1008
|
});
|
|
@@ -990,17 +1020,38 @@ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
|
|
|
990
1020
|
}
|
|
991
1021
|
});
|
|
992
1022
|
var getSegmentContext = (options) => (options.client ?? client).get({
|
|
993
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1023
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1024
|
+
in: "cookie",
|
|
1025
|
+
name: "nadeshiko.session_token",
|
|
1026
|
+
type: "apiKey"
|
|
1027
|
+
}],
|
|
994
1028
|
url: "/v1/media/segments/{uuid}/context",
|
|
995
1029
|
...options
|
|
996
1030
|
});
|
|
1031
|
+
var listSegmentRevisions = (options) => (options.client ?? client).get({
|
|
1032
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1033
|
+
in: "cookie",
|
|
1034
|
+
name: "nadeshiko.session_token",
|
|
1035
|
+
type: "apiKey"
|
|
1036
|
+
}],
|
|
1037
|
+
url: "/v1/media/segments/{uuid}/revisions",
|
|
1038
|
+
...options
|
|
1039
|
+
});
|
|
997
1040
|
var listSeries = (options) => (options?.client ?? client).get({
|
|
998
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1041
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1042
|
+
in: "cookie",
|
|
1043
|
+
name: "nadeshiko.session_token",
|
|
1044
|
+
type: "apiKey"
|
|
1045
|
+
}],
|
|
999
1046
|
url: "/v1/media/series",
|
|
1000
1047
|
...options
|
|
1001
1048
|
});
|
|
1002
1049
|
var createSeries = (options) => (options.client ?? client).post({
|
|
1003
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1050
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1051
|
+
in: "cookie",
|
|
1052
|
+
name: "nadeshiko.session_token",
|
|
1053
|
+
type: "apiKey"
|
|
1054
|
+
}],
|
|
1004
1055
|
url: "/v1/media/series",
|
|
1005
1056
|
...options,
|
|
1006
1057
|
headers: {
|
|
@@ -1009,17 +1060,29 @@ var createSeries = (options) => (options.client ?? client).post({
|
|
|
1009
1060
|
}
|
|
1010
1061
|
});
|
|
1011
1062
|
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
1012
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1063
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1064
|
+
in: "cookie",
|
|
1065
|
+
name: "nadeshiko.session_token",
|
|
1066
|
+
type: "apiKey"
|
|
1067
|
+
}],
|
|
1013
1068
|
url: "/v1/media/series/{id}",
|
|
1014
1069
|
...options
|
|
1015
1070
|
});
|
|
1016
1071
|
var getSeries = (options) => (options.client ?? client).get({
|
|
1017
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1072
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1073
|
+
in: "cookie",
|
|
1074
|
+
name: "nadeshiko.session_token",
|
|
1075
|
+
type: "apiKey"
|
|
1076
|
+
}],
|
|
1018
1077
|
url: "/v1/media/series/{id}",
|
|
1019
1078
|
...options
|
|
1020
1079
|
});
|
|
1021
1080
|
var updateSeries = (options) => (options.client ?? client).patch({
|
|
1022
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1081
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1082
|
+
in: "cookie",
|
|
1083
|
+
name: "nadeshiko.session_token",
|
|
1084
|
+
type: "apiKey"
|
|
1085
|
+
}],
|
|
1023
1086
|
url: "/v1/media/series/{id}",
|
|
1024
1087
|
...options,
|
|
1025
1088
|
headers: {
|
|
@@ -1028,7 +1091,11 @@ var updateSeries = (options) => (options.client ?? client).patch({
|
|
|
1028
1091
|
}
|
|
1029
1092
|
});
|
|
1030
1093
|
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
1031
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1094
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1095
|
+
in: "cookie",
|
|
1096
|
+
name: "nadeshiko.session_token",
|
|
1097
|
+
type: "apiKey"
|
|
1098
|
+
}],
|
|
1032
1099
|
url: "/v1/media/series/{id}/media",
|
|
1033
1100
|
...options,
|
|
1034
1101
|
headers: {
|
|
@@ -1037,12 +1104,20 @@ var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
|
1037
1104
|
}
|
|
1038
1105
|
});
|
|
1039
1106
|
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
1040
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1107
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1108
|
+
in: "cookie",
|
|
1109
|
+
name: "nadeshiko.session_token",
|
|
1110
|
+
type: "apiKey"
|
|
1111
|
+
}],
|
|
1041
1112
|
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1042
1113
|
...options
|
|
1043
1114
|
});
|
|
1044
1115
|
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
1045
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1116
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1117
|
+
in: "cookie",
|
|
1118
|
+
name: "nadeshiko.session_token",
|
|
1119
|
+
type: "apiKey"
|
|
1120
|
+
}],
|
|
1046
1121
|
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1047
1122
|
...options,
|
|
1048
1123
|
headers: {
|
|
@@ -1051,27 +1126,47 @@ var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
|
1051
1126
|
}
|
|
1052
1127
|
});
|
|
1053
1128
|
var getCharacter = (options) => (options.client ?? client).get({
|
|
1054
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1129
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1130
|
+
in: "cookie",
|
|
1131
|
+
name: "nadeshiko.session_token",
|
|
1132
|
+
type: "apiKey"
|
|
1133
|
+
}],
|
|
1055
1134
|
url: "/v1/media/characters/{id}",
|
|
1056
1135
|
...options
|
|
1057
1136
|
});
|
|
1058
1137
|
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
1059
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1138
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1139
|
+
in: "cookie",
|
|
1140
|
+
name: "nadeshiko.session_token",
|
|
1141
|
+
type: "apiKey"
|
|
1142
|
+
}],
|
|
1060
1143
|
url: "/v1/media/seiyuu/{id}",
|
|
1061
1144
|
...options
|
|
1062
1145
|
});
|
|
1063
1146
|
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
1064
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1147
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1148
|
+
in: "cookie",
|
|
1149
|
+
name: "nadeshiko.session_token",
|
|
1150
|
+
type: "apiKey"
|
|
1151
|
+
}],
|
|
1065
1152
|
url: "/v1/media/{id}",
|
|
1066
1153
|
...options
|
|
1067
1154
|
});
|
|
1068
1155
|
var getMedia = (options) => (options.client ?? client).get({
|
|
1069
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1156
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1157
|
+
in: "cookie",
|
|
1158
|
+
name: "nadeshiko.session_token",
|
|
1159
|
+
type: "apiKey"
|
|
1160
|
+
}],
|
|
1070
1161
|
url: "/v1/media/{id}",
|
|
1071
1162
|
...options
|
|
1072
1163
|
});
|
|
1073
1164
|
var updateMedia = (options) => (options.client ?? client).patch({
|
|
1074
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1165
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1166
|
+
in: "cookie",
|
|
1167
|
+
name: "nadeshiko.session_token",
|
|
1168
|
+
type: "apiKey"
|
|
1169
|
+
}],
|
|
1075
1170
|
url: "/v1/media/{id}",
|
|
1076
1171
|
...options,
|
|
1077
1172
|
headers: {
|
|
@@ -1080,12 +1175,20 @@ var updateMedia = (options) => (options.client ?? client).patch({
|
|
|
1080
1175
|
}
|
|
1081
1176
|
});
|
|
1082
1177
|
var listEpisodes = (options) => (options.client ?? client).get({
|
|
1083
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1178
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1179
|
+
in: "cookie",
|
|
1180
|
+
name: "nadeshiko.session_token",
|
|
1181
|
+
type: "apiKey"
|
|
1182
|
+
}],
|
|
1084
1183
|
url: "/v1/media/{mediaId}/episodes",
|
|
1085
1184
|
...options
|
|
1086
1185
|
});
|
|
1087
1186
|
var createEpisode = (options) => (options.client ?? client).post({
|
|
1088
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1187
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1188
|
+
in: "cookie",
|
|
1189
|
+
name: "nadeshiko.session_token",
|
|
1190
|
+
type: "apiKey"
|
|
1191
|
+
}],
|
|
1089
1192
|
url: "/v1/media/{mediaId}/episodes",
|
|
1090
1193
|
...options,
|
|
1091
1194
|
headers: {
|
|
@@ -1094,17 +1197,29 @@ var createEpisode = (options) => (options.client ?? client).post({
|
|
|
1094
1197
|
}
|
|
1095
1198
|
});
|
|
1096
1199
|
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1097
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1200
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1201
|
+
in: "cookie",
|
|
1202
|
+
name: "nadeshiko.session_token",
|
|
1203
|
+
type: "apiKey"
|
|
1204
|
+
}],
|
|
1098
1205
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1099
1206
|
...options
|
|
1100
1207
|
});
|
|
1101
1208
|
var getEpisode = (options) => (options.client ?? client).get({
|
|
1102
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1209
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1210
|
+
in: "cookie",
|
|
1211
|
+
name: "nadeshiko.session_token",
|
|
1212
|
+
type: "apiKey"
|
|
1213
|
+
}],
|
|
1103
1214
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1104
1215
|
...options
|
|
1105
1216
|
});
|
|
1106
1217
|
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1107
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1218
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1219
|
+
in: "cookie",
|
|
1220
|
+
name: "nadeshiko.session_token",
|
|
1221
|
+
type: "apiKey"
|
|
1222
|
+
}],
|
|
1108
1223
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1109
1224
|
...options,
|
|
1110
1225
|
headers: {
|
|
@@ -1113,12 +1228,20 @@ var updateEpisode = (options) => (options.client ?? client).patch({
|
|
|
1113
1228
|
}
|
|
1114
1229
|
});
|
|
1115
1230
|
var listSegments = (options) => (options.client ?? client).get({
|
|
1116
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1231
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1232
|
+
in: "cookie",
|
|
1233
|
+
name: "nadeshiko.session_token",
|
|
1234
|
+
type: "apiKey"
|
|
1235
|
+
}],
|
|
1117
1236
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1118
1237
|
...options
|
|
1119
1238
|
});
|
|
1120
1239
|
var createSegment = (options) => (options.client ?? client).post({
|
|
1121
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1240
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1241
|
+
in: "cookie",
|
|
1242
|
+
name: "nadeshiko.session_token",
|
|
1243
|
+
type: "apiKey"
|
|
1244
|
+
}],
|
|
1122
1245
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1123
1246
|
...options,
|
|
1124
1247
|
headers: {
|
|
@@ -1126,18 +1249,43 @@ var createSegment = (options) => (options.client ?? client).post({
|
|
|
1126
1249
|
...options.headers
|
|
1127
1250
|
}
|
|
1128
1251
|
});
|
|
1252
|
+
var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
1253
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1254
|
+
in: "cookie",
|
|
1255
|
+
name: "nadeshiko.session_token",
|
|
1256
|
+
type: "apiKey"
|
|
1257
|
+
}],
|
|
1258
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
|
|
1259
|
+
...options,
|
|
1260
|
+
headers: {
|
|
1261
|
+
"Content-Type": "application/json",
|
|
1262
|
+
...options.headers
|
|
1263
|
+
}
|
|
1264
|
+
});
|
|
1129
1265
|
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1130
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1266
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1267
|
+
in: "cookie",
|
|
1268
|
+
name: "nadeshiko.session_token",
|
|
1269
|
+
type: "apiKey"
|
|
1270
|
+
}],
|
|
1131
1271
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1132
1272
|
...options
|
|
1133
1273
|
});
|
|
1134
1274
|
var getSegment = (options) => (options.client ?? client).get({
|
|
1135
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1275
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1276
|
+
in: "cookie",
|
|
1277
|
+
name: "nadeshiko.session_token",
|
|
1278
|
+
type: "apiKey"
|
|
1279
|
+
}],
|
|
1136
1280
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1137
1281
|
...options
|
|
1138
1282
|
});
|
|
1139
1283
|
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1140
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1284
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1285
|
+
in: "cookie",
|
|
1286
|
+
name: "nadeshiko.session_token",
|
|
1287
|
+
type: "apiKey"
|
|
1288
|
+
}],
|
|
1141
1289
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1142
1290
|
...options,
|
|
1143
1291
|
headers: {
|
|
@@ -1399,17 +1547,29 @@ var getCollectionStats = (options) => (options.client ?? client).get({
|
|
|
1399
1547
|
...options
|
|
1400
1548
|
});
|
|
1401
1549
|
var getAdminDashboard = (options) => (options?.client ?? client).get({
|
|
1402
|
-
security: [{
|
|
1550
|
+
security: [{
|
|
1551
|
+
in: "cookie",
|
|
1552
|
+
name: "nadeshiko.session_token",
|
|
1553
|
+
type: "apiKey"
|
|
1554
|
+
}],
|
|
1403
1555
|
url: "/v1/admin/dashboard",
|
|
1404
1556
|
...options
|
|
1405
1557
|
});
|
|
1406
1558
|
var getAdminHealth = (options) => (options?.client ?? client).get({
|
|
1407
|
-
security: [{
|
|
1559
|
+
security: [{
|
|
1560
|
+
in: "cookie",
|
|
1561
|
+
name: "nadeshiko.session_token",
|
|
1562
|
+
type: "apiKey"
|
|
1563
|
+
}],
|
|
1408
1564
|
url: "/v1/admin/health",
|
|
1409
1565
|
...options
|
|
1410
1566
|
});
|
|
1411
1567
|
var triggerReindex = (options) => (options?.client ?? client).post({
|
|
1412
|
-
security: [{
|
|
1568
|
+
security: [{
|
|
1569
|
+
in: "cookie",
|
|
1570
|
+
name: "nadeshiko.session_token",
|
|
1571
|
+
type: "apiKey"
|
|
1572
|
+
}],
|
|
1413
1573
|
url: "/v1/admin/reindex",
|
|
1414
1574
|
...options,
|
|
1415
1575
|
headers: {
|
|
@@ -1418,45 +1578,52 @@ var triggerReindex = (options) => (options?.client ?? client).post({
|
|
|
1418
1578
|
}
|
|
1419
1579
|
});
|
|
1420
1580
|
var listAdminQueueStats = (options) => (options?.client ?? client).get({
|
|
1421
|
-
security: [{
|
|
1581
|
+
security: [{
|
|
1582
|
+
in: "cookie",
|
|
1583
|
+
name: "nadeshiko.session_token",
|
|
1584
|
+
type: "apiKey"
|
|
1585
|
+
}],
|
|
1422
1586
|
url: "/v1/admin/queues/stats",
|
|
1423
1587
|
...options
|
|
1424
1588
|
});
|
|
1425
1589
|
var getAdminQueue = (options) => (options.client ?? client).get({
|
|
1426
|
-
security: [{
|
|
1590
|
+
security: [{
|
|
1591
|
+
in: "cookie",
|
|
1592
|
+
name: "nadeshiko.session_token",
|
|
1593
|
+
type: "apiKey"
|
|
1594
|
+
}],
|
|
1427
1595
|
url: "/v1/admin/queues/{queueName}",
|
|
1428
1596
|
...options
|
|
1429
1597
|
});
|
|
1430
1598
|
var listAdminQueueFailed = (options) => (options.client ?? client).get({
|
|
1431
|
-
security: [{
|
|
1599
|
+
security: [{
|
|
1600
|
+
in: "cookie",
|
|
1601
|
+
name: "nadeshiko.session_token",
|
|
1602
|
+
type: "apiKey"
|
|
1603
|
+
}],
|
|
1432
1604
|
url: "/v1/admin/queues/{queueName}/failed",
|
|
1433
1605
|
...options
|
|
1434
1606
|
});
|
|
1435
1607
|
var retryAdminQueueFailed = (options) => (options.client ?? client).post({
|
|
1436
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1437
|
-
url: "/v1/admin/queues/{queueName}/retry",
|
|
1438
|
-
...options
|
|
1439
|
-
});
|
|
1440
|
-
var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
|
|
1441
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1442
|
-
url: "/v1/admin/queues/{queueName}/purge",
|
|
1443
|
-
...options
|
|
1444
|
-
});
|
|
1445
|
-
var clearAdminImpersonation = (options) => (options?.client ?? client).delete({
|
|
1446
1608
|
security: [{
|
|
1447
1609
|
in: "cookie",
|
|
1448
1610
|
name: "nadeshiko.session_token",
|
|
1449
1611
|
type: "apiKey"
|
|
1450
1612
|
}],
|
|
1451
|
-
url: "/v1/admin/
|
|
1613
|
+
url: "/v1/admin/queues/{queueName}/retry",
|
|
1452
1614
|
...options
|
|
1453
1615
|
});
|
|
1454
|
-
var
|
|
1616
|
+
var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
|
|
1455
1617
|
security: [{
|
|
1456
1618
|
in: "cookie",
|
|
1457
1619
|
name: "nadeshiko.session_token",
|
|
1458
1620
|
type: "apiKey"
|
|
1459
1621
|
}],
|
|
1622
|
+
url: "/v1/admin/queues/{queueName}/purge",
|
|
1623
|
+
...options
|
|
1624
|
+
});
|
|
1625
|
+
var clearAdminImpersonation = (options) => (options?.client ?? client).delete({ url: "/v1/admin/impersonation", ...options });
|
|
1626
|
+
var impersonateAdminUser = (options) => (options.client ?? client).post({
|
|
1460
1627
|
url: "/v1/admin/impersonation",
|
|
1461
1628
|
...options,
|
|
1462
1629
|
headers: {
|
|
@@ -1465,12 +1632,20 @@ var impersonateAdminUser = (options) => (options.client ?? client).post({
|
|
|
1465
1632
|
}
|
|
1466
1633
|
});
|
|
1467
1634
|
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1468
|
-
security: [{
|
|
1635
|
+
security: [{
|
|
1636
|
+
in: "cookie",
|
|
1637
|
+
name: "nadeshiko.session_token",
|
|
1638
|
+
type: "apiKey"
|
|
1639
|
+
}],
|
|
1469
1640
|
url: "/v1/admin/reports",
|
|
1470
1641
|
...options
|
|
1471
1642
|
});
|
|
1472
1643
|
var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
1473
|
-
security: [{
|
|
1644
|
+
security: [{
|
|
1645
|
+
in: "cookie",
|
|
1646
|
+
name: "nadeshiko.session_token",
|
|
1647
|
+
type: "apiKey"
|
|
1648
|
+
}],
|
|
1474
1649
|
url: "/v1/admin/reports/{id}",
|
|
1475
1650
|
...options,
|
|
1476
1651
|
headers: {
|
|
@@ -1479,12 +1654,20 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
|
1479
1654
|
}
|
|
1480
1655
|
});
|
|
1481
1656
|
var listAdminMediaAudits = (options) => (options?.client ?? client).get({
|
|
1482
|
-
security: [{
|
|
1657
|
+
security: [{
|
|
1658
|
+
in: "cookie",
|
|
1659
|
+
name: "nadeshiko.session_token",
|
|
1660
|
+
type: "apiKey"
|
|
1661
|
+
}],
|
|
1483
1662
|
url: "/v1/admin/media/audits",
|
|
1484
1663
|
...options
|
|
1485
1664
|
});
|
|
1486
1665
|
var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
1487
|
-
security: [{
|
|
1666
|
+
security: [{
|
|
1667
|
+
in: "cookie",
|
|
1668
|
+
name: "nadeshiko.session_token",
|
|
1669
|
+
type: "apiKey"
|
|
1670
|
+
}],
|
|
1488
1671
|
url: "/v1/admin/media/audits/{name}",
|
|
1489
1672
|
...options,
|
|
1490
1673
|
headers: {
|
|
@@ -1493,17 +1676,29 @@ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
|
1493
1676
|
}
|
|
1494
1677
|
});
|
|
1495
1678
|
var runAdminMediaAudit = (options) => (options.client ?? client).post({
|
|
1496
|
-
security: [{
|
|
1679
|
+
security: [{
|
|
1680
|
+
in: "cookie",
|
|
1681
|
+
name: "nadeshiko.session_token",
|
|
1682
|
+
type: "apiKey"
|
|
1683
|
+
}],
|
|
1497
1684
|
url: "/v1/admin/media/audits/{name}/run",
|
|
1498
1685
|
...options
|
|
1499
1686
|
});
|
|
1500
1687
|
var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
|
|
1501
|
-
security: [{
|
|
1688
|
+
security: [{
|
|
1689
|
+
in: "cookie",
|
|
1690
|
+
name: "nadeshiko.session_token",
|
|
1691
|
+
type: "apiKey"
|
|
1692
|
+
}],
|
|
1502
1693
|
url: "/v1/admin/media/audits/runs",
|
|
1503
1694
|
...options
|
|
1504
1695
|
});
|
|
1505
1696
|
var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
1506
|
-
security: [{
|
|
1697
|
+
security: [{
|
|
1698
|
+
in: "cookie",
|
|
1699
|
+
name: "nadeshiko.session_token",
|
|
1700
|
+
type: "apiKey"
|
|
1701
|
+
}],
|
|
1507
1702
|
url: "/v1/admin/media/audits/runs/{id}",
|
|
1508
1703
|
...options
|
|
1509
1704
|
});
|
|
@@ -1556,6 +1751,7 @@ function createNadeshikoClient(config) {
|
|
|
1556
1751
|
createMedia: (options) => createMedia({ ...options, client: clientInstance }),
|
|
1557
1752
|
autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
|
|
1558
1753
|
updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
|
|
1754
|
+
listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
|
|
1559
1755
|
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1560
1756
|
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1561
1757
|
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
@@ -1569,6 +1765,7 @@ function createNadeshikoClient(config) {
|
|
|
1569
1765
|
deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
|
|
1570
1766
|
listSegments: (options) => listSegments({ ...options, client: clientInstance }),
|
|
1571
1767
|
createSegment: (options) => createSegment({ ...options, client: clientInstance }),
|
|
1768
|
+
createSegmentsBatch: (options) => createSegmentsBatch({ ...options, client: clientInstance }),
|
|
1572
1769
|
updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
|
|
1573
1770
|
deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
|
|
1574
1771
|
getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
|
|
@@ -1626,11 +1823,13 @@ __export(exports_media_gen, {
|
|
|
1626
1823
|
updateEpisode: () => updateEpisode,
|
|
1627
1824
|
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
1628
1825
|
listSegments: () => listSegments,
|
|
1826
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
1629
1827
|
deleteSeries: () => deleteSeries,
|
|
1630
1828
|
deleteSegment: () => deleteSegment,
|
|
1631
1829
|
deleteMedia: () => deleteMedia,
|
|
1632
1830
|
deleteEpisode: () => deleteEpisode,
|
|
1633
1831
|
createSeries: () => createSeries,
|
|
1832
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
1634
1833
|
createSegment: () => createSegment,
|
|
1635
1834
|
createMedia: () => createMedia,
|
|
1636
1835
|
createEpisode: () => createEpisode,
|
|
@@ -1692,5 +1891,5 @@ __export(exports_admin_gen, {
|
|
|
1692
1891
|
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1693
1892
|
});
|
|
1694
1893
|
|
|
1695
|
-
//# debugId=
|
|
1894
|
+
//# debugId=9EF9244B69357AA664756E2164756E21
|
|
1696
1895
|
//# sourceMappingURL=index.js.map
|