@brigadasos/nadeshiko-sdk 2.0.6 → 2.0.7-internal

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.
Files changed (37) hide show
  1. package/dist/client/client.gen.d.ts.map +1 -1
  2. package/dist/client/index.d.ts.map +1 -1
  3. package/dist/client/types.gen.d.ts.map +1 -1
  4. package/dist/client/utils.gen.d.ts.map +1 -1
  5. package/dist/client.gen.d.ts.map +1 -1
  6. package/dist/core/auth.gen.d.ts.map +1 -1
  7. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  8. package/dist/core/params.gen.d.ts.map +1 -1
  9. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  10. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
  11. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  12. package/dist/core/types.gen.d.ts.map +1 -1
  13. package/dist/core/utils.gen.d.ts.map +1 -1
  14. package/dist/errors.d.ts.map +1 -1
  15. package/dist/index.cjs +934 -21
  16. package/dist/index.cjs.map +5 -5
  17. package/dist/index.d.ts +3 -3
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +945 -17
  20. package/dist/index.js.map +5 -5
  21. package/dist/internal/admin.gen.d.ts +2 -0
  22. package/dist/internal/admin.gen.d.ts.map +1 -0
  23. package/dist/internal/collections.gen.d.ts +2 -0
  24. package/dist/internal/collections.gen.d.ts.map +1 -0
  25. package/dist/internal/media.gen.d.ts +2 -0
  26. package/dist/internal/media.gen.d.ts.map +1 -0
  27. package/dist/internal/user.gen.d.ts +2 -0
  28. package/dist/internal/user.gen.d.ts.map +1 -0
  29. package/dist/internal.gen.d.ts +5 -0
  30. package/dist/internal.gen.d.ts.map +1 -0
  31. package/dist/nadeshiko.gen.d.ts +1339 -1
  32. package/dist/nadeshiko.gen.d.ts.map +1 -1
  33. package/dist/paginate.d.ts.map +1 -1
  34. package/dist/retry.d.ts.map +1 -1
  35. package/dist/sdk.gen.d.ts.map +1 -1
  36. package/dist/types.gen.d.ts.map +1 -1
  37. package/package.json +4 -3
package/dist/index.js CHANGED
@@ -1,8 +1,23 @@
1
- // generated/public/core/bodySerializer.gen.ts
1
+ var __defProp = Object.defineProperty;
2
+ var __returnValue = (v) => v;
3
+ function __exportSetter(name, newValue) {
4
+ this[name] = __returnValue.bind(null, newValue);
5
+ }
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true,
11
+ configurable: true,
12
+ set: __exportSetter.bind(all, name)
13
+ });
14
+ };
15
+
16
+ // generated/internal/core/bodySerializer.gen.ts
2
17
  var jsonBodySerializer = {
3
18
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
4
19
  };
5
- // generated/public/core/params.gen.ts
20
+ // generated/internal/core/params.gen.ts
6
21
  var extraPrefixesMap = {
7
22
  $body_: "body",
8
23
  $headers_: "headers",
@@ -10,7 +25,7 @@ var extraPrefixesMap = {
10
25
  $query_: "query"
11
26
  };
12
27
  var extraPrefixes = Object.entries(extraPrefixesMap);
13
- // generated/public/core/serverSentEvents.gen.ts
28
+ // generated/internal/core/serverSentEvents.gen.ts
14
29
  var createSseClient = ({
15
30
  onRequest,
16
31
  onSseError,
@@ -146,7 +161,7 @@ var createSseClient = ({
146
161
  return { stream };
147
162
  };
148
163
 
149
- // generated/public/core/pathSerializer.gen.ts
164
+ // generated/internal/core/pathSerializer.gen.ts
150
165
  var separatorArrayExplode = (style) => {
151
166
  switch (style) {
152
167
  case "label":
@@ -270,7 +285,7 @@ var serializeObjectParam = ({
270
285
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
271
286
  };
272
287
 
273
- // generated/public/core/utils.gen.ts
288
+ // generated/internal/core/utils.gen.ts
274
289
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
275
290
  var defaultPathSerializer = ({ path, url: _url }) => {
276
291
  let url = _url;
@@ -359,7 +374,7 @@ function getValidRequestBody(options) {
359
374
  return;
360
375
  }
361
376
 
362
- // generated/public/core/auth.gen.ts
377
+ // generated/internal/core/auth.gen.ts
363
378
  var getAuthToken = async (auth, callback) => {
364
379
  const token = typeof callback === "function" ? await callback(auth) : callback;
365
380
  if (!token) {
@@ -374,7 +389,7 @@ var getAuthToken = async (auth, callback) => {
374
389
  return token;
375
390
  };
376
391
 
377
- // generated/public/client/utils.gen.ts
392
+ // generated/internal/client/utils.gen.ts
378
393
  var createQuerySerializer = ({
379
394
  parameters = {},
380
395
  ...args
@@ -591,7 +606,7 @@ var createConfig = (override = {}) => ({
591
606
  ...override
592
607
  });
593
608
 
594
- // generated/public/client/client.gen.ts
609
+ // generated/internal/client/client.gen.ts
595
610
  var createClient = (config = {}) => {
596
611
  let _config = mergeConfigs(createConfig(), config);
597
612
  const getConfig = () => ({ ..._config });
@@ -797,10 +812,10 @@ var createClient = (config = {}) => {
797
812
  trace: makeMethodFn("TRACE")
798
813
  };
799
814
  };
800
- // generated/public/client.gen.ts
815
+ // generated/internal/client.gen.ts
801
816
  var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
802
817
 
803
- // generated/public/sdk.gen.ts
818
+ // generated/internal/sdk.gen.ts
804
819
  var search = (options) => (options?.client ?? client).post({
805
820
  security: [{ scheme: "bearer", type: "http" }],
806
821
  url: "/v1/search",
@@ -828,52 +843,714 @@ var searchWords = (options) => (options.client ?? client).post({
828
843
  ...options.headers
829
844
  }
830
845
  });
846
+ var getStatsOverview = (options) => (options?.client ?? client).get({
847
+ security: [{ scheme: "bearer", type: "http" }],
848
+ url: "/v1/stats/overview",
849
+ ...options
850
+ });
851
+ var getCoveredWords = (options) => (options.client ?? client).get({
852
+ security: [{ scheme: "bearer", type: "http" }],
853
+ url: "/v1/stats/covered-words",
854
+ ...options
855
+ });
856
+ var triggerCoveredWordsUpdate = (options) => (options?.client ?? client).post({
857
+ security: [{
858
+ in: "cookie",
859
+ name: "nadeshiko.session_token",
860
+ type: "apiKey"
861
+ }],
862
+ url: "/v1/stats/covered-words/update",
863
+ ...options,
864
+ headers: {
865
+ "Content-Type": "application/json",
866
+ ...options?.headers
867
+ }
868
+ });
831
869
  var listMedia = (options) => (options?.client ?? client).get({
832
870
  security: [{ scheme: "bearer", type: "http" }],
833
871
  url: "/v1/media",
834
872
  ...options
835
873
  });
874
+ var createMedia = (options) => (options.client ?? client).post({
875
+ security: [{ scheme: "bearer", type: "http" }],
876
+ url: "/v1/media",
877
+ ...options,
878
+ headers: {
879
+ "Content-Type": "application/json",
880
+ ...options.headers
881
+ }
882
+ });
883
+ var autocompleteMedia = (options) => (options.client ?? client).get({
884
+ security: [{ scheme: "bearer", type: "http" }],
885
+ url: "/v1/media/autocomplete",
886
+ ...options
887
+ });
836
888
  var getSegmentByUuid = (options) => (options.client ?? client).get({
837
889
  security: [{ scheme: "bearer", type: "http" }],
838
890
  url: "/v1/media/segments/{uuid}",
839
891
  ...options
840
892
  });
893
+ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
894
+ security: [{ scheme: "bearer", type: "http" }],
895
+ url: "/v1/media/segments/{uuid}",
896
+ ...options,
897
+ headers: {
898
+ "Content-Type": "application/json",
899
+ ...options.headers
900
+ }
901
+ });
841
902
  var getSegmentContext = (options) => (options.client ?? client).get({
842
903
  security: [{ scheme: "bearer", type: "http" }],
843
904
  url: "/v1/media/segments/{uuid}/context",
844
905
  ...options
845
906
  });
907
+ var listSegmentRevisions = (options) => (options.client ?? client).get({
908
+ security: [{ scheme: "bearer", type: "http" }],
909
+ url: "/v1/media/segments/{uuid}/revisions",
910
+ ...options
911
+ });
846
912
  var listSeries = (options) => (options?.client ?? client).get({
847
913
  security: [{ scheme: "bearer", type: "http" }],
848
914
  url: "/v1/media/series",
849
915
  ...options
850
916
  });
917
+ var createSeries = (options) => (options.client ?? client).post({
918
+ security: [{ scheme: "bearer", type: "http" }],
919
+ url: "/v1/media/series",
920
+ ...options,
921
+ headers: {
922
+ "Content-Type": "application/json",
923
+ ...options.headers
924
+ }
925
+ });
926
+ var deleteSeries = (options) => (options.client ?? client).delete({
927
+ security: [{ scheme: "bearer", type: "http" }],
928
+ url: "/v1/media/series/{id}",
929
+ ...options
930
+ });
851
931
  var getSeries = (options) => (options.client ?? client).get({
852
932
  security: [{ scheme: "bearer", type: "http" }],
853
933
  url: "/v1/media/series/{id}",
854
934
  ...options
855
935
  });
936
+ var updateSeries = (options) => (options.client ?? client).patch({
937
+ security: [{ scheme: "bearer", type: "http" }],
938
+ url: "/v1/media/series/{id}",
939
+ ...options,
940
+ headers: {
941
+ "Content-Type": "application/json",
942
+ ...options.headers
943
+ }
944
+ });
945
+ var addMediaToSeries = (options) => (options.client ?? client).post({
946
+ security: [{ scheme: "bearer", type: "http" }],
947
+ url: "/v1/media/series/{id}/media",
948
+ ...options,
949
+ headers: {
950
+ "Content-Type": "application/json",
951
+ ...options.headers
952
+ }
953
+ });
954
+ var removeMediaFromSeries = (options) => (options.client ?? client).delete({
955
+ security: [{ scheme: "bearer", type: "http" }],
956
+ url: "/v1/media/series/{id}/media/{mediaId}",
957
+ ...options
958
+ });
959
+ var updateSeriesMedia = (options) => (options.client ?? client).patch({
960
+ security: [{ scheme: "bearer", type: "http" }],
961
+ url: "/v1/media/series/{id}/media/{mediaId}",
962
+ ...options,
963
+ headers: {
964
+ "Content-Type": "application/json",
965
+ ...options.headers
966
+ }
967
+ });
968
+ var getCharacter = (options) => (options.client ?? client).get({
969
+ security: [{ scheme: "bearer", type: "http" }],
970
+ url: "/v1/media/characters/{id}",
971
+ ...options
972
+ });
973
+ var getSeiyuu = (options) => (options.client ?? client).get({
974
+ security: [{ scheme: "bearer", type: "http" }],
975
+ url: "/v1/media/seiyuu/{id}",
976
+ ...options
977
+ });
978
+ var deleteMedia = (options) => (options.client ?? client).delete({
979
+ security: [{ scheme: "bearer", type: "http" }],
980
+ url: "/v1/media/{id}",
981
+ ...options
982
+ });
856
983
  var getMedia = (options) => (options.client ?? client).get({
857
984
  security: [{ scheme: "bearer", type: "http" }],
858
985
  url: "/v1/media/{id}",
859
986
  ...options
860
987
  });
988
+ var updateMedia = (options) => (options.client ?? client).patch({
989
+ security: [{ scheme: "bearer", type: "http" }],
990
+ url: "/v1/media/{id}",
991
+ ...options,
992
+ headers: {
993
+ "Content-Type": "application/json",
994
+ ...options.headers
995
+ }
996
+ });
861
997
  var listEpisodes = (options) => (options.client ?? client).get({
862
998
  security: [{ scheme: "bearer", type: "http" }],
863
999
  url: "/v1/media/{mediaId}/episodes",
864
1000
  ...options
865
1001
  });
1002
+ var createEpisode = (options) => (options.client ?? client).post({
1003
+ security: [{ scheme: "bearer", type: "http" }],
1004
+ url: "/v1/media/{mediaId}/episodes",
1005
+ ...options,
1006
+ headers: {
1007
+ "Content-Type": "application/json",
1008
+ ...options.headers
1009
+ }
1010
+ });
1011
+ var deleteEpisode = (options) => (options.client ?? client).delete({
1012
+ security: [{ scheme: "bearer", type: "http" }],
1013
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1014
+ ...options
1015
+ });
866
1016
  var getEpisode = (options) => (options.client ?? client).get({
867
1017
  security: [{ scheme: "bearer", type: "http" }],
868
1018
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
869
1019
  ...options
870
1020
  });
1021
+ var updateEpisode = (options) => (options.client ?? client).patch({
1022
+ security: [{ scheme: "bearer", type: "http" }],
1023
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1024
+ ...options,
1025
+ headers: {
1026
+ "Content-Type": "application/json",
1027
+ ...options.headers
1028
+ }
1029
+ });
1030
+ var listSegments = (options) => (options.client ?? client).get({
1031
+ security: [{ scheme: "bearer", type: "http" }],
1032
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1033
+ ...options
1034
+ });
1035
+ var createSegment = (options) => (options.client ?? client).post({
1036
+ security: [{ scheme: "bearer", type: "http" }],
1037
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1038
+ ...options,
1039
+ headers: {
1040
+ "Content-Type": "application/json",
1041
+ ...options.headers
1042
+ }
1043
+ });
1044
+ var createSegmentsBatch = (options) => (options.client ?? client).post({
1045
+ security: [{ scheme: "bearer", type: "http" }],
1046
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
1047
+ ...options,
1048
+ headers: {
1049
+ "Content-Type": "application/json",
1050
+ ...options.headers
1051
+ }
1052
+ });
1053
+ var deleteSegment = (options) => (options.client ?? client).delete({
1054
+ security: [{ scheme: "bearer", type: "http" }],
1055
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1056
+ ...options
1057
+ });
871
1058
  var getSegment = (options) => (options.client ?? client).get({
872
1059
  security: [{ scheme: "bearer", type: "http" }],
873
1060
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
874
1061
  ...options
875
1062
  });
876
- // generated/public/retry.ts
1063
+ var updateSegment = (options) => (options.client ?? client).patch({
1064
+ security: [{ scheme: "bearer", type: "http" }],
1065
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1066
+ ...options,
1067
+ headers: {
1068
+ "Content-Type": "application/json",
1069
+ ...options.headers
1070
+ }
1071
+ });
1072
+ var getUserQuota = (options) => (options?.client ?? client).get({
1073
+ security: [{
1074
+ in: "cookie",
1075
+ name: "nadeshiko.session_token",
1076
+ type: "apiKey"
1077
+ }],
1078
+ url: "/v1/user/quota",
1079
+ ...options
1080
+ });
1081
+ var createUserReport = (options) => (options.client ?? client).post({
1082
+ security: [{
1083
+ in: "cookie",
1084
+ name: "nadeshiko.session_token",
1085
+ type: "apiKey"
1086
+ }],
1087
+ url: "/v1/user/reports",
1088
+ ...options,
1089
+ headers: {
1090
+ "Content-Type": "application/json",
1091
+ ...options.headers
1092
+ }
1093
+ });
1094
+ var getUserPreferences = (options) => (options?.client ?? client).get({
1095
+ security: [{
1096
+ in: "cookie",
1097
+ name: "nadeshiko.session_token",
1098
+ type: "apiKey"
1099
+ }],
1100
+ url: "/v1/user/preferences",
1101
+ ...options
1102
+ });
1103
+ var updateUserPreferences = (options) => (options.client ?? client).patch({
1104
+ security: [{
1105
+ in: "cookie",
1106
+ name: "nadeshiko.session_token",
1107
+ type: "apiKey"
1108
+ }],
1109
+ url: "/v1/user/preferences",
1110
+ ...options,
1111
+ headers: {
1112
+ "Content-Type": "application/json",
1113
+ ...options.headers
1114
+ }
1115
+ });
1116
+ var deleteUserActivity = (options) => (options?.client ?? client).delete({
1117
+ security: [{
1118
+ in: "cookie",
1119
+ name: "nadeshiko.session_token",
1120
+ type: "apiKey"
1121
+ }],
1122
+ url: "/v1/user/activity",
1123
+ ...options
1124
+ });
1125
+ var listUserActivity = (options) => (options?.client ?? client).get({
1126
+ security: [{
1127
+ in: "cookie",
1128
+ name: "nadeshiko.session_token",
1129
+ type: "apiKey"
1130
+ }],
1131
+ url: "/v1/user/activity",
1132
+ ...options
1133
+ });
1134
+ var trackUserActivity = (options) => (options.client ?? client).post({
1135
+ security: [{
1136
+ in: "cookie",
1137
+ name: "nadeshiko.session_token",
1138
+ type: "apiKey"
1139
+ }],
1140
+ url: "/v1/user/activity",
1141
+ ...options,
1142
+ headers: {
1143
+ "Content-Type": "application/json",
1144
+ ...options.headers
1145
+ }
1146
+ });
1147
+ var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
1148
+ security: [{
1149
+ in: "cookie",
1150
+ name: "nadeshiko.session_token",
1151
+ type: "apiKey"
1152
+ }],
1153
+ url: "/v1/user/activity/heatmap",
1154
+ ...options
1155
+ });
1156
+ var getUserActivityStats = (options) => (options?.client ?? client).get({
1157
+ security: [{
1158
+ in: "cookie",
1159
+ name: "nadeshiko.session_token",
1160
+ type: "apiKey"
1161
+ }],
1162
+ url: "/v1/user/activity/stats",
1163
+ ...options
1164
+ });
1165
+ var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
1166
+ security: [{
1167
+ in: "cookie",
1168
+ name: "nadeshiko.session_token",
1169
+ type: "apiKey"
1170
+ }],
1171
+ url: "/v1/user/activity/date/{date}",
1172
+ ...options
1173
+ });
1174
+ var deleteUserActivityById = (options) => (options.client ?? client).delete({
1175
+ security: [{
1176
+ in: "cookie",
1177
+ name: "nadeshiko.session_token",
1178
+ type: "apiKey"
1179
+ }],
1180
+ url: "/v1/user/activity/{id}",
1181
+ ...options
1182
+ });
1183
+ var exportUserData = (options) => (options?.client ?? client).get({
1184
+ security: [{
1185
+ in: "cookie",
1186
+ name: "nadeshiko.session_token",
1187
+ type: "apiKey"
1188
+ }],
1189
+ url: "/v1/user/export",
1190
+ ...options
1191
+ });
1192
+ var listUserLabs = (options) => (options?.client ?? client).get({
1193
+ security: [{
1194
+ in: "cookie",
1195
+ name: "nadeshiko.session_token",
1196
+ type: "apiKey"
1197
+ }],
1198
+ url: "/v1/user/labs",
1199
+ ...options
1200
+ });
1201
+ var unenrollUserLab = (options) => (options.client ?? client).delete({
1202
+ security: [{
1203
+ in: "cookie",
1204
+ name: "nadeshiko.session_token",
1205
+ type: "apiKey"
1206
+ }],
1207
+ url: "/v1/user/labs/{key}",
1208
+ ...options
1209
+ });
1210
+ var enrollUserLab = (options) => (options.client ?? client).post({
1211
+ security: [{
1212
+ in: "cookie",
1213
+ name: "nadeshiko.session_token",
1214
+ type: "apiKey"
1215
+ }],
1216
+ url: "/v1/user/labs/{key}",
1217
+ ...options
1218
+ });
1219
+ var listCollections = (options) => (options?.client ?? client).get({
1220
+ security: [{
1221
+ in: "cookie",
1222
+ name: "nadeshiko.session_token",
1223
+ type: "apiKey"
1224
+ }],
1225
+ url: "/v1/collections",
1226
+ ...options
1227
+ });
1228
+ var createCollection = (options) => (options.client ?? client).post({
1229
+ security: [{
1230
+ in: "cookie",
1231
+ name: "nadeshiko.session_token",
1232
+ type: "apiKey"
1233
+ }],
1234
+ url: "/v1/collections",
1235
+ ...options,
1236
+ headers: {
1237
+ "Content-Type": "application/json",
1238
+ ...options.headers
1239
+ }
1240
+ });
1241
+ var deleteCollection = (options) => (options.client ?? client).delete({
1242
+ security: [{
1243
+ in: "cookie",
1244
+ name: "nadeshiko.session_token",
1245
+ type: "apiKey"
1246
+ }],
1247
+ url: "/v1/collections/{id}",
1248
+ ...options
1249
+ });
1250
+ var getCollection = (options) => (options.client ?? client).get({
1251
+ security: [{
1252
+ in: "cookie",
1253
+ name: "nadeshiko.session_token",
1254
+ type: "apiKey"
1255
+ }],
1256
+ url: "/v1/collections/{id}",
1257
+ ...options
1258
+ });
1259
+ var updateCollection = (options) => (options.client ?? client).patch({
1260
+ security: [{
1261
+ in: "cookie",
1262
+ name: "nadeshiko.session_token",
1263
+ type: "apiKey"
1264
+ }],
1265
+ url: "/v1/collections/{id}",
1266
+ ...options,
1267
+ headers: {
1268
+ "Content-Type": "application/json",
1269
+ ...options.headers
1270
+ }
1271
+ });
1272
+ var addSegmentToCollection = (options) => (options.client ?? client).post({
1273
+ security: [{
1274
+ in: "cookie",
1275
+ name: "nadeshiko.session_token",
1276
+ type: "apiKey"
1277
+ }],
1278
+ url: "/v1/collections/{id}/segments",
1279
+ ...options,
1280
+ headers: {
1281
+ "Content-Type": "application/json",
1282
+ ...options.headers
1283
+ }
1284
+ });
1285
+ var removeSegmentFromCollection = (options) => (options.client ?? client).delete({
1286
+ security: [{
1287
+ in: "cookie",
1288
+ name: "nadeshiko.session_token",
1289
+ type: "apiKey"
1290
+ }],
1291
+ url: "/v1/collections/{id}/segments/{segmentId}",
1292
+ ...options
1293
+ });
1294
+ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1295
+ security: [{
1296
+ in: "cookie",
1297
+ name: "nadeshiko.session_token",
1298
+ type: "apiKey"
1299
+ }],
1300
+ url: "/v1/collections/{id}/segments/{segmentId}",
1301
+ ...options,
1302
+ headers: {
1303
+ "Content-Type": "application/json",
1304
+ ...options.headers
1305
+ }
1306
+ });
1307
+ var searchCollectionSegments = (options) => (options.client ?? client).get({
1308
+ security: [{
1309
+ in: "cookie",
1310
+ name: "nadeshiko.session_token",
1311
+ type: "apiKey"
1312
+ }],
1313
+ url: "/v1/collections/{id}/search",
1314
+ ...options
1315
+ });
1316
+ var getCollectionStats = (options) => (options.client ?? client).get({
1317
+ security: [{
1318
+ in: "cookie",
1319
+ name: "nadeshiko.session_token",
1320
+ type: "apiKey"
1321
+ }],
1322
+ url: "/v1/collections/{id}/stats",
1323
+ ...options
1324
+ });
1325
+ var getAdminDashboard = (options) => (options?.client ?? client).get({
1326
+ security: [{
1327
+ in: "cookie",
1328
+ name: "nadeshiko.session_token",
1329
+ type: "apiKey"
1330
+ }],
1331
+ url: "/v1/admin/dashboard",
1332
+ ...options
1333
+ });
1334
+ var getAdminDashboardOverview = (options) => (options?.client ?? client).get({
1335
+ security: [{
1336
+ in: "cookie",
1337
+ name: "nadeshiko.session_token",
1338
+ type: "apiKey"
1339
+ }],
1340
+ url: "/v1/admin/dashboard/overview",
1341
+ ...options
1342
+ });
1343
+ var getAdminDashboardMedia = (options) => (options?.client ?? client).get({
1344
+ security: [{
1345
+ in: "cookie",
1346
+ name: "nadeshiko.session_token",
1347
+ type: "apiKey"
1348
+ }],
1349
+ url: "/v1/admin/dashboard/media",
1350
+ ...options
1351
+ });
1352
+ var getAdminDashboardActivity = (options) => (options?.client ?? client).get({
1353
+ security: [{
1354
+ in: "cookie",
1355
+ name: "nadeshiko.session_token",
1356
+ type: "apiKey"
1357
+ }],
1358
+ url: "/v1/admin/dashboard/activity",
1359
+ ...options
1360
+ });
1361
+ var getAdminDashboardCollections = (options) => (options?.client ?? client).get({
1362
+ security: [{
1363
+ in: "cookie",
1364
+ name: "nadeshiko.session_token",
1365
+ type: "apiKey"
1366
+ }],
1367
+ url: "/v1/admin/dashboard/collections",
1368
+ ...options
1369
+ });
1370
+ var getAdminDashboardApiKeys = (options) => (options?.client ?? client).get({
1371
+ security: [{
1372
+ in: "cookie",
1373
+ name: "nadeshiko.session_token",
1374
+ type: "apiKey"
1375
+ }],
1376
+ url: "/v1/admin/dashboard/api-keys",
1377
+ ...options
1378
+ });
1379
+ var getAdminDashboardSystem = (options) => (options?.client ?? client).get({
1380
+ security: [{
1381
+ in: "cookie",
1382
+ name: "nadeshiko.session_token",
1383
+ type: "apiKey"
1384
+ }],
1385
+ url: "/v1/admin/dashboard/system",
1386
+ ...options
1387
+ });
1388
+ var getAdminHealth = (options) => (options?.client ?? client).get({
1389
+ security: [{
1390
+ in: "cookie",
1391
+ name: "nadeshiko.session_token",
1392
+ type: "apiKey"
1393
+ }],
1394
+ url: "/v1/admin/health",
1395
+ ...options
1396
+ });
1397
+ var triggerReindex = (options) => (options?.client ?? client).post({
1398
+ security: [{
1399
+ in: "cookie",
1400
+ name: "nadeshiko.session_token",
1401
+ type: "apiKey"
1402
+ }],
1403
+ url: "/v1/admin/reindex",
1404
+ ...options,
1405
+ headers: {
1406
+ "Content-Type": "application/json",
1407
+ ...options?.headers
1408
+ }
1409
+ });
1410
+ var listAdminQueueStats = (options) => (options?.client ?? client).get({
1411
+ security: [{
1412
+ in: "cookie",
1413
+ name: "nadeshiko.session_token",
1414
+ type: "apiKey"
1415
+ }],
1416
+ url: "/v1/admin/queues/stats",
1417
+ ...options
1418
+ });
1419
+ var getAdminQueue = (options) => (options.client ?? client).get({
1420
+ security: [{
1421
+ in: "cookie",
1422
+ name: "nadeshiko.session_token",
1423
+ type: "apiKey"
1424
+ }],
1425
+ url: "/v1/admin/queues/{queueName}",
1426
+ ...options
1427
+ });
1428
+ var listAdminQueueFailed = (options) => (options.client ?? client).get({
1429
+ security: [{
1430
+ in: "cookie",
1431
+ name: "nadeshiko.session_token",
1432
+ type: "apiKey"
1433
+ }],
1434
+ url: "/v1/admin/queues/{queueName}/failed",
1435
+ ...options
1436
+ });
1437
+ var retryAdminQueueFailed = (options) => (options.client ?? client).post({
1438
+ security: [{
1439
+ in: "cookie",
1440
+ name: "nadeshiko.session_token",
1441
+ type: "apiKey"
1442
+ }],
1443
+ url: "/v1/admin/queues/{queueName}/retry",
1444
+ ...options
1445
+ });
1446
+ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1447
+ security: [{
1448
+ in: "cookie",
1449
+ name: "nadeshiko.session_token",
1450
+ type: "apiKey"
1451
+ }],
1452
+ url: "/v1/admin/queues/{queueName}/purge",
1453
+ ...options
1454
+ });
1455
+ var listAdminReports = (options) => (options?.client ?? client).get({
1456
+ security: [{
1457
+ in: "cookie",
1458
+ name: "nadeshiko.session_token",
1459
+ type: "apiKey"
1460
+ }],
1461
+ url: "/v1/admin/reports",
1462
+ ...options
1463
+ });
1464
+ var batchUpdateAdminReports = (options) => (options.client ?? client).patch({
1465
+ security: [{
1466
+ in: "cookie",
1467
+ name: "nadeshiko.session_token",
1468
+ type: "apiKey"
1469
+ }],
1470
+ url: "/v1/admin/reports/batch",
1471
+ ...options,
1472
+ headers: {
1473
+ "Content-Type": "application/json",
1474
+ ...options.headers
1475
+ }
1476
+ });
1477
+ var updateAdminReport = (options) => (options.client ?? client).patch({
1478
+ security: [{
1479
+ in: "cookie",
1480
+ name: "nadeshiko.session_token",
1481
+ type: "apiKey"
1482
+ }],
1483
+ url: "/v1/admin/reports/{id}",
1484
+ ...options,
1485
+ headers: {
1486
+ "Content-Type": "application/json",
1487
+ ...options.headers
1488
+ }
1489
+ });
1490
+ var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1491
+ security: [{
1492
+ in: "cookie",
1493
+ name: "nadeshiko.session_token",
1494
+ type: "apiKey"
1495
+ }],
1496
+ url: "/v1/admin/media/audits",
1497
+ ...options
1498
+ });
1499
+ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1500
+ security: [{
1501
+ in: "cookie",
1502
+ name: "nadeshiko.session_token",
1503
+ type: "apiKey"
1504
+ }],
1505
+ url: "/v1/admin/media/audits/{name}",
1506
+ ...options,
1507
+ headers: {
1508
+ "Content-Type": "application/json",
1509
+ ...options.headers
1510
+ }
1511
+ });
1512
+ var runAdminMediaAudit = (options) => (options.client ?? client).post({
1513
+ security: [{
1514
+ in: "cookie",
1515
+ name: "nadeshiko.session_token",
1516
+ type: "apiKey"
1517
+ }],
1518
+ url: "/v1/admin/media/audits/{name}/run",
1519
+ ...options
1520
+ });
1521
+ var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1522
+ security: [{
1523
+ in: "cookie",
1524
+ name: "nadeshiko.session_token",
1525
+ type: "apiKey"
1526
+ }],
1527
+ url: "/v1/admin/media/audits/runs",
1528
+ ...options
1529
+ });
1530
+ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1531
+ security: [{
1532
+ in: "cookie",
1533
+ name: "nadeshiko.session_token",
1534
+ type: "apiKey"
1535
+ }],
1536
+ url: "/v1/admin/media/audits/runs/{id}",
1537
+ ...options
1538
+ });
1539
+ var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
1540
+ var updateAnnouncement = (options) => (options.client ?? client).put({
1541
+ security: [{
1542
+ in: "cookie",
1543
+ name: "nadeshiko.session_token",
1544
+ type: "apiKey"
1545
+ }],
1546
+ url: "/v1/admin/announcement",
1547
+ ...options,
1548
+ headers: {
1549
+ "Content-Type": "application/json",
1550
+ ...options.headers
1551
+ }
1552
+ });
1553
+ // generated/internal/retry.ts
877
1554
  var RETRYABLE_STATUS = new Set([408, 429, 500, 502, 503, 504]);
878
1555
  function parseRetryAfter(value) {
879
1556
  const seconds = Number(value);
@@ -943,7 +1620,7 @@ function withRetry(fetchImpl = globalThis.fetch, options = {}) {
943
1620
  };
944
1621
  }
945
1622
 
946
- // generated/public/errors.ts
1623
+ // generated/internal/errors.ts
947
1624
  class NadeshikoError extends Error {
948
1625
  code;
949
1626
  title;
@@ -965,13 +1642,19 @@ class NadeshikoError extends Error {
965
1642
  }
966
1643
  }
967
1644
 
968
- // generated/public/nadeshiko.gen.ts
1645
+ // generated/internal/nadeshiko.gen.ts
969
1646
  var environments = {
970
1647
  LOCAL: "http://localhost:5000/api",
971
1648
  DEVELOPMENT: "https://api-dev.nadeshiko.co",
972
1649
  PRODUCTION: "https://api.nadeshiko.co",
973
1650
  PROXY: ""
974
1651
  };
1652
+ var defaultSessionTokenGetter = () => {
1653
+ if (typeof document === "undefined")
1654
+ return;
1655
+ const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
1656
+ return match ? decodeURIComponent(match[1]) : undefined;
1657
+ };
975
1658
  function createNadeshikoClient(config) {
976
1659
  const rawBaseUrl = config.baseURL ?? config.baseUrl;
977
1660
  const baseUrl = rawBaseUrl === undefined ? environments.PRODUCTION : (rawBaseUrl in environments) ? environments[rawBaseUrl] : rawBaseUrl;
@@ -981,10 +1664,16 @@ function createNadeshikoClient(config) {
981
1664
  }
982
1665
  return config.apiKey;
983
1666
  };
1667
+ const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
984
1668
  const clientInstance = createClient(createConfig({
985
1669
  baseUrl,
986
1670
  fetch: withRetry(globalThis.fetch, config.retryOptions),
987
- auth: () => getApiKey()
1671
+ auth: (auth) => {
1672
+ if (auth.in === "cookie") {
1673
+ return getSessionToken();
1674
+ }
1675
+ return getApiKey();
1676
+ }
988
1677
  }));
989
1678
  clientInstance.interceptors.error.use((error) => {
990
1679
  if (error && typeof error === "object" && "code" in error && typeof error.code === "string") {
@@ -997,6 +1686,9 @@ function createNadeshikoClient(config) {
997
1686
  search: (options) => search({ throwOnError: true, ...options, client: clientInstance }),
998
1687
  getSearchStats: (options) => getSearchStats({ throwOnError: true, ...options, client: clientInstance }),
999
1688
  searchWords: (options) => searchWords({ throwOnError: true, ...options, client: clientInstance }),
1689
+ getStatsOverview: (options) => getStatsOverview({ throwOnError: true, ...options, client: clientInstance }),
1690
+ getCoveredWords: (options) => getCoveredWords({ throwOnError: true, ...options, client: clientInstance }),
1691
+ triggerCoveredWordsUpdate: (options) => triggerCoveredWordsUpdate({ throwOnError: true, ...options, client: clientInstance }),
1000
1692
  listMedia: (options) => listMedia({ throwOnError: true, ...options, client: clientInstance }),
1001
1693
  getSegmentByUuid: (options) => getSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
1002
1694
  getSegmentContext: (options) => getSegmentContext({ throwOnError: true, ...options, client: clientInstance }),
@@ -1005,10 +1697,168 @@ function createNadeshikoClient(config) {
1005
1697
  getMedia: (options) => getMedia({ throwOnError: true, ...options, client: clientInstance }),
1006
1698
  listEpisodes: (options) => listEpisodes({ throwOnError: true, ...options, client: clientInstance }),
1007
1699
  getEpisode: (options) => getEpisode({ throwOnError: true, ...options, client: clientInstance }),
1008
- getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance })
1700
+ getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance }),
1701
+ createMedia: (options) => createMedia({ throwOnError: true, ...options, client: clientInstance }),
1702
+ autocompleteMedia: (options) => autocompleteMedia({ throwOnError: true, ...options, client: clientInstance }),
1703
+ updateSegmentByUuid: (options) => updateSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
1704
+ listSegmentRevisions: (options) => listSegmentRevisions({ throwOnError: true, ...options, client: clientInstance }),
1705
+ createSeries: (options) => createSeries({ throwOnError: true, ...options, client: clientInstance }),
1706
+ updateSeries: (options) => updateSeries({ throwOnError: true, ...options, client: clientInstance }),
1707
+ deleteSeries: (options) => deleteSeries({ throwOnError: true, ...options, client: clientInstance }),
1708
+ addMediaToSeries: (options) => addMediaToSeries({ throwOnError: true, ...options, client: clientInstance }),
1709
+ updateSeriesMedia: (options) => updateSeriesMedia({ throwOnError: true, ...options, client: clientInstance }),
1710
+ removeMediaFromSeries: (options) => removeMediaFromSeries({ throwOnError: true, ...options, client: clientInstance }),
1711
+ getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
1712
+ getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
1713
+ updateMedia: (options) => updateMedia({ throwOnError: true, ...options, client: clientInstance }),
1714
+ deleteMedia: (options) => deleteMedia({ throwOnError: true, ...options, client: clientInstance }),
1715
+ createEpisode: (options) => createEpisode({ throwOnError: true, ...options, client: clientInstance }),
1716
+ updateEpisode: (options) => updateEpisode({ throwOnError: true, ...options, client: clientInstance }),
1717
+ deleteEpisode: (options) => deleteEpisode({ throwOnError: true, ...options, client: clientInstance }),
1718
+ listSegments: (options) => listSegments({ throwOnError: true, ...options, client: clientInstance }),
1719
+ createSegment: (options) => createSegment({ throwOnError: true, ...options, client: clientInstance }),
1720
+ createSegmentsBatch: (options) => createSegmentsBatch({ throwOnError: true, ...options, client: clientInstance }),
1721
+ updateSegment: (options) => updateSegment({ throwOnError: true, ...options, client: clientInstance }),
1722
+ deleteSegment: (options) => deleteSegment({ throwOnError: true, ...options, client: clientInstance }),
1723
+ getUserQuota: (options) => getUserQuota({ throwOnError: true, ...options, client: clientInstance }),
1724
+ createUserReport: (options) => createUserReport({ throwOnError: true, ...options, client: clientInstance }),
1725
+ getUserPreferences: (options) => getUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
1726
+ updateUserPreferences: (options) => updateUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
1727
+ listUserActivity: (options) => listUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1728
+ trackUserActivity: (options) => trackUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1729
+ deleteUserActivity: (options) => deleteUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1730
+ getUserActivityHeatmap: (options) => getUserActivityHeatmap({ throwOnError: true, ...options, client: clientInstance }),
1731
+ getUserActivityStats: (options) => getUserActivityStats({ throwOnError: true, ...options, client: clientInstance }),
1732
+ deleteUserActivityByDate: (options) => deleteUserActivityByDate({ throwOnError: true, ...options, client: clientInstance }),
1733
+ deleteUserActivityById: (options) => deleteUserActivityById({ throwOnError: true, ...options, client: clientInstance }),
1734
+ exportUserData: (options) => exportUserData({ throwOnError: true, ...options, client: clientInstance }),
1735
+ listUserLabs: (options) => listUserLabs({ throwOnError: true, ...options, client: clientInstance }),
1736
+ enrollUserLab: (options) => enrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
1737
+ unenrollUserLab: (options) => unenrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
1738
+ listCollections: (options) => listCollections({ throwOnError: true, ...options, client: clientInstance }),
1739
+ createCollection: (options) => createCollection({ throwOnError: true, ...options, client: clientInstance }),
1740
+ getCollection: (options) => getCollection({ throwOnError: true, ...options, client: clientInstance }),
1741
+ updateCollection: (options) => updateCollection({ throwOnError: true, ...options, client: clientInstance }),
1742
+ deleteCollection: (options) => deleteCollection({ throwOnError: true, ...options, client: clientInstance }),
1743
+ addSegmentToCollection: (options) => addSegmentToCollection({ throwOnError: true, ...options, client: clientInstance }),
1744
+ updateCollectionSegment: (options) => updateCollectionSegment({ throwOnError: true, ...options, client: clientInstance }),
1745
+ removeSegmentFromCollection: (options) => removeSegmentFromCollection({ throwOnError: true, ...options, client: clientInstance }),
1746
+ searchCollectionSegments: (options) => searchCollectionSegments({ throwOnError: true, ...options, client: clientInstance }),
1747
+ getCollectionStats: (options) => getCollectionStats({ throwOnError: true, ...options, client: clientInstance }),
1748
+ getAdminDashboard: (options) => getAdminDashboard({ throwOnError: true, ...options, client: clientInstance }),
1749
+ getAdminDashboardOverview: (options) => getAdminDashboardOverview({ throwOnError: true, ...options, client: clientInstance }),
1750
+ getAdminDashboardMedia: (options) => getAdminDashboardMedia({ throwOnError: true, ...options, client: clientInstance }),
1751
+ getAdminDashboardActivity: (options) => getAdminDashboardActivity({ throwOnError: true, ...options, client: clientInstance }),
1752
+ getAdminDashboardCollections: (options) => getAdminDashboardCollections({ throwOnError: true, ...options, client: clientInstance }),
1753
+ getAdminDashboardApiKeys: (options) => getAdminDashboardApiKeys({ throwOnError: true, ...options, client: clientInstance }),
1754
+ getAdminDashboardSystem: (options) => getAdminDashboardSystem({ throwOnError: true, ...options, client: clientInstance }),
1755
+ getAdminHealth: (options) => getAdminHealth({ throwOnError: true, ...options, client: clientInstance }),
1756
+ triggerReindex: (options) => triggerReindex({ throwOnError: true, ...options, client: clientInstance }),
1757
+ listAdminQueueStats: (options) => listAdminQueueStats({ throwOnError: true, ...options, client: clientInstance }),
1758
+ getAdminQueue: (options) => getAdminQueue({ throwOnError: true, ...options, client: clientInstance }),
1759
+ listAdminQueueFailed: (options) => listAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1760
+ retryAdminQueueFailed: (options) => retryAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1761
+ purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1762
+ listAdminReports: (options) => listAdminReports({ throwOnError: true, ...options, client: clientInstance }),
1763
+ batchUpdateAdminReports: (options) => batchUpdateAdminReports({ throwOnError: true, ...options, client: clientInstance }),
1764
+ updateAdminReport: (options) => updateAdminReport({ throwOnError: true, ...options, client: clientInstance }),
1765
+ listAdminMediaAudits: (options) => listAdminMediaAudits({ throwOnError: true, ...options, client: clientInstance }),
1766
+ updateAdminMediaAudit: (options) => updateAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
1767
+ runAdminMediaAudit: (options) => runAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
1768
+ listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ throwOnError: true, ...options, client: clientInstance }),
1769
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ throwOnError: true, ...options, client: clientInstance }),
1770
+ getAnnouncement: (options) => getAnnouncement({ throwOnError: true, ...options, client: clientInstance }),
1771
+ updateAnnouncement: (options) => updateAnnouncement({ throwOnError: true, ...options, client: clientInstance })
1009
1772
  };
1010
1773
  }
1011
- // generated/public/paginate.ts
1774
+ // generated/internal/internal/media.gen.ts
1775
+ var exports_media_gen = {};
1776
+ __export(exports_media_gen, {
1777
+ updateSeriesMedia: () => updateSeriesMedia,
1778
+ updateSeries: () => updateSeries,
1779
+ updateSegmentByUuid: () => updateSegmentByUuid,
1780
+ updateSegment: () => updateSegment,
1781
+ updateMedia: () => updateMedia,
1782
+ updateEpisode: () => updateEpisode,
1783
+ removeMediaFromSeries: () => removeMediaFromSeries,
1784
+ listSegments: () => listSegments,
1785
+ listSegmentRevisions: () => listSegmentRevisions,
1786
+ getSeiyuu: () => getSeiyuu,
1787
+ getCharacter: () => getCharacter,
1788
+ deleteSeries: () => deleteSeries,
1789
+ deleteSegment: () => deleteSegment,
1790
+ deleteMedia: () => deleteMedia,
1791
+ deleteEpisode: () => deleteEpisode,
1792
+ createSeries: () => createSeries,
1793
+ createSegmentsBatch: () => createSegmentsBatch,
1794
+ createSegment: () => createSegment,
1795
+ createMedia: () => createMedia,
1796
+ createEpisode: () => createEpisode,
1797
+ autocompleteMedia: () => autocompleteMedia,
1798
+ addMediaToSeries: () => addMediaToSeries
1799
+ });
1800
+ // generated/internal/internal/user.gen.ts
1801
+ var exports_user_gen = {};
1802
+ __export(exports_user_gen, {
1803
+ updateUserPreferences: () => updateUserPreferences,
1804
+ unenrollUserLab: () => unenrollUserLab,
1805
+ trackUserActivity: () => trackUserActivity,
1806
+ listUserLabs: () => listUserLabs,
1807
+ listUserActivity: () => listUserActivity,
1808
+ getUserQuota: () => getUserQuota,
1809
+ getUserPreferences: () => getUserPreferences,
1810
+ getUserActivityStats: () => getUserActivityStats,
1811
+ getUserActivityHeatmap: () => getUserActivityHeatmap,
1812
+ exportUserData: () => exportUserData,
1813
+ enrollUserLab: () => enrollUserLab,
1814
+ deleteUserActivityById: () => deleteUserActivityById,
1815
+ deleteUserActivityByDate: () => deleteUserActivityByDate,
1816
+ deleteUserActivity: () => deleteUserActivity,
1817
+ createUserReport: () => createUserReport
1818
+ });
1819
+ // generated/internal/internal/collections.gen.ts
1820
+ var exports_collections_gen = {};
1821
+ __export(exports_collections_gen, {
1822
+ updateCollectionSegment: () => updateCollectionSegment,
1823
+ updateCollection: () => updateCollection,
1824
+ searchCollectionSegments: () => searchCollectionSegments,
1825
+ removeSegmentFromCollection: () => removeSegmentFromCollection,
1826
+ listCollections: () => listCollections,
1827
+ getCollectionStats: () => getCollectionStats,
1828
+ getCollection: () => getCollection,
1829
+ deleteCollection: () => deleteCollection,
1830
+ createCollection: () => createCollection,
1831
+ addSegmentToCollection: () => addSegmentToCollection
1832
+ });
1833
+ // generated/internal/internal/admin.gen.ts
1834
+ var exports_admin_gen = {};
1835
+ __export(exports_admin_gen, {
1836
+ updateAnnouncement: () => updateAnnouncement,
1837
+ updateAdminReport: () => updateAdminReport,
1838
+ updateAdminMediaAudit: () => updateAdminMediaAudit,
1839
+ triggerReindex: () => triggerReindex,
1840
+ runAdminMediaAudit: () => runAdminMediaAudit,
1841
+ retryAdminQueueFailed: () => retryAdminQueueFailed,
1842
+ purgeAdminQueueFailed: () => purgeAdminQueueFailed,
1843
+ listAdminReports: () => listAdminReports,
1844
+ listAdminQueueStats: () => listAdminQueueStats,
1845
+ listAdminQueueFailed: () => listAdminQueueFailed,
1846
+ listAdminMediaAudits: () => listAdminMediaAudits,
1847
+ listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1848
+ getAnnouncement: () => getAnnouncement,
1849
+ getAdminQueue: () => getAdminQueue,
1850
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1851
+ getAdminHealth: () => getAdminHealth,
1852
+ getAdminDashboardSystem: () => getAdminDashboardSystem,
1853
+ getAdminDashboardOverview: () => getAdminDashboardOverview,
1854
+ getAdminDashboardMedia: () => getAdminDashboardMedia,
1855
+ getAdminDashboardCollections: () => getAdminDashboardCollections,
1856
+ getAdminDashboardApiKeys: () => getAdminDashboardApiKeys,
1857
+ getAdminDashboardActivity: () => getAdminDashboardActivity,
1858
+ getAdminDashboard: () => getAdminDashboard,
1859
+ batchUpdateAdminReports: () => batchUpdateAdminReports
1860
+ });
1861
+ // generated/internal/paginate.ts
1012
1862
  async function* paginate(fn, options, extract) {
1013
1863
  let cursor = null;
1014
1864
  let first = true;
@@ -1039,23 +1889,101 @@ function patchCursor(options, cursor) {
1039
1889
  }
1040
1890
  export {
1041
1891
  withRetry,
1892
+ exports_user_gen as user,
1893
+ updateUserPreferences,
1894
+ updateSeriesMedia,
1895
+ updateSeries,
1896
+ updateSegmentByUuid,
1897
+ updateSegment,
1898
+ updateMedia,
1899
+ updateEpisode,
1900
+ updateCollectionSegment,
1901
+ updateCollection,
1902
+ updateAnnouncement,
1903
+ updateAdminReport,
1904
+ updateAdminMediaAudit,
1905
+ unenrollUserLab,
1906
+ triggerReindex,
1907
+ triggerCoveredWordsUpdate,
1908
+ trackUserActivity,
1042
1909
  searchWords,
1910
+ searchCollectionSegments,
1043
1911
  search,
1912
+ runAdminMediaAudit,
1913
+ retryAdminQueueFailed,
1914
+ removeSegmentFromCollection,
1915
+ removeMediaFromSeries,
1916
+ purgeAdminQueueFailed,
1044
1917
  paginate,
1918
+ exports_media_gen as media,
1919
+ listUserLabs,
1920
+ listUserActivity,
1045
1921
  listSeries,
1922
+ listSegments,
1923
+ listSegmentRevisions,
1046
1924
  listMedia,
1047
1925
  listEpisodes,
1926
+ listCollections,
1927
+ listAdminReports,
1928
+ listAdminQueueStats,
1929
+ listAdminQueueFailed,
1930
+ listAdminMediaAudits,
1931
+ listAdminMediaAuditRuns,
1932
+ getUserQuota,
1933
+ getUserPreferences,
1934
+ getUserActivityStats,
1935
+ getUserActivityHeatmap,
1936
+ getStatsOverview,
1048
1937
  getSeries,
1938
+ getSeiyuu,
1049
1939
  getSegmentContext,
1050
1940
  getSegmentByUuid,
1051
1941
  getSegment,
1052
1942
  getSearchStats,
1053
1943
  getMedia,
1054
1944
  getEpisode,
1945
+ getCoveredWords,
1946
+ getCollectionStats,
1947
+ getCollection,
1948
+ getCharacter,
1949
+ getAnnouncement,
1950
+ getAdminQueue,
1951
+ getAdminMediaAuditRun,
1952
+ getAdminHealth,
1953
+ getAdminDashboardSystem,
1954
+ getAdminDashboardOverview,
1955
+ getAdminDashboardMedia,
1956
+ getAdminDashboardCollections,
1957
+ getAdminDashboardApiKeys,
1958
+ getAdminDashboardActivity,
1959
+ getAdminDashboard,
1960
+ exportUserData,
1961
+ enrollUserLab,
1962
+ deleteUserActivityById,
1963
+ deleteUserActivityByDate,
1964
+ deleteUserActivity,
1965
+ deleteSeries,
1966
+ deleteSegment,
1967
+ deleteMedia,
1968
+ deleteEpisode,
1969
+ deleteCollection,
1970
+ createUserReport,
1971
+ createSeries,
1972
+ createSegmentsBatch,
1973
+ createSegment,
1055
1974
  createNadeshikoClient,
1975
+ createMedia,
1976
+ createEpisode,
1977
+ createCollection,
1978
+ exports_collections_gen as collections,
1056
1979
  client,
1980
+ batchUpdateAdminReports,
1981
+ autocompleteMedia,
1982
+ exports_admin_gen as admin,
1983
+ addSegmentToCollection,
1984
+ addMediaToSeries,
1057
1985
  NadeshikoError
1058
1986
  };
1059
1987
 
1060
- //# debugId=D547F08C9A19994264756E2164756E21
1988
+ //# debugId=2E7F99EBA076FD5664756E2164756E21
1061
1989
  //# sourceMappingURL=index.js.map