@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.cjs CHANGED
@@ -36,34 +36,112 @@ var __export = (target, all) => {
36
36
  });
37
37
  };
38
38
 
39
- // generated/public/index.ts
40
- var exports_public = {};
41
- __export(exports_public, {
39
+ // generated/internal/index.ts
40
+ var exports_internal = {};
41
+ __export(exports_internal, {
42
42
  withRetry: () => withRetry,
43
+ user: () => exports_user_gen,
44
+ updateUserPreferences: () => updateUserPreferences,
45
+ updateSeriesMedia: () => updateSeriesMedia,
46
+ updateSeries: () => updateSeries,
47
+ updateSegmentByUuid: () => updateSegmentByUuid,
48
+ updateSegment: () => updateSegment,
49
+ updateMedia: () => updateMedia,
50
+ updateEpisode: () => updateEpisode,
51
+ updateCollectionSegment: () => updateCollectionSegment,
52
+ updateCollection: () => updateCollection,
53
+ updateAnnouncement: () => updateAnnouncement,
54
+ updateAdminReport: () => updateAdminReport,
55
+ updateAdminMediaAudit: () => updateAdminMediaAudit,
56
+ unenrollUserLab: () => unenrollUserLab,
57
+ triggerReindex: () => triggerReindex,
58
+ triggerCoveredWordsUpdate: () => triggerCoveredWordsUpdate,
59
+ trackUserActivity: () => trackUserActivity,
43
60
  searchWords: () => searchWords,
61
+ searchCollectionSegments: () => searchCollectionSegments,
44
62
  search: () => search,
63
+ runAdminMediaAudit: () => runAdminMediaAudit,
64
+ retryAdminQueueFailed: () => retryAdminQueueFailed,
65
+ removeSegmentFromCollection: () => removeSegmentFromCollection,
66
+ removeMediaFromSeries: () => removeMediaFromSeries,
67
+ purgeAdminQueueFailed: () => purgeAdminQueueFailed,
45
68
  paginate: () => paginate,
69
+ media: () => exports_media_gen,
70
+ listUserLabs: () => listUserLabs,
71
+ listUserActivity: () => listUserActivity,
46
72
  listSeries: () => listSeries,
73
+ listSegments: () => listSegments,
74
+ listSegmentRevisions: () => listSegmentRevisions,
47
75
  listMedia: () => listMedia,
48
76
  listEpisodes: () => listEpisodes,
77
+ listCollections: () => listCollections,
78
+ listAdminReports: () => listAdminReports,
79
+ listAdminQueueStats: () => listAdminQueueStats,
80
+ listAdminQueueFailed: () => listAdminQueueFailed,
81
+ listAdminMediaAudits: () => listAdminMediaAudits,
82
+ listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
83
+ getUserQuota: () => getUserQuota,
84
+ getUserPreferences: () => getUserPreferences,
85
+ getUserActivityStats: () => getUserActivityStats,
86
+ getUserActivityHeatmap: () => getUserActivityHeatmap,
87
+ getStatsOverview: () => getStatsOverview,
49
88
  getSeries: () => getSeries,
89
+ getSeiyuu: () => getSeiyuu,
50
90
  getSegmentContext: () => getSegmentContext,
51
91
  getSegmentByUuid: () => getSegmentByUuid,
52
92
  getSegment: () => getSegment,
53
93
  getSearchStats: () => getSearchStats,
54
94
  getMedia: () => getMedia,
55
95
  getEpisode: () => getEpisode,
96
+ getCoveredWords: () => getCoveredWords,
97
+ getCollectionStats: () => getCollectionStats,
98
+ getCollection: () => getCollection,
99
+ getCharacter: () => getCharacter,
100
+ getAnnouncement: () => getAnnouncement,
101
+ getAdminQueue: () => getAdminQueue,
102
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
103
+ getAdminHealth: () => getAdminHealth,
104
+ getAdminDashboardSystem: () => getAdminDashboardSystem,
105
+ getAdminDashboardOverview: () => getAdminDashboardOverview,
106
+ getAdminDashboardMedia: () => getAdminDashboardMedia,
107
+ getAdminDashboardCollections: () => getAdminDashboardCollections,
108
+ getAdminDashboardApiKeys: () => getAdminDashboardApiKeys,
109
+ getAdminDashboardActivity: () => getAdminDashboardActivity,
110
+ getAdminDashboard: () => getAdminDashboard,
111
+ exportUserData: () => exportUserData,
112
+ enrollUserLab: () => enrollUserLab,
113
+ deleteUserActivityById: () => deleteUserActivityById,
114
+ deleteUserActivityByDate: () => deleteUserActivityByDate,
115
+ deleteUserActivity: () => deleteUserActivity,
116
+ deleteSeries: () => deleteSeries,
117
+ deleteSegment: () => deleteSegment,
118
+ deleteMedia: () => deleteMedia,
119
+ deleteEpisode: () => deleteEpisode,
120
+ deleteCollection: () => deleteCollection,
121
+ createUserReport: () => createUserReport,
122
+ createSeries: () => createSeries,
123
+ createSegmentsBatch: () => createSegmentsBatch,
124
+ createSegment: () => createSegment,
56
125
  createNadeshikoClient: () => createNadeshikoClient,
126
+ createMedia: () => createMedia,
127
+ createEpisode: () => createEpisode,
128
+ createCollection: () => createCollection,
129
+ collections: () => exports_collections_gen,
57
130
  client: () => client,
131
+ batchUpdateAdminReports: () => batchUpdateAdminReports,
132
+ autocompleteMedia: () => autocompleteMedia,
133
+ admin: () => exports_admin_gen,
134
+ addSegmentToCollection: () => addSegmentToCollection,
135
+ addMediaToSeries: () => addMediaToSeries,
58
136
  NadeshikoError: () => NadeshikoError
59
137
  });
60
- module.exports = __toCommonJS(exports_public);
138
+ module.exports = __toCommonJS(exports_internal);
61
139
 
62
- // generated/public/core/bodySerializer.gen.ts
140
+ // generated/internal/core/bodySerializer.gen.ts
63
141
  var jsonBodySerializer = {
64
142
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
65
143
  };
66
- // generated/public/core/params.gen.ts
144
+ // generated/internal/core/params.gen.ts
67
145
  var extraPrefixesMap = {
68
146
  $body_: "body",
69
147
  $headers_: "headers",
@@ -71,7 +149,7 @@ var extraPrefixesMap = {
71
149
  $query_: "query"
72
150
  };
73
151
  var extraPrefixes = Object.entries(extraPrefixesMap);
74
- // generated/public/core/serverSentEvents.gen.ts
152
+ // generated/internal/core/serverSentEvents.gen.ts
75
153
  var createSseClient = ({
76
154
  onRequest,
77
155
  onSseError,
@@ -207,7 +285,7 @@ var createSseClient = ({
207
285
  return { stream };
208
286
  };
209
287
 
210
- // generated/public/core/pathSerializer.gen.ts
288
+ // generated/internal/core/pathSerializer.gen.ts
211
289
  var separatorArrayExplode = (style) => {
212
290
  switch (style) {
213
291
  case "label":
@@ -331,7 +409,7 @@ var serializeObjectParam = ({
331
409
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
332
410
  };
333
411
 
334
- // generated/public/core/utils.gen.ts
412
+ // generated/internal/core/utils.gen.ts
335
413
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
336
414
  var defaultPathSerializer = ({ path, url: _url }) => {
337
415
  let url = _url;
@@ -420,7 +498,7 @@ function getValidRequestBody(options) {
420
498
  return;
421
499
  }
422
500
 
423
- // generated/public/core/auth.gen.ts
501
+ // generated/internal/core/auth.gen.ts
424
502
  var getAuthToken = async (auth, callback) => {
425
503
  const token = typeof callback === "function" ? await callback(auth) : callback;
426
504
  if (!token) {
@@ -435,7 +513,7 @@ var getAuthToken = async (auth, callback) => {
435
513
  return token;
436
514
  };
437
515
 
438
- // generated/public/client/utils.gen.ts
516
+ // generated/internal/client/utils.gen.ts
439
517
  var createQuerySerializer = ({
440
518
  parameters = {},
441
519
  ...args
@@ -652,7 +730,7 @@ var createConfig = (override = {}) => ({
652
730
  ...override
653
731
  });
654
732
 
655
- // generated/public/client/client.gen.ts
733
+ // generated/internal/client/client.gen.ts
656
734
  var createClient = (config = {}) => {
657
735
  let _config = mergeConfigs(createConfig(), config);
658
736
  const getConfig = () => ({ ..._config });
@@ -858,10 +936,10 @@ var createClient = (config = {}) => {
858
936
  trace: makeMethodFn("TRACE")
859
937
  };
860
938
  };
861
- // generated/public/client.gen.ts
939
+ // generated/internal/client.gen.ts
862
940
  var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
863
941
 
864
- // generated/public/sdk.gen.ts
942
+ // generated/internal/sdk.gen.ts
865
943
  var search = (options) => (options?.client ?? client).post({
866
944
  security: [{ scheme: "bearer", type: "http" }],
867
945
  url: "/v1/search",
@@ -889,52 +967,706 @@ var searchWords = (options) => (options.client ?? client).post({
889
967
  ...options.headers
890
968
  }
891
969
  });
970
+ var getStatsOverview = (options) => (options?.client ?? client).get({ url: "/v1/stats/overview", ...options });
971
+ var getCoveredWords = (options) => (options.client ?? client).get({ url: "/v1/stats/covered-words", ...options });
972
+ var triggerCoveredWordsUpdate = (options) => (options?.client ?? client).post({
973
+ security: [{
974
+ in: "cookie",
975
+ name: "nadeshiko.session_token",
976
+ type: "apiKey"
977
+ }],
978
+ url: "/v1/stats/covered-words/update",
979
+ ...options,
980
+ headers: {
981
+ "Content-Type": "application/json",
982
+ ...options?.headers
983
+ }
984
+ });
892
985
  var listMedia = (options) => (options?.client ?? client).get({
893
986
  security: [{ scheme: "bearer", type: "http" }],
894
987
  url: "/v1/media",
895
988
  ...options
896
989
  });
990
+ var createMedia = (options) => (options.client ?? client).post({
991
+ security: [{ scheme: "bearer", type: "http" }],
992
+ url: "/v1/media",
993
+ ...options,
994
+ headers: {
995
+ "Content-Type": "application/json",
996
+ ...options.headers
997
+ }
998
+ });
999
+ var autocompleteMedia = (options) => (options.client ?? client).get({
1000
+ security: [{ scheme: "bearer", type: "http" }],
1001
+ url: "/v1/media/autocomplete",
1002
+ ...options
1003
+ });
897
1004
  var getSegmentByUuid = (options) => (options.client ?? client).get({
898
1005
  security: [{ scheme: "bearer", type: "http" }],
899
1006
  url: "/v1/media/segments/{uuid}",
900
1007
  ...options
901
1008
  });
1009
+ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
1010
+ security: [{ scheme: "bearer", type: "http" }],
1011
+ url: "/v1/media/segments/{uuid}",
1012
+ ...options,
1013
+ headers: {
1014
+ "Content-Type": "application/json",
1015
+ ...options.headers
1016
+ }
1017
+ });
902
1018
  var getSegmentContext = (options) => (options.client ?? client).get({
903
1019
  security: [{ scheme: "bearer", type: "http" }],
904
1020
  url: "/v1/media/segments/{uuid}/context",
905
1021
  ...options
906
1022
  });
1023
+ var listSegmentRevisions = (options) => (options.client ?? client).get({
1024
+ security: [{ scheme: "bearer", type: "http" }],
1025
+ url: "/v1/media/segments/{uuid}/revisions",
1026
+ ...options
1027
+ });
907
1028
  var listSeries = (options) => (options?.client ?? client).get({
908
1029
  security: [{ scheme: "bearer", type: "http" }],
909
1030
  url: "/v1/media/series",
910
1031
  ...options
911
1032
  });
1033
+ var createSeries = (options) => (options.client ?? client).post({
1034
+ security: [{ scheme: "bearer", type: "http" }],
1035
+ url: "/v1/media/series",
1036
+ ...options,
1037
+ headers: {
1038
+ "Content-Type": "application/json",
1039
+ ...options.headers
1040
+ }
1041
+ });
1042
+ var deleteSeries = (options) => (options.client ?? client).delete({
1043
+ security: [{ scheme: "bearer", type: "http" }],
1044
+ url: "/v1/media/series/{id}",
1045
+ ...options
1046
+ });
912
1047
  var getSeries = (options) => (options.client ?? client).get({
913
1048
  security: [{ scheme: "bearer", type: "http" }],
914
1049
  url: "/v1/media/series/{id}",
915
1050
  ...options
916
1051
  });
1052
+ var updateSeries = (options) => (options.client ?? client).patch({
1053
+ security: [{ scheme: "bearer", type: "http" }],
1054
+ url: "/v1/media/series/{id}",
1055
+ ...options,
1056
+ headers: {
1057
+ "Content-Type": "application/json",
1058
+ ...options.headers
1059
+ }
1060
+ });
1061
+ var addMediaToSeries = (options) => (options.client ?? client).post({
1062
+ security: [{ scheme: "bearer", type: "http" }],
1063
+ url: "/v1/media/series/{id}/media",
1064
+ ...options,
1065
+ headers: {
1066
+ "Content-Type": "application/json",
1067
+ ...options.headers
1068
+ }
1069
+ });
1070
+ var removeMediaFromSeries = (options) => (options.client ?? client).delete({
1071
+ security: [{ scheme: "bearer", type: "http" }],
1072
+ url: "/v1/media/series/{id}/media/{mediaId}",
1073
+ ...options
1074
+ });
1075
+ var updateSeriesMedia = (options) => (options.client ?? client).patch({
1076
+ security: [{ scheme: "bearer", type: "http" }],
1077
+ url: "/v1/media/series/{id}/media/{mediaId}",
1078
+ ...options,
1079
+ headers: {
1080
+ "Content-Type": "application/json",
1081
+ ...options.headers
1082
+ }
1083
+ });
1084
+ var getCharacter = (options) => (options.client ?? client).get({
1085
+ security: [{ scheme: "bearer", type: "http" }],
1086
+ url: "/v1/media/characters/{id}",
1087
+ ...options
1088
+ });
1089
+ var getSeiyuu = (options) => (options.client ?? client).get({
1090
+ security: [{ scheme: "bearer", type: "http" }],
1091
+ url: "/v1/media/seiyuu/{id}",
1092
+ ...options
1093
+ });
1094
+ var deleteMedia = (options) => (options.client ?? client).delete({
1095
+ security: [{ scheme: "bearer", type: "http" }],
1096
+ url: "/v1/media/{id}",
1097
+ ...options
1098
+ });
917
1099
  var getMedia = (options) => (options.client ?? client).get({
918
1100
  security: [{ scheme: "bearer", type: "http" }],
919
1101
  url: "/v1/media/{id}",
920
1102
  ...options
921
1103
  });
1104
+ var updateMedia = (options) => (options.client ?? client).patch({
1105
+ security: [{ scheme: "bearer", type: "http" }],
1106
+ url: "/v1/media/{id}",
1107
+ ...options,
1108
+ headers: {
1109
+ "Content-Type": "application/json",
1110
+ ...options.headers
1111
+ }
1112
+ });
922
1113
  var listEpisodes = (options) => (options.client ?? client).get({
923
1114
  security: [{ scheme: "bearer", type: "http" }],
924
1115
  url: "/v1/media/{mediaId}/episodes",
925
1116
  ...options
926
1117
  });
1118
+ var createEpisode = (options) => (options.client ?? client).post({
1119
+ security: [{ scheme: "bearer", type: "http" }],
1120
+ url: "/v1/media/{mediaId}/episodes",
1121
+ ...options,
1122
+ headers: {
1123
+ "Content-Type": "application/json",
1124
+ ...options.headers
1125
+ }
1126
+ });
1127
+ var deleteEpisode = (options) => (options.client ?? client).delete({
1128
+ security: [{ scheme: "bearer", type: "http" }],
1129
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1130
+ ...options
1131
+ });
927
1132
  var getEpisode = (options) => (options.client ?? client).get({
928
1133
  security: [{ scheme: "bearer", type: "http" }],
929
1134
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
930
1135
  ...options
931
1136
  });
1137
+ var updateEpisode = (options) => (options.client ?? client).patch({
1138
+ security: [{ scheme: "bearer", type: "http" }],
1139
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1140
+ ...options,
1141
+ headers: {
1142
+ "Content-Type": "application/json",
1143
+ ...options.headers
1144
+ }
1145
+ });
1146
+ var listSegments = (options) => (options.client ?? client).get({
1147
+ security: [{ scheme: "bearer", type: "http" }],
1148
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1149
+ ...options
1150
+ });
1151
+ var createSegment = (options) => (options.client ?? client).post({
1152
+ security: [{ scheme: "bearer", type: "http" }],
1153
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1154
+ ...options,
1155
+ headers: {
1156
+ "Content-Type": "application/json",
1157
+ ...options.headers
1158
+ }
1159
+ });
1160
+ var createSegmentsBatch = (options) => (options.client ?? client).post({
1161
+ security: [{ scheme: "bearer", type: "http" }],
1162
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
1163
+ ...options,
1164
+ headers: {
1165
+ "Content-Type": "application/json",
1166
+ ...options.headers
1167
+ }
1168
+ });
1169
+ var deleteSegment = (options) => (options.client ?? client).delete({
1170
+ security: [{ scheme: "bearer", type: "http" }],
1171
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1172
+ ...options
1173
+ });
932
1174
  var getSegment = (options) => (options.client ?? client).get({
933
1175
  security: [{ scheme: "bearer", type: "http" }],
934
1176
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
935
1177
  ...options
936
1178
  });
937
- // generated/public/retry.ts
1179
+ var updateSegment = (options) => (options.client ?? client).patch({
1180
+ security: [{ scheme: "bearer", type: "http" }],
1181
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1182
+ ...options,
1183
+ headers: {
1184
+ "Content-Type": "application/json",
1185
+ ...options.headers
1186
+ }
1187
+ });
1188
+ var getUserQuota = (options) => (options?.client ?? client).get({
1189
+ security: [{
1190
+ in: "cookie",
1191
+ name: "nadeshiko.session_token",
1192
+ type: "apiKey"
1193
+ }],
1194
+ url: "/v1/user/quota",
1195
+ ...options
1196
+ });
1197
+ var createUserReport = (options) => (options.client ?? client).post({
1198
+ security: [{
1199
+ in: "cookie",
1200
+ name: "nadeshiko.session_token",
1201
+ type: "apiKey"
1202
+ }],
1203
+ url: "/v1/user/reports",
1204
+ ...options,
1205
+ headers: {
1206
+ "Content-Type": "application/json",
1207
+ ...options.headers
1208
+ }
1209
+ });
1210
+ var getUserPreferences = (options) => (options?.client ?? client).get({
1211
+ security: [{
1212
+ in: "cookie",
1213
+ name: "nadeshiko.session_token",
1214
+ type: "apiKey"
1215
+ }],
1216
+ url: "/v1/user/preferences",
1217
+ ...options
1218
+ });
1219
+ var updateUserPreferences = (options) => (options.client ?? client).patch({
1220
+ security: [{
1221
+ in: "cookie",
1222
+ name: "nadeshiko.session_token",
1223
+ type: "apiKey"
1224
+ }],
1225
+ url: "/v1/user/preferences",
1226
+ ...options,
1227
+ headers: {
1228
+ "Content-Type": "application/json",
1229
+ ...options.headers
1230
+ }
1231
+ });
1232
+ var deleteUserActivity = (options) => (options?.client ?? client).delete({
1233
+ security: [{
1234
+ in: "cookie",
1235
+ name: "nadeshiko.session_token",
1236
+ type: "apiKey"
1237
+ }],
1238
+ url: "/v1/user/activity",
1239
+ ...options
1240
+ });
1241
+ var listUserActivity = (options) => (options?.client ?? client).get({
1242
+ security: [{
1243
+ in: "cookie",
1244
+ name: "nadeshiko.session_token",
1245
+ type: "apiKey"
1246
+ }],
1247
+ url: "/v1/user/activity",
1248
+ ...options
1249
+ });
1250
+ var trackUserActivity = (options) => (options.client ?? client).post({
1251
+ security: [{
1252
+ in: "cookie",
1253
+ name: "nadeshiko.session_token",
1254
+ type: "apiKey"
1255
+ }],
1256
+ url: "/v1/user/activity",
1257
+ ...options,
1258
+ headers: {
1259
+ "Content-Type": "application/json",
1260
+ ...options.headers
1261
+ }
1262
+ });
1263
+ var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
1264
+ security: [{
1265
+ in: "cookie",
1266
+ name: "nadeshiko.session_token",
1267
+ type: "apiKey"
1268
+ }],
1269
+ url: "/v1/user/activity/heatmap",
1270
+ ...options
1271
+ });
1272
+ var getUserActivityStats = (options) => (options?.client ?? client).get({
1273
+ security: [{
1274
+ in: "cookie",
1275
+ name: "nadeshiko.session_token",
1276
+ type: "apiKey"
1277
+ }],
1278
+ url: "/v1/user/activity/stats",
1279
+ ...options
1280
+ });
1281
+ var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
1282
+ security: [{
1283
+ in: "cookie",
1284
+ name: "nadeshiko.session_token",
1285
+ type: "apiKey"
1286
+ }],
1287
+ url: "/v1/user/activity/date/{date}",
1288
+ ...options
1289
+ });
1290
+ var deleteUserActivityById = (options) => (options.client ?? client).delete({
1291
+ security: [{
1292
+ in: "cookie",
1293
+ name: "nadeshiko.session_token",
1294
+ type: "apiKey"
1295
+ }],
1296
+ url: "/v1/user/activity/{id}",
1297
+ ...options
1298
+ });
1299
+ var exportUserData = (options) => (options?.client ?? client).get({
1300
+ security: [{
1301
+ in: "cookie",
1302
+ name: "nadeshiko.session_token",
1303
+ type: "apiKey"
1304
+ }],
1305
+ url: "/v1/user/export",
1306
+ ...options
1307
+ });
1308
+ var listUserLabs = (options) => (options?.client ?? client).get({
1309
+ security: [{
1310
+ in: "cookie",
1311
+ name: "nadeshiko.session_token",
1312
+ type: "apiKey"
1313
+ }],
1314
+ url: "/v1/user/labs",
1315
+ ...options
1316
+ });
1317
+ var unenrollUserLab = (options) => (options.client ?? client).delete({
1318
+ security: [{
1319
+ in: "cookie",
1320
+ name: "nadeshiko.session_token",
1321
+ type: "apiKey"
1322
+ }],
1323
+ url: "/v1/user/labs/{key}",
1324
+ ...options
1325
+ });
1326
+ var enrollUserLab = (options) => (options.client ?? client).post({
1327
+ security: [{
1328
+ in: "cookie",
1329
+ name: "nadeshiko.session_token",
1330
+ type: "apiKey"
1331
+ }],
1332
+ url: "/v1/user/labs/{key}",
1333
+ ...options
1334
+ });
1335
+ var listCollections = (options) => (options?.client ?? client).get({
1336
+ security: [{
1337
+ in: "cookie",
1338
+ name: "nadeshiko.session_token",
1339
+ type: "apiKey"
1340
+ }],
1341
+ url: "/v1/collections",
1342
+ ...options
1343
+ });
1344
+ var createCollection = (options) => (options.client ?? client).post({
1345
+ security: [{
1346
+ in: "cookie",
1347
+ name: "nadeshiko.session_token",
1348
+ type: "apiKey"
1349
+ }],
1350
+ url: "/v1/collections",
1351
+ ...options,
1352
+ headers: {
1353
+ "Content-Type": "application/json",
1354
+ ...options.headers
1355
+ }
1356
+ });
1357
+ var deleteCollection = (options) => (options.client ?? client).delete({
1358
+ security: [{
1359
+ in: "cookie",
1360
+ name: "nadeshiko.session_token",
1361
+ type: "apiKey"
1362
+ }],
1363
+ url: "/v1/collections/{id}",
1364
+ ...options
1365
+ });
1366
+ var getCollection = (options) => (options.client ?? client).get({
1367
+ security: [{
1368
+ in: "cookie",
1369
+ name: "nadeshiko.session_token",
1370
+ type: "apiKey"
1371
+ }],
1372
+ url: "/v1/collections/{id}",
1373
+ ...options
1374
+ });
1375
+ var updateCollection = (options) => (options.client ?? client).patch({
1376
+ security: [{
1377
+ in: "cookie",
1378
+ name: "nadeshiko.session_token",
1379
+ type: "apiKey"
1380
+ }],
1381
+ url: "/v1/collections/{id}",
1382
+ ...options,
1383
+ headers: {
1384
+ "Content-Type": "application/json",
1385
+ ...options.headers
1386
+ }
1387
+ });
1388
+ var addSegmentToCollection = (options) => (options.client ?? client).post({
1389
+ security: [{
1390
+ in: "cookie",
1391
+ name: "nadeshiko.session_token",
1392
+ type: "apiKey"
1393
+ }],
1394
+ url: "/v1/collections/{id}/segments",
1395
+ ...options,
1396
+ headers: {
1397
+ "Content-Type": "application/json",
1398
+ ...options.headers
1399
+ }
1400
+ });
1401
+ var removeSegmentFromCollection = (options) => (options.client ?? client).delete({
1402
+ security: [{
1403
+ in: "cookie",
1404
+ name: "nadeshiko.session_token",
1405
+ type: "apiKey"
1406
+ }],
1407
+ url: "/v1/collections/{id}/segments/{segmentId}",
1408
+ ...options
1409
+ });
1410
+ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1411
+ security: [{
1412
+ in: "cookie",
1413
+ name: "nadeshiko.session_token",
1414
+ type: "apiKey"
1415
+ }],
1416
+ url: "/v1/collections/{id}/segments/{segmentId}",
1417
+ ...options,
1418
+ headers: {
1419
+ "Content-Type": "application/json",
1420
+ ...options.headers
1421
+ }
1422
+ });
1423
+ var searchCollectionSegments = (options) => (options.client ?? client).get({
1424
+ security: [{
1425
+ in: "cookie",
1426
+ name: "nadeshiko.session_token",
1427
+ type: "apiKey"
1428
+ }],
1429
+ url: "/v1/collections/{id}/search",
1430
+ ...options
1431
+ });
1432
+ var getCollectionStats = (options) => (options.client ?? client).get({
1433
+ security: [{
1434
+ in: "cookie",
1435
+ name: "nadeshiko.session_token",
1436
+ type: "apiKey"
1437
+ }],
1438
+ url: "/v1/collections/{id}/stats",
1439
+ ...options
1440
+ });
1441
+ var getAdminDashboard = (options) => (options?.client ?? client).get({
1442
+ security: [{
1443
+ in: "cookie",
1444
+ name: "nadeshiko.session_token",
1445
+ type: "apiKey"
1446
+ }],
1447
+ url: "/v1/admin/dashboard",
1448
+ ...options
1449
+ });
1450
+ var getAdminDashboardOverview = (options) => (options?.client ?? client).get({
1451
+ security: [{
1452
+ in: "cookie",
1453
+ name: "nadeshiko.session_token",
1454
+ type: "apiKey"
1455
+ }],
1456
+ url: "/v1/admin/dashboard/overview",
1457
+ ...options
1458
+ });
1459
+ var getAdminDashboardMedia = (options) => (options?.client ?? client).get({
1460
+ security: [{
1461
+ in: "cookie",
1462
+ name: "nadeshiko.session_token",
1463
+ type: "apiKey"
1464
+ }],
1465
+ url: "/v1/admin/dashboard/media",
1466
+ ...options
1467
+ });
1468
+ var getAdminDashboardActivity = (options) => (options?.client ?? client).get({
1469
+ security: [{
1470
+ in: "cookie",
1471
+ name: "nadeshiko.session_token",
1472
+ type: "apiKey"
1473
+ }],
1474
+ url: "/v1/admin/dashboard/activity",
1475
+ ...options
1476
+ });
1477
+ var getAdminDashboardCollections = (options) => (options?.client ?? client).get({
1478
+ security: [{
1479
+ in: "cookie",
1480
+ name: "nadeshiko.session_token",
1481
+ type: "apiKey"
1482
+ }],
1483
+ url: "/v1/admin/dashboard/collections",
1484
+ ...options
1485
+ });
1486
+ var getAdminDashboardApiKeys = (options) => (options?.client ?? client).get({
1487
+ security: [{
1488
+ in: "cookie",
1489
+ name: "nadeshiko.session_token",
1490
+ type: "apiKey"
1491
+ }],
1492
+ url: "/v1/admin/dashboard/api-keys",
1493
+ ...options
1494
+ });
1495
+ var getAdminDashboardSystem = (options) => (options?.client ?? client).get({
1496
+ security: [{
1497
+ in: "cookie",
1498
+ name: "nadeshiko.session_token",
1499
+ type: "apiKey"
1500
+ }],
1501
+ url: "/v1/admin/dashboard/system",
1502
+ ...options
1503
+ });
1504
+ var getAdminHealth = (options) => (options?.client ?? client).get({
1505
+ security: [{
1506
+ in: "cookie",
1507
+ name: "nadeshiko.session_token",
1508
+ type: "apiKey"
1509
+ }],
1510
+ url: "/v1/admin/health",
1511
+ ...options
1512
+ });
1513
+ var triggerReindex = (options) => (options?.client ?? client).post({
1514
+ security: [{
1515
+ in: "cookie",
1516
+ name: "nadeshiko.session_token",
1517
+ type: "apiKey"
1518
+ }],
1519
+ url: "/v1/admin/reindex",
1520
+ ...options,
1521
+ headers: {
1522
+ "Content-Type": "application/json",
1523
+ ...options?.headers
1524
+ }
1525
+ });
1526
+ var listAdminQueueStats = (options) => (options?.client ?? client).get({
1527
+ security: [{
1528
+ in: "cookie",
1529
+ name: "nadeshiko.session_token",
1530
+ type: "apiKey"
1531
+ }],
1532
+ url: "/v1/admin/queues/stats",
1533
+ ...options
1534
+ });
1535
+ var getAdminQueue = (options) => (options.client ?? client).get({
1536
+ security: [{
1537
+ in: "cookie",
1538
+ name: "nadeshiko.session_token",
1539
+ type: "apiKey"
1540
+ }],
1541
+ url: "/v1/admin/queues/{queueName}",
1542
+ ...options
1543
+ });
1544
+ var listAdminQueueFailed = (options) => (options.client ?? client).get({
1545
+ security: [{
1546
+ in: "cookie",
1547
+ name: "nadeshiko.session_token",
1548
+ type: "apiKey"
1549
+ }],
1550
+ url: "/v1/admin/queues/{queueName}/failed",
1551
+ ...options
1552
+ });
1553
+ var retryAdminQueueFailed = (options) => (options.client ?? client).post({
1554
+ security: [{
1555
+ in: "cookie",
1556
+ name: "nadeshiko.session_token",
1557
+ type: "apiKey"
1558
+ }],
1559
+ url: "/v1/admin/queues/{queueName}/retry",
1560
+ ...options
1561
+ });
1562
+ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1563
+ security: [{
1564
+ in: "cookie",
1565
+ name: "nadeshiko.session_token",
1566
+ type: "apiKey"
1567
+ }],
1568
+ url: "/v1/admin/queues/{queueName}/purge",
1569
+ ...options
1570
+ });
1571
+ var listAdminReports = (options) => (options?.client ?? client).get({
1572
+ security: [{
1573
+ in: "cookie",
1574
+ name: "nadeshiko.session_token",
1575
+ type: "apiKey"
1576
+ }],
1577
+ url: "/v1/admin/reports",
1578
+ ...options
1579
+ });
1580
+ var batchUpdateAdminReports = (options) => (options.client ?? client).patch({
1581
+ security: [{
1582
+ in: "cookie",
1583
+ name: "nadeshiko.session_token",
1584
+ type: "apiKey"
1585
+ }],
1586
+ url: "/v1/admin/reports/batch",
1587
+ ...options,
1588
+ headers: {
1589
+ "Content-Type": "application/json",
1590
+ ...options.headers
1591
+ }
1592
+ });
1593
+ var updateAdminReport = (options) => (options.client ?? client).patch({
1594
+ security: [{
1595
+ in: "cookie",
1596
+ name: "nadeshiko.session_token",
1597
+ type: "apiKey"
1598
+ }],
1599
+ url: "/v1/admin/reports/{id}",
1600
+ ...options,
1601
+ headers: {
1602
+ "Content-Type": "application/json",
1603
+ ...options.headers
1604
+ }
1605
+ });
1606
+ var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1607
+ security: [{
1608
+ in: "cookie",
1609
+ name: "nadeshiko.session_token",
1610
+ type: "apiKey"
1611
+ }],
1612
+ url: "/v1/admin/media/audits",
1613
+ ...options
1614
+ });
1615
+ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1616
+ security: [{
1617
+ in: "cookie",
1618
+ name: "nadeshiko.session_token",
1619
+ type: "apiKey"
1620
+ }],
1621
+ url: "/v1/admin/media/audits/{name}",
1622
+ ...options,
1623
+ headers: {
1624
+ "Content-Type": "application/json",
1625
+ ...options.headers
1626
+ }
1627
+ });
1628
+ var runAdminMediaAudit = (options) => (options.client ?? client).post({
1629
+ security: [{
1630
+ in: "cookie",
1631
+ name: "nadeshiko.session_token",
1632
+ type: "apiKey"
1633
+ }],
1634
+ url: "/v1/admin/media/audits/{name}/run",
1635
+ ...options
1636
+ });
1637
+ var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1638
+ security: [{
1639
+ in: "cookie",
1640
+ name: "nadeshiko.session_token",
1641
+ type: "apiKey"
1642
+ }],
1643
+ url: "/v1/admin/media/audits/runs",
1644
+ ...options
1645
+ });
1646
+ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1647
+ security: [{
1648
+ in: "cookie",
1649
+ name: "nadeshiko.session_token",
1650
+ type: "apiKey"
1651
+ }],
1652
+ url: "/v1/admin/media/audits/runs/{id}",
1653
+ ...options
1654
+ });
1655
+ var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
1656
+ var updateAnnouncement = (options) => (options.client ?? client).put({
1657
+ security: [{
1658
+ in: "cookie",
1659
+ name: "nadeshiko.session_token",
1660
+ type: "apiKey"
1661
+ }],
1662
+ url: "/v1/admin/announcement",
1663
+ ...options,
1664
+ headers: {
1665
+ "Content-Type": "application/json",
1666
+ ...options.headers
1667
+ }
1668
+ });
1669
+ // generated/internal/retry.ts
938
1670
  var RETRYABLE_STATUS = new Set([408, 429, 500, 502, 503, 504]);
939
1671
  function parseRetryAfter(value) {
940
1672
  const seconds = Number(value);
@@ -1004,7 +1736,7 @@ function withRetry(fetchImpl = globalThis.fetch, options = {}) {
1004
1736
  };
1005
1737
  }
1006
1738
 
1007
- // generated/public/errors.ts
1739
+ // generated/internal/errors.ts
1008
1740
  class NadeshikoError extends Error {
1009
1741
  code;
1010
1742
  title;
@@ -1026,13 +1758,19 @@ class NadeshikoError extends Error {
1026
1758
  }
1027
1759
  }
1028
1760
 
1029
- // generated/public/nadeshiko.gen.ts
1761
+ // generated/internal/nadeshiko.gen.ts
1030
1762
  var environments = {
1031
1763
  LOCAL: "http://localhost:5000/api",
1032
1764
  DEVELOPMENT: "https://api-dev.nadeshiko.co",
1033
1765
  PRODUCTION: "https://api.nadeshiko.co",
1034
1766
  PROXY: ""
1035
1767
  };
1768
+ var defaultSessionTokenGetter = () => {
1769
+ if (typeof document === "undefined")
1770
+ return;
1771
+ const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
1772
+ return match ? decodeURIComponent(match[1]) : undefined;
1773
+ };
1036
1774
  function createNadeshikoClient(config) {
1037
1775
  const rawBaseUrl = config.baseURL ?? config.baseUrl;
1038
1776
  const baseUrl = rawBaseUrl === undefined ? environments.PRODUCTION : (rawBaseUrl in environments) ? environments[rawBaseUrl] : rawBaseUrl;
@@ -1042,10 +1780,16 @@ function createNadeshikoClient(config) {
1042
1780
  }
1043
1781
  return config.apiKey;
1044
1782
  };
1783
+ const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
1045
1784
  const clientInstance = createClient(createConfig({
1046
1785
  baseUrl,
1047
1786
  fetch: withRetry(globalThis.fetch, config.retryOptions),
1048
- auth: () => getApiKey()
1787
+ auth: (auth) => {
1788
+ if (auth.in === "cookie") {
1789
+ return getSessionToken();
1790
+ }
1791
+ return getApiKey();
1792
+ }
1049
1793
  }));
1050
1794
  clientInstance.interceptors.error.use((error) => {
1051
1795
  if (error && typeof error === "object" && "code" in error && typeof error.code === "string") {
@@ -1058,6 +1802,9 @@ function createNadeshikoClient(config) {
1058
1802
  search: (options) => search({ throwOnError: true, ...options, client: clientInstance }),
1059
1803
  getSearchStats: (options) => getSearchStats({ throwOnError: true, ...options, client: clientInstance }),
1060
1804
  searchWords: (options) => searchWords({ throwOnError: true, ...options, client: clientInstance }),
1805
+ getStatsOverview: (options) => getStatsOverview({ throwOnError: true, ...options, client: clientInstance }),
1806
+ getCoveredWords: (options) => getCoveredWords({ throwOnError: true, ...options, client: clientInstance }),
1807
+ triggerCoveredWordsUpdate: (options) => triggerCoveredWordsUpdate({ throwOnError: true, ...options, client: clientInstance }),
1061
1808
  listMedia: (options) => listMedia({ throwOnError: true, ...options, client: clientInstance }),
1062
1809
  getSegmentByUuid: (options) => getSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
1063
1810
  getSegmentContext: (options) => getSegmentContext({ throwOnError: true, ...options, client: clientInstance }),
@@ -1066,10 +1813,168 @@ function createNadeshikoClient(config) {
1066
1813
  getMedia: (options) => getMedia({ throwOnError: true, ...options, client: clientInstance }),
1067
1814
  listEpisodes: (options) => listEpisodes({ throwOnError: true, ...options, client: clientInstance }),
1068
1815
  getEpisode: (options) => getEpisode({ throwOnError: true, ...options, client: clientInstance }),
1069
- getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance })
1816
+ getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance }),
1817
+ createMedia: (options) => createMedia({ throwOnError: true, ...options, client: clientInstance }),
1818
+ autocompleteMedia: (options) => autocompleteMedia({ throwOnError: true, ...options, client: clientInstance }),
1819
+ updateSegmentByUuid: (options) => updateSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
1820
+ listSegmentRevisions: (options) => listSegmentRevisions({ throwOnError: true, ...options, client: clientInstance }),
1821
+ createSeries: (options) => createSeries({ throwOnError: true, ...options, client: clientInstance }),
1822
+ updateSeries: (options) => updateSeries({ throwOnError: true, ...options, client: clientInstance }),
1823
+ deleteSeries: (options) => deleteSeries({ throwOnError: true, ...options, client: clientInstance }),
1824
+ addMediaToSeries: (options) => addMediaToSeries({ throwOnError: true, ...options, client: clientInstance }),
1825
+ updateSeriesMedia: (options) => updateSeriesMedia({ throwOnError: true, ...options, client: clientInstance }),
1826
+ removeMediaFromSeries: (options) => removeMediaFromSeries({ throwOnError: true, ...options, client: clientInstance }),
1827
+ getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
1828
+ getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
1829
+ updateMedia: (options) => updateMedia({ throwOnError: true, ...options, client: clientInstance }),
1830
+ deleteMedia: (options) => deleteMedia({ throwOnError: true, ...options, client: clientInstance }),
1831
+ createEpisode: (options) => createEpisode({ throwOnError: true, ...options, client: clientInstance }),
1832
+ updateEpisode: (options) => updateEpisode({ throwOnError: true, ...options, client: clientInstance }),
1833
+ deleteEpisode: (options) => deleteEpisode({ throwOnError: true, ...options, client: clientInstance }),
1834
+ listSegments: (options) => listSegments({ throwOnError: true, ...options, client: clientInstance }),
1835
+ createSegment: (options) => createSegment({ throwOnError: true, ...options, client: clientInstance }),
1836
+ createSegmentsBatch: (options) => createSegmentsBatch({ throwOnError: true, ...options, client: clientInstance }),
1837
+ updateSegment: (options) => updateSegment({ throwOnError: true, ...options, client: clientInstance }),
1838
+ deleteSegment: (options) => deleteSegment({ throwOnError: true, ...options, client: clientInstance }),
1839
+ getUserQuota: (options) => getUserQuota({ throwOnError: true, ...options, client: clientInstance }),
1840
+ createUserReport: (options) => createUserReport({ throwOnError: true, ...options, client: clientInstance }),
1841
+ getUserPreferences: (options) => getUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
1842
+ updateUserPreferences: (options) => updateUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
1843
+ listUserActivity: (options) => listUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1844
+ trackUserActivity: (options) => trackUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1845
+ deleteUserActivity: (options) => deleteUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1846
+ getUserActivityHeatmap: (options) => getUserActivityHeatmap({ throwOnError: true, ...options, client: clientInstance }),
1847
+ getUserActivityStats: (options) => getUserActivityStats({ throwOnError: true, ...options, client: clientInstance }),
1848
+ deleteUserActivityByDate: (options) => deleteUserActivityByDate({ throwOnError: true, ...options, client: clientInstance }),
1849
+ deleteUserActivityById: (options) => deleteUserActivityById({ throwOnError: true, ...options, client: clientInstance }),
1850
+ exportUserData: (options) => exportUserData({ throwOnError: true, ...options, client: clientInstance }),
1851
+ listUserLabs: (options) => listUserLabs({ throwOnError: true, ...options, client: clientInstance }),
1852
+ enrollUserLab: (options) => enrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
1853
+ unenrollUserLab: (options) => unenrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
1854
+ listCollections: (options) => listCollections({ throwOnError: true, ...options, client: clientInstance }),
1855
+ createCollection: (options) => createCollection({ throwOnError: true, ...options, client: clientInstance }),
1856
+ getCollection: (options) => getCollection({ throwOnError: true, ...options, client: clientInstance }),
1857
+ updateCollection: (options) => updateCollection({ throwOnError: true, ...options, client: clientInstance }),
1858
+ deleteCollection: (options) => deleteCollection({ throwOnError: true, ...options, client: clientInstance }),
1859
+ addSegmentToCollection: (options) => addSegmentToCollection({ throwOnError: true, ...options, client: clientInstance }),
1860
+ updateCollectionSegment: (options) => updateCollectionSegment({ throwOnError: true, ...options, client: clientInstance }),
1861
+ removeSegmentFromCollection: (options) => removeSegmentFromCollection({ throwOnError: true, ...options, client: clientInstance }),
1862
+ searchCollectionSegments: (options) => searchCollectionSegments({ throwOnError: true, ...options, client: clientInstance }),
1863
+ getCollectionStats: (options) => getCollectionStats({ throwOnError: true, ...options, client: clientInstance }),
1864
+ getAdminDashboard: (options) => getAdminDashboard({ throwOnError: true, ...options, client: clientInstance }),
1865
+ getAdminDashboardOverview: (options) => getAdminDashboardOverview({ throwOnError: true, ...options, client: clientInstance }),
1866
+ getAdminDashboardMedia: (options) => getAdminDashboardMedia({ throwOnError: true, ...options, client: clientInstance }),
1867
+ getAdminDashboardActivity: (options) => getAdminDashboardActivity({ throwOnError: true, ...options, client: clientInstance }),
1868
+ getAdminDashboardCollections: (options) => getAdminDashboardCollections({ throwOnError: true, ...options, client: clientInstance }),
1869
+ getAdminDashboardApiKeys: (options) => getAdminDashboardApiKeys({ throwOnError: true, ...options, client: clientInstance }),
1870
+ getAdminDashboardSystem: (options) => getAdminDashboardSystem({ throwOnError: true, ...options, client: clientInstance }),
1871
+ getAdminHealth: (options) => getAdminHealth({ throwOnError: true, ...options, client: clientInstance }),
1872
+ triggerReindex: (options) => triggerReindex({ throwOnError: true, ...options, client: clientInstance }),
1873
+ listAdminQueueStats: (options) => listAdminQueueStats({ throwOnError: true, ...options, client: clientInstance }),
1874
+ getAdminQueue: (options) => getAdminQueue({ throwOnError: true, ...options, client: clientInstance }),
1875
+ listAdminQueueFailed: (options) => listAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1876
+ retryAdminQueueFailed: (options) => retryAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1877
+ purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1878
+ listAdminReports: (options) => listAdminReports({ throwOnError: true, ...options, client: clientInstance }),
1879
+ batchUpdateAdminReports: (options) => batchUpdateAdminReports({ throwOnError: true, ...options, client: clientInstance }),
1880
+ updateAdminReport: (options) => updateAdminReport({ throwOnError: true, ...options, client: clientInstance }),
1881
+ listAdminMediaAudits: (options) => listAdminMediaAudits({ throwOnError: true, ...options, client: clientInstance }),
1882
+ updateAdminMediaAudit: (options) => updateAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
1883
+ runAdminMediaAudit: (options) => runAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
1884
+ listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ throwOnError: true, ...options, client: clientInstance }),
1885
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ throwOnError: true, ...options, client: clientInstance }),
1886
+ getAnnouncement: (options) => getAnnouncement({ throwOnError: true, ...options, client: clientInstance }),
1887
+ updateAnnouncement: (options) => updateAnnouncement({ throwOnError: true, ...options, client: clientInstance })
1070
1888
  };
1071
1889
  }
1072
- // generated/public/paginate.ts
1890
+ // generated/internal/internal/media.gen.ts
1891
+ var exports_media_gen = {};
1892
+ __export(exports_media_gen, {
1893
+ updateSeriesMedia: () => updateSeriesMedia,
1894
+ updateSeries: () => updateSeries,
1895
+ updateSegmentByUuid: () => updateSegmentByUuid,
1896
+ updateSegment: () => updateSegment,
1897
+ updateMedia: () => updateMedia,
1898
+ updateEpisode: () => updateEpisode,
1899
+ removeMediaFromSeries: () => removeMediaFromSeries,
1900
+ listSegments: () => listSegments,
1901
+ listSegmentRevisions: () => listSegmentRevisions,
1902
+ getSeiyuu: () => getSeiyuu,
1903
+ getCharacter: () => getCharacter,
1904
+ deleteSeries: () => deleteSeries,
1905
+ deleteSegment: () => deleteSegment,
1906
+ deleteMedia: () => deleteMedia,
1907
+ deleteEpisode: () => deleteEpisode,
1908
+ createSeries: () => createSeries,
1909
+ createSegmentsBatch: () => createSegmentsBatch,
1910
+ createSegment: () => createSegment,
1911
+ createMedia: () => createMedia,
1912
+ createEpisode: () => createEpisode,
1913
+ autocompleteMedia: () => autocompleteMedia,
1914
+ addMediaToSeries: () => addMediaToSeries
1915
+ });
1916
+ // generated/internal/internal/user.gen.ts
1917
+ var exports_user_gen = {};
1918
+ __export(exports_user_gen, {
1919
+ updateUserPreferences: () => updateUserPreferences,
1920
+ unenrollUserLab: () => unenrollUserLab,
1921
+ trackUserActivity: () => trackUserActivity,
1922
+ listUserLabs: () => listUserLabs,
1923
+ listUserActivity: () => listUserActivity,
1924
+ getUserQuota: () => getUserQuota,
1925
+ getUserPreferences: () => getUserPreferences,
1926
+ getUserActivityStats: () => getUserActivityStats,
1927
+ getUserActivityHeatmap: () => getUserActivityHeatmap,
1928
+ exportUserData: () => exportUserData,
1929
+ enrollUserLab: () => enrollUserLab,
1930
+ deleteUserActivityById: () => deleteUserActivityById,
1931
+ deleteUserActivityByDate: () => deleteUserActivityByDate,
1932
+ deleteUserActivity: () => deleteUserActivity,
1933
+ createUserReport: () => createUserReport
1934
+ });
1935
+ // generated/internal/internal/collections.gen.ts
1936
+ var exports_collections_gen = {};
1937
+ __export(exports_collections_gen, {
1938
+ updateCollectionSegment: () => updateCollectionSegment,
1939
+ updateCollection: () => updateCollection,
1940
+ searchCollectionSegments: () => searchCollectionSegments,
1941
+ removeSegmentFromCollection: () => removeSegmentFromCollection,
1942
+ listCollections: () => listCollections,
1943
+ getCollectionStats: () => getCollectionStats,
1944
+ getCollection: () => getCollection,
1945
+ deleteCollection: () => deleteCollection,
1946
+ createCollection: () => createCollection,
1947
+ addSegmentToCollection: () => addSegmentToCollection
1948
+ });
1949
+ // generated/internal/internal/admin.gen.ts
1950
+ var exports_admin_gen = {};
1951
+ __export(exports_admin_gen, {
1952
+ updateAnnouncement: () => updateAnnouncement,
1953
+ updateAdminReport: () => updateAdminReport,
1954
+ updateAdminMediaAudit: () => updateAdminMediaAudit,
1955
+ triggerReindex: () => triggerReindex,
1956
+ runAdminMediaAudit: () => runAdminMediaAudit,
1957
+ retryAdminQueueFailed: () => retryAdminQueueFailed,
1958
+ purgeAdminQueueFailed: () => purgeAdminQueueFailed,
1959
+ listAdminReports: () => listAdminReports,
1960
+ listAdminQueueStats: () => listAdminQueueStats,
1961
+ listAdminQueueFailed: () => listAdminQueueFailed,
1962
+ listAdminMediaAudits: () => listAdminMediaAudits,
1963
+ listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1964
+ getAnnouncement: () => getAnnouncement,
1965
+ getAdminQueue: () => getAdminQueue,
1966
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1967
+ getAdminHealth: () => getAdminHealth,
1968
+ getAdminDashboardSystem: () => getAdminDashboardSystem,
1969
+ getAdminDashboardOverview: () => getAdminDashboardOverview,
1970
+ getAdminDashboardMedia: () => getAdminDashboardMedia,
1971
+ getAdminDashboardCollections: () => getAdminDashboardCollections,
1972
+ getAdminDashboardApiKeys: () => getAdminDashboardApiKeys,
1973
+ getAdminDashboardActivity: () => getAdminDashboardActivity,
1974
+ getAdminDashboard: () => getAdminDashboard,
1975
+ batchUpdateAdminReports: () => batchUpdateAdminReports
1976
+ });
1977
+ // generated/internal/paginate.ts
1073
1978
  async function* paginate(fn, options, extract) {
1074
1979
  let cursor = null;
1075
1980
  let first = true;
@@ -1099,5 +2004,5 @@ function patchCursor(options, cursor) {
1099
2004
  return { ...options, body: { cursor } };
1100
2005
  }
1101
2006
 
1102
- //# debugId=2EDF04B23D74541164756E2164756E21
2007
+ //# debugId=5CA77681DF7EE37E64756E2164756E21
1103
2008
  //# sourceMappingURL=index.js.map