@brigadasos/nadeshiko-sdk 2.0.7-internal → 2.0.7

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