@brigadasos/nadeshiko-sdk 1.5.0-dev.f8e069f → 1.5.1-dev.2b4f333
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 +17 -14
- package/dist/index.cjs +305 -63
- 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 +305 -63
- package/dist/index.js.map +4 -4
- package/dist/internal/admin.gen.d.ts +1 -1
- package/dist/internal/admin.gen.d.ts.map +1 -1
- 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 +11 -4
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +55 -11
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +584 -171
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -49,6 +49,7 @@ __export(exports_dev, {
|
|
|
49
49
|
updateEpisode: () => updateEpisode,
|
|
50
50
|
updateCollectionSegment: () => updateCollectionSegment,
|
|
51
51
|
updateCollection: () => updateCollection,
|
|
52
|
+
updateAnnouncement: () => updateAnnouncement,
|
|
52
53
|
updateAdminReport: () => updateAdminReport,
|
|
53
54
|
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
54
55
|
unenrollUserLab: () => unenrollUserLab,
|
|
@@ -67,6 +68,7 @@ __export(exports_dev, {
|
|
|
67
68
|
listUserActivity: () => listUserActivity,
|
|
68
69
|
listSeries: () => listSeries,
|
|
69
70
|
listSegments: () => listSegments,
|
|
71
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
70
72
|
listMedia: () => listMedia,
|
|
71
73
|
listEpisodes: () => listEpisodes,
|
|
72
74
|
listCollections: () => listCollections,
|
|
@@ -91,6 +93,7 @@ __export(exports_dev, {
|
|
|
91
93
|
getCollectionStats: () => getCollectionStats,
|
|
92
94
|
getCollection: () => getCollection,
|
|
93
95
|
getCharacter: () => getCharacter,
|
|
96
|
+
getAnnouncement: () => getAnnouncement,
|
|
94
97
|
getAdminQueue: () => getAdminQueue,
|
|
95
98
|
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
96
99
|
getAdminHealth: () => getAdminHealth,
|
|
@@ -107,6 +110,7 @@ __export(exports_dev, {
|
|
|
107
110
|
deleteCollection: () => deleteCollection,
|
|
108
111
|
createUserReport: () => createUserReport,
|
|
109
112
|
createSeries: () => createSeries,
|
|
113
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
110
114
|
createSegment: () => createSegment,
|
|
111
115
|
createNadeshikoClient: () => createNadeshikoClient,
|
|
112
116
|
createMedia: () => createMedia,
|
|
@@ -115,6 +119,7 @@ __export(exports_dev, {
|
|
|
115
119
|
collections: () => exports_collections_gen,
|
|
116
120
|
client: () => client,
|
|
117
121
|
clearAdminImpersonation: () => clearAdminImpersonation,
|
|
122
|
+
batchUpdateAdminReports: () => batchUpdateAdminReports,
|
|
118
123
|
autocompleteMedia: () => autocompleteMedia,
|
|
119
124
|
admin: () => exports_admin_gen,
|
|
120
125
|
addSegmentToCollection: () => addSegmentToCollection,
|
|
@@ -926,7 +931,11 @@ var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }))
|
|
|
926
931
|
|
|
927
932
|
// generated/dev/sdk.gen.ts
|
|
928
933
|
var search = (options) => (options?.client ?? client).post({
|
|
929
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
934
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
935
|
+
in: "cookie",
|
|
936
|
+
name: "nadeshiko.session_token",
|
|
937
|
+
type: "apiKey"
|
|
938
|
+
}],
|
|
930
939
|
url: "/v1/search",
|
|
931
940
|
...options,
|
|
932
941
|
headers: {
|
|
@@ -935,7 +944,11 @@ var search = (options) => (options?.client ?? client).post({
|
|
|
935
944
|
}
|
|
936
945
|
});
|
|
937
946
|
var getSearchStats = (options) => (options?.client ?? client).post({
|
|
938
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
947
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
948
|
+
in: "cookie",
|
|
949
|
+
name: "nadeshiko.session_token",
|
|
950
|
+
type: "apiKey"
|
|
951
|
+
}],
|
|
939
952
|
url: "/v1/search/stats",
|
|
940
953
|
...options,
|
|
941
954
|
headers: {
|
|
@@ -944,7 +957,11 @@ var getSearchStats = (options) => (options?.client ?? client).post({
|
|
|
944
957
|
}
|
|
945
958
|
});
|
|
946
959
|
var searchWords = (options) => (options.client ?? client).post({
|
|
947
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
960
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
961
|
+
in: "cookie",
|
|
962
|
+
name: "nadeshiko.session_token",
|
|
963
|
+
type: "apiKey"
|
|
964
|
+
}],
|
|
948
965
|
url: "/v1/search/words",
|
|
949
966
|
...options,
|
|
950
967
|
headers: {
|
|
@@ -953,12 +970,20 @@ var searchWords = (options) => (options.client ?? client).post({
|
|
|
953
970
|
}
|
|
954
971
|
});
|
|
955
972
|
var listMedia = (options) => (options?.client ?? client).get({
|
|
956
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
973
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
974
|
+
in: "cookie",
|
|
975
|
+
name: "nadeshiko.session_token",
|
|
976
|
+
type: "apiKey"
|
|
977
|
+
}],
|
|
957
978
|
url: "/v1/media",
|
|
958
979
|
...options
|
|
959
980
|
});
|
|
960
981
|
var createMedia = (options) => (options.client ?? client).post({
|
|
961
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
982
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
983
|
+
in: "cookie",
|
|
984
|
+
name: "nadeshiko.session_token",
|
|
985
|
+
type: "apiKey"
|
|
986
|
+
}],
|
|
962
987
|
url: "/v1/media",
|
|
963
988
|
...options,
|
|
964
989
|
headers: {
|
|
@@ -967,12 +992,20 @@ var createMedia = (options) => (options.client ?? client).post({
|
|
|
967
992
|
}
|
|
968
993
|
});
|
|
969
994
|
var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
970
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
995
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
996
|
+
in: "cookie",
|
|
997
|
+
name: "nadeshiko.session_token",
|
|
998
|
+
type: "apiKey"
|
|
999
|
+
}],
|
|
971
1000
|
url: "/v1/media/autocomplete",
|
|
972
1001
|
...options
|
|
973
1002
|
});
|
|
974
1003
|
var getSegmentByUuid = (options) => (options.client ?? client).get({
|
|
975
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1004
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1005
|
+
in: "cookie",
|
|
1006
|
+
name: "nadeshiko.session_token",
|
|
1007
|
+
type: "apiKey"
|
|
1008
|
+
}],
|
|
976
1009
|
url: "/v1/media/segments/{uuid}",
|
|
977
1010
|
...options
|
|
978
1011
|
});
|
|
@@ -990,17 +1023,38 @@ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
|
|
|
990
1023
|
}
|
|
991
1024
|
});
|
|
992
1025
|
var getSegmentContext = (options) => (options.client ?? client).get({
|
|
993
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1026
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1027
|
+
in: "cookie",
|
|
1028
|
+
name: "nadeshiko.session_token",
|
|
1029
|
+
type: "apiKey"
|
|
1030
|
+
}],
|
|
994
1031
|
url: "/v1/media/segments/{uuid}/context",
|
|
995
1032
|
...options
|
|
996
1033
|
});
|
|
1034
|
+
var listSegmentRevisions = (options) => (options.client ?? client).get({
|
|
1035
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1036
|
+
in: "cookie",
|
|
1037
|
+
name: "nadeshiko.session_token",
|
|
1038
|
+
type: "apiKey"
|
|
1039
|
+
}],
|
|
1040
|
+
url: "/v1/media/segments/{uuid}/revisions",
|
|
1041
|
+
...options
|
|
1042
|
+
});
|
|
997
1043
|
var listSeries = (options) => (options?.client ?? client).get({
|
|
998
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1044
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1045
|
+
in: "cookie",
|
|
1046
|
+
name: "nadeshiko.session_token",
|
|
1047
|
+
type: "apiKey"
|
|
1048
|
+
}],
|
|
999
1049
|
url: "/v1/media/series",
|
|
1000
1050
|
...options
|
|
1001
1051
|
});
|
|
1002
1052
|
var createSeries = (options) => (options.client ?? client).post({
|
|
1003
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1053
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1054
|
+
in: "cookie",
|
|
1055
|
+
name: "nadeshiko.session_token",
|
|
1056
|
+
type: "apiKey"
|
|
1057
|
+
}],
|
|
1004
1058
|
url: "/v1/media/series",
|
|
1005
1059
|
...options,
|
|
1006
1060
|
headers: {
|
|
@@ -1009,17 +1063,29 @@ var createSeries = (options) => (options.client ?? client).post({
|
|
|
1009
1063
|
}
|
|
1010
1064
|
});
|
|
1011
1065
|
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
1012
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1066
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1067
|
+
in: "cookie",
|
|
1068
|
+
name: "nadeshiko.session_token",
|
|
1069
|
+
type: "apiKey"
|
|
1070
|
+
}],
|
|
1013
1071
|
url: "/v1/media/series/{id}",
|
|
1014
1072
|
...options
|
|
1015
1073
|
});
|
|
1016
1074
|
var getSeries = (options) => (options.client ?? client).get({
|
|
1017
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1075
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1076
|
+
in: "cookie",
|
|
1077
|
+
name: "nadeshiko.session_token",
|
|
1078
|
+
type: "apiKey"
|
|
1079
|
+
}],
|
|
1018
1080
|
url: "/v1/media/series/{id}",
|
|
1019
1081
|
...options
|
|
1020
1082
|
});
|
|
1021
1083
|
var updateSeries = (options) => (options.client ?? client).patch({
|
|
1022
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1084
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1085
|
+
in: "cookie",
|
|
1086
|
+
name: "nadeshiko.session_token",
|
|
1087
|
+
type: "apiKey"
|
|
1088
|
+
}],
|
|
1023
1089
|
url: "/v1/media/series/{id}",
|
|
1024
1090
|
...options,
|
|
1025
1091
|
headers: {
|
|
@@ -1028,7 +1094,11 @@ var updateSeries = (options) => (options.client ?? client).patch({
|
|
|
1028
1094
|
}
|
|
1029
1095
|
});
|
|
1030
1096
|
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
1031
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1097
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1098
|
+
in: "cookie",
|
|
1099
|
+
name: "nadeshiko.session_token",
|
|
1100
|
+
type: "apiKey"
|
|
1101
|
+
}],
|
|
1032
1102
|
url: "/v1/media/series/{id}/media",
|
|
1033
1103
|
...options,
|
|
1034
1104
|
headers: {
|
|
@@ -1037,12 +1107,20 @@ var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
|
1037
1107
|
}
|
|
1038
1108
|
});
|
|
1039
1109
|
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
1040
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1110
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1111
|
+
in: "cookie",
|
|
1112
|
+
name: "nadeshiko.session_token",
|
|
1113
|
+
type: "apiKey"
|
|
1114
|
+
}],
|
|
1041
1115
|
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1042
1116
|
...options
|
|
1043
1117
|
});
|
|
1044
1118
|
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
1045
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1119
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1120
|
+
in: "cookie",
|
|
1121
|
+
name: "nadeshiko.session_token",
|
|
1122
|
+
type: "apiKey"
|
|
1123
|
+
}],
|
|
1046
1124
|
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1047
1125
|
...options,
|
|
1048
1126
|
headers: {
|
|
@@ -1051,27 +1129,47 @@ var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
|
1051
1129
|
}
|
|
1052
1130
|
});
|
|
1053
1131
|
var getCharacter = (options) => (options.client ?? client).get({
|
|
1054
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1132
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1133
|
+
in: "cookie",
|
|
1134
|
+
name: "nadeshiko.session_token",
|
|
1135
|
+
type: "apiKey"
|
|
1136
|
+
}],
|
|
1055
1137
|
url: "/v1/media/characters/{id}",
|
|
1056
1138
|
...options
|
|
1057
1139
|
});
|
|
1058
1140
|
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
1059
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1141
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1142
|
+
in: "cookie",
|
|
1143
|
+
name: "nadeshiko.session_token",
|
|
1144
|
+
type: "apiKey"
|
|
1145
|
+
}],
|
|
1060
1146
|
url: "/v1/media/seiyuu/{id}",
|
|
1061
1147
|
...options
|
|
1062
1148
|
});
|
|
1063
1149
|
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
1064
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1150
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1151
|
+
in: "cookie",
|
|
1152
|
+
name: "nadeshiko.session_token",
|
|
1153
|
+
type: "apiKey"
|
|
1154
|
+
}],
|
|
1065
1155
|
url: "/v1/media/{id}",
|
|
1066
1156
|
...options
|
|
1067
1157
|
});
|
|
1068
1158
|
var getMedia = (options) => (options.client ?? client).get({
|
|
1069
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1159
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1160
|
+
in: "cookie",
|
|
1161
|
+
name: "nadeshiko.session_token",
|
|
1162
|
+
type: "apiKey"
|
|
1163
|
+
}],
|
|
1070
1164
|
url: "/v1/media/{id}",
|
|
1071
1165
|
...options
|
|
1072
1166
|
});
|
|
1073
1167
|
var updateMedia = (options) => (options.client ?? client).patch({
|
|
1074
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1168
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1169
|
+
in: "cookie",
|
|
1170
|
+
name: "nadeshiko.session_token",
|
|
1171
|
+
type: "apiKey"
|
|
1172
|
+
}],
|
|
1075
1173
|
url: "/v1/media/{id}",
|
|
1076
1174
|
...options,
|
|
1077
1175
|
headers: {
|
|
@@ -1080,12 +1178,20 @@ var updateMedia = (options) => (options.client ?? client).patch({
|
|
|
1080
1178
|
}
|
|
1081
1179
|
});
|
|
1082
1180
|
var listEpisodes = (options) => (options.client ?? client).get({
|
|
1083
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1181
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1182
|
+
in: "cookie",
|
|
1183
|
+
name: "nadeshiko.session_token",
|
|
1184
|
+
type: "apiKey"
|
|
1185
|
+
}],
|
|
1084
1186
|
url: "/v1/media/{mediaId}/episodes",
|
|
1085
1187
|
...options
|
|
1086
1188
|
});
|
|
1087
1189
|
var createEpisode = (options) => (options.client ?? client).post({
|
|
1088
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1190
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1191
|
+
in: "cookie",
|
|
1192
|
+
name: "nadeshiko.session_token",
|
|
1193
|
+
type: "apiKey"
|
|
1194
|
+
}],
|
|
1089
1195
|
url: "/v1/media/{mediaId}/episodes",
|
|
1090
1196
|
...options,
|
|
1091
1197
|
headers: {
|
|
@@ -1094,17 +1200,29 @@ var createEpisode = (options) => (options.client ?? client).post({
|
|
|
1094
1200
|
}
|
|
1095
1201
|
});
|
|
1096
1202
|
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1097
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1203
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1204
|
+
in: "cookie",
|
|
1205
|
+
name: "nadeshiko.session_token",
|
|
1206
|
+
type: "apiKey"
|
|
1207
|
+
}],
|
|
1098
1208
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1099
1209
|
...options
|
|
1100
1210
|
});
|
|
1101
1211
|
var getEpisode = (options) => (options.client ?? client).get({
|
|
1102
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1212
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1213
|
+
in: "cookie",
|
|
1214
|
+
name: "nadeshiko.session_token",
|
|
1215
|
+
type: "apiKey"
|
|
1216
|
+
}],
|
|
1103
1217
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1104
1218
|
...options
|
|
1105
1219
|
});
|
|
1106
1220
|
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1107
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1221
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1222
|
+
in: "cookie",
|
|
1223
|
+
name: "nadeshiko.session_token",
|
|
1224
|
+
type: "apiKey"
|
|
1225
|
+
}],
|
|
1108
1226
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1109
1227
|
...options,
|
|
1110
1228
|
headers: {
|
|
@@ -1113,12 +1231,20 @@ var updateEpisode = (options) => (options.client ?? client).patch({
|
|
|
1113
1231
|
}
|
|
1114
1232
|
});
|
|
1115
1233
|
var listSegments = (options) => (options.client ?? client).get({
|
|
1116
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1234
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1235
|
+
in: "cookie",
|
|
1236
|
+
name: "nadeshiko.session_token",
|
|
1237
|
+
type: "apiKey"
|
|
1238
|
+
}],
|
|
1117
1239
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1118
1240
|
...options
|
|
1119
1241
|
});
|
|
1120
1242
|
var createSegment = (options) => (options.client ?? client).post({
|
|
1121
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1243
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1244
|
+
in: "cookie",
|
|
1245
|
+
name: "nadeshiko.session_token",
|
|
1246
|
+
type: "apiKey"
|
|
1247
|
+
}],
|
|
1122
1248
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1123
1249
|
...options,
|
|
1124
1250
|
headers: {
|
|
@@ -1126,18 +1252,43 @@ var createSegment = (options) => (options.client ?? client).post({
|
|
|
1126
1252
|
...options.headers
|
|
1127
1253
|
}
|
|
1128
1254
|
});
|
|
1255
|
+
var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
1256
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1257
|
+
in: "cookie",
|
|
1258
|
+
name: "nadeshiko.session_token",
|
|
1259
|
+
type: "apiKey"
|
|
1260
|
+
}],
|
|
1261
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
|
|
1262
|
+
...options,
|
|
1263
|
+
headers: {
|
|
1264
|
+
"Content-Type": "application/json",
|
|
1265
|
+
...options.headers
|
|
1266
|
+
}
|
|
1267
|
+
});
|
|
1129
1268
|
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1130
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1269
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1270
|
+
in: "cookie",
|
|
1271
|
+
name: "nadeshiko.session_token",
|
|
1272
|
+
type: "apiKey"
|
|
1273
|
+
}],
|
|
1131
1274
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1132
1275
|
...options
|
|
1133
1276
|
});
|
|
1134
1277
|
var getSegment = (options) => (options.client ?? client).get({
|
|
1135
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1278
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1279
|
+
in: "cookie",
|
|
1280
|
+
name: "nadeshiko.session_token",
|
|
1281
|
+
type: "apiKey"
|
|
1282
|
+
}],
|
|
1136
1283
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1137
1284
|
...options
|
|
1138
1285
|
});
|
|
1139
1286
|
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1140
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1287
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1288
|
+
in: "cookie",
|
|
1289
|
+
name: "nadeshiko.session_token",
|
|
1290
|
+
type: "apiKey"
|
|
1291
|
+
}],
|
|
1141
1292
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1142
1293
|
...options,
|
|
1143
1294
|
headers: {
|
|
@@ -1364,7 +1515,7 @@ var removeSegmentFromCollection = (options) => (options.client ?? client).delete
|
|
|
1364
1515
|
name: "nadeshiko.session_token",
|
|
1365
1516
|
type: "apiKey"
|
|
1366
1517
|
}],
|
|
1367
|
-
url: "/v1/collections/{id}/segments/{
|
|
1518
|
+
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1368
1519
|
...options
|
|
1369
1520
|
});
|
|
1370
1521
|
var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
@@ -1373,7 +1524,7 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
|
1373
1524
|
name: "nadeshiko.session_token",
|
|
1374
1525
|
type: "apiKey"
|
|
1375
1526
|
}],
|
|
1376
|
-
url: "/v1/collections/{id}/segments/{
|
|
1527
|
+
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1377
1528
|
...options,
|
|
1378
1529
|
headers: {
|
|
1379
1530
|
"Content-Type": "application/json",
|
|
@@ -1399,17 +1550,29 @@ var getCollectionStats = (options) => (options.client ?? client).get({
|
|
|
1399
1550
|
...options
|
|
1400
1551
|
});
|
|
1401
1552
|
var getAdminDashboard = (options) => (options?.client ?? client).get({
|
|
1402
|
-
security: [{
|
|
1553
|
+
security: [{
|
|
1554
|
+
in: "cookie",
|
|
1555
|
+
name: "nadeshiko.session_token",
|
|
1556
|
+
type: "apiKey"
|
|
1557
|
+
}],
|
|
1403
1558
|
url: "/v1/admin/dashboard",
|
|
1404
1559
|
...options
|
|
1405
1560
|
});
|
|
1406
1561
|
var getAdminHealth = (options) => (options?.client ?? client).get({
|
|
1407
|
-
security: [{
|
|
1562
|
+
security: [{
|
|
1563
|
+
in: "cookie",
|
|
1564
|
+
name: "nadeshiko.session_token",
|
|
1565
|
+
type: "apiKey"
|
|
1566
|
+
}],
|
|
1408
1567
|
url: "/v1/admin/health",
|
|
1409
1568
|
...options
|
|
1410
1569
|
});
|
|
1411
1570
|
var triggerReindex = (options) => (options?.client ?? client).post({
|
|
1412
|
-
security: [{
|
|
1571
|
+
security: [{
|
|
1572
|
+
in: "cookie",
|
|
1573
|
+
name: "nadeshiko.session_token",
|
|
1574
|
+
type: "apiKey"
|
|
1575
|
+
}],
|
|
1413
1576
|
url: "/v1/admin/reindex",
|
|
1414
1577
|
...options,
|
|
1415
1578
|
headers: {
|
|
@@ -1418,59 +1581,87 @@ var triggerReindex = (options) => (options?.client ?? client).post({
|
|
|
1418
1581
|
}
|
|
1419
1582
|
});
|
|
1420
1583
|
var listAdminQueueStats = (options) => (options?.client ?? client).get({
|
|
1421
|
-
security: [{
|
|
1584
|
+
security: [{
|
|
1585
|
+
in: "cookie",
|
|
1586
|
+
name: "nadeshiko.session_token",
|
|
1587
|
+
type: "apiKey"
|
|
1588
|
+
}],
|
|
1422
1589
|
url: "/v1/admin/queues/stats",
|
|
1423
1590
|
...options
|
|
1424
1591
|
});
|
|
1425
1592
|
var getAdminQueue = (options) => (options.client ?? client).get({
|
|
1426
|
-
security: [{
|
|
1593
|
+
security: [{
|
|
1594
|
+
in: "cookie",
|
|
1595
|
+
name: "nadeshiko.session_token",
|
|
1596
|
+
type: "apiKey"
|
|
1597
|
+
}],
|
|
1427
1598
|
url: "/v1/admin/queues/{queueName}",
|
|
1428
1599
|
...options
|
|
1429
1600
|
});
|
|
1430
1601
|
var listAdminQueueFailed = (options) => (options.client ?? client).get({
|
|
1431
|
-
security: [{
|
|
1602
|
+
security: [{
|
|
1603
|
+
in: "cookie",
|
|
1604
|
+
name: "nadeshiko.session_token",
|
|
1605
|
+
type: "apiKey"
|
|
1606
|
+
}],
|
|
1432
1607
|
url: "/v1/admin/queues/{queueName}/failed",
|
|
1433
1608
|
...options
|
|
1434
1609
|
});
|
|
1435
1610
|
var retryAdminQueueFailed = (options) => (options.client ?? client).post({
|
|
1436
|
-
security: [{
|
|
1611
|
+
security: [{
|
|
1612
|
+
in: "cookie",
|
|
1613
|
+
name: "nadeshiko.session_token",
|
|
1614
|
+
type: "apiKey"
|
|
1615
|
+
}],
|
|
1437
1616
|
url: "/v1/admin/queues/{queueName}/retry",
|
|
1438
1617
|
...options
|
|
1439
1618
|
});
|
|
1440
1619
|
var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
|
|
1441
|
-
security: [{
|
|
1620
|
+
security: [{
|
|
1621
|
+
in: "cookie",
|
|
1622
|
+
name: "nadeshiko.session_token",
|
|
1623
|
+
type: "apiKey"
|
|
1624
|
+
}],
|
|
1442
1625
|
url: "/v1/admin/queues/{queueName}/purge",
|
|
1443
1626
|
...options
|
|
1444
1627
|
});
|
|
1445
|
-
var clearAdminImpersonation = (options) => (options?.client ?? client).delete({
|
|
1628
|
+
var clearAdminImpersonation = (options) => (options?.client ?? client).delete({ url: "/v1/admin/impersonation", ...options });
|
|
1629
|
+
var impersonateAdminUser = (options) => (options.client ?? client).post({
|
|
1630
|
+
url: "/v1/admin/impersonation",
|
|
1631
|
+
...options,
|
|
1632
|
+
headers: {
|
|
1633
|
+
"Content-Type": "application/json",
|
|
1634
|
+
...options.headers
|
|
1635
|
+
}
|
|
1636
|
+
});
|
|
1637
|
+
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1446
1638
|
security: [{
|
|
1447
1639
|
in: "cookie",
|
|
1448
1640
|
name: "nadeshiko.session_token",
|
|
1449
1641
|
type: "apiKey"
|
|
1450
1642
|
}],
|
|
1451
|
-
url: "/v1/admin/
|
|
1643
|
+
url: "/v1/admin/reports",
|
|
1452
1644
|
...options
|
|
1453
1645
|
});
|
|
1454
|
-
var
|
|
1646
|
+
var batchUpdateAdminReports = (options) => (options.client ?? client).patch({
|
|
1455
1647
|
security: [{
|
|
1456
1648
|
in: "cookie",
|
|
1457
1649
|
name: "nadeshiko.session_token",
|
|
1458
1650
|
type: "apiKey"
|
|
1459
1651
|
}],
|
|
1460
|
-
url: "/v1/admin/
|
|
1652
|
+
url: "/v1/admin/reports/batch",
|
|
1461
1653
|
...options,
|
|
1462
1654
|
headers: {
|
|
1463
1655
|
"Content-Type": "application/json",
|
|
1464
1656
|
...options.headers
|
|
1465
1657
|
}
|
|
1466
1658
|
});
|
|
1467
|
-
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1468
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1469
|
-
url: "/v1/admin/reports",
|
|
1470
|
-
...options
|
|
1471
|
-
});
|
|
1472
1659
|
var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
1473
|
-
security: [{
|
|
1660
|
+
security: [{
|
|
1661
|
+
in: "cookie",
|
|
1662
|
+
name: "nadeshiko.session_token",
|
|
1663
|
+
type: "apiKey"
|
|
1664
|
+
}],
|
|
1474
1665
|
url: "/v1/admin/reports/{id}",
|
|
1475
1666
|
...options,
|
|
1476
1667
|
headers: {
|
|
@@ -1479,12 +1670,20 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
|
1479
1670
|
}
|
|
1480
1671
|
});
|
|
1481
1672
|
var listAdminMediaAudits = (options) => (options?.client ?? client).get({
|
|
1482
|
-
security: [{
|
|
1673
|
+
security: [{
|
|
1674
|
+
in: "cookie",
|
|
1675
|
+
name: "nadeshiko.session_token",
|
|
1676
|
+
type: "apiKey"
|
|
1677
|
+
}],
|
|
1483
1678
|
url: "/v1/admin/media/audits",
|
|
1484
1679
|
...options
|
|
1485
1680
|
});
|
|
1486
1681
|
var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
1487
|
-
security: [{
|
|
1682
|
+
security: [{
|
|
1683
|
+
in: "cookie",
|
|
1684
|
+
name: "nadeshiko.session_token",
|
|
1685
|
+
type: "apiKey"
|
|
1686
|
+
}],
|
|
1488
1687
|
url: "/v1/admin/media/audits/{name}",
|
|
1489
1688
|
...options,
|
|
1490
1689
|
headers: {
|
|
@@ -1493,25 +1692,52 @@ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
|
1493
1692
|
}
|
|
1494
1693
|
});
|
|
1495
1694
|
var runAdminMediaAudit = (options) => (options.client ?? client).post({
|
|
1496
|
-
security: [{
|
|
1695
|
+
security: [{
|
|
1696
|
+
in: "cookie",
|
|
1697
|
+
name: "nadeshiko.session_token",
|
|
1698
|
+
type: "apiKey"
|
|
1699
|
+
}],
|
|
1497
1700
|
url: "/v1/admin/media/audits/{name}/run",
|
|
1498
1701
|
...options
|
|
1499
1702
|
});
|
|
1500
1703
|
var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
|
|
1501
|
-
security: [{
|
|
1704
|
+
security: [{
|
|
1705
|
+
in: "cookie",
|
|
1706
|
+
name: "nadeshiko.session_token",
|
|
1707
|
+
type: "apiKey"
|
|
1708
|
+
}],
|
|
1502
1709
|
url: "/v1/admin/media/audits/runs",
|
|
1503
1710
|
...options
|
|
1504
1711
|
});
|
|
1505
1712
|
var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
1506
|
-
security: [{
|
|
1713
|
+
security: [{
|
|
1714
|
+
in: "cookie",
|
|
1715
|
+
name: "nadeshiko.session_token",
|
|
1716
|
+
type: "apiKey"
|
|
1717
|
+
}],
|
|
1507
1718
|
url: "/v1/admin/media/audits/runs/{id}",
|
|
1508
1719
|
...options
|
|
1509
1720
|
});
|
|
1721
|
+
var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
|
|
1722
|
+
var updateAnnouncement = (options) => (options.client ?? client).put({
|
|
1723
|
+
security: [{
|
|
1724
|
+
in: "cookie",
|
|
1725
|
+
name: "nadeshiko.session_token",
|
|
1726
|
+
type: "apiKey"
|
|
1727
|
+
}],
|
|
1728
|
+
url: "/v1/admin/announcement",
|
|
1729
|
+
...options,
|
|
1730
|
+
headers: {
|
|
1731
|
+
"Content-Type": "application/json",
|
|
1732
|
+
...options.headers
|
|
1733
|
+
}
|
|
1734
|
+
});
|
|
1510
1735
|
// generated/dev/nadeshiko.gen.ts
|
|
1511
1736
|
var environments = {
|
|
1512
1737
|
LOCAL: "http://localhost:5000/api",
|
|
1513
|
-
DEVELOPMENT: "https://api
|
|
1514
|
-
PRODUCTION: "https://api.
|
|
1738
|
+
DEVELOPMENT: "https://api-dev.nadeshiko.co",
|
|
1739
|
+
PRODUCTION: "https://api.nadeshiko.co",
|
|
1740
|
+
PROXY: ""
|
|
1515
1741
|
};
|
|
1516
1742
|
var defaultSessionTokenGetter = () => {
|
|
1517
1743
|
if (typeof document === "undefined")
|
|
@@ -1520,7 +1746,13 @@ var defaultSessionTokenGetter = () => {
|
|
|
1520
1746
|
return match ? decodeURIComponent(match[1]) : undefined;
|
|
1521
1747
|
};
|
|
1522
1748
|
function createNadeshikoClient(config) {
|
|
1523
|
-
const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl
|
|
1749
|
+
const baseUrl = config.baseUrl === undefined ? environments.PRODUCTION : (config.baseUrl in environments) ? environments[config.baseUrl] : config.baseUrl;
|
|
1750
|
+
const getApiKey = async () => {
|
|
1751
|
+
if (typeof config.apiKey === "function") {
|
|
1752
|
+
return await config.apiKey();
|
|
1753
|
+
}
|
|
1754
|
+
return config.apiKey;
|
|
1755
|
+
};
|
|
1524
1756
|
const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
|
|
1525
1757
|
const clientInstance = createClient(createConfig({
|
|
1526
1758
|
baseUrl,
|
|
@@ -1528,7 +1760,7 @@ function createNadeshikoClient(config) {
|
|
|
1528
1760
|
if (auth.in === "cookie") {
|
|
1529
1761
|
return getSessionToken();
|
|
1530
1762
|
}
|
|
1531
|
-
return
|
|
1763
|
+
return getApiKey();
|
|
1532
1764
|
}
|
|
1533
1765
|
}));
|
|
1534
1766
|
return {
|
|
@@ -1550,6 +1782,7 @@ function createNadeshikoClient(config) {
|
|
|
1550
1782
|
createMedia: (options) => createMedia({ ...options, client: clientInstance }),
|
|
1551
1783
|
autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
|
|
1552
1784
|
updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
|
|
1785
|
+
listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
|
|
1553
1786
|
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1554
1787
|
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1555
1788
|
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
@@ -1563,6 +1796,7 @@ function createNadeshikoClient(config) {
|
|
|
1563
1796
|
deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
|
|
1564
1797
|
listSegments: (options) => listSegments({ ...options, client: clientInstance }),
|
|
1565
1798
|
createSegment: (options) => createSegment({ ...options, client: clientInstance }),
|
|
1799
|
+
createSegmentsBatch: (options) => createSegmentsBatch({ ...options, client: clientInstance }),
|
|
1566
1800
|
updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
|
|
1567
1801
|
deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
|
|
1568
1802
|
getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
|
|
@@ -1601,12 +1835,15 @@ function createNadeshikoClient(config) {
|
|
|
1601
1835
|
impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
|
|
1602
1836
|
clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance }),
|
|
1603
1837
|
listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
|
|
1838
|
+
batchUpdateAdminReports: (options) => batchUpdateAdminReports({ ...options, client: clientInstance }),
|
|
1604
1839
|
updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
|
|
1605
1840
|
listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
|
|
1606
1841
|
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1607
1842
|
runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1608
1843
|
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
|
|
1609
|
-
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
|
|
1844
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
|
|
1845
|
+
getAnnouncement: (options) => getAnnouncement({ ...options, client: clientInstance }),
|
|
1846
|
+
updateAnnouncement: (options) => updateAnnouncement({ ...options, client: clientInstance })
|
|
1610
1847
|
};
|
|
1611
1848
|
}
|
|
1612
1849
|
// generated/dev/internal/media.gen.ts
|
|
@@ -1620,11 +1857,13 @@ __export(exports_media_gen, {
|
|
|
1620
1857
|
updateEpisode: () => updateEpisode,
|
|
1621
1858
|
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
1622
1859
|
listSegments: () => listSegments,
|
|
1860
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
1623
1861
|
deleteSeries: () => deleteSeries,
|
|
1624
1862
|
deleteSegment: () => deleteSegment,
|
|
1625
1863
|
deleteMedia: () => deleteMedia,
|
|
1626
1864
|
deleteEpisode: () => deleteEpisode,
|
|
1627
1865
|
createSeries: () => createSeries,
|
|
1866
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
1628
1867
|
createSegment: () => createSegment,
|
|
1629
1868
|
createMedia: () => createMedia,
|
|
1630
1869
|
createEpisode: () => createEpisode,
|
|
@@ -1667,6 +1906,7 @@ __export(exports_collections_gen, {
|
|
|
1667
1906
|
// generated/dev/internal/admin.gen.ts
|
|
1668
1907
|
var exports_admin_gen = {};
|
|
1669
1908
|
__export(exports_admin_gen, {
|
|
1909
|
+
updateAnnouncement: () => updateAnnouncement,
|
|
1670
1910
|
updateAdminReport: () => updateAdminReport,
|
|
1671
1911
|
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
1672
1912
|
triggerReindex: () => triggerReindex,
|
|
@@ -1679,12 +1919,14 @@ __export(exports_admin_gen, {
|
|
|
1679
1919
|
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
1680
1920
|
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
1681
1921
|
impersonateAdminUser: () => impersonateAdminUser,
|
|
1922
|
+
getAnnouncement: () => getAnnouncement,
|
|
1682
1923
|
getAdminQueue: () => getAdminQueue,
|
|
1683
1924
|
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
1684
1925
|
getAdminHealth: () => getAdminHealth,
|
|
1685
1926
|
getAdminDashboard: () => getAdminDashboard,
|
|
1686
|
-
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1927
|
+
clearAdminImpersonation: () => clearAdminImpersonation,
|
|
1928
|
+
batchUpdateAdminReports: () => batchUpdateAdminReports
|
|
1687
1929
|
});
|
|
1688
1930
|
|
|
1689
|
-
//# debugId=
|
|
1931
|
+
//# debugId=4A1D906EF6A4392464756E2164756E21
|
|
1690
1932
|
//# sourceMappingURL=index.js.map
|