@brigadasos/nadeshiko-sdk 1.5.0-dev.66d279f → 1.5.0-dev.6b48eb7
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 +163 -31
- 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 +163 -31
- 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 +2 -1
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +13 -5
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +103 -3
- 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,
|
|
@@ -927,7 +928,11 @@ var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }))
|
|
|
927
928
|
|
|
928
929
|
// generated/dev/sdk.gen.ts
|
|
929
930
|
var search = (options) => (options?.client ?? client).post({
|
|
930
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
931
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
932
|
+
in: "cookie",
|
|
933
|
+
name: "nadeshiko.session_token",
|
|
934
|
+
type: "apiKey"
|
|
935
|
+
}],
|
|
931
936
|
url: "/v1/search",
|
|
932
937
|
...options,
|
|
933
938
|
headers: {
|
|
@@ -936,7 +941,11 @@ var search = (options) => (options?.client ?? client).post({
|
|
|
936
941
|
}
|
|
937
942
|
});
|
|
938
943
|
var getSearchStats = (options) => (options?.client ?? client).post({
|
|
939
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
944
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
945
|
+
in: "cookie",
|
|
946
|
+
name: "nadeshiko.session_token",
|
|
947
|
+
type: "apiKey"
|
|
948
|
+
}],
|
|
940
949
|
url: "/v1/search/stats",
|
|
941
950
|
...options,
|
|
942
951
|
headers: {
|
|
@@ -945,7 +954,11 @@ var getSearchStats = (options) => (options?.client ?? client).post({
|
|
|
945
954
|
}
|
|
946
955
|
});
|
|
947
956
|
var searchWords = (options) => (options.client ?? client).post({
|
|
948
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
957
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
958
|
+
in: "cookie",
|
|
959
|
+
name: "nadeshiko.session_token",
|
|
960
|
+
type: "apiKey"
|
|
961
|
+
}],
|
|
949
962
|
url: "/v1/search/words",
|
|
950
963
|
...options,
|
|
951
964
|
headers: {
|
|
@@ -954,12 +967,20 @@ var searchWords = (options) => (options.client ?? client).post({
|
|
|
954
967
|
}
|
|
955
968
|
});
|
|
956
969
|
var listMedia = (options) => (options?.client ?? client).get({
|
|
957
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
970
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
971
|
+
in: "cookie",
|
|
972
|
+
name: "nadeshiko.session_token",
|
|
973
|
+
type: "apiKey"
|
|
974
|
+
}],
|
|
958
975
|
url: "/v1/media",
|
|
959
976
|
...options
|
|
960
977
|
});
|
|
961
978
|
var createMedia = (options) => (options.client ?? client).post({
|
|
962
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
979
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
980
|
+
in: "cookie",
|
|
981
|
+
name: "nadeshiko.session_token",
|
|
982
|
+
type: "apiKey"
|
|
983
|
+
}],
|
|
963
984
|
url: "/v1/media",
|
|
964
985
|
...options,
|
|
965
986
|
headers: {
|
|
@@ -968,7 +989,11 @@ var createMedia = (options) => (options.client ?? client).post({
|
|
|
968
989
|
}
|
|
969
990
|
});
|
|
970
991
|
var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
971
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
992
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
993
|
+
in: "cookie",
|
|
994
|
+
name: "nadeshiko.session_token",
|
|
995
|
+
type: "apiKey"
|
|
996
|
+
}],
|
|
972
997
|
url: "/v1/media/autocomplete",
|
|
973
998
|
...options
|
|
974
999
|
});
|
|
@@ -1003,13 +1028,30 @@ var getSegmentContext = (options) => (options.client ?? client).get({
|
|
|
1003
1028
|
url: "/v1/media/segments/{uuid}/context",
|
|
1004
1029
|
...options
|
|
1005
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
|
+
});
|
|
1006
1040
|
var listSeries = (options) => (options?.client ?? client).get({
|
|
1007
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1041
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1042
|
+
in: "cookie",
|
|
1043
|
+
name: "nadeshiko.session_token",
|
|
1044
|
+
type: "apiKey"
|
|
1045
|
+
}],
|
|
1008
1046
|
url: "/v1/media/series",
|
|
1009
1047
|
...options
|
|
1010
1048
|
});
|
|
1011
1049
|
var createSeries = (options) => (options.client ?? client).post({
|
|
1012
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1050
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1051
|
+
in: "cookie",
|
|
1052
|
+
name: "nadeshiko.session_token",
|
|
1053
|
+
type: "apiKey"
|
|
1054
|
+
}],
|
|
1013
1055
|
url: "/v1/media/series",
|
|
1014
1056
|
...options,
|
|
1015
1057
|
headers: {
|
|
@@ -1018,17 +1060,29 @@ var createSeries = (options) => (options.client ?? client).post({
|
|
|
1018
1060
|
}
|
|
1019
1061
|
});
|
|
1020
1062
|
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
1021
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1063
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1064
|
+
in: "cookie",
|
|
1065
|
+
name: "nadeshiko.session_token",
|
|
1066
|
+
type: "apiKey"
|
|
1067
|
+
}],
|
|
1022
1068
|
url: "/v1/media/series/{id}",
|
|
1023
1069
|
...options
|
|
1024
1070
|
});
|
|
1025
1071
|
var getSeries = (options) => (options.client ?? client).get({
|
|
1026
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1072
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1073
|
+
in: "cookie",
|
|
1074
|
+
name: "nadeshiko.session_token",
|
|
1075
|
+
type: "apiKey"
|
|
1076
|
+
}],
|
|
1027
1077
|
url: "/v1/media/series/{id}",
|
|
1028
1078
|
...options
|
|
1029
1079
|
});
|
|
1030
1080
|
var updateSeries = (options) => (options.client ?? client).patch({
|
|
1031
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1081
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1082
|
+
in: "cookie",
|
|
1083
|
+
name: "nadeshiko.session_token",
|
|
1084
|
+
type: "apiKey"
|
|
1085
|
+
}],
|
|
1032
1086
|
url: "/v1/media/series/{id}",
|
|
1033
1087
|
...options,
|
|
1034
1088
|
headers: {
|
|
@@ -1037,7 +1091,11 @@ var updateSeries = (options) => (options.client ?? client).patch({
|
|
|
1037
1091
|
}
|
|
1038
1092
|
});
|
|
1039
1093
|
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
1040
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1094
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1095
|
+
in: "cookie",
|
|
1096
|
+
name: "nadeshiko.session_token",
|
|
1097
|
+
type: "apiKey"
|
|
1098
|
+
}],
|
|
1041
1099
|
url: "/v1/media/series/{id}/media",
|
|
1042
1100
|
...options,
|
|
1043
1101
|
headers: {
|
|
@@ -1046,12 +1104,20 @@ var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
|
1046
1104
|
}
|
|
1047
1105
|
});
|
|
1048
1106
|
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
1049
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1107
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1108
|
+
in: "cookie",
|
|
1109
|
+
name: "nadeshiko.session_token",
|
|
1110
|
+
type: "apiKey"
|
|
1111
|
+
}],
|
|
1050
1112
|
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1051
1113
|
...options
|
|
1052
1114
|
});
|
|
1053
1115
|
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
1054
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1116
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1117
|
+
in: "cookie",
|
|
1118
|
+
name: "nadeshiko.session_token",
|
|
1119
|
+
type: "apiKey"
|
|
1120
|
+
}],
|
|
1055
1121
|
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1056
1122
|
...options,
|
|
1057
1123
|
headers: {
|
|
@@ -1060,27 +1126,47 @@ var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
|
1060
1126
|
}
|
|
1061
1127
|
});
|
|
1062
1128
|
var getCharacter = (options) => (options.client ?? client).get({
|
|
1063
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1129
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1130
|
+
in: "cookie",
|
|
1131
|
+
name: "nadeshiko.session_token",
|
|
1132
|
+
type: "apiKey"
|
|
1133
|
+
}],
|
|
1064
1134
|
url: "/v1/media/characters/{id}",
|
|
1065
1135
|
...options
|
|
1066
1136
|
});
|
|
1067
1137
|
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
1068
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1138
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1139
|
+
in: "cookie",
|
|
1140
|
+
name: "nadeshiko.session_token",
|
|
1141
|
+
type: "apiKey"
|
|
1142
|
+
}],
|
|
1069
1143
|
url: "/v1/media/seiyuu/{id}",
|
|
1070
1144
|
...options
|
|
1071
1145
|
});
|
|
1072
1146
|
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
1073
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1147
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1148
|
+
in: "cookie",
|
|
1149
|
+
name: "nadeshiko.session_token",
|
|
1150
|
+
type: "apiKey"
|
|
1151
|
+
}],
|
|
1074
1152
|
url: "/v1/media/{id}",
|
|
1075
1153
|
...options
|
|
1076
1154
|
});
|
|
1077
1155
|
var getMedia = (options) => (options.client ?? client).get({
|
|
1078
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1156
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1157
|
+
in: "cookie",
|
|
1158
|
+
name: "nadeshiko.session_token",
|
|
1159
|
+
type: "apiKey"
|
|
1160
|
+
}],
|
|
1079
1161
|
url: "/v1/media/{id}",
|
|
1080
1162
|
...options
|
|
1081
1163
|
});
|
|
1082
1164
|
var updateMedia = (options) => (options.client ?? client).patch({
|
|
1083
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1165
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1166
|
+
in: "cookie",
|
|
1167
|
+
name: "nadeshiko.session_token",
|
|
1168
|
+
type: "apiKey"
|
|
1169
|
+
}],
|
|
1084
1170
|
url: "/v1/media/{id}",
|
|
1085
1171
|
...options,
|
|
1086
1172
|
headers: {
|
|
@@ -1089,12 +1175,20 @@ var updateMedia = (options) => (options.client ?? client).patch({
|
|
|
1089
1175
|
}
|
|
1090
1176
|
});
|
|
1091
1177
|
var listEpisodes = (options) => (options.client ?? client).get({
|
|
1092
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1178
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1179
|
+
in: "cookie",
|
|
1180
|
+
name: "nadeshiko.session_token",
|
|
1181
|
+
type: "apiKey"
|
|
1182
|
+
}],
|
|
1093
1183
|
url: "/v1/media/{mediaId}/episodes",
|
|
1094
1184
|
...options
|
|
1095
1185
|
});
|
|
1096
1186
|
var createEpisode = (options) => (options.client ?? client).post({
|
|
1097
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1187
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1188
|
+
in: "cookie",
|
|
1189
|
+
name: "nadeshiko.session_token",
|
|
1190
|
+
type: "apiKey"
|
|
1191
|
+
}],
|
|
1098
1192
|
url: "/v1/media/{mediaId}/episodes",
|
|
1099
1193
|
...options,
|
|
1100
1194
|
headers: {
|
|
@@ -1103,17 +1197,29 @@ var createEpisode = (options) => (options.client ?? client).post({
|
|
|
1103
1197
|
}
|
|
1104
1198
|
});
|
|
1105
1199
|
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1106
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1200
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1201
|
+
in: "cookie",
|
|
1202
|
+
name: "nadeshiko.session_token",
|
|
1203
|
+
type: "apiKey"
|
|
1204
|
+
}],
|
|
1107
1205
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1108
1206
|
...options
|
|
1109
1207
|
});
|
|
1110
1208
|
var getEpisode = (options) => (options.client ?? client).get({
|
|
1111
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1209
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1210
|
+
in: "cookie",
|
|
1211
|
+
name: "nadeshiko.session_token",
|
|
1212
|
+
type: "apiKey"
|
|
1213
|
+
}],
|
|
1112
1214
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1113
1215
|
...options
|
|
1114
1216
|
});
|
|
1115
1217
|
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1116
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1218
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1219
|
+
in: "cookie",
|
|
1220
|
+
name: "nadeshiko.session_token",
|
|
1221
|
+
type: "apiKey"
|
|
1222
|
+
}],
|
|
1117
1223
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1118
1224
|
...options,
|
|
1119
1225
|
headers: {
|
|
@@ -1122,12 +1228,20 @@ var updateEpisode = (options) => (options.client ?? client).patch({
|
|
|
1122
1228
|
}
|
|
1123
1229
|
});
|
|
1124
1230
|
var listSegments = (options) => (options.client ?? client).get({
|
|
1125
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1231
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1232
|
+
in: "cookie",
|
|
1233
|
+
name: "nadeshiko.session_token",
|
|
1234
|
+
type: "apiKey"
|
|
1235
|
+
}],
|
|
1126
1236
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1127
1237
|
...options
|
|
1128
1238
|
});
|
|
1129
1239
|
var createSegment = (options) => (options.client ?? client).post({
|
|
1130
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1240
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1241
|
+
in: "cookie",
|
|
1242
|
+
name: "nadeshiko.session_token",
|
|
1243
|
+
type: "apiKey"
|
|
1244
|
+
}],
|
|
1131
1245
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1132
1246
|
...options,
|
|
1133
1247
|
headers: {
|
|
@@ -1136,7 +1250,11 @@ var createSegment = (options) => (options.client ?? client).post({
|
|
|
1136
1250
|
}
|
|
1137
1251
|
});
|
|
1138
1252
|
var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
1139
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1253
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1254
|
+
in: "cookie",
|
|
1255
|
+
name: "nadeshiko.session_token",
|
|
1256
|
+
type: "apiKey"
|
|
1257
|
+
}],
|
|
1140
1258
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
|
|
1141
1259
|
...options,
|
|
1142
1260
|
headers: {
|
|
@@ -1145,17 +1263,29 @@ var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
|
1145
1263
|
}
|
|
1146
1264
|
});
|
|
1147
1265
|
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1148
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1266
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1267
|
+
in: "cookie",
|
|
1268
|
+
name: "nadeshiko.session_token",
|
|
1269
|
+
type: "apiKey"
|
|
1270
|
+
}],
|
|
1149
1271
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1150
1272
|
...options
|
|
1151
1273
|
});
|
|
1152
1274
|
var getSegment = (options) => (options.client ?? client).get({
|
|
1153
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1275
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1276
|
+
in: "cookie",
|
|
1277
|
+
name: "nadeshiko.session_token",
|
|
1278
|
+
type: "apiKey"
|
|
1279
|
+
}],
|
|
1154
1280
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1155
1281
|
...options
|
|
1156
1282
|
});
|
|
1157
1283
|
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1158
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1284
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1285
|
+
in: "cookie",
|
|
1286
|
+
name: "nadeshiko.session_token",
|
|
1287
|
+
type: "apiKey"
|
|
1288
|
+
}],
|
|
1159
1289
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1160
1290
|
...options,
|
|
1161
1291
|
headers: {
|
|
@@ -1621,6 +1751,7 @@ function createNadeshikoClient(config) {
|
|
|
1621
1751
|
createMedia: (options) => createMedia({ ...options, client: clientInstance }),
|
|
1622
1752
|
autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
|
|
1623
1753
|
updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
|
|
1754
|
+
listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
|
|
1624
1755
|
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1625
1756
|
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1626
1757
|
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
@@ -1692,6 +1823,7 @@ __export(exports_media_gen, {
|
|
|
1692
1823
|
updateEpisode: () => updateEpisode,
|
|
1693
1824
|
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
1694
1825
|
listSegments: () => listSegments,
|
|
1826
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
1695
1827
|
deleteSeries: () => deleteSeries,
|
|
1696
1828
|
deleteSegment: () => deleteSegment,
|
|
1697
1829
|
deleteMedia: () => deleteMedia,
|
|
@@ -1759,5 +1891,5 @@ __export(exports_admin_gen, {
|
|
|
1759
1891
|
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1760
1892
|
});
|
|
1761
1893
|
|
|
1762
|
-
//# debugId=
|
|
1894
|
+
//# debugId=9EF9244B69357AA664756E2164756E21
|
|
1763
1895
|
//# sourceMappingURL=index.js.map
|