@brigadasos/nadeshiko-sdk 1.5.0-dev.c2b9767 → 1.5.0-dev.cd60faf

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -67,6 +67,7 @@ __export(exports_dev, {
67
67
  listUserActivity: () => listUserActivity,
68
68
  listSeries: () => listSeries,
69
69
  listSegments: () => listSegments,
70
+ listSegmentRevisions: () => listSegmentRevisions,
70
71
  listMedia: () => listMedia,
71
72
  listEpisodes: () => listEpisodes,
72
73
  listCollections: () => listCollections,
@@ -107,6 +108,7 @@ __export(exports_dev, {
107
108
  deleteCollection: () => deleteCollection,
108
109
  createUserReport: () => createUserReport,
109
110
  createSeries: () => createSeries,
111
+ createSegmentsBatch: () => createSegmentsBatch,
110
112
  createSegment: () => createSegment,
111
113
  createNadeshikoClient: () => createNadeshikoClient,
112
114
  createMedia: () => createMedia,
@@ -926,7 +928,11 @@ var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }))
926
928
 
927
929
  // generated/dev/sdk.gen.ts
928
930
  var search = (options) => (options?.client ?? client).post({
929
- security: [{ scheme: "bearer", type: "http" }],
931
+ security: [{ scheme: "bearer", type: "http" }, {
932
+ in: "cookie",
933
+ name: "nadeshiko.session_token",
934
+ type: "apiKey"
935
+ }],
930
936
  url: "/v1/search",
931
937
  ...options,
932
938
  headers: {
@@ -935,7 +941,11 @@ var search = (options) => (options?.client ?? client).post({
935
941
  }
936
942
  });
937
943
  var getSearchStats = (options) => (options?.client ?? client).post({
938
- security: [{ scheme: "bearer", type: "http" }],
944
+ security: [{ scheme: "bearer", type: "http" }, {
945
+ in: "cookie",
946
+ name: "nadeshiko.session_token",
947
+ type: "apiKey"
948
+ }],
939
949
  url: "/v1/search/stats",
940
950
  ...options,
941
951
  headers: {
@@ -944,7 +954,11 @@ var getSearchStats = (options) => (options?.client ?? client).post({
944
954
  }
945
955
  });
946
956
  var searchWords = (options) => (options.client ?? client).post({
947
- security: [{ scheme: "bearer", type: "http" }],
957
+ security: [{ scheme: "bearer", type: "http" }, {
958
+ in: "cookie",
959
+ name: "nadeshiko.session_token",
960
+ type: "apiKey"
961
+ }],
948
962
  url: "/v1/search/words",
949
963
  ...options,
950
964
  headers: {
@@ -953,12 +967,20 @@ var searchWords = (options) => (options.client ?? client).post({
953
967
  }
954
968
  });
955
969
  var listMedia = (options) => (options?.client ?? client).get({
956
- security: [{ scheme: "bearer", type: "http" }],
970
+ security: [{ scheme: "bearer", type: "http" }, {
971
+ in: "cookie",
972
+ name: "nadeshiko.session_token",
973
+ type: "apiKey"
974
+ }],
957
975
  url: "/v1/media",
958
976
  ...options
959
977
  });
960
978
  var createMedia = (options) => (options.client ?? client).post({
961
- security: [{ scheme: "bearer", type: "http" }],
979
+ security: [{ scheme: "bearer", type: "http" }, {
980
+ in: "cookie",
981
+ name: "nadeshiko.session_token",
982
+ type: "apiKey"
983
+ }],
962
984
  url: "/v1/media",
963
985
  ...options,
964
986
  headers: {
@@ -967,7 +989,11 @@ var createMedia = (options) => (options.client ?? client).post({
967
989
  }
968
990
  });
969
991
  var autocompleteMedia = (options) => (options.client ?? client).get({
970
- security: [{ scheme: "bearer", type: "http" }],
992
+ security: [{ scheme: "bearer", type: "http" }, {
993
+ in: "cookie",
994
+ name: "nadeshiko.session_token",
995
+ type: "apiKey"
996
+ }],
971
997
  url: "/v1/media/autocomplete",
972
998
  ...options
973
999
  });
@@ -1002,13 +1028,30 @@ var getSegmentContext = (options) => (options.client ?? client).get({
1002
1028
  url: "/v1/media/segments/{uuid}/context",
1003
1029
  ...options
1004
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
+ });
1005
1040
  var listSeries = (options) => (options?.client ?? client).get({
1006
- security: [{ scheme: "bearer", type: "http" }],
1041
+ security: [{ scheme: "bearer", type: "http" }, {
1042
+ in: "cookie",
1043
+ name: "nadeshiko.session_token",
1044
+ type: "apiKey"
1045
+ }],
1007
1046
  url: "/v1/media/series",
1008
1047
  ...options
1009
1048
  });
1010
1049
  var createSeries = (options) => (options.client ?? client).post({
1011
- security: [{ scheme: "bearer", type: "http" }],
1050
+ security: [{ scheme: "bearer", type: "http" }, {
1051
+ in: "cookie",
1052
+ name: "nadeshiko.session_token",
1053
+ type: "apiKey"
1054
+ }],
1012
1055
  url: "/v1/media/series",
1013
1056
  ...options,
1014
1057
  headers: {
@@ -1017,17 +1060,29 @@ var createSeries = (options) => (options.client ?? client).post({
1017
1060
  }
1018
1061
  });
1019
1062
  var deleteSeries = (options) => (options.client ?? client).delete({
1020
- security: [{ scheme: "bearer", type: "http" }],
1063
+ security: [{ scheme: "bearer", type: "http" }, {
1064
+ in: "cookie",
1065
+ name: "nadeshiko.session_token",
1066
+ type: "apiKey"
1067
+ }],
1021
1068
  url: "/v1/media/series/{id}",
1022
1069
  ...options
1023
1070
  });
1024
1071
  var getSeries = (options) => (options.client ?? client).get({
1025
- security: [{ scheme: "bearer", type: "http" }],
1072
+ security: [{ scheme: "bearer", type: "http" }, {
1073
+ in: "cookie",
1074
+ name: "nadeshiko.session_token",
1075
+ type: "apiKey"
1076
+ }],
1026
1077
  url: "/v1/media/series/{id}",
1027
1078
  ...options
1028
1079
  });
1029
1080
  var updateSeries = (options) => (options.client ?? client).patch({
1030
- security: [{ scheme: "bearer", type: "http" }],
1081
+ security: [{ scheme: "bearer", type: "http" }, {
1082
+ in: "cookie",
1083
+ name: "nadeshiko.session_token",
1084
+ type: "apiKey"
1085
+ }],
1031
1086
  url: "/v1/media/series/{id}",
1032
1087
  ...options,
1033
1088
  headers: {
@@ -1036,7 +1091,11 @@ var updateSeries = (options) => (options.client ?? client).patch({
1036
1091
  }
1037
1092
  });
1038
1093
  var addMediaToSeries = (options) => (options.client ?? client).post({
1039
- security: [{ scheme: "bearer", type: "http" }],
1094
+ security: [{ scheme: "bearer", type: "http" }, {
1095
+ in: "cookie",
1096
+ name: "nadeshiko.session_token",
1097
+ type: "apiKey"
1098
+ }],
1040
1099
  url: "/v1/media/series/{id}/media",
1041
1100
  ...options,
1042
1101
  headers: {
@@ -1045,12 +1104,20 @@ var addMediaToSeries = (options) => (options.client ?? client).post({
1045
1104
  }
1046
1105
  });
1047
1106
  var removeMediaFromSeries = (options) => (options.client ?? client).delete({
1048
- security: [{ scheme: "bearer", type: "http" }],
1107
+ security: [{ scheme: "bearer", type: "http" }, {
1108
+ in: "cookie",
1109
+ name: "nadeshiko.session_token",
1110
+ type: "apiKey"
1111
+ }],
1049
1112
  url: "/v1/media/series/{id}/media/{mediaId}",
1050
1113
  ...options
1051
1114
  });
1052
1115
  var updateSeriesMedia = (options) => (options.client ?? client).patch({
1053
- security: [{ scheme: "bearer", type: "http" }],
1116
+ security: [{ scheme: "bearer", type: "http" }, {
1117
+ in: "cookie",
1118
+ name: "nadeshiko.session_token",
1119
+ type: "apiKey"
1120
+ }],
1054
1121
  url: "/v1/media/series/{id}/media/{mediaId}",
1055
1122
  ...options,
1056
1123
  headers: {
@@ -1059,27 +1126,47 @@ var updateSeriesMedia = (options) => (options.client ?? client).patch({
1059
1126
  }
1060
1127
  });
1061
1128
  var getCharacter = (options) => (options.client ?? client).get({
1062
- security: [{ scheme: "bearer", type: "http" }],
1129
+ security: [{ scheme: "bearer", type: "http" }, {
1130
+ in: "cookie",
1131
+ name: "nadeshiko.session_token",
1132
+ type: "apiKey"
1133
+ }],
1063
1134
  url: "/v1/media/characters/{id}",
1064
1135
  ...options
1065
1136
  });
1066
1137
  var getSeiyuu = (options) => (options.client ?? client).get({
1067
- security: [{ scheme: "bearer", type: "http" }],
1138
+ security: [{ scheme: "bearer", type: "http" }, {
1139
+ in: "cookie",
1140
+ name: "nadeshiko.session_token",
1141
+ type: "apiKey"
1142
+ }],
1068
1143
  url: "/v1/media/seiyuu/{id}",
1069
1144
  ...options
1070
1145
  });
1071
1146
  var deleteMedia = (options) => (options.client ?? client).delete({
1072
- security: [{ scheme: "bearer", type: "http" }],
1147
+ security: [{ scheme: "bearer", type: "http" }, {
1148
+ in: "cookie",
1149
+ name: "nadeshiko.session_token",
1150
+ type: "apiKey"
1151
+ }],
1073
1152
  url: "/v1/media/{id}",
1074
1153
  ...options
1075
1154
  });
1076
1155
  var getMedia = (options) => (options.client ?? client).get({
1077
- security: [{ scheme: "bearer", type: "http" }],
1156
+ security: [{ scheme: "bearer", type: "http" }, {
1157
+ in: "cookie",
1158
+ name: "nadeshiko.session_token",
1159
+ type: "apiKey"
1160
+ }],
1078
1161
  url: "/v1/media/{id}",
1079
1162
  ...options
1080
1163
  });
1081
1164
  var updateMedia = (options) => (options.client ?? client).patch({
1082
- security: [{ scheme: "bearer", type: "http" }],
1165
+ security: [{ scheme: "bearer", type: "http" }, {
1166
+ in: "cookie",
1167
+ name: "nadeshiko.session_token",
1168
+ type: "apiKey"
1169
+ }],
1083
1170
  url: "/v1/media/{id}",
1084
1171
  ...options,
1085
1172
  headers: {
@@ -1088,12 +1175,20 @@ var updateMedia = (options) => (options.client ?? client).patch({
1088
1175
  }
1089
1176
  });
1090
1177
  var listEpisodes = (options) => (options.client ?? client).get({
1091
- security: [{ scheme: "bearer", type: "http" }],
1178
+ security: [{ scheme: "bearer", type: "http" }, {
1179
+ in: "cookie",
1180
+ name: "nadeshiko.session_token",
1181
+ type: "apiKey"
1182
+ }],
1092
1183
  url: "/v1/media/{mediaId}/episodes",
1093
1184
  ...options
1094
1185
  });
1095
1186
  var createEpisode = (options) => (options.client ?? client).post({
1096
- security: [{ scheme: "bearer", type: "http" }],
1187
+ security: [{ scheme: "bearer", type: "http" }, {
1188
+ in: "cookie",
1189
+ name: "nadeshiko.session_token",
1190
+ type: "apiKey"
1191
+ }],
1097
1192
  url: "/v1/media/{mediaId}/episodes",
1098
1193
  ...options,
1099
1194
  headers: {
@@ -1102,17 +1197,29 @@ var createEpisode = (options) => (options.client ?? client).post({
1102
1197
  }
1103
1198
  });
1104
1199
  var deleteEpisode = (options) => (options.client ?? client).delete({
1105
- security: [{ scheme: "bearer", type: "http" }],
1200
+ security: [{ scheme: "bearer", type: "http" }, {
1201
+ in: "cookie",
1202
+ name: "nadeshiko.session_token",
1203
+ type: "apiKey"
1204
+ }],
1106
1205
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1107
1206
  ...options
1108
1207
  });
1109
1208
  var getEpisode = (options) => (options.client ?? client).get({
1110
- security: [{ scheme: "bearer", type: "http" }],
1209
+ security: [{ scheme: "bearer", type: "http" }, {
1210
+ in: "cookie",
1211
+ name: "nadeshiko.session_token",
1212
+ type: "apiKey"
1213
+ }],
1111
1214
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1112
1215
  ...options
1113
1216
  });
1114
1217
  var updateEpisode = (options) => (options.client ?? client).patch({
1115
- security: [{ scheme: "bearer", type: "http" }],
1218
+ security: [{ scheme: "bearer", type: "http" }, {
1219
+ in: "cookie",
1220
+ name: "nadeshiko.session_token",
1221
+ type: "apiKey"
1222
+ }],
1116
1223
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1117
1224
  ...options,
1118
1225
  headers: {
@@ -1121,12 +1228,20 @@ var updateEpisode = (options) => (options.client ?? client).patch({
1121
1228
  }
1122
1229
  });
1123
1230
  var listSegments = (options) => (options.client ?? client).get({
1124
- security: [{ scheme: "bearer", type: "http" }],
1231
+ security: [{ scheme: "bearer", type: "http" }, {
1232
+ in: "cookie",
1233
+ name: "nadeshiko.session_token",
1234
+ type: "apiKey"
1235
+ }],
1125
1236
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1126
1237
  ...options
1127
1238
  });
1128
1239
  var createSegment = (options) => (options.client ?? client).post({
1129
- security: [{ scheme: "bearer", type: "http" }],
1240
+ security: [{ scheme: "bearer", type: "http" }, {
1241
+ in: "cookie",
1242
+ name: "nadeshiko.session_token",
1243
+ type: "apiKey"
1244
+ }],
1130
1245
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1131
1246
  ...options,
1132
1247
  headers: {
@@ -1134,18 +1249,43 @@ var createSegment = (options) => (options.client ?? client).post({
1134
1249
  ...options.headers
1135
1250
  }
1136
1251
  });
1252
+ var createSegmentsBatch = (options) => (options.client ?? client).post({
1253
+ security: [{ scheme: "bearer", type: "http" }, {
1254
+ in: "cookie",
1255
+ name: "nadeshiko.session_token",
1256
+ type: "apiKey"
1257
+ }],
1258
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
1259
+ ...options,
1260
+ headers: {
1261
+ "Content-Type": "application/json",
1262
+ ...options.headers
1263
+ }
1264
+ });
1137
1265
  var deleteSegment = (options) => (options.client ?? client).delete({
1138
- security: [{ scheme: "bearer", type: "http" }],
1266
+ security: [{ scheme: "bearer", type: "http" }, {
1267
+ in: "cookie",
1268
+ name: "nadeshiko.session_token",
1269
+ type: "apiKey"
1270
+ }],
1139
1271
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1140
1272
  ...options
1141
1273
  });
1142
1274
  var getSegment = (options) => (options.client ?? client).get({
1143
- security: [{ scheme: "bearer", type: "http" }],
1275
+ security: [{ scheme: "bearer", type: "http" }, {
1276
+ in: "cookie",
1277
+ name: "nadeshiko.session_token",
1278
+ type: "apiKey"
1279
+ }],
1144
1280
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1145
1281
  ...options
1146
1282
  });
1147
1283
  var updateSegment = (options) => (options.client ?? client).patch({
1148
- security: [{ scheme: "bearer", type: "http" }],
1284
+ security: [{ scheme: "bearer", type: "http" }, {
1285
+ in: "cookie",
1286
+ name: "nadeshiko.session_token",
1287
+ type: "apiKey"
1288
+ }],
1149
1289
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1150
1290
  ...options,
1151
1291
  headers: {
@@ -1611,6 +1751,7 @@ function createNadeshikoClient(config) {
1611
1751
  createMedia: (options) => createMedia({ ...options, client: clientInstance }),
1612
1752
  autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
1613
1753
  updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
1754
+ listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
1614
1755
  createSeries: (options) => createSeries({ ...options, client: clientInstance }),
1615
1756
  updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
1616
1757
  deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
@@ -1624,6 +1765,7 @@ function createNadeshikoClient(config) {
1624
1765
  deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
1625
1766
  listSegments: (options) => listSegments({ ...options, client: clientInstance }),
1626
1767
  createSegment: (options) => createSegment({ ...options, client: clientInstance }),
1768
+ createSegmentsBatch: (options) => createSegmentsBatch({ ...options, client: clientInstance }),
1627
1769
  updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
1628
1770
  deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
1629
1771
  getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
@@ -1681,11 +1823,13 @@ __export(exports_media_gen, {
1681
1823
  updateEpisode: () => updateEpisode,
1682
1824
  removeMediaFromSeries: () => removeMediaFromSeries,
1683
1825
  listSegments: () => listSegments,
1826
+ listSegmentRevisions: () => listSegmentRevisions,
1684
1827
  deleteSeries: () => deleteSeries,
1685
1828
  deleteSegment: () => deleteSegment,
1686
1829
  deleteMedia: () => deleteMedia,
1687
1830
  deleteEpisode: () => deleteEpisode,
1688
1831
  createSeries: () => createSeries,
1832
+ createSegmentsBatch: () => createSegmentsBatch,
1689
1833
  createSegment: () => createSegment,
1690
1834
  createMedia: () => createMedia,
1691
1835
  createEpisode: () => createEpisode,
@@ -1747,5 +1891,5 @@ __export(exports_admin_gen, {
1747
1891
  clearAdminImpersonation: () => clearAdminImpersonation
1748
1892
  });
1749
1893
 
1750
- //# debugId=C46407DD30C813FE64756E2164756E21
1894
+ //# debugId=9EF9244B69357AA664756E2164756E21
1751
1895
  //# sourceMappingURL=index.js.map