@brigadasos/nadeshiko-sdk 1.5.0-dev.66d279f → 1.5.0-dev.6ad2243
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 +186 -34
- 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 +186 -34
- 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 +4 -1
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +31 -9
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +346 -102
- 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,
|
|
@@ -927,7 +930,11 @@ var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }))
|
|
|
927
930
|
|
|
928
931
|
// generated/dev/sdk.gen.ts
|
|
929
932
|
var search = (options) => (options?.client ?? client).post({
|
|
930
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
933
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
934
|
+
in: "cookie",
|
|
935
|
+
name: "nadeshiko.session_token",
|
|
936
|
+
type: "apiKey"
|
|
937
|
+
}],
|
|
931
938
|
url: "/v1/search",
|
|
932
939
|
...options,
|
|
933
940
|
headers: {
|
|
@@ -936,7 +943,11 @@ var search = (options) => (options?.client ?? client).post({
|
|
|
936
943
|
}
|
|
937
944
|
});
|
|
938
945
|
var getSearchStats = (options) => (options?.client ?? client).post({
|
|
939
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
946
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
947
|
+
in: "cookie",
|
|
948
|
+
name: "nadeshiko.session_token",
|
|
949
|
+
type: "apiKey"
|
|
950
|
+
}],
|
|
940
951
|
url: "/v1/search/stats",
|
|
941
952
|
...options,
|
|
942
953
|
headers: {
|
|
@@ -945,7 +956,11 @@ var getSearchStats = (options) => (options?.client ?? client).post({
|
|
|
945
956
|
}
|
|
946
957
|
});
|
|
947
958
|
var searchWords = (options) => (options.client ?? client).post({
|
|
948
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
959
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
960
|
+
in: "cookie",
|
|
961
|
+
name: "nadeshiko.session_token",
|
|
962
|
+
type: "apiKey"
|
|
963
|
+
}],
|
|
949
964
|
url: "/v1/search/words",
|
|
950
965
|
...options,
|
|
951
966
|
headers: {
|
|
@@ -954,12 +969,20 @@ var searchWords = (options) => (options.client ?? client).post({
|
|
|
954
969
|
}
|
|
955
970
|
});
|
|
956
971
|
var listMedia = (options) => (options?.client ?? client).get({
|
|
957
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
972
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
973
|
+
in: "cookie",
|
|
974
|
+
name: "nadeshiko.session_token",
|
|
975
|
+
type: "apiKey"
|
|
976
|
+
}],
|
|
958
977
|
url: "/v1/media",
|
|
959
978
|
...options
|
|
960
979
|
});
|
|
961
980
|
var createMedia = (options) => (options.client ?? client).post({
|
|
962
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
981
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
982
|
+
in: "cookie",
|
|
983
|
+
name: "nadeshiko.session_token",
|
|
984
|
+
type: "apiKey"
|
|
985
|
+
}],
|
|
963
986
|
url: "/v1/media",
|
|
964
987
|
...options,
|
|
965
988
|
headers: {
|
|
@@ -968,7 +991,11 @@ var createMedia = (options) => (options.client ?? client).post({
|
|
|
968
991
|
}
|
|
969
992
|
});
|
|
970
993
|
var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
971
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
994
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
995
|
+
in: "cookie",
|
|
996
|
+
name: "nadeshiko.session_token",
|
|
997
|
+
type: "apiKey"
|
|
998
|
+
}],
|
|
972
999
|
url: "/v1/media/autocomplete",
|
|
973
1000
|
...options
|
|
974
1001
|
});
|
|
@@ -1003,13 +1030,30 @@ var getSegmentContext = (options) => (options.client ?? client).get({
|
|
|
1003
1030
|
url: "/v1/media/segments/{uuid}/context",
|
|
1004
1031
|
...options
|
|
1005
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
|
+
});
|
|
1006
1042
|
var listSeries = (options) => (options?.client ?? client).get({
|
|
1007
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1043
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1044
|
+
in: "cookie",
|
|
1045
|
+
name: "nadeshiko.session_token",
|
|
1046
|
+
type: "apiKey"
|
|
1047
|
+
}],
|
|
1008
1048
|
url: "/v1/media/series",
|
|
1009
1049
|
...options
|
|
1010
1050
|
});
|
|
1011
1051
|
var createSeries = (options) => (options.client ?? client).post({
|
|
1012
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1052
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1053
|
+
in: "cookie",
|
|
1054
|
+
name: "nadeshiko.session_token",
|
|
1055
|
+
type: "apiKey"
|
|
1056
|
+
}],
|
|
1013
1057
|
url: "/v1/media/series",
|
|
1014
1058
|
...options,
|
|
1015
1059
|
headers: {
|
|
@@ -1018,17 +1062,29 @@ var createSeries = (options) => (options.client ?? client).post({
|
|
|
1018
1062
|
}
|
|
1019
1063
|
});
|
|
1020
1064
|
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
1021
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1065
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1066
|
+
in: "cookie",
|
|
1067
|
+
name: "nadeshiko.session_token",
|
|
1068
|
+
type: "apiKey"
|
|
1069
|
+
}],
|
|
1022
1070
|
url: "/v1/media/series/{id}",
|
|
1023
1071
|
...options
|
|
1024
1072
|
});
|
|
1025
1073
|
var getSeries = (options) => (options.client ?? client).get({
|
|
1026
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1074
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1075
|
+
in: "cookie",
|
|
1076
|
+
name: "nadeshiko.session_token",
|
|
1077
|
+
type: "apiKey"
|
|
1078
|
+
}],
|
|
1027
1079
|
url: "/v1/media/series/{id}",
|
|
1028
1080
|
...options
|
|
1029
1081
|
});
|
|
1030
1082
|
var updateSeries = (options) => (options.client ?? client).patch({
|
|
1031
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1083
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1084
|
+
in: "cookie",
|
|
1085
|
+
name: "nadeshiko.session_token",
|
|
1086
|
+
type: "apiKey"
|
|
1087
|
+
}],
|
|
1032
1088
|
url: "/v1/media/series/{id}",
|
|
1033
1089
|
...options,
|
|
1034
1090
|
headers: {
|
|
@@ -1037,7 +1093,11 @@ var updateSeries = (options) => (options.client ?? client).patch({
|
|
|
1037
1093
|
}
|
|
1038
1094
|
});
|
|
1039
1095
|
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
1040
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1096
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1097
|
+
in: "cookie",
|
|
1098
|
+
name: "nadeshiko.session_token",
|
|
1099
|
+
type: "apiKey"
|
|
1100
|
+
}],
|
|
1041
1101
|
url: "/v1/media/series/{id}/media",
|
|
1042
1102
|
...options,
|
|
1043
1103
|
headers: {
|
|
@@ -1046,12 +1106,20 @@ var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
|
1046
1106
|
}
|
|
1047
1107
|
});
|
|
1048
1108
|
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
1049
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1109
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1110
|
+
in: "cookie",
|
|
1111
|
+
name: "nadeshiko.session_token",
|
|
1112
|
+
type: "apiKey"
|
|
1113
|
+
}],
|
|
1050
1114
|
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1051
1115
|
...options
|
|
1052
1116
|
});
|
|
1053
1117
|
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
1054
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1118
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1119
|
+
in: "cookie",
|
|
1120
|
+
name: "nadeshiko.session_token",
|
|
1121
|
+
type: "apiKey"
|
|
1122
|
+
}],
|
|
1055
1123
|
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1056
1124
|
...options,
|
|
1057
1125
|
headers: {
|
|
@@ -1060,27 +1128,47 @@ var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
|
1060
1128
|
}
|
|
1061
1129
|
});
|
|
1062
1130
|
var getCharacter = (options) => (options.client ?? client).get({
|
|
1063
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1131
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1132
|
+
in: "cookie",
|
|
1133
|
+
name: "nadeshiko.session_token",
|
|
1134
|
+
type: "apiKey"
|
|
1135
|
+
}],
|
|
1064
1136
|
url: "/v1/media/characters/{id}",
|
|
1065
1137
|
...options
|
|
1066
1138
|
});
|
|
1067
1139
|
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
1068
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1140
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1141
|
+
in: "cookie",
|
|
1142
|
+
name: "nadeshiko.session_token",
|
|
1143
|
+
type: "apiKey"
|
|
1144
|
+
}],
|
|
1069
1145
|
url: "/v1/media/seiyuu/{id}",
|
|
1070
1146
|
...options
|
|
1071
1147
|
});
|
|
1072
1148
|
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
1073
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1149
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1150
|
+
in: "cookie",
|
|
1151
|
+
name: "nadeshiko.session_token",
|
|
1152
|
+
type: "apiKey"
|
|
1153
|
+
}],
|
|
1074
1154
|
url: "/v1/media/{id}",
|
|
1075
1155
|
...options
|
|
1076
1156
|
});
|
|
1077
1157
|
var getMedia = (options) => (options.client ?? client).get({
|
|
1078
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1158
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1159
|
+
in: "cookie",
|
|
1160
|
+
name: "nadeshiko.session_token",
|
|
1161
|
+
type: "apiKey"
|
|
1162
|
+
}],
|
|
1079
1163
|
url: "/v1/media/{id}",
|
|
1080
1164
|
...options
|
|
1081
1165
|
});
|
|
1082
1166
|
var updateMedia = (options) => (options.client ?? client).patch({
|
|
1083
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1167
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1168
|
+
in: "cookie",
|
|
1169
|
+
name: "nadeshiko.session_token",
|
|
1170
|
+
type: "apiKey"
|
|
1171
|
+
}],
|
|
1084
1172
|
url: "/v1/media/{id}",
|
|
1085
1173
|
...options,
|
|
1086
1174
|
headers: {
|
|
@@ -1089,12 +1177,20 @@ var updateMedia = (options) => (options.client ?? client).patch({
|
|
|
1089
1177
|
}
|
|
1090
1178
|
});
|
|
1091
1179
|
var listEpisodes = (options) => (options.client ?? client).get({
|
|
1092
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1180
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1181
|
+
in: "cookie",
|
|
1182
|
+
name: "nadeshiko.session_token",
|
|
1183
|
+
type: "apiKey"
|
|
1184
|
+
}],
|
|
1093
1185
|
url: "/v1/media/{mediaId}/episodes",
|
|
1094
1186
|
...options
|
|
1095
1187
|
});
|
|
1096
1188
|
var createEpisode = (options) => (options.client ?? client).post({
|
|
1097
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1189
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1190
|
+
in: "cookie",
|
|
1191
|
+
name: "nadeshiko.session_token",
|
|
1192
|
+
type: "apiKey"
|
|
1193
|
+
}],
|
|
1098
1194
|
url: "/v1/media/{mediaId}/episodes",
|
|
1099
1195
|
...options,
|
|
1100
1196
|
headers: {
|
|
@@ -1103,17 +1199,29 @@ var createEpisode = (options) => (options.client ?? client).post({
|
|
|
1103
1199
|
}
|
|
1104
1200
|
});
|
|
1105
1201
|
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1106
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1202
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1203
|
+
in: "cookie",
|
|
1204
|
+
name: "nadeshiko.session_token",
|
|
1205
|
+
type: "apiKey"
|
|
1206
|
+
}],
|
|
1107
1207
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1108
1208
|
...options
|
|
1109
1209
|
});
|
|
1110
1210
|
var getEpisode = (options) => (options.client ?? client).get({
|
|
1111
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1211
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1212
|
+
in: "cookie",
|
|
1213
|
+
name: "nadeshiko.session_token",
|
|
1214
|
+
type: "apiKey"
|
|
1215
|
+
}],
|
|
1112
1216
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1113
1217
|
...options
|
|
1114
1218
|
});
|
|
1115
1219
|
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1116
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1220
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1221
|
+
in: "cookie",
|
|
1222
|
+
name: "nadeshiko.session_token",
|
|
1223
|
+
type: "apiKey"
|
|
1224
|
+
}],
|
|
1117
1225
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1118
1226
|
...options,
|
|
1119
1227
|
headers: {
|
|
@@ -1122,12 +1230,20 @@ var updateEpisode = (options) => (options.client ?? client).patch({
|
|
|
1122
1230
|
}
|
|
1123
1231
|
});
|
|
1124
1232
|
var listSegments = (options) => (options.client ?? client).get({
|
|
1125
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1233
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1234
|
+
in: "cookie",
|
|
1235
|
+
name: "nadeshiko.session_token",
|
|
1236
|
+
type: "apiKey"
|
|
1237
|
+
}],
|
|
1126
1238
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1127
1239
|
...options
|
|
1128
1240
|
});
|
|
1129
1241
|
var createSegment = (options) => (options.client ?? client).post({
|
|
1130
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1242
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1243
|
+
in: "cookie",
|
|
1244
|
+
name: "nadeshiko.session_token",
|
|
1245
|
+
type: "apiKey"
|
|
1246
|
+
}],
|
|
1131
1247
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1132
1248
|
...options,
|
|
1133
1249
|
headers: {
|
|
@@ -1136,7 +1252,11 @@ var createSegment = (options) => (options.client ?? client).post({
|
|
|
1136
1252
|
}
|
|
1137
1253
|
});
|
|
1138
1254
|
var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
1139
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1255
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1256
|
+
in: "cookie",
|
|
1257
|
+
name: "nadeshiko.session_token",
|
|
1258
|
+
type: "apiKey"
|
|
1259
|
+
}],
|
|
1140
1260
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
|
|
1141
1261
|
...options,
|
|
1142
1262
|
headers: {
|
|
@@ -1145,17 +1265,29 @@ var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
|
1145
1265
|
}
|
|
1146
1266
|
});
|
|
1147
1267
|
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1148
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1268
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1269
|
+
in: "cookie",
|
|
1270
|
+
name: "nadeshiko.session_token",
|
|
1271
|
+
type: "apiKey"
|
|
1272
|
+
}],
|
|
1149
1273
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1150
1274
|
...options
|
|
1151
1275
|
});
|
|
1152
1276
|
var getSegment = (options) => (options.client ?? client).get({
|
|
1153
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1277
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1278
|
+
in: "cookie",
|
|
1279
|
+
name: "nadeshiko.session_token",
|
|
1280
|
+
type: "apiKey"
|
|
1281
|
+
}],
|
|
1154
1282
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1155
1283
|
...options
|
|
1156
1284
|
});
|
|
1157
1285
|
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1158
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1286
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1287
|
+
in: "cookie",
|
|
1288
|
+
name: "nadeshiko.session_token",
|
|
1289
|
+
type: "apiKey"
|
|
1290
|
+
}],
|
|
1159
1291
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1160
1292
|
...options,
|
|
1161
1293
|
headers: {
|
|
@@ -1382,7 +1514,7 @@ var removeSegmentFromCollection = (options) => (options.client ?? client).delete
|
|
|
1382
1514
|
name: "nadeshiko.session_token",
|
|
1383
1515
|
type: "apiKey"
|
|
1384
1516
|
}],
|
|
1385
|
-
url: "/v1/collections/{id}/segments/{
|
|
1517
|
+
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1386
1518
|
...options
|
|
1387
1519
|
});
|
|
1388
1520
|
var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
@@ -1391,7 +1523,7 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
|
1391
1523
|
name: "nadeshiko.session_token",
|
|
1392
1524
|
type: "apiKey"
|
|
1393
1525
|
}],
|
|
1394
|
-
url: "/v1/collections/{id}/segments/{
|
|
1526
|
+
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1395
1527
|
...options,
|
|
1396
1528
|
headers: {
|
|
1397
1529
|
"Content-Type": "application/json",
|
|
@@ -1572,6 +1704,20 @@ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
|
1572
1704
|
url: "/v1/admin/media/audits/runs/{id}",
|
|
1573
1705
|
...options
|
|
1574
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
|
+
});
|
|
1575
1721
|
// generated/dev/nadeshiko.gen.ts
|
|
1576
1722
|
var environments = {
|
|
1577
1723
|
LOCAL: "http://localhost:5000/api",
|
|
@@ -1621,6 +1767,7 @@ function createNadeshikoClient(config) {
|
|
|
1621
1767
|
createMedia: (options) => createMedia({ ...options, client: clientInstance }),
|
|
1622
1768
|
autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
|
|
1623
1769
|
updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
|
|
1770
|
+
listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
|
|
1624
1771
|
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1625
1772
|
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1626
1773
|
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
@@ -1678,7 +1825,9 @@ function createNadeshikoClient(config) {
|
|
|
1678
1825
|
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1679
1826
|
runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1680
1827
|
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
|
|
1681
|
-
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
|
|
1828
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
|
|
1829
|
+
getAnnouncement: (options) => getAnnouncement({ ...options, client: clientInstance }),
|
|
1830
|
+
updateAnnouncement: (options) => updateAnnouncement({ ...options, client: clientInstance })
|
|
1682
1831
|
};
|
|
1683
1832
|
}
|
|
1684
1833
|
// generated/dev/internal/media.gen.ts
|
|
@@ -1692,6 +1841,7 @@ __export(exports_media_gen, {
|
|
|
1692
1841
|
updateEpisode: () => updateEpisode,
|
|
1693
1842
|
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
1694
1843
|
listSegments: () => listSegments,
|
|
1844
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
1695
1845
|
deleteSeries: () => deleteSeries,
|
|
1696
1846
|
deleteSegment: () => deleteSegment,
|
|
1697
1847
|
deleteMedia: () => deleteMedia,
|
|
@@ -1740,6 +1890,7 @@ __export(exports_collections_gen, {
|
|
|
1740
1890
|
// generated/dev/internal/admin.gen.ts
|
|
1741
1891
|
var exports_admin_gen = {};
|
|
1742
1892
|
__export(exports_admin_gen, {
|
|
1893
|
+
updateAnnouncement: () => updateAnnouncement,
|
|
1743
1894
|
updateAdminReport: () => updateAdminReport,
|
|
1744
1895
|
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
1745
1896
|
triggerReindex: () => triggerReindex,
|
|
@@ -1752,6 +1903,7 @@ __export(exports_admin_gen, {
|
|
|
1752
1903
|
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
1753
1904
|
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
1754
1905
|
impersonateAdminUser: () => impersonateAdminUser,
|
|
1906
|
+
getAnnouncement: () => getAnnouncement,
|
|
1755
1907
|
getAdminQueue: () => getAdminQueue,
|
|
1756
1908
|
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
1757
1909
|
getAdminHealth: () => getAdminHealth,
|
|
@@ -1759,5 +1911,5 @@ __export(exports_admin_gen, {
|
|
|
1759
1911
|
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1760
1912
|
});
|
|
1761
1913
|
|
|
1762
|
-
//# debugId=
|
|
1914
|
+
//# debugId=2A761910B609C11D64756E2164756E21
|
|
1763
1915
|
//# sourceMappingURL=index.js.map
|