@brigadasos/nadeshiko-sdk 2.0.0-dev.62dc8bb → 2.0.0-dev.a626b83

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
@@ -934,11 +934,7 @@ var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }))
934
934
 
935
935
  // generated/dev/sdk.gen.ts
936
936
  var search = (options) => (options?.client ?? client).post({
937
- security: [{ scheme: "bearer", type: "http" }, {
938
- in: "cookie",
939
- name: "nadeshiko.session_token",
940
- type: "apiKey"
941
- }],
937
+ security: [{ scheme: "bearer", type: "http" }],
942
938
  url: "/v1/search",
943
939
  ...options,
944
940
  headers: {
@@ -947,11 +943,7 @@ var search = (options) => (options?.client ?? client).post({
947
943
  }
948
944
  });
949
945
  var getSearchStats = (options) => (options?.client ?? client).post({
950
- security: [{ scheme: "bearer", type: "http" }, {
951
- in: "cookie",
952
- name: "nadeshiko.session_token",
953
- type: "apiKey"
954
- }],
946
+ security: [{ scheme: "bearer", type: "http" }],
955
947
  url: "/v1/search/stats",
956
948
  ...options,
957
949
  headers: {
@@ -960,11 +952,7 @@ var getSearchStats = (options) => (options?.client ?? client).post({
960
952
  }
961
953
  });
962
954
  var searchWords = (options) => (options.client ?? client).post({
963
- security: [{ scheme: "bearer", type: "http" }, {
964
- in: "cookie",
965
- name: "nadeshiko.session_token",
966
- type: "apiKey"
967
- }],
955
+ security: [{ scheme: "bearer", type: "http" }],
968
956
  url: "/v1/search/words",
969
957
  ...options,
970
958
  headers: {
@@ -973,20 +961,12 @@ var searchWords = (options) => (options.client ?? client).post({
973
961
  }
974
962
  });
975
963
  var listMedia = (options) => (options?.client ?? client).get({
976
- security: [{ scheme: "bearer", type: "http" }, {
977
- in: "cookie",
978
- name: "nadeshiko.session_token",
979
- type: "apiKey"
980
- }],
964
+ security: [{ scheme: "bearer", type: "http" }],
981
965
  url: "/v1/media",
982
966
  ...options
983
967
  });
984
968
  var createMedia = (options) => (options.client ?? client).post({
985
- security: [{ scheme: "bearer", type: "http" }, {
986
- in: "cookie",
987
- name: "nadeshiko.session_token",
988
- type: "apiKey"
989
- }],
969
+ security: [{ scheme: "bearer", type: "http" }],
990
970
  url: "/v1/media",
991
971
  ...options,
992
972
  headers: {
@@ -995,29 +975,17 @@ var createMedia = (options) => (options.client ?? client).post({
995
975
  }
996
976
  });
997
977
  var autocompleteMedia = (options) => (options.client ?? client).get({
998
- security: [{ scheme: "bearer", type: "http" }, {
999
- in: "cookie",
1000
- name: "nadeshiko.session_token",
1001
- type: "apiKey"
1002
- }],
978
+ security: [{ scheme: "bearer", type: "http" }],
1003
979
  url: "/v1/media/autocomplete",
1004
980
  ...options
1005
981
  });
1006
982
  var getSegmentByUuid = (options) => (options.client ?? client).get({
1007
- security: [{ scheme: "bearer", type: "http" }, {
1008
- in: "cookie",
1009
- name: "nadeshiko.session_token",
1010
- type: "apiKey"
1011
- }],
983
+ security: [{ scheme: "bearer", type: "http" }],
1012
984
  url: "/v1/media/segments/{uuid}",
1013
985
  ...options
1014
986
  });
1015
987
  var updateSegmentByUuid = (options) => (options.client ?? client).patch({
1016
- security: [{ scheme: "bearer", type: "http" }, {
1017
- in: "cookie",
1018
- name: "nadeshiko.session_token",
1019
- type: "apiKey"
1020
- }],
988
+ security: [{ scheme: "bearer", type: "http" }],
1021
989
  url: "/v1/media/segments/{uuid}",
1022
990
  ...options,
1023
991
  headers: {
@@ -1026,38 +994,22 @@ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
1026
994
  }
1027
995
  });
1028
996
  var getSegmentContext = (options) => (options.client ?? client).get({
1029
- security: [{ scheme: "bearer", type: "http" }, {
1030
- in: "cookie",
1031
- name: "nadeshiko.session_token",
1032
- type: "apiKey"
1033
- }],
997
+ security: [{ scheme: "bearer", type: "http" }],
1034
998
  url: "/v1/media/segments/{uuid}/context",
1035
999
  ...options
1036
1000
  });
1037
1001
  var listSegmentRevisions = (options) => (options.client ?? client).get({
1038
- security: [{ scheme: "bearer", type: "http" }, {
1039
- in: "cookie",
1040
- name: "nadeshiko.session_token",
1041
- type: "apiKey"
1042
- }],
1002
+ security: [{ scheme: "bearer", type: "http" }],
1043
1003
  url: "/v1/media/segments/{uuid}/revisions",
1044
1004
  ...options
1045
1005
  });
1046
1006
  var listSeries = (options) => (options?.client ?? client).get({
1047
- security: [{ scheme: "bearer", type: "http" }, {
1048
- in: "cookie",
1049
- name: "nadeshiko.session_token",
1050
- type: "apiKey"
1051
- }],
1007
+ security: [{ scheme: "bearer", type: "http" }],
1052
1008
  url: "/v1/media/series",
1053
1009
  ...options
1054
1010
  });
1055
1011
  var createSeries = (options) => (options.client ?? client).post({
1056
- security: [{ scheme: "bearer", type: "http" }, {
1057
- in: "cookie",
1058
- name: "nadeshiko.session_token",
1059
- type: "apiKey"
1060
- }],
1012
+ security: [{ scheme: "bearer", type: "http" }],
1061
1013
  url: "/v1/media/series",
1062
1014
  ...options,
1063
1015
  headers: {
@@ -1066,29 +1018,17 @@ var createSeries = (options) => (options.client ?? client).post({
1066
1018
  }
1067
1019
  });
1068
1020
  var deleteSeries = (options) => (options.client ?? client).delete({
1069
- security: [{ scheme: "bearer", type: "http" }, {
1070
- in: "cookie",
1071
- name: "nadeshiko.session_token",
1072
- type: "apiKey"
1073
- }],
1021
+ security: [{ scheme: "bearer", type: "http" }],
1074
1022
  url: "/v1/media/series/{id}",
1075
1023
  ...options
1076
1024
  });
1077
1025
  var getSeries = (options) => (options.client ?? client).get({
1078
- security: [{ scheme: "bearer", type: "http" }, {
1079
- in: "cookie",
1080
- name: "nadeshiko.session_token",
1081
- type: "apiKey"
1082
- }],
1026
+ security: [{ scheme: "bearer", type: "http" }],
1083
1027
  url: "/v1/media/series/{id}",
1084
1028
  ...options
1085
1029
  });
1086
1030
  var updateSeries = (options) => (options.client ?? client).patch({
1087
- security: [{ scheme: "bearer", type: "http" }, {
1088
- in: "cookie",
1089
- name: "nadeshiko.session_token",
1090
- type: "apiKey"
1091
- }],
1031
+ security: [{ scheme: "bearer", type: "http" }],
1092
1032
  url: "/v1/media/series/{id}",
1093
1033
  ...options,
1094
1034
  headers: {
@@ -1097,11 +1037,7 @@ var updateSeries = (options) => (options.client ?? client).patch({
1097
1037
  }
1098
1038
  });
1099
1039
  var addMediaToSeries = (options) => (options.client ?? client).post({
1100
- security: [{ scheme: "bearer", type: "http" }, {
1101
- in: "cookie",
1102
- name: "nadeshiko.session_token",
1103
- type: "apiKey"
1104
- }],
1040
+ security: [{ scheme: "bearer", type: "http" }],
1105
1041
  url: "/v1/media/series/{id}/media",
1106
1042
  ...options,
1107
1043
  headers: {
@@ -1110,20 +1046,12 @@ var addMediaToSeries = (options) => (options.client ?? client).post({
1110
1046
  }
1111
1047
  });
1112
1048
  var removeMediaFromSeries = (options) => (options.client ?? client).delete({
1113
- security: [{ scheme: "bearer", type: "http" }, {
1114
- in: "cookie",
1115
- name: "nadeshiko.session_token",
1116
- type: "apiKey"
1117
- }],
1049
+ security: [{ scheme: "bearer", type: "http" }],
1118
1050
  url: "/v1/media/series/{id}/media/{mediaId}",
1119
1051
  ...options
1120
1052
  });
1121
1053
  var updateSeriesMedia = (options) => (options.client ?? client).patch({
1122
- security: [{ scheme: "bearer", type: "http" }, {
1123
- in: "cookie",
1124
- name: "nadeshiko.session_token",
1125
- type: "apiKey"
1126
- }],
1054
+ security: [{ scheme: "bearer", type: "http" }],
1127
1055
  url: "/v1/media/series/{id}/media/{mediaId}",
1128
1056
  ...options,
1129
1057
  headers: {
@@ -1132,47 +1060,27 @@ var updateSeriesMedia = (options) => (options.client ?? client).patch({
1132
1060
  }
1133
1061
  });
1134
1062
  var getCharacter = (options) => (options.client ?? client).get({
1135
- security: [{ scheme: "bearer", type: "http" }, {
1136
- in: "cookie",
1137
- name: "nadeshiko.session_token",
1138
- type: "apiKey"
1139
- }],
1063
+ security: [{ scheme: "bearer", type: "http" }],
1140
1064
  url: "/v1/media/characters/{id}",
1141
1065
  ...options
1142
1066
  });
1143
1067
  var getSeiyuu = (options) => (options.client ?? client).get({
1144
- security: [{ scheme: "bearer", type: "http" }, {
1145
- in: "cookie",
1146
- name: "nadeshiko.session_token",
1147
- type: "apiKey"
1148
- }],
1068
+ security: [{ scheme: "bearer", type: "http" }],
1149
1069
  url: "/v1/media/seiyuu/{id}",
1150
1070
  ...options
1151
1071
  });
1152
1072
  var deleteMedia = (options) => (options.client ?? client).delete({
1153
- security: [{ scheme: "bearer", type: "http" }, {
1154
- in: "cookie",
1155
- name: "nadeshiko.session_token",
1156
- type: "apiKey"
1157
- }],
1073
+ security: [{ scheme: "bearer", type: "http" }],
1158
1074
  url: "/v1/media/{id}",
1159
1075
  ...options
1160
1076
  });
1161
1077
  var getMedia = (options) => (options.client ?? client).get({
1162
- security: [{ scheme: "bearer", type: "http" }, {
1163
- in: "cookie",
1164
- name: "nadeshiko.session_token",
1165
- type: "apiKey"
1166
- }],
1078
+ security: [{ scheme: "bearer", type: "http" }],
1167
1079
  url: "/v1/media/{id}",
1168
1080
  ...options
1169
1081
  });
1170
1082
  var updateMedia = (options) => (options.client ?? client).patch({
1171
- security: [{ scheme: "bearer", type: "http" }, {
1172
- in: "cookie",
1173
- name: "nadeshiko.session_token",
1174
- type: "apiKey"
1175
- }],
1083
+ security: [{ scheme: "bearer", type: "http" }],
1176
1084
  url: "/v1/media/{id}",
1177
1085
  ...options,
1178
1086
  headers: {
@@ -1181,20 +1089,12 @@ var updateMedia = (options) => (options.client ?? client).patch({
1181
1089
  }
1182
1090
  });
1183
1091
  var listEpisodes = (options) => (options.client ?? client).get({
1184
- security: [{ scheme: "bearer", type: "http" }, {
1185
- in: "cookie",
1186
- name: "nadeshiko.session_token",
1187
- type: "apiKey"
1188
- }],
1092
+ security: [{ scheme: "bearer", type: "http" }],
1189
1093
  url: "/v1/media/{mediaId}/episodes",
1190
1094
  ...options
1191
1095
  });
1192
1096
  var createEpisode = (options) => (options.client ?? client).post({
1193
- security: [{ scheme: "bearer", type: "http" }, {
1194
- in: "cookie",
1195
- name: "nadeshiko.session_token",
1196
- type: "apiKey"
1197
- }],
1097
+ security: [{ scheme: "bearer", type: "http" }],
1198
1098
  url: "/v1/media/{mediaId}/episodes",
1199
1099
  ...options,
1200
1100
  headers: {
@@ -1203,29 +1103,17 @@ var createEpisode = (options) => (options.client ?? client).post({
1203
1103
  }
1204
1104
  });
1205
1105
  var deleteEpisode = (options) => (options.client ?? client).delete({
1206
- security: [{ scheme: "bearer", type: "http" }, {
1207
- in: "cookie",
1208
- name: "nadeshiko.session_token",
1209
- type: "apiKey"
1210
- }],
1106
+ security: [{ scheme: "bearer", type: "http" }],
1211
1107
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1212
1108
  ...options
1213
1109
  });
1214
1110
  var getEpisode = (options) => (options.client ?? client).get({
1215
- security: [{ scheme: "bearer", type: "http" }, {
1216
- in: "cookie",
1217
- name: "nadeshiko.session_token",
1218
- type: "apiKey"
1219
- }],
1111
+ security: [{ scheme: "bearer", type: "http" }],
1220
1112
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1221
1113
  ...options
1222
1114
  });
1223
1115
  var updateEpisode = (options) => (options.client ?? client).patch({
1224
- security: [{ scheme: "bearer", type: "http" }, {
1225
- in: "cookie",
1226
- name: "nadeshiko.session_token",
1227
- type: "apiKey"
1228
- }],
1116
+ security: [{ scheme: "bearer", type: "http" }],
1229
1117
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1230
1118
  ...options,
1231
1119
  headers: {
@@ -1234,20 +1122,12 @@ var updateEpisode = (options) => (options.client ?? client).patch({
1234
1122
  }
1235
1123
  });
1236
1124
  var listSegments = (options) => (options.client ?? client).get({
1237
- security: [{ scheme: "bearer", type: "http" }, {
1238
- in: "cookie",
1239
- name: "nadeshiko.session_token",
1240
- type: "apiKey"
1241
- }],
1125
+ security: [{ scheme: "bearer", type: "http" }],
1242
1126
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1243
1127
  ...options
1244
1128
  });
1245
1129
  var createSegment = (options) => (options.client ?? client).post({
1246
- security: [{ scheme: "bearer", type: "http" }, {
1247
- in: "cookie",
1248
- name: "nadeshiko.session_token",
1249
- type: "apiKey"
1250
- }],
1130
+ security: [{ scheme: "bearer", type: "http" }],
1251
1131
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1252
1132
  ...options,
1253
1133
  headers: {
@@ -1256,11 +1136,7 @@ var createSegment = (options) => (options.client ?? client).post({
1256
1136
  }
1257
1137
  });
1258
1138
  var createSegmentsBatch = (options) => (options.client ?? client).post({
1259
- security: [{ scheme: "bearer", type: "http" }, {
1260
- in: "cookie",
1261
- name: "nadeshiko.session_token",
1262
- type: "apiKey"
1263
- }],
1139
+ security: [{ scheme: "bearer", type: "http" }],
1264
1140
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
1265
1141
  ...options,
1266
1142
  headers: {
@@ -1269,29 +1145,17 @@ var createSegmentsBatch = (options) => (options.client ?? client).post({
1269
1145
  }
1270
1146
  });
1271
1147
  var deleteSegment = (options) => (options.client ?? client).delete({
1272
- security: [{ scheme: "bearer", type: "http" }, {
1273
- in: "cookie",
1274
- name: "nadeshiko.session_token",
1275
- type: "apiKey"
1276
- }],
1148
+ security: [{ scheme: "bearer", type: "http" }],
1277
1149
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1278
1150
  ...options
1279
1151
  });
1280
1152
  var getSegment = (options) => (options.client ?? client).get({
1281
- security: [{ scheme: "bearer", type: "http" }, {
1282
- in: "cookie",
1283
- name: "nadeshiko.session_token",
1284
- type: "apiKey"
1285
- }],
1153
+ security: [{ scheme: "bearer", type: "http" }],
1286
1154
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1287
1155
  ...options
1288
1156
  });
1289
1157
  var updateSegment = (options) => (options.client ?? client).patch({
1290
- security: [{ scheme: "bearer", type: "http" }, {
1291
- in: "cookie",
1292
- name: "nadeshiko.session_token",
1293
- type: "apiKey"
1294
- }],
1158
+ security: [{ scheme: "bearer", type: "http" }],
1295
1159
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1296
1160
  ...options,
1297
1161
  headers: {
@@ -1876,8 +1740,6 @@ function createNadeshikoClient(config) {
1876
1740
  getSegmentContext: (options) => getSegmentContext({ throwOnError: true, ...options, client: clientInstance }),
1877
1741
  listSeries: (options) => listSeries({ throwOnError: true, ...options, client: clientInstance }),
1878
1742
  getSeries: (options) => getSeries({ throwOnError: true, ...options, client: clientInstance }),
1879
- getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
1880
- getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
1881
1743
  getMedia: (options) => getMedia({ throwOnError: true, ...options, client: clientInstance }),
1882
1744
  listEpisodes: (options) => listEpisodes({ throwOnError: true, ...options, client: clientInstance }),
1883
1745
  getEpisode: (options) => getEpisode({ throwOnError: true, ...options, client: clientInstance }),
@@ -1892,6 +1754,8 @@ function createNadeshikoClient(config) {
1892
1754
  addMediaToSeries: (options) => addMediaToSeries({ throwOnError: true, ...options, client: clientInstance }),
1893
1755
  updateSeriesMedia: (options) => updateSeriesMedia({ throwOnError: true, ...options, client: clientInstance }),
1894
1756
  removeMediaFromSeries: (options) => removeMediaFromSeries({ throwOnError: true, ...options, client: clientInstance }),
1757
+ getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
1758
+ getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
1895
1759
  updateMedia: (options) => updateMedia({ throwOnError: true, ...options, client: clientInstance }),
1896
1760
  deleteMedia: (options) => deleteMedia({ throwOnError: true, ...options, client: clientInstance }),
1897
1761
  createEpisode: (options) => createEpisode({ throwOnError: true, ...options, client: clientInstance }),
@@ -1961,6 +1825,8 @@ __export(exports_media_gen, {
1961
1825
  removeMediaFromSeries: () => removeMediaFromSeries,
1962
1826
  listSegments: () => listSegments,
1963
1827
  listSegmentRevisions: () => listSegmentRevisions,
1828
+ getSeiyuu: () => getSeiyuu,
1829
+ getCharacter: () => getCharacter,
1964
1830
  deleteSeries: () => deleteSeries,
1965
1831
  deleteSegment: () => deleteSegment,
1966
1832
  deleteMedia: () => deleteMedia,
@@ -2060,5 +1926,5 @@ function patchCursor(options, cursor) {
2060
1926
  return { ...options, body: { cursor } };
2061
1927
  }
2062
1928
 
2063
- //# debugId=76BC49C38AFCB35B64756E2164756E21
1929
+ //# debugId=E58CE5A8EFD2500564756E2164756E21
2064
1930
  //# sourceMappingURL=index.js.map