@brigadasos/nadeshiko-sdk 1.5.0-dev.0c1011b → 1.5.0-dev.21992d6
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 +200 -35
- 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 +200 -35
- 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 +5 -1
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +38 -5
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +440 -101
- 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,
|
|
@@ -926,7 +930,11 @@ var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }))
|
|
|
926
930
|
|
|
927
931
|
// generated/dev/sdk.gen.ts
|
|
928
932
|
var search = (options) => (options?.client ?? client).post({
|
|
929
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
933
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
934
|
+
in: "cookie",
|
|
935
|
+
name: "nadeshiko.session_token",
|
|
936
|
+
type: "apiKey"
|
|
937
|
+
}],
|
|
930
938
|
url: "/v1/search",
|
|
931
939
|
...options,
|
|
932
940
|
headers: {
|
|
@@ -935,7 +943,11 @@ var search = (options) => (options?.client ?? client).post({
|
|
|
935
943
|
}
|
|
936
944
|
});
|
|
937
945
|
var getSearchStats = (options) => (options?.client ?? client).post({
|
|
938
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
946
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
947
|
+
in: "cookie",
|
|
948
|
+
name: "nadeshiko.session_token",
|
|
949
|
+
type: "apiKey"
|
|
950
|
+
}],
|
|
939
951
|
url: "/v1/search/stats",
|
|
940
952
|
...options,
|
|
941
953
|
headers: {
|
|
@@ -944,7 +956,11 @@ var getSearchStats = (options) => (options?.client ?? client).post({
|
|
|
944
956
|
}
|
|
945
957
|
});
|
|
946
958
|
var searchWords = (options) => (options.client ?? client).post({
|
|
947
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
959
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
960
|
+
in: "cookie",
|
|
961
|
+
name: "nadeshiko.session_token",
|
|
962
|
+
type: "apiKey"
|
|
963
|
+
}],
|
|
948
964
|
url: "/v1/search/words",
|
|
949
965
|
...options,
|
|
950
966
|
headers: {
|
|
@@ -953,12 +969,20 @@ var searchWords = (options) => (options.client ?? client).post({
|
|
|
953
969
|
}
|
|
954
970
|
});
|
|
955
971
|
var listMedia = (options) => (options?.client ?? client).get({
|
|
956
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
972
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
973
|
+
in: "cookie",
|
|
974
|
+
name: "nadeshiko.session_token",
|
|
975
|
+
type: "apiKey"
|
|
976
|
+
}],
|
|
957
977
|
url: "/v1/media",
|
|
958
978
|
...options
|
|
959
979
|
});
|
|
960
980
|
var createMedia = (options) => (options.client ?? client).post({
|
|
961
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
981
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
982
|
+
in: "cookie",
|
|
983
|
+
name: "nadeshiko.session_token",
|
|
984
|
+
type: "apiKey"
|
|
985
|
+
}],
|
|
962
986
|
url: "/v1/media",
|
|
963
987
|
...options,
|
|
964
988
|
headers: {
|
|
@@ -967,7 +991,11 @@ var createMedia = (options) => (options.client ?? client).post({
|
|
|
967
991
|
}
|
|
968
992
|
});
|
|
969
993
|
var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
970
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
994
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
995
|
+
in: "cookie",
|
|
996
|
+
name: "nadeshiko.session_token",
|
|
997
|
+
type: "apiKey"
|
|
998
|
+
}],
|
|
971
999
|
url: "/v1/media/autocomplete",
|
|
972
1000
|
...options
|
|
973
1001
|
});
|
|
@@ -1002,13 +1030,30 @@ var getSegmentContext = (options) => (options.client ?? client).get({
|
|
|
1002
1030
|
url: "/v1/media/segments/{uuid}/context",
|
|
1003
1031
|
...options
|
|
1004
1032
|
});
|
|
1033
|
+
var listSegmentRevisions = (options) => (options.client ?? client).get({
|
|
1034
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1035
|
+
in: "cookie",
|
|
1036
|
+
name: "nadeshiko.session_token",
|
|
1037
|
+
type: "apiKey"
|
|
1038
|
+
}],
|
|
1039
|
+
url: "/v1/media/segments/{uuid}/revisions",
|
|
1040
|
+
...options
|
|
1041
|
+
});
|
|
1005
1042
|
var listSeries = (options) => (options?.client ?? client).get({
|
|
1006
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1043
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1044
|
+
in: "cookie",
|
|
1045
|
+
name: "nadeshiko.session_token",
|
|
1046
|
+
type: "apiKey"
|
|
1047
|
+
}],
|
|
1007
1048
|
url: "/v1/media/series",
|
|
1008
1049
|
...options
|
|
1009
1050
|
});
|
|
1010
1051
|
var createSeries = (options) => (options.client ?? client).post({
|
|
1011
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1052
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1053
|
+
in: "cookie",
|
|
1054
|
+
name: "nadeshiko.session_token",
|
|
1055
|
+
type: "apiKey"
|
|
1056
|
+
}],
|
|
1012
1057
|
url: "/v1/media/series",
|
|
1013
1058
|
...options,
|
|
1014
1059
|
headers: {
|
|
@@ -1017,17 +1062,29 @@ var createSeries = (options) => (options.client ?? client).post({
|
|
|
1017
1062
|
}
|
|
1018
1063
|
});
|
|
1019
1064
|
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
1020
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1065
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1066
|
+
in: "cookie",
|
|
1067
|
+
name: "nadeshiko.session_token",
|
|
1068
|
+
type: "apiKey"
|
|
1069
|
+
}],
|
|
1021
1070
|
url: "/v1/media/series/{id}",
|
|
1022
1071
|
...options
|
|
1023
1072
|
});
|
|
1024
1073
|
var getSeries = (options) => (options.client ?? client).get({
|
|
1025
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1074
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1075
|
+
in: "cookie",
|
|
1076
|
+
name: "nadeshiko.session_token",
|
|
1077
|
+
type: "apiKey"
|
|
1078
|
+
}],
|
|
1026
1079
|
url: "/v1/media/series/{id}",
|
|
1027
1080
|
...options
|
|
1028
1081
|
});
|
|
1029
1082
|
var updateSeries = (options) => (options.client ?? client).patch({
|
|
1030
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1083
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1084
|
+
in: "cookie",
|
|
1085
|
+
name: "nadeshiko.session_token",
|
|
1086
|
+
type: "apiKey"
|
|
1087
|
+
}],
|
|
1031
1088
|
url: "/v1/media/series/{id}",
|
|
1032
1089
|
...options,
|
|
1033
1090
|
headers: {
|
|
@@ -1036,7 +1093,11 @@ var updateSeries = (options) => (options.client ?? client).patch({
|
|
|
1036
1093
|
}
|
|
1037
1094
|
});
|
|
1038
1095
|
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
1039
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1096
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1097
|
+
in: "cookie",
|
|
1098
|
+
name: "nadeshiko.session_token",
|
|
1099
|
+
type: "apiKey"
|
|
1100
|
+
}],
|
|
1040
1101
|
url: "/v1/media/series/{id}/media",
|
|
1041
1102
|
...options,
|
|
1042
1103
|
headers: {
|
|
@@ -1045,12 +1106,20 @@ var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
|
1045
1106
|
}
|
|
1046
1107
|
});
|
|
1047
1108
|
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
1048
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1109
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1110
|
+
in: "cookie",
|
|
1111
|
+
name: "nadeshiko.session_token",
|
|
1112
|
+
type: "apiKey"
|
|
1113
|
+
}],
|
|
1049
1114
|
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1050
1115
|
...options
|
|
1051
1116
|
});
|
|
1052
1117
|
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
1053
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1118
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1119
|
+
in: "cookie",
|
|
1120
|
+
name: "nadeshiko.session_token",
|
|
1121
|
+
type: "apiKey"
|
|
1122
|
+
}],
|
|
1054
1123
|
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1055
1124
|
...options,
|
|
1056
1125
|
headers: {
|
|
@@ -1059,27 +1128,47 @@ var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
|
1059
1128
|
}
|
|
1060
1129
|
});
|
|
1061
1130
|
var getCharacter = (options) => (options.client ?? client).get({
|
|
1062
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1131
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1132
|
+
in: "cookie",
|
|
1133
|
+
name: "nadeshiko.session_token",
|
|
1134
|
+
type: "apiKey"
|
|
1135
|
+
}],
|
|
1063
1136
|
url: "/v1/media/characters/{id}",
|
|
1064
1137
|
...options
|
|
1065
1138
|
});
|
|
1066
1139
|
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
1067
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1140
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1141
|
+
in: "cookie",
|
|
1142
|
+
name: "nadeshiko.session_token",
|
|
1143
|
+
type: "apiKey"
|
|
1144
|
+
}],
|
|
1068
1145
|
url: "/v1/media/seiyuu/{id}",
|
|
1069
1146
|
...options
|
|
1070
1147
|
});
|
|
1071
1148
|
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
1072
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1149
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1150
|
+
in: "cookie",
|
|
1151
|
+
name: "nadeshiko.session_token",
|
|
1152
|
+
type: "apiKey"
|
|
1153
|
+
}],
|
|
1073
1154
|
url: "/v1/media/{id}",
|
|
1074
1155
|
...options
|
|
1075
1156
|
});
|
|
1076
1157
|
var getMedia = (options) => (options.client ?? client).get({
|
|
1077
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1158
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1159
|
+
in: "cookie",
|
|
1160
|
+
name: "nadeshiko.session_token",
|
|
1161
|
+
type: "apiKey"
|
|
1162
|
+
}],
|
|
1078
1163
|
url: "/v1/media/{id}",
|
|
1079
1164
|
...options
|
|
1080
1165
|
});
|
|
1081
1166
|
var updateMedia = (options) => (options.client ?? client).patch({
|
|
1082
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1167
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1168
|
+
in: "cookie",
|
|
1169
|
+
name: "nadeshiko.session_token",
|
|
1170
|
+
type: "apiKey"
|
|
1171
|
+
}],
|
|
1083
1172
|
url: "/v1/media/{id}",
|
|
1084
1173
|
...options,
|
|
1085
1174
|
headers: {
|
|
@@ -1088,12 +1177,20 @@ var updateMedia = (options) => (options.client ?? client).patch({
|
|
|
1088
1177
|
}
|
|
1089
1178
|
});
|
|
1090
1179
|
var listEpisodes = (options) => (options.client ?? client).get({
|
|
1091
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1180
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1181
|
+
in: "cookie",
|
|
1182
|
+
name: "nadeshiko.session_token",
|
|
1183
|
+
type: "apiKey"
|
|
1184
|
+
}],
|
|
1092
1185
|
url: "/v1/media/{mediaId}/episodes",
|
|
1093
1186
|
...options
|
|
1094
1187
|
});
|
|
1095
1188
|
var createEpisode = (options) => (options.client ?? client).post({
|
|
1096
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1189
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1190
|
+
in: "cookie",
|
|
1191
|
+
name: "nadeshiko.session_token",
|
|
1192
|
+
type: "apiKey"
|
|
1193
|
+
}],
|
|
1097
1194
|
url: "/v1/media/{mediaId}/episodes",
|
|
1098
1195
|
...options,
|
|
1099
1196
|
headers: {
|
|
@@ -1102,17 +1199,29 @@ var createEpisode = (options) => (options.client ?? client).post({
|
|
|
1102
1199
|
}
|
|
1103
1200
|
});
|
|
1104
1201
|
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1105
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1202
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1203
|
+
in: "cookie",
|
|
1204
|
+
name: "nadeshiko.session_token",
|
|
1205
|
+
type: "apiKey"
|
|
1206
|
+
}],
|
|
1106
1207
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1107
1208
|
...options
|
|
1108
1209
|
});
|
|
1109
1210
|
var getEpisode = (options) => (options.client ?? client).get({
|
|
1110
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1211
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1212
|
+
in: "cookie",
|
|
1213
|
+
name: "nadeshiko.session_token",
|
|
1214
|
+
type: "apiKey"
|
|
1215
|
+
}],
|
|
1111
1216
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1112
1217
|
...options
|
|
1113
1218
|
});
|
|
1114
1219
|
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1115
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1220
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1221
|
+
in: "cookie",
|
|
1222
|
+
name: "nadeshiko.session_token",
|
|
1223
|
+
type: "apiKey"
|
|
1224
|
+
}],
|
|
1116
1225
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1117
1226
|
...options,
|
|
1118
1227
|
headers: {
|
|
@@ -1121,12 +1230,20 @@ var updateEpisode = (options) => (options.client ?? client).patch({
|
|
|
1121
1230
|
}
|
|
1122
1231
|
});
|
|
1123
1232
|
var listSegments = (options) => (options.client ?? client).get({
|
|
1124
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1233
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1234
|
+
in: "cookie",
|
|
1235
|
+
name: "nadeshiko.session_token",
|
|
1236
|
+
type: "apiKey"
|
|
1237
|
+
}],
|
|
1125
1238
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1126
1239
|
...options
|
|
1127
1240
|
});
|
|
1128
1241
|
var createSegment = (options) => (options.client ?? client).post({
|
|
1129
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1242
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1243
|
+
in: "cookie",
|
|
1244
|
+
name: "nadeshiko.session_token",
|
|
1245
|
+
type: "apiKey"
|
|
1246
|
+
}],
|
|
1130
1247
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1131
1248
|
...options,
|
|
1132
1249
|
headers: {
|
|
@@ -1134,18 +1251,43 @@ var createSegment = (options) => (options.client ?? client).post({
|
|
|
1134
1251
|
...options.headers
|
|
1135
1252
|
}
|
|
1136
1253
|
});
|
|
1254
|
+
var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
1255
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1256
|
+
in: "cookie",
|
|
1257
|
+
name: "nadeshiko.session_token",
|
|
1258
|
+
type: "apiKey"
|
|
1259
|
+
}],
|
|
1260
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
|
|
1261
|
+
...options,
|
|
1262
|
+
headers: {
|
|
1263
|
+
"Content-Type": "application/json",
|
|
1264
|
+
...options.headers
|
|
1265
|
+
}
|
|
1266
|
+
});
|
|
1137
1267
|
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1138
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1268
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1269
|
+
in: "cookie",
|
|
1270
|
+
name: "nadeshiko.session_token",
|
|
1271
|
+
type: "apiKey"
|
|
1272
|
+
}],
|
|
1139
1273
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1140
1274
|
...options
|
|
1141
1275
|
});
|
|
1142
1276
|
var getSegment = (options) => (options.client ?? client).get({
|
|
1143
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1277
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1278
|
+
in: "cookie",
|
|
1279
|
+
name: "nadeshiko.session_token",
|
|
1280
|
+
type: "apiKey"
|
|
1281
|
+
}],
|
|
1144
1282
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1145
1283
|
...options
|
|
1146
1284
|
});
|
|
1147
1285
|
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1148
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1286
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1287
|
+
in: "cookie",
|
|
1288
|
+
name: "nadeshiko.session_token",
|
|
1289
|
+
type: "apiKey"
|
|
1290
|
+
}],
|
|
1149
1291
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1150
1292
|
...options,
|
|
1151
1293
|
headers: {
|
|
@@ -1372,7 +1514,7 @@ var removeSegmentFromCollection = (options) => (options.client ?? client).delete
|
|
|
1372
1514
|
name: "nadeshiko.session_token",
|
|
1373
1515
|
type: "apiKey"
|
|
1374
1516
|
}],
|
|
1375
|
-
url: "/v1/collections/{id}/segments/{
|
|
1517
|
+
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1376
1518
|
...options
|
|
1377
1519
|
});
|
|
1378
1520
|
var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
@@ -1381,7 +1523,7 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
|
1381
1523
|
name: "nadeshiko.session_token",
|
|
1382
1524
|
type: "apiKey"
|
|
1383
1525
|
}],
|
|
1384
|
-
url: "/v1/collections/{id}/segments/{
|
|
1526
|
+
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1385
1527
|
...options,
|
|
1386
1528
|
headers: {
|
|
1387
1529
|
"Content-Type": "application/json",
|
|
@@ -1562,11 +1704,26 @@ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
|
1562
1704
|
url: "/v1/admin/media/audits/runs/{id}",
|
|
1563
1705
|
...options
|
|
1564
1706
|
});
|
|
1707
|
+
var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
|
|
1708
|
+
var updateAnnouncement = (options) => (options.client ?? client).put({
|
|
1709
|
+
security: [{
|
|
1710
|
+
in: "cookie",
|
|
1711
|
+
name: "nadeshiko.session_token",
|
|
1712
|
+
type: "apiKey"
|
|
1713
|
+
}],
|
|
1714
|
+
url: "/v1/admin/announcement",
|
|
1715
|
+
...options,
|
|
1716
|
+
headers: {
|
|
1717
|
+
"Content-Type": "application/json",
|
|
1718
|
+
...options.headers
|
|
1719
|
+
}
|
|
1720
|
+
});
|
|
1565
1721
|
// generated/dev/nadeshiko.gen.ts
|
|
1566
1722
|
var environments = {
|
|
1567
1723
|
LOCAL: "http://localhost:5000/api",
|
|
1568
|
-
DEVELOPMENT: "https://api
|
|
1569
|
-
PRODUCTION: "https://api.
|
|
1724
|
+
DEVELOPMENT: "https://api-dev.nadeshiko.co",
|
|
1725
|
+
PRODUCTION: "https://api.nadeshiko.co",
|
|
1726
|
+
PROXY: ""
|
|
1570
1727
|
};
|
|
1571
1728
|
var defaultSessionTokenGetter = () => {
|
|
1572
1729
|
if (typeof document === "undefined")
|
|
@@ -1611,6 +1768,7 @@ function createNadeshikoClient(config) {
|
|
|
1611
1768
|
createMedia: (options) => createMedia({ ...options, client: clientInstance }),
|
|
1612
1769
|
autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
|
|
1613
1770
|
updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
|
|
1771
|
+
listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
|
|
1614
1772
|
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1615
1773
|
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1616
1774
|
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
@@ -1624,6 +1782,7 @@ function createNadeshikoClient(config) {
|
|
|
1624
1782
|
deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
|
|
1625
1783
|
listSegments: (options) => listSegments({ ...options, client: clientInstance }),
|
|
1626
1784
|
createSegment: (options) => createSegment({ ...options, client: clientInstance }),
|
|
1785
|
+
createSegmentsBatch: (options) => createSegmentsBatch({ ...options, client: clientInstance }),
|
|
1627
1786
|
updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
|
|
1628
1787
|
deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
|
|
1629
1788
|
getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
|
|
@@ -1667,7 +1826,9 @@ function createNadeshikoClient(config) {
|
|
|
1667
1826
|
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1668
1827
|
runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1669
1828
|
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
|
|
1670
|
-
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
|
|
1829
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
|
|
1830
|
+
getAnnouncement: (options) => getAnnouncement({ ...options, client: clientInstance }),
|
|
1831
|
+
updateAnnouncement: (options) => updateAnnouncement({ ...options, client: clientInstance })
|
|
1671
1832
|
};
|
|
1672
1833
|
}
|
|
1673
1834
|
// generated/dev/internal/media.gen.ts
|
|
@@ -1681,11 +1842,13 @@ __export(exports_media_gen, {
|
|
|
1681
1842
|
updateEpisode: () => updateEpisode,
|
|
1682
1843
|
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
1683
1844
|
listSegments: () => listSegments,
|
|
1845
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
1684
1846
|
deleteSeries: () => deleteSeries,
|
|
1685
1847
|
deleteSegment: () => deleteSegment,
|
|
1686
1848
|
deleteMedia: () => deleteMedia,
|
|
1687
1849
|
deleteEpisode: () => deleteEpisode,
|
|
1688
1850
|
createSeries: () => createSeries,
|
|
1851
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
1689
1852
|
createSegment: () => createSegment,
|
|
1690
1853
|
createMedia: () => createMedia,
|
|
1691
1854
|
createEpisode: () => createEpisode,
|
|
@@ -1728,6 +1891,7 @@ __export(exports_collections_gen, {
|
|
|
1728
1891
|
// generated/dev/internal/admin.gen.ts
|
|
1729
1892
|
var exports_admin_gen = {};
|
|
1730
1893
|
__export(exports_admin_gen, {
|
|
1894
|
+
updateAnnouncement: () => updateAnnouncement,
|
|
1731
1895
|
updateAdminReport: () => updateAdminReport,
|
|
1732
1896
|
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
1733
1897
|
triggerReindex: () => triggerReindex,
|
|
@@ -1740,6 +1904,7 @@ __export(exports_admin_gen, {
|
|
|
1740
1904
|
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
1741
1905
|
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
1742
1906
|
impersonateAdminUser: () => impersonateAdminUser,
|
|
1907
|
+
getAnnouncement: () => getAnnouncement,
|
|
1743
1908
|
getAdminQueue: () => getAdminQueue,
|
|
1744
1909
|
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
1745
1910
|
getAdminHealth: () => getAdminHealth,
|
|
@@ -1747,5 +1912,5 @@ __export(exports_admin_gen, {
|
|
|
1747
1912
|
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1748
1913
|
});
|
|
1749
1914
|
|
|
1750
|
-
//# debugId=
|
|
1915
|
+
//# debugId=8ABA5B3A395A47F564756E2164756E21
|
|
1751
1916
|
//# sourceMappingURL=index.js.map
|