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