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