@brigadasos/nadeshiko-sdk 2.0.0 → 2.0.1-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 +823 -66
  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 +834 -62
  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 +1201 -25
  32. package/dist/nadeshiko.gen.d.ts.map +1 -1
  33. package/dist/paginate.d.ts.map +1 -1
  34. package/dist/retry.d.ts.map +1 -1
  35. package/dist/sdk.gen.d.ts +26 -180
  36. package/dist/sdk.gen.d.ts.map +1 -1
  37. package/dist/types.gen.d.ts +114 -114
  38. package/dist/types.gen.d.ts.map +1 -1
  39. package/package.json +4 -3
package/dist/index.cjs CHANGED
@@ -36,16 +36,54 @@ 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,
50
88
  getSeiyuu: () => getSeiyuu,
51
89
  getSegmentContext: () => getSegmentContext,
@@ -54,18 +92,49 @@ __export(exports_public, {
54
92
  getSearchStats: () => getSearchStats,
55
93
  getMedia: () => getMedia,
56
94
  getEpisode: () => getEpisode,
95
+ getCollectionStats: () => getCollectionStats,
96
+ getCollection: () => getCollection,
57
97
  getCharacter: () => getCharacter,
98
+ getAnnouncement: () => getAnnouncement,
99
+ getAdminQueue: () => getAdminQueue,
100
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
101
+ getAdminHealth: () => getAdminHealth,
102
+ getAdminDashboard: () => getAdminDashboard,
103
+ exportUserData: () => exportUserData,
104
+ enrollUserLab: () => enrollUserLab,
105
+ deleteUserActivityById: () => deleteUserActivityById,
106
+ deleteUserActivityByDate: () => deleteUserActivityByDate,
107
+ deleteUserActivity: () => deleteUserActivity,
108
+ deleteSeries: () => deleteSeries,
109
+ deleteSegment: () => deleteSegment,
110
+ deleteMedia: () => deleteMedia,
111
+ deleteEpisode: () => deleteEpisode,
112
+ deleteCollection: () => deleteCollection,
113
+ createUserReport: () => createUserReport,
114
+ createSeries: () => createSeries,
115
+ createSegmentsBatch: () => createSegmentsBatch,
116
+ createSegment: () => createSegment,
58
117
  createNadeshikoClient: () => createNadeshikoClient,
118
+ createMedia: () => createMedia,
119
+ createEpisode: () => createEpisode,
120
+ createCollection: () => createCollection,
121
+ collections: () => exports_collections_gen,
59
122
  client: () => client,
123
+ clearAdminImpersonation: () => clearAdminImpersonation,
124
+ batchUpdateAdminReports: () => batchUpdateAdminReports,
125
+ autocompleteMedia: () => autocompleteMedia,
126
+ admin: () => exports_admin_gen,
127
+ addSegmentToCollection: () => addSegmentToCollection,
128
+ addMediaToSeries: () => addMediaToSeries,
60
129
  NadeshikoError: () => NadeshikoError
61
130
  });
62
- module.exports = __toCommonJS(exports_public);
131
+ module.exports = __toCommonJS(exports_internal);
63
132
 
64
- // generated/public/core/bodySerializer.gen.ts
133
+ // generated/internal/core/bodySerializer.gen.ts
65
134
  var jsonBodySerializer = {
66
135
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
67
136
  };
68
- // generated/public/core/params.gen.ts
137
+ // generated/internal/core/params.gen.ts
69
138
  var extraPrefixesMap = {
70
139
  $body_: "body",
71
140
  $headers_: "headers",
@@ -73,7 +142,7 @@ var extraPrefixesMap = {
73
142
  $query_: "query"
74
143
  };
75
144
  var extraPrefixes = Object.entries(extraPrefixesMap);
76
- // generated/public/core/serverSentEvents.gen.ts
145
+ // generated/internal/core/serverSentEvents.gen.ts
77
146
  var createSseClient = ({
78
147
  onRequest,
79
148
  onSseError,
@@ -209,7 +278,7 @@ var createSseClient = ({
209
278
  return { stream };
210
279
  };
211
280
 
212
- // generated/public/core/pathSerializer.gen.ts
281
+ // generated/internal/core/pathSerializer.gen.ts
213
282
  var separatorArrayExplode = (style) => {
214
283
  switch (style) {
215
284
  case "label":
@@ -333,7 +402,7 @@ var serializeObjectParam = ({
333
402
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
334
403
  };
335
404
 
336
- // generated/public/core/utils.gen.ts
405
+ // generated/internal/core/utils.gen.ts
337
406
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
338
407
  var defaultPathSerializer = ({ path, url: _url }) => {
339
408
  let url = _url;
@@ -422,7 +491,7 @@ function getValidRequestBody(options) {
422
491
  return;
423
492
  }
424
493
 
425
- // generated/public/core/auth.gen.ts
494
+ // generated/internal/core/auth.gen.ts
426
495
  var getAuthToken = async (auth, callback) => {
427
496
  const token = typeof callback === "function" ? await callback(auth) : callback;
428
497
  if (!token) {
@@ -437,7 +506,7 @@ var getAuthToken = async (auth, callback) => {
437
506
  return token;
438
507
  };
439
508
 
440
- // generated/public/client/utils.gen.ts
509
+ // generated/internal/client/utils.gen.ts
441
510
  var createQuerySerializer = ({
442
511
  parameters = {},
443
512
  ...args
@@ -654,7 +723,7 @@ var createConfig = (override = {}) => ({
654
723
  ...override
655
724
  });
656
725
 
657
- // generated/public/client/client.gen.ts
726
+ // generated/internal/client/client.gen.ts
658
727
  var createClient = (config = {}) => {
659
728
  let _config = mergeConfigs(createConfig(), config);
660
729
  const getConfig = () => ({ ..._config });
@@ -860,149 +929,677 @@ var createClient = (config = {}) => {
860
929
  trace: makeMethodFn("TRACE")
861
930
  };
862
931
  };
863
- // generated/public/client.gen.ts
932
+ // generated/internal/client.gen.ts
864
933
  var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
865
934
 
866
- // generated/public/sdk.gen.ts
935
+ // generated/internal/sdk.gen.ts
867
936
  var search = (options) => (options?.client ?? client).post({
868
- security: [{ scheme: "bearer", type: "http" }, {
937
+ security: [{ scheme: "bearer", type: "http" }],
938
+ url: "/v1/search",
939
+ ...options,
940
+ headers: {
941
+ "Content-Type": "application/json",
942
+ ...options?.headers
943
+ }
944
+ });
945
+ var getSearchStats = (options) => (options?.client ?? client).post({
946
+ security: [{ scheme: "bearer", type: "http" }],
947
+ url: "/v1/search/stats",
948
+ ...options,
949
+ headers: {
950
+ "Content-Type": "application/json",
951
+ ...options?.headers
952
+ }
953
+ });
954
+ var searchWords = (options) => (options.client ?? client).post({
955
+ security: [{ scheme: "bearer", type: "http" }],
956
+ url: "/v1/search/words",
957
+ ...options,
958
+ headers: {
959
+ "Content-Type": "application/json",
960
+ ...options.headers
961
+ }
962
+ });
963
+ var listMedia = (options) => (options?.client ?? client).get({
964
+ security: [{ scheme: "bearer", type: "http" }],
965
+ url: "/v1/media",
966
+ ...options
967
+ });
968
+ var createMedia = (options) => (options.client ?? client).post({
969
+ security: [{ scheme: "bearer", type: "http" }],
970
+ url: "/v1/media",
971
+ ...options,
972
+ headers: {
973
+ "Content-Type": "application/json",
974
+ ...options.headers
975
+ }
976
+ });
977
+ var autocompleteMedia = (options) => (options.client ?? client).get({
978
+ security: [{ scheme: "bearer", type: "http" }],
979
+ url: "/v1/media/autocomplete",
980
+ ...options
981
+ });
982
+ var getSegmentByUuid = (options) => (options.client ?? client).get({
983
+ security: [{ scheme: "bearer", type: "http" }],
984
+ url: "/v1/media/segments/{uuid}",
985
+ ...options
986
+ });
987
+ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
988
+ security: [{ scheme: "bearer", type: "http" }],
989
+ url: "/v1/media/segments/{uuid}",
990
+ ...options,
991
+ headers: {
992
+ "Content-Type": "application/json",
993
+ ...options.headers
994
+ }
995
+ });
996
+ var getSegmentContext = (options) => (options.client ?? client).get({
997
+ security: [{ scheme: "bearer", type: "http" }],
998
+ url: "/v1/media/segments/{uuid}/context",
999
+ ...options
1000
+ });
1001
+ var listSegmentRevisions = (options) => (options.client ?? client).get({
1002
+ security: [{ scheme: "bearer", type: "http" }],
1003
+ url: "/v1/media/segments/{uuid}/revisions",
1004
+ ...options
1005
+ });
1006
+ var listSeries = (options) => (options?.client ?? client).get({
1007
+ security: [{ scheme: "bearer", type: "http" }],
1008
+ url: "/v1/media/series",
1009
+ ...options
1010
+ });
1011
+ var createSeries = (options) => (options.client ?? client).post({
1012
+ security: [{ scheme: "bearer", type: "http" }],
1013
+ url: "/v1/media/series",
1014
+ ...options,
1015
+ headers: {
1016
+ "Content-Type": "application/json",
1017
+ ...options.headers
1018
+ }
1019
+ });
1020
+ var deleteSeries = (options) => (options.client ?? client).delete({
1021
+ security: [{ scheme: "bearer", type: "http" }],
1022
+ url: "/v1/media/series/{id}",
1023
+ ...options
1024
+ });
1025
+ var getSeries = (options) => (options.client ?? client).get({
1026
+ security: [{ scheme: "bearer", type: "http" }],
1027
+ url: "/v1/media/series/{id}",
1028
+ ...options
1029
+ });
1030
+ var updateSeries = (options) => (options.client ?? client).patch({
1031
+ security: [{ scheme: "bearer", type: "http" }],
1032
+ url: "/v1/media/series/{id}",
1033
+ ...options,
1034
+ headers: {
1035
+ "Content-Type": "application/json",
1036
+ ...options.headers
1037
+ }
1038
+ });
1039
+ var addMediaToSeries = (options) => (options.client ?? client).post({
1040
+ security: [{ scheme: "bearer", type: "http" }],
1041
+ url: "/v1/media/series/{id}/media",
1042
+ ...options,
1043
+ headers: {
1044
+ "Content-Type": "application/json",
1045
+ ...options.headers
1046
+ }
1047
+ });
1048
+ var removeMediaFromSeries = (options) => (options.client ?? client).delete({
1049
+ security: [{ scheme: "bearer", type: "http" }],
1050
+ url: "/v1/media/series/{id}/media/{mediaId}",
1051
+ ...options
1052
+ });
1053
+ var updateSeriesMedia = (options) => (options.client ?? client).patch({
1054
+ security: [{ scheme: "bearer", type: "http" }],
1055
+ url: "/v1/media/series/{id}/media/{mediaId}",
1056
+ ...options,
1057
+ headers: {
1058
+ "Content-Type": "application/json",
1059
+ ...options.headers
1060
+ }
1061
+ });
1062
+ var getCharacter = (options) => (options.client ?? client).get({
1063
+ security: [{ scheme: "bearer", type: "http" }],
1064
+ url: "/v1/media/characters/{id}",
1065
+ ...options
1066
+ });
1067
+ var getSeiyuu = (options) => (options.client ?? client).get({
1068
+ security: [{ scheme: "bearer", type: "http" }],
1069
+ url: "/v1/media/seiyuu/{id}",
1070
+ ...options
1071
+ });
1072
+ var deleteMedia = (options) => (options.client ?? client).delete({
1073
+ security: [{ scheme: "bearer", type: "http" }],
1074
+ url: "/v1/media/{id}",
1075
+ ...options
1076
+ });
1077
+ var getMedia = (options) => (options.client ?? client).get({
1078
+ security: [{ scheme: "bearer", type: "http" }],
1079
+ url: "/v1/media/{id}",
1080
+ ...options
1081
+ });
1082
+ var updateMedia = (options) => (options.client ?? client).patch({
1083
+ security: [{ scheme: "bearer", type: "http" }],
1084
+ url: "/v1/media/{id}",
1085
+ ...options,
1086
+ headers: {
1087
+ "Content-Type": "application/json",
1088
+ ...options.headers
1089
+ }
1090
+ });
1091
+ var listEpisodes = (options) => (options.client ?? client).get({
1092
+ security: [{ scheme: "bearer", type: "http" }],
1093
+ url: "/v1/media/{mediaId}/episodes",
1094
+ ...options
1095
+ });
1096
+ var createEpisode = (options) => (options.client ?? client).post({
1097
+ security: [{ scheme: "bearer", type: "http" }],
1098
+ url: "/v1/media/{mediaId}/episodes",
1099
+ ...options,
1100
+ headers: {
1101
+ "Content-Type": "application/json",
1102
+ ...options.headers
1103
+ }
1104
+ });
1105
+ var deleteEpisode = (options) => (options.client ?? client).delete({
1106
+ security: [{ scheme: "bearer", type: "http" }],
1107
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1108
+ ...options
1109
+ });
1110
+ var getEpisode = (options) => (options.client ?? client).get({
1111
+ security: [{ scheme: "bearer", type: "http" }],
1112
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1113
+ ...options
1114
+ });
1115
+ var updateEpisode = (options) => (options.client ?? client).patch({
1116
+ security: [{ scheme: "bearer", type: "http" }],
1117
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1118
+ ...options,
1119
+ headers: {
1120
+ "Content-Type": "application/json",
1121
+ ...options.headers
1122
+ }
1123
+ });
1124
+ var listSegments = (options) => (options.client ?? client).get({
1125
+ security: [{ scheme: "bearer", type: "http" }],
1126
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1127
+ ...options
1128
+ });
1129
+ var createSegment = (options) => (options.client ?? client).post({
1130
+ security: [{ scheme: "bearer", type: "http" }],
1131
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1132
+ ...options,
1133
+ headers: {
1134
+ "Content-Type": "application/json",
1135
+ ...options.headers
1136
+ }
1137
+ });
1138
+ var createSegmentsBatch = (options) => (options.client ?? client).post({
1139
+ security: [{ scheme: "bearer", type: "http" }],
1140
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
1141
+ ...options,
1142
+ headers: {
1143
+ "Content-Type": "application/json",
1144
+ ...options.headers
1145
+ }
1146
+ });
1147
+ var deleteSegment = (options) => (options.client ?? client).delete({
1148
+ security: [{ scheme: "bearer", type: "http" }],
1149
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1150
+ ...options
1151
+ });
1152
+ var getSegment = (options) => (options.client ?? client).get({
1153
+ security: [{ scheme: "bearer", type: "http" }],
1154
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1155
+ ...options
1156
+ });
1157
+ var updateSegment = (options) => (options.client ?? client).patch({
1158
+ security: [{ scheme: "bearer", type: "http" }],
1159
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1160
+ ...options,
1161
+ headers: {
1162
+ "Content-Type": "application/json",
1163
+ ...options.headers
1164
+ }
1165
+ });
1166
+ var getUserQuota = (options) => (options?.client ?? client).get({
1167
+ security: [{
869
1168
  in: "cookie",
870
1169
  name: "nadeshiko.session_token",
871
1170
  type: "apiKey"
872
1171
  }],
873
- url: "/v1/search",
1172
+ url: "/v1/user/quota",
1173
+ ...options
1174
+ });
1175
+ var createUserReport = (options) => (options.client ?? client).post({
1176
+ security: [{
1177
+ in: "cookie",
1178
+ name: "nadeshiko.session_token",
1179
+ type: "apiKey"
1180
+ }],
1181
+ url: "/v1/user/reports",
874
1182
  ...options,
875
1183
  headers: {
876
1184
  "Content-Type": "application/json",
877
- ...options?.headers
1185
+ ...options.headers
878
1186
  }
879
1187
  });
880
- var getSearchStats = (options) => (options?.client ?? client).post({
881
- security: [{ scheme: "bearer", type: "http" }, {
1188
+ var getUserPreferences = (options) => (options?.client ?? client).get({
1189
+ security: [{
882
1190
  in: "cookie",
883
1191
  name: "nadeshiko.session_token",
884
1192
  type: "apiKey"
885
1193
  }],
886
- url: "/v1/search/stats",
1194
+ url: "/v1/user/preferences",
1195
+ ...options
1196
+ });
1197
+ var updateUserPreferences = (options) => (options.client ?? client).patch({
1198
+ security: [{
1199
+ in: "cookie",
1200
+ name: "nadeshiko.session_token",
1201
+ type: "apiKey"
1202
+ }],
1203
+ url: "/v1/user/preferences",
887
1204
  ...options,
888
1205
  headers: {
889
1206
  "Content-Type": "application/json",
890
- ...options?.headers
1207
+ ...options.headers
891
1208
  }
892
1209
  });
893
- var searchWords = (options) => (options.client ?? client).post({
894
- security: [{ scheme: "bearer", type: "http" }, {
1210
+ var deleteUserActivity = (options) => (options?.client ?? client).delete({
1211
+ security: [{
895
1212
  in: "cookie",
896
1213
  name: "nadeshiko.session_token",
897
1214
  type: "apiKey"
898
1215
  }],
899
- url: "/v1/search/words",
1216
+ url: "/v1/user/activity",
1217
+ ...options
1218
+ });
1219
+ var listUserActivity = (options) => (options?.client ?? client).get({
1220
+ security: [{
1221
+ in: "cookie",
1222
+ name: "nadeshiko.session_token",
1223
+ type: "apiKey"
1224
+ }],
1225
+ url: "/v1/user/activity",
1226
+ ...options
1227
+ });
1228
+ var trackUserActivity = (options) => (options.client ?? client).post({
1229
+ security: [{
1230
+ in: "cookie",
1231
+ name: "nadeshiko.session_token",
1232
+ type: "apiKey"
1233
+ }],
1234
+ url: "/v1/user/activity",
900
1235
  ...options,
901
1236
  headers: {
902
1237
  "Content-Type": "application/json",
903
1238
  ...options.headers
904
1239
  }
905
1240
  });
906
- var listMedia = (options) => (options?.client ?? client).get({
907
- security: [{ scheme: "bearer", type: "http" }, {
1241
+ var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
1242
+ security: [{
908
1243
  in: "cookie",
909
1244
  name: "nadeshiko.session_token",
910
1245
  type: "apiKey"
911
1246
  }],
912
- url: "/v1/media",
1247
+ url: "/v1/user/activity/heatmap",
913
1248
  ...options
914
1249
  });
915
- var getSegmentByUuid = (options) => (options.client ?? client).get({
916
- security: [{ scheme: "bearer", type: "http" }, {
1250
+ var getUserActivityStats = (options) => (options?.client ?? client).get({
1251
+ security: [{
917
1252
  in: "cookie",
918
1253
  name: "nadeshiko.session_token",
919
1254
  type: "apiKey"
920
1255
  }],
921
- url: "/v1/media/segments/{uuid}",
1256
+ url: "/v1/user/activity/stats",
922
1257
  ...options
923
1258
  });
924
- var getSegmentContext = (options) => (options.client ?? client).get({
925
- security: [{ scheme: "bearer", type: "http" }, {
1259
+ var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
1260
+ security: [{
926
1261
  in: "cookie",
927
1262
  name: "nadeshiko.session_token",
928
1263
  type: "apiKey"
929
1264
  }],
930
- url: "/v1/media/segments/{uuid}/context",
1265
+ url: "/v1/user/activity/date/{date}",
931
1266
  ...options
932
1267
  });
933
- var listSeries = (options) => (options?.client ?? client).get({
934
- security: [{ scheme: "bearer", type: "http" }, {
1268
+ var deleteUserActivityById = (options) => (options.client ?? client).delete({
1269
+ security: [{
935
1270
  in: "cookie",
936
1271
  name: "nadeshiko.session_token",
937
1272
  type: "apiKey"
938
1273
  }],
939
- url: "/v1/media/series",
1274
+ url: "/v1/user/activity/{id}",
940
1275
  ...options
941
1276
  });
942
- var getSeries = (options) => (options.client ?? client).get({
943
- security: [{ scheme: "bearer", type: "http" }, {
1277
+ var exportUserData = (options) => (options?.client ?? client).get({
1278
+ security: [{
944
1279
  in: "cookie",
945
1280
  name: "nadeshiko.session_token",
946
1281
  type: "apiKey"
947
1282
  }],
948
- url: "/v1/media/series/{id}",
1283
+ url: "/v1/user/export",
949
1284
  ...options
950
1285
  });
951
- var getCharacter = (options) => (options.client ?? client).get({
952
- security: [{ scheme: "bearer", type: "http" }, {
1286
+ var listUserLabs = (options) => (options?.client ?? client).get({
1287
+ security: [{
953
1288
  in: "cookie",
954
1289
  name: "nadeshiko.session_token",
955
1290
  type: "apiKey"
956
1291
  }],
957
- url: "/v1/media/characters/{id}",
1292
+ url: "/v1/user/labs",
958
1293
  ...options
959
1294
  });
960
- var getSeiyuu = (options) => (options.client ?? client).get({
961
- security: [{ scheme: "bearer", type: "http" }, {
1295
+ var unenrollUserLab = (options) => (options.client ?? client).delete({
1296
+ security: [{
962
1297
  in: "cookie",
963
1298
  name: "nadeshiko.session_token",
964
1299
  type: "apiKey"
965
1300
  }],
966
- url: "/v1/media/seiyuu/{id}",
1301
+ url: "/v1/user/labs/{key}",
967
1302
  ...options
968
1303
  });
969
- var getMedia = (options) => (options.client ?? client).get({
970
- security: [{ scheme: "bearer", type: "http" }, {
1304
+ var enrollUserLab = (options) => (options.client ?? client).post({
1305
+ security: [{
971
1306
  in: "cookie",
972
1307
  name: "nadeshiko.session_token",
973
1308
  type: "apiKey"
974
1309
  }],
975
- url: "/v1/media/{id}",
1310
+ url: "/v1/user/labs/{key}",
976
1311
  ...options
977
1312
  });
978
- var listEpisodes = (options) => (options.client ?? client).get({
979
- security: [{ scheme: "bearer", type: "http" }, {
1313
+ var listCollections = (options) => (options?.client ?? client).get({
1314
+ security: [{
980
1315
  in: "cookie",
981
1316
  name: "nadeshiko.session_token",
982
1317
  type: "apiKey"
983
1318
  }],
984
- url: "/v1/media/{mediaId}/episodes",
1319
+ url: "/v1/collections",
985
1320
  ...options
986
1321
  });
987
- var getEpisode = (options) => (options.client ?? client).get({
988
- security: [{ scheme: "bearer", type: "http" }, {
1322
+ var createCollection = (options) => (options.client ?? client).post({
1323
+ security: [{
989
1324
  in: "cookie",
990
1325
  name: "nadeshiko.session_token",
991
1326
  type: "apiKey"
992
1327
  }],
993
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1328
+ url: "/v1/collections",
1329
+ ...options,
1330
+ headers: {
1331
+ "Content-Type": "application/json",
1332
+ ...options.headers
1333
+ }
1334
+ });
1335
+ var deleteCollection = (options) => (options.client ?? client).delete({
1336
+ security: [{
1337
+ in: "cookie",
1338
+ name: "nadeshiko.session_token",
1339
+ type: "apiKey"
1340
+ }],
1341
+ url: "/v1/collections/{id}",
994
1342
  ...options
995
1343
  });
996
- var getSegment = (options) => (options.client ?? client).get({
997
- security: [{ scheme: "bearer", type: "http" }, {
1344
+ var getCollection = (options) => (options.client ?? client).get({
1345
+ security: [{
998
1346
  in: "cookie",
999
1347
  name: "nadeshiko.session_token",
1000
1348
  type: "apiKey"
1001
1349
  }],
1002
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1350
+ url: "/v1/collections/{id}",
1351
+ ...options
1352
+ });
1353
+ var updateCollection = (options) => (options.client ?? client).patch({
1354
+ security: [{
1355
+ in: "cookie",
1356
+ name: "nadeshiko.session_token",
1357
+ type: "apiKey"
1358
+ }],
1359
+ url: "/v1/collections/{id}",
1360
+ ...options,
1361
+ headers: {
1362
+ "Content-Type": "application/json",
1363
+ ...options.headers
1364
+ }
1365
+ });
1366
+ var addSegmentToCollection = (options) => (options.client ?? client).post({
1367
+ security: [{
1368
+ in: "cookie",
1369
+ name: "nadeshiko.session_token",
1370
+ type: "apiKey"
1371
+ }],
1372
+ url: "/v1/collections/{id}/segments",
1373
+ ...options,
1374
+ headers: {
1375
+ "Content-Type": "application/json",
1376
+ ...options.headers
1377
+ }
1378
+ });
1379
+ var removeSegmentFromCollection = (options) => (options.client ?? client).delete({
1380
+ security: [{
1381
+ in: "cookie",
1382
+ name: "nadeshiko.session_token",
1383
+ type: "apiKey"
1384
+ }],
1385
+ url: "/v1/collections/{id}/segments/{segmentId}",
1386
+ ...options
1387
+ });
1388
+ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1389
+ security: [{
1390
+ in: "cookie",
1391
+ name: "nadeshiko.session_token",
1392
+ type: "apiKey"
1393
+ }],
1394
+ url: "/v1/collections/{id}/segments/{segmentId}",
1395
+ ...options,
1396
+ headers: {
1397
+ "Content-Type": "application/json",
1398
+ ...options.headers
1399
+ }
1400
+ });
1401
+ var searchCollectionSegments = (options) => (options.client ?? client).get({
1402
+ security: [{
1403
+ in: "cookie",
1404
+ name: "nadeshiko.session_token",
1405
+ type: "apiKey"
1406
+ }],
1407
+ url: "/v1/collections/{id}/search",
1003
1408
  ...options
1004
1409
  });
1005
- // generated/public/retry.ts
1410
+ var getCollectionStats = (options) => (options.client ?? client).get({
1411
+ security: [{
1412
+ in: "cookie",
1413
+ name: "nadeshiko.session_token",
1414
+ type: "apiKey"
1415
+ }],
1416
+ url: "/v1/collections/{id}/stats",
1417
+ ...options
1418
+ });
1419
+ var getAdminDashboard = (options) => (options?.client ?? client).get({
1420
+ security: [{
1421
+ in: "cookie",
1422
+ name: "nadeshiko.session_token",
1423
+ type: "apiKey"
1424
+ }],
1425
+ url: "/v1/admin/dashboard",
1426
+ ...options
1427
+ });
1428
+ var getAdminHealth = (options) => (options?.client ?? client).get({
1429
+ security: [{
1430
+ in: "cookie",
1431
+ name: "nadeshiko.session_token",
1432
+ type: "apiKey"
1433
+ }],
1434
+ url: "/v1/admin/health",
1435
+ ...options
1436
+ });
1437
+ var triggerReindex = (options) => (options?.client ?? client).post({
1438
+ security: [{
1439
+ in: "cookie",
1440
+ name: "nadeshiko.session_token",
1441
+ type: "apiKey"
1442
+ }],
1443
+ url: "/v1/admin/reindex",
1444
+ ...options,
1445
+ headers: {
1446
+ "Content-Type": "application/json",
1447
+ ...options?.headers
1448
+ }
1449
+ });
1450
+ var listAdminQueueStats = (options) => (options?.client ?? client).get({
1451
+ security: [{
1452
+ in: "cookie",
1453
+ name: "nadeshiko.session_token",
1454
+ type: "apiKey"
1455
+ }],
1456
+ url: "/v1/admin/queues/stats",
1457
+ ...options
1458
+ });
1459
+ var getAdminQueue = (options) => (options.client ?? client).get({
1460
+ security: [{
1461
+ in: "cookie",
1462
+ name: "nadeshiko.session_token",
1463
+ type: "apiKey"
1464
+ }],
1465
+ url: "/v1/admin/queues/{queueName}",
1466
+ ...options
1467
+ });
1468
+ var listAdminQueueFailed = (options) => (options.client ?? client).get({
1469
+ security: [{
1470
+ in: "cookie",
1471
+ name: "nadeshiko.session_token",
1472
+ type: "apiKey"
1473
+ }],
1474
+ url: "/v1/admin/queues/{queueName}/failed",
1475
+ ...options
1476
+ });
1477
+ var retryAdminQueueFailed = (options) => (options.client ?? client).post({
1478
+ security: [{
1479
+ in: "cookie",
1480
+ name: "nadeshiko.session_token",
1481
+ type: "apiKey"
1482
+ }],
1483
+ url: "/v1/admin/queues/{queueName}/retry",
1484
+ ...options
1485
+ });
1486
+ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1487
+ security: [{
1488
+ in: "cookie",
1489
+ name: "nadeshiko.session_token",
1490
+ type: "apiKey"
1491
+ }],
1492
+ url: "/v1/admin/queues/{queueName}/purge",
1493
+ ...options
1494
+ });
1495
+ var clearAdminImpersonation = (options) => (options?.client ?? client).delete({ url: "/v1/admin/impersonation", ...options });
1496
+ var impersonateAdminUser = (options) => (options.client ?? client).post({
1497
+ url: "/v1/admin/impersonation",
1498
+ ...options,
1499
+ headers: {
1500
+ "Content-Type": "application/json",
1501
+ ...options.headers
1502
+ }
1503
+ });
1504
+ var listAdminReports = (options) => (options?.client ?? client).get({
1505
+ security: [{
1506
+ in: "cookie",
1507
+ name: "nadeshiko.session_token",
1508
+ type: "apiKey"
1509
+ }],
1510
+ url: "/v1/admin/reports",
1511
+ ...options
1512
+ });
1513
+ var batchUpdateAdminReports = (options) => (options.client ?? client).patch({
1514
+ security: [{
1515
+ in: "cookie",
1516
+ name: "nadeshiko.session_token",
1517
+ type: "apiKey"
1518
+ }],
1519
+ url: "/v1/admin/reports/batch",
1520
+ ...options,
1521
+ headers: {
1522
+ "Content-Type": "application/json",
1523
+ ...options.headers
1524
+ }
1525
+ });
1526
+ var updateAdminReport = (options) => (options.client ?? client).patch({
1527
+ security: [{
1528
+ in: "cookie",
1529
+ name: "nadeshiko.session_token",
1530
+ type: "apiKey"
1531
+ }],
1532
+ url: "/v1/admin/reports/{id}",
1533
+ ...options,
1534
+ headers: {
1535
+ "Content-Type": "application/json",
1536
+ ...options.headers
1537
+ }
1538
+ });
1539
+ var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1540
+ security: [{
1541
+ in: "cookie",
1542
+ name: "nadeshiko.session_token",
1543
+ type: "apiKey"
1544
+ }],
1545
+ url: "/v1/admin/media/audits",
1546
+ ...options
1547
+ });
1548
+ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1549
+ security: [{
1550
+ in: "cookie",
1551
+ name: "nadeshiko.session_token",
1552
+ type: "apiKey"
1553
+ }],
1554
+ url: "/v1/admin/media/audits/{name}",
1555
+ ...options,
1556
+ headers: {
1557
+ "Content-Type": "application/json",
1558
+ ...options.headers
1559
+ }
1560
+ });
1561
+ var runAdminMediaAudit = (options) => (options.client ?? client).post({
1562
+ security: [{
1563
+ in: "cookie",
1564
+ name: "nadeshiko.session_token",
1565
+ type: "apiKey"
1566
+ }],
1567
+ url: "/v1/admin/media/audits/{name}/run",
1568
+ ...options
1569
+ });
1570
+ var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1571
+ security: [{
1572
+ in: "cookie",
1573
+ name: "nadeshiko.session_token",
1574
+ type: "apiKey"
1575
+ }],
1576
+ url: "/v1/admin/media/audits/runs",
1577
+ ...options
1578
+ });
1579
+ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1580
+ security: [{
1581
+ in: "cookie",
1582
+ name: "nadeshiko.session_token",
1583
+ type: "apiKey"
1584
+ }],
1585
+ url: "/v1/admin/media/audits/runs/{id}",
1586
+ ...options
1587
+ });
1588
+ var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
1589
+ var updateAnnouncement = (options) => (options.client ?? client).put({
1590
+ security: [{
1591
+ in: "cookie",
1592
+ name: "nadeshiko.session_token",
1593
+ type: "apiKey"
1594
+ }],
1595
+ url: "/v1/admin/announcement",
1596
+ ...options,
1597
+ headers: {
1598
+ "Content-Type": "application/json",
1599
+ ...options.headers
1600
+ }
1601
+ });
1602
+ // generated/internal/retry.ts
1006
1603
  var RETRYABLE_STATUS = new Set([408, 429, 500, 502, 503, 504]);
1007
1604
  function parseRetryAfter(value) {
1008
1605
  const seconds = Number(value);
@@ -1072,7 +1669,7 @@ function withRetry(fetchImpl = globalThis.fetch, options = {}) {
1072
1669
  };
1073
1670
  }
1074
1671
 
1075
- // generated/public/errors.ts
1672
+ // generated/internal/errors.ts
1076
1673
  class NadeshikoError extends Error {
1077
1674
  code;
1078
1675
  title;
@@ -1094,13 +1691,19 @@ class NadeshikoError extends Error {
1094
1691
  }
1095
1692
  }
1096
1693
 
1097
- // generated/public/nadeshiko.gen.ts
1694
+ // generated/internal/nadeshiko.gen.ts
1098
1695
  var environments = {
1099
1696
  LOCAL: "http://localhost:5000/api",
1100
1697
  DEVELOPMENT: "https://api-dev.nadeshiko.co",
1101
1698
  PRODUCTION: "https://api.nadeshiko.co",
1102
1699
  PROXY: ""
1103
1700
  };
1701
+ var defaultSessionTokenGetter = () => {
1702
+ if (typeof document === "undefined")
1703
+ return;
1704
+ const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
1705
+ return match ? decodeURIComponent(match[1]) : undefined;
1706
+ };
1104
1707
  function createNadeshikoClient(config) {
1105
1708
  const rawBaseUrl = config.baseURL ?? config.baseUrl;
1106
1709
  const baseUrl = rawBaseUrl === undefined ? environments.PRODUCTION : (rawBaseUrl in environments) ? environments[rawBaseUrl] : rawBaseUrl;
@@ -1110,10 +1713,16 @@ function createNadeshikoClient(config) {
1110
1713
  }
1111
1714
  return config.apiKey;
1112
1715
  };
1716
+ const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
1113
1717
  const clientInstance = createClient(createConfig({
1114
1718
  baseUrl,
1115
1719
  fetch: withRetry(globalThis.fetch, config.retryOptions),
1116
- auth: () => getApiKey()
1720
+ auth: (auth) => {
1721
+ if (auth.in === "cookie") {
1722
+ return getSessionToken();
1723
+ }
1724
+ return getApiKey();
1725
+ }
1117
1726
  }));
1118
1727
  clientInstance.interceptors.error.use((error) => {
1119
1728
  if (error && typeof error === "object" && "code" in error && typeof error.code === "string") {
@@ -1131,15 +1740,163 @@ function createNadeshikoClient(config) {
1131
1740
  getSegmentContext: (options) => getSegmentContext({ throwOnError: true, ...options, client: clientInstance }),
1132
1741
  listSeries: (options) => listSeries({ throwOnError: true, ...options, client: clientInstance }),
1133
1742
  getSeries: (options) => getSeries({ throwOnError: true, ...options, client: clientInstance }),
1134
- getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
1135
- getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
1136
1743
  getMedia: (options) => getMedia({ throwOnError: true, ...options, client: clientInstance }),
1137
1744
  listEpisodes: (options) => listEpisodes({ throwOnError: true, ...options, client: clientInstance }),
1138
1745
  getEpisode: (options) => getEpisode({ throwOnError: true, ...options, client: clientInstance }),
1139
- getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance })
1746
+ getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance }),
1747
+ createMedia: (options) => createMedia({ throwOnError: true, ...options, client: clientInstance }),
1748
+ autocompleteMedia: (options) => autocompleteMedia({ throwOnError: true, ...options, client: clientInstance }),
1749
+ updateSegmentByUuid: (options) => updateSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
1750
+ listSegmentRevisions: (options) => listSegmentRevisions({ throwOnError: true, ...options, client: clientInstance }),
1751
+ createSeries: (options) => createSeries({ throwOnError: true, ...options, client: clientInstance }),
1752
+ updateSeries: (options) => updateSeries({ throwOnError: true, ...options, client: clientInstance }),
1753
+ deleteSeries: (options) => deleteSeries({ throwOnError: true, ...options, client: clientInstance }),
1754
+ addMediaToSeries: (options) => addMediaToSeries({ throwOnError: true, ...options, client: clientInstance }),
1755
+ updateSeriesMedia: (options) => updateSeriesMedia({ throwOnError: true, ...options, client: clientInstance }),
1756
+ removeMediaFromSeries: (options) => removeMediaFromSeries({ throwOnError: true, ...options, client: clientInstance }),
1757
+ getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
1758
+ getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
1759
+ updateMedia: (options) => updateMedia({ throwOnError: true, ...options, client: clientInstance }),
1760
+ deleteMedia: (options) => deleteMedia({ throwOnError: true, ...options, client: clientInstance }),
1761
+ createEpisode: (options) => createEpisode({ throwOnError: true, ...options, client: clientInstance }),
1762
+ updateEpisode: (options) => updateEpisode({ throwOnError: true, ...options, client: clientInstance }),
1763
+ deleteEpisode: (options) => deleteEpisode({ throwOnError: true, ...options, client: clientInstance }),
1764
+ listSegments: (options) => listSegments({ throwOnError: true, ...options, client: clientInstance }),
1765
+ createSegment: (options) => createSegment({ throwOnError: true, ...options, client: clientInstance }),
1766
+ createSegmentsBatch: (options) => createSegmentsBatch({ throwOnError: true, ...options, client: clientInstance }),
1767
+ updateSegment: (options) => updateSegment({ throwOnError: true, ...options, client: clientInstance }),
1768
+ deleteSegment: (options) => deleteSegment({ throwOnError: true, ...options, client: clientInstance }),
1769
+ getUserQuota: (options) => getUserQuota({ throwOnError: true, ...options, client: clientInstance }),
1770
+ createUserReport: (options) => createUserReport({ throwOnError: true, ...options, client: clientInstance }),
1771
+ getUserPreferences: (options) => getUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
1772
+ updateUserPreferences: (options) => updateUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
1773
+ listUserActivity: (options) => listUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1774
+ trackUserActivity: (options) => trackUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1775
+ deleteUserActivity: (options) => deleteUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1776
+ getUserActivityHeatmap: (options) => getUserActivityHeatmap({ throwOnError: true, ...options, client: clientInstance }),
1777
+ getUserActivityStats: (options) => getUserActivityStats({ throwOnError: true, ...options, client: clientInstance }),
1778
+ deleteUserActivityByDate: (options) => deleteUserActivityByDate({ throwOnError: true, ...options, client: clientInstance }),
1779
+ deleteUserActivityById: (options) => deleteUserActivityById({ throwOnError: true, ...options, client: clientInstance }),
1780
+ exportUserData: (options) => exportUserData({ throwOnError: true, ...options, client: clientInstance }),
1781
+ listUserLabs: (options) => listUserLabs({ throwOnError: true, ...options, client: clientInstance }),
1782
+ enrollUserLab: (options) => enrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
1783
+ unenrollUserLab: (options) => unenrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
1784
+ listCollections: (options) => listCollections({ throwOnError: true, ...options, client: clientInstance }),
1785
+ createCollection: (options) => createCollection({ throwOnError: true, ...options, client: clientInstance }),
1786
+ getCollection: (options) => getCollection({ throwOnError: true, ...options, client: clientInstance }),
1787
+ updateCollection: (options) => updateCollection({ throwOnError: true, ...options, client: clientInstance }),
1788
+ deleteCollection: (options) => deleteCollection({ throwOnError: true, ...options, client: clientInstance }),
1789
+ addSegmentToCollection: (options) => addSegmentToCollection({ throwOnError: true, ...options, client: clientInstance }),
1790
+ updateCollectionSegment: (options) => updateCollectionSegment({ throwOnError: true, ...options, client: clientInstance }),
1791
+ removeSegmentFromCollection: (options) => removeSegmentFromCollection({ throwOnError: true, ...options, client: clientInstance }),
1792
+ searchCollectionSegments: (options) => searchCollectionSegments({ throwOnError: true, ...options, client: clientInstance }),
1793
+ getCollectionStats: (options) => getCollectionStats({ throwOnError: true, ...options, client: clientInstance }),
1794
+ getAdminDashboard: (options) => getAdminDashboard({ throwOnError: true, ...options, client: clientInstance }),
1795
+ getAdminHealth: (options) => getAdminHealth({ throwOnError: true, ...options, client: clientInstance }),
1796
+ triggerReindex: (options) => triggerReindex({ throwOnError: true, ...options, client: clientInstance }),
1797
+ listAdminQueueStats: (options) => listAdminQueueStats({ throwOnError: true, ...options, client: clientInstance }),
1798
+ getAdminQueue: (options) => getAdminQueue({ throwOnError: true, ...options, client: clientInstance }),
1799
+ listAdminQueueFailed: (options) => listAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1800
+ retryAdminQueueFailed: (options) => retryAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1801
+ purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1802
+ impersonateAdminUser: (options) => impersonateAdminUser({ throwOnError: true, ...options, client: clientInstance }),
1803
+ clearAdminImpersonation: (options) => clearAdminImpersonation({ throwOnError: true, ...options, client: clientInstance }),
1804
+ listAdminReports: (options) => listAdminReports({ throwOnError: true, ...options, client: clientInstance }),
1805
+ batchUpdateAdminReports: (options) => batchUpdateAdminReports({ throwOnError: true, ...options, client: clientInstance }),
1806
+ updateAdminReport: (options) => updateAdminReport({ throwOnError: true, ...options, client: clientInstance }),
1807
+ listAdminMediaAudits: (options) => listAdminMediaAudits({ throwOnError: true, ...options, client: clientInstance }),
1808
+ updateAdminMediaAudit: (options) => updateAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
1809
+ runAdminMediaAudit: (options) => runAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
1810
+ listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ throwOnError: true, ...options, client: clientInstance }),
1811
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ throwOnError: true, ...options, client: clientInstance }),
1812
+ getAnnouncement: (options) => getAnnouncement({ throwOnError: true, ...options, client: clientInstance }),
1813
+ updateAnnouncement: (options) => updateAnnouncement({ throwOnError: true, ...options, client: clientInstance })
1140
1814
  };
1141
1815
  }
1142
- // generated/public/paginate.ts
1816
+ // generated/internal/internal/media.gen.ts
1817
+ var exports_media_gen = {};
1818
+ __export(exports_media_gen, {
1819
+ updateSeriesMedia: () => updateSeriesMedia,
1820
+ updateSeries: () => updateSeries,
1821
+ updateSegmentByUuid: () => updateSegmentByUuid,
1822
+ updateSegment: () => updateSegment,
1823
+ updateMedia: () => updateMedia,
1824
+ updateEpisode: () => updateEpisode,
1825
+ removeMediaFromSeries: () => removeMediaFromSeries,
1826
+ listSegments: () => listSegments,
1827
+ listSegmentRevisions: () => listSegmentRevisions,
1828
+ getSeiyuu: () => getSeiyuu,
1829
+ getCharacter: () => getCharacter,
1830
+ deleteSeries: () => deleteSeries,
1831
+ deleteSegment: () => deleteSegment,
1832
+ deleteMedia: () => deleteMedia,
1833
+ deleteEpisode: () => deleteEpisode,
1834
+ createSeries: () => createSeries,
1835
+ createSegmentsBatch: () => createSegmentsBatch,
1836
+ createSegment: () => createSegment,
1837
+ createMedia: () => createMedia,
1838
+ createEpisode: () => createEpisode,
1839
+ autocompleteMedia: () => autocompleteMedia,
1840
+ addMediaToSeries: () => addMediaToSeries
1841
+ });
1842
+ // generated/internal/internal/user.gen.ts
1843
+ var exports_user_gen = {};
1844
+ __export(exports_user_gen, {
1845
+ updateUserPreferences: () => updateUserPreferences,
1846
+ unenrollUserLab: () => unenrollUserLab,
1847
+ trackUserActivity: () => trackUserActivity,
1848
+ listUserLabs: () => listUserLabs,
1849
+ listUserActivity: () => listUserActivity,
1850
+ getUserQuota: () => getUserQuota,
1851
+ getUserPreferences: () => getUserPreferences,
1852
+ getUserActivityStats: () => getUserActivityStats,
1853
+ getUserActivityHeatmap: () => getUserActivityHeatmap,
1854
+ exportUserData: () => exportUserData,
1855
+ enrollUserLab: () => enrollUserLab,
1856
+ deleteUserActivityById: () => deleteUserActivityById,
1857
+ deleteUserActivityByDate: () => deleteUserActivityByDate,
1858
+ deleteUserActivity: () => deleteUserActivity,
1859
+ createUserReport: () => createUserReport
1860
+ });
1861
+ // generated/internal/internal/collections.gen.ts
1862
+ var exports_collections_gen = {};
1863
+ __export(exports_collections_gen, {
1864
+ updateCollectionSegment: () => updateCollectionSegment,
1865
+ updateCollection: () => updateCollection,
1866
+ searchCollectionSegments: () => searchCollectionSegments,
1867
+ removeSegmentFromCollection: () => removeSegmentFromCollection,
1868
+ listCollections: () => listCollections,
1869
+ getCollectionStats: () => getCollectionStats,
1870
+ getCollection: () => getCollection,
1871
+ deleteCollection: () => deleteCollection,
1872
+ createCollection: () => createCollection,
1873
+ addSegmentToCollection: () => addSegmentToCollection
1874
+ });
1875
+ // generated/internal/internal/admin.gen.ts
1876
+ var exports_admin_gen = {};
1877
+ __export(exports_admin_gen, {
1878
+ updateAnnouncement: () => updateAnnouncement,
1879
+ updateAdminReport: () => updateAdminReport,
1880
+ updateAdminMediaAudit: () => updateAdminMediaAudit,
1881
+ triggerReindex: () => triggerReindex,
1882
+ runAdminMediaAudit: () => runAdminMediaAudit,
1883
+ retryAdminQueueFailed: () => retryAdminQueueFailed,
1884
+ purgeAdminQueueFailed: () => purgeAdminQueueFailed,
1885
+ listAdminReports: () => listAdminReports,
1886
+ listAdminQueueStats: () => listAdminQueueStats,
1887
+ listAdminQueueFailed: () => listAdminQueueFailed,
1888
+ listAdminMediaAudits: () => listAdminMediaAudits,
1889
+ listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1890
+ impersonateAdminUser: () => impersonateAdminUser,
1891
+ getAnnouncement: () => getAnnouncement,
1892
+ getAdminQueue: () => getAdminQueue,
1893
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1894
+ getAdminHealth: () => getAdminHealth,
1895
+ getAdminDashboard: () => getAdminDashboard,
1896
+ clearAdminImpersonation: () => clearAdminImpersonation,
1897
+ batchUpdateAdminReports: () => batchUpdateAdminReports
1898
+ });
1899
+ // generated/internal/paginate.ts
1143
1900
  async function* paginate(fn, options, extract) {
1144
1901
  let cursor = null;
1145
1902
  let first = true;
@@ -1169,5 +1926,5 @@ function patchCursor(options, cursor) {
1169
1926
  return { ...options, body: { cursor } };
1170
1927
  }
1171
1928
 
1172
- //# debugId=0CDF30D46DAD7A7B64756E2164756E21
1929
+ //# debugId=E987DF161492270D64756E2164756E21
1173
1930
  //# sourceMappingURL=index.js.map