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