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