@brigadasos/nadeshiko-sdk 2.0.4-internal → 2.0.4

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