@brigadasos/nadeshiko-sdk 2.2.0 → 2.2.1-internal.53bb652

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 (40) 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 +840 -23
  16. package/dist/index.cjs.map +5 -5
  17. package/dist/index.d.ts +3 -3
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +851 -19
  20. package/dist/index.js.map +5 -5
  21. package/dist/internal/admin.gen.d.ts +2 -0
  22. package/dist/internal/admin.gen.d.ts.map +1 -0
  23. package/dist/internal/collections.gen.d.ts +2 -0
  24. package/dist/internal/collections.gen.d.ts.map +1 -0
  25. package/dist/internal/media.gen.d.ts +2 -0
  26. package/dist/internal/media.gen.d.ts.map +1 -0
  27. package/dist/internal/stats.gen.d.ts +2 -0
  28. package/dist/internal/stats.gen.d.ts.map +1 -0
  29. package/dist/internal/user.gen.d.ts +2 -0
  30. package/dist/internal/user.gen.d.ts.map +1 -0
  31. package/dist/internal.gen.d.ts +6 -0
  32. package/dist/internal.gen.d.ts.map +1 -0
  33. package/dist/nadeshiko.gen.d.ts +592 -2
  34. package/dist/nadeshiko.gen.d.ts.map +1 -1
  35. package/dist/paginate.d.ts.map +1 -1
  36. package/dist/retry.d.ts.map +1 -1
  37. package/dist/sdk.gen.d.ts +41 -1
  38. package/dist/sdk.gen.d.ts.map +1 -1
  39. package/dist/types.gen.d.ts.map +1 -1
  40. package/package.json +4 -3
package/dist/index.js CHANGED
@@ -1,8 +1,23 @@
1
- // generated/public/core/bodySerializer.gen.ts
1
+ var __defProp = Object.defineProperty;
2
+ var __returnValue = (v) => v;
3
+ function __exportSetter(name, newValue) {
4
+ this[name] = __returnValue.bind(null, newValue);
5
+ }
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true,
11
+ configurable: true,
12
+ set: __exportSetter.bind(all, name)
13
+ });
14
+ };
15
+
16
+ // generated/internal/core/bodySerializer.gen.ts
2
17
  var jsonBodySerializer = {
3
18
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
4
19
  };
5
- // generated/public/core/params.gen.ts
20
+ // generated/internal/core/params.gen.ts
6
21
  var extraPrefixesMap = {
7
22
  $body_: "body",
8
23
  $headers_: "headers",
@@ -10,7 +25,7 @@ var extraPrefixesMap = {
10
25
  $query_: "query"
11
26
  };
12
27
  var extraPrefixes = Object.entries(extraPrefixesMap);
13
- // generated/public/core/serverSentEvents.gen.ts
28
+ // generated/internal/core/serverSentEvents.gen.ts
14
29
  var createSseClient = ({
15
30
  onRequest,
16
31
  onSseError,
@@ -146,7 +161,7 @@ var createSseClient = ({
146
161
  return { stream };
147
162
  };
148
163
 
149
- // generated/public/core/pathSerializer.gen.ts
164
+ // generated/internal/core/pathSerializer.gen.ts
150
165
  var separatorArrayExplode = (style) => {
151
166
  switch (style) {
152
167
  case "label":
@@ -270,7 +285,7 @@ var serializeObjectParam = ({
270
285
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
271
286
  };
272
287
 
273
- // generated/public/core/utils.gen.ts
288
+ // generated/internal/core/utils.gen.ts
274
289
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
275
290
  var defaultPathSerializer = ({ path, url: _url }) => {
276
291
  let url = _url;
@@ -359,7 +374,7 @@ function getValidRequestBody(options) {
359
374
  return;
360
375
  }
361
376
 
362
- // generated/public/core/auth.gen.ts
377
+ // generated/internal/core/auth.gen.ts
363
378
  var getAuthToken = async (auth, callback) => {
364
379
  const token = typeof callback === "function" ? await callback(auth) : callback;
365
380
  if (!token) {
@@ -374,7 +389,7 @@ var getAuthToken = async (auth, callback) => {
374
389
  return token;
375
390
  };
376
391
 
377
- // generated/public/client/utils.gen.ts
392
+ // generated/internal/client/utils.gen.ts
378
393
  var createQuerySerializer = ({
379
394
  parameters = {},
380
395
  ...args
@@ -591,7 +606,7 @@ var createConfig = (override = {}) => ({
591
606
  ...override
592
607
  });
593
608
 
594
- // generated/public/client/client.gen.ts
609
+ // generated/internal/client/client.gen.ts
595
610
  var createClient = (config = {}) => {
596
611
  let _config = mergeConfigs(createConfig(), config);
597
612
  const getConfig = () => ({ ..._config });
@@ -797,10 +812,10 @@ var createClient = (config = {}) => {
797
812
  trace: makeMethodFn("TRACE")
798
813
  };
799
814
  };
800
- // generated/public/client.gen.ts
815
+ // generated/internal/client.gen.ts
801
816
  var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
802
817
 
803
- // generated/public/sdk.gen.ts
818
+ // generated/internal/sdk.gen.ts
804
819
  var search = (options) => (options.client ?? client).post({
805
820
  security: [{ scheme: "bearer", type: "http" }],
806
821
  url: "/v1/search",
@@ -842,36 +857,137 @@ var getStatsOverview = (options) => (options?.client ?? client).get({
842
857
  url: "/v1/stats/overview",
843
858
  ...options
844
859
  });
860
+ var getCoveredWords = (options) => (options.client ?? client).get({
861
+ security: [{ scheme: "bearer", type: "http" }],
862
+ url: "/v1/stats/covered-words",
863
+ ...options
864
+ });
865
+ var triggerCoveredWordsUpdate = (options) => (options?.client ?? client).post({
866
+ security: [{
867
+ in: "cookie",
868
+ name: "nadeshiko.session_token",
869
+ type: "apiKey"
870
+ }],
871
+ url: "/v1/stats/covered-words/update",
872
+ ...options,
873
+ headers: {
874
+ "Content-Type": "application/json",
875
+ ...options?.headers
876
+ }
877
+ });
845
878
  var listMedia = (options) => (options?.client ?? client).get({
846
879
  security: [{ scheme: "bearer", type: "http" }],
847
880
  url: "/v1/media",
848
881
  ...options
849
882
  });
883
+ var createMedia = (options) => (options.client ?? client).post({
884
+ security: [{ scheme: "bearer", type: "http" }],
885
+ url: "/v1/media",
886
+ ...options,
887
+ headers: {
888
+ "Content-Type": "application/json",
889
+ ...options.headers
890
+ }
891
+ });
850
892
  var getSegment = (options) => (options.client ?? client).get({
851
893
  security: [{ scheme: "bearer", type: "http" }],
852
894
  url: "/v1/media/segments/{segmentPublicId}",
853
895
  ...options
854
896
  });
897
+ var updateSegment = (options) => (options.client ?? client).patch({
898
+ security: [{ scheme: "bearer", type: "http" }],
899
+ url: "/v1/media/segments/{segmentPublicId}",
900
+ ...options,
901
+ headers: {
902
+ "Content-Type": "application/json",
903
+ ...options.headers
904
+ }
905
+ });
855
906
  var getSegmentContext = (options) => (options.client ?? client).get({
856
907
  security: [{ scheme: "bearer", type: "http" }],
857
908
  url: "/v1/media/segments/{segmentPublicId}/context",
858
909
  ...options
859
910
  });
911
+ var listSegmentRevisions = (options) => (options.client ?? client).get({
912
+ security: [{ scheme: "bearer", type: "http" }],
913
+ url: "/v1/media/segments/{segmentPublicId}/revisions",
914
+ ...options
915
+ });
916
+ var deleteMedia = (options) => (options.client ?? client).delete({
917
+ security: [{ scheme: "bearer", type: "http" }],
918
+ url: "/v1/media/{mediaPublicId}",
919
+ ...options
920
+ });
860
921
  var getMedia = (options) => (options.client ?? client).get({
861
922
  security: [{ scheme: "bearer", type: "http" }],
862
923
  url: "/v1/media/{mediaPublicId}",
863
924
  ...options
864
925
  });
926
+ var updateMedia = (options) => (options.client ?? client).patch({
927
+ security: [{ scheme: "bearer", type: "http" }],
928
+ url: "/v1/media/{mediaPublicId}",
929
+ ...options,
930
+ headers: {
931
+ "Content-Type": "application/json",
932
+ ...options.headers
933
+ }
934
+ });
865
935
  var listEpisodes = (options) => (options.client ?? client).get({
866
936
  security: [{ scheme: "bearer", type: "http" }],
867
937
  url: "/v1/media/{mediaPublicId}/episodes",
868
938
  ...options
869
939
  });
940
+ var createEpisode = (options) => (options.client ?? client).post({
941
+ security: [{ scheme: "bearer", type: "http" }],
942
+ url: "/v1/media/{mediaPublicId}/episodes",
943
+ ...options,
944
+ headers: {
945
+ "Content-Type": "application/json",
946
+ ...options.headers
947
+ }
948
+ });
949
+ var deleteEpisode = (options) => (options.client ?? client).delete({
950
+ security: [{ scheme: "bearer", type: "http" }],
951
+ url: "/v1/media/{mediaPublicId}/episodes/{episodeNumber}",
952
+ ...options
953
+ });
870
954
  var getEpisode = (options) => (options.client ?? client).get({
871
955
  security: [{ scheme: "bearer", type: "http" }],
872
956
  url: "/v1/media/{mediaPublicId}/episodes/{episodeNumber}",
873
957
  ...options
874
958
  });
959
+ var updateEpisode = (options) => (options.client ?? client).patch({
960
+ security: [{ scheme: "bearer", type: "http" }],
961
+ url: "/v1/media/{mediaPublicId}/episodes/{episodeNumber}",
962
+ ...options,
963
+ headers: {
964
+ "Content-Type": "application/json",
965
+ ...options.headers
966
+ }
967
+ });
968
+ var listSegments = (options) => (options.client ?? client).get({
969
+ security: [{ scheme: "bearer", type: "http" }],
970
+ url: "/v1/media/{mediaPublicId}/episodes/{episodeNumber}/segments",
971
+ ...options
972
+ });
973
+ var createSegment = (options) => (options.client ?? client).post({
974
+ security: [{ scheme: "bearer", type: "http" }],
975
+ url: "/v1/media/{mediaPublicId}/episodes/{episodeNumber}/segments",
976
+ ...options,
977
+ headers: {
978
+ "Content-Type": "application/json",
979
+ ...options.headers
980
+ }
981
+ });
982
+ var createSegmentsBatch = (options) => (options.client ?? client).post({
983
+ security: [{ scheme: "bearer", type: "http" }],
984
+ url: "/v1/media/{mediaPublicId}/episodes/{episodeNumber}/segments/batch",
985
+ ...options,
986
+ headers: {
987
+ "Content-Type": "application/json",
988
+ ...options.headers
989
+ }
990
+ });
875
991
  var getMe = (options) => (options?.client ?? client).get({
876
992
  security: [{ scheme: "bearer", type: "http" }],
877
993
  url: "/v1/user/me",
@@ -896,11 +1012,68 @@ var removeExcludedMedia = (options) => (options.client ?? client).delete({
896
1012
  url: "/v1/user/excluded-media/{mediaPublicId}",
897
1013
  ...options
898
1014
  });
1015
+ var createUserReport = (options) => (options.client ?? client).post({
1016
+ security: [{
1017
+ in: "cookie",
1018
+ name: "nadeshiko.session_token",
1019
+ type: "apiKey"
1020
+ }],
1021
+ url: "/v1/user/reports",
1022
+ ...options,
1023
+ headers: {
1024
+ "Content-Type": "application/json",
1025
+ ...options.headers
1026
+ }
1027
+ });
1028
+ var getUserPreferences = (options) => (options?.client ?? client).get({
1029
+ security: [{
1030
+ in: "cookie",
1031
+ name: "nadeshiko.session_token",
1032
+ type: "apiKey"
1033
+ }],
1034
+ url: "/v1/user/preferences",
1035
+ ...options
1036
+ });
1037
+ var updateUserPreferences = (options) => (options.client ?? client).patch({
1038
+ security: [{
1039
+ in: "cookie",
1040
+ name: "nadeshiko.session_token",
1041
+ type: "apiKey"
1042
+ }],
1043
+ url: "/v1/user/preferences",
1044
+ ...options,
1045
+ headers: {
1046
+ "Content-Type": "application/json",
1047
+ ...options.headers
1048
+ }
1049
+ });
1050
+ var deleteUserActivity = (options) => (options?.client ?? client).delete({
1051
+ security: [{
1052
+ in: "cookie",
1053
+ name: "nadeshiko.session_token",
1054
+ type: "apiKey"
1055
+ }],
1056
+ url: "/v1/user/activity",
1057
+ ...options
1058
+ });
899
1059
  var listUserActivity = (options) => (options?.client ?? client).get({
900
1060
  security: [{ scheme: "bearer", type: "http" }],
901
1061
  url: "/v1/user/activity",
902
1062
  ...options
903
1063
  });
1064
+ var trackUserActivity = (options) => (options.client ?? client).post({
1065
+ security: [{
1066
+ in: "cookie",
1067
+ name: "nadeshiko.session_token",
1068
+ type: "apiKey"
1069
+ }],
1070
+ url: "/v1/user/activity",
1071
+ ...options,
1072
+ headers: {
1073
+ "Content-Type": "application/json",
1074
+ ...options.headers
1075
+ }
1076
+ });
904
1077
  var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
905
1078
  security: [{ scheme: "bearer", type: "http" }],
906
1079
  url: "/v1/user/activity/heatmap",
@@ -911,6 +1084,60 @@ var getUserActivityStats = (options) => (options?.client ?? client).get({
911
1084
  url: "/v1/user/activity/stats",
912
1085
  ...options
913
1086
  });
1087
+ var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
1088
+ security: [{
1089
+ in: "cookie",
1090
+ name: "nadeshiko.session_token",
1091
+ type: "apiKey"
1092
+ }],
1093
+ url: "/v1/user/activity/date/{date}",
1094
+ ...options
1095
+ });
1096
+ var deleteUserActivityById = (options) => (options.client ?? client).delete({
1097
+ security: [{
1098
+ in: "cookie",
1099
+ name: "nadeshiko.session_token",
1100
+ type: "apiKey"
1101
+ }],
1102
+ url: "/v1/user/activity/{activityId}",
1103
+ ...options
1104
+ });
1105
+ var exportUserData = (options) => (options?.client ?? client).get({
1106
+ security: [{
1107
+ in: "cookie",
1108
+ name: "nadeshiko.session_token",
1109
+ type: "apiKey"
1110
+ }],
1111
+ url: "/v1/user/export",
1112
+ ...options
1113
+ });
1114
+ var listUserLabs = (options) => (options?.client ?? client).get({
1115
+ security: [{
1116
+ in: "cookie",
1117
+ name: "nadeshiko.session_token",
1118
+ type: "apiKey"
1119
+ }],
1120
+ url: "/v1/user/labs",
1121
+ ...options
1122
+ });
1123
+ var unenrollUserLab = (options) => (options.client ?? client).delete({
1124
+ security: [{
1125
+ in: "cookie",
1126
+ name: "nadeshiko.session_token",
1127
+ type: "apiKey"
1128
+ }],
1129
+ url: "/v1/user/labs/{key}",
1130
+ ...options
1131
+ });
1132
+ var enrollUserLab = (options) => (options.client ?? client).post({
1133
+ security: [{
1134
+ in: "cookie",
1135
+ name: "nadeshiko.session_token",
1136
+ type: "apiKey"
1137
+ }],
1138
+ url: "/v1/user/labs/{key}",
1139
+ ...options
1140
+ });
914
1141
  var listCollections = (options) => (options?.client ?? client).get({
915
1142
  security: [{ scheme: "bearer", type: "http" }],
916
1143
  url: "/v1/collections",
@@ -935,6 +1162,19 @@ var getCollection = (options) => (options.client ?? client).get({
935
1162
  url: "/v1/collections/{collectionPublicId}",
936
1163
  ...options
937
1164
  });
1165
+ var updateCollection = (options) => (options.client ?? client).patch({
1166
+ security: [{
1167
+ in: "cookie",
1168
+ name: "nadeshiko.session_token",
1169
+ type: "apiKey"
1170
+ }],
1171
+ url: "/v1/collections/{collectionPublicId}",
1172
+ ...options,
1173
+ headers: {
1174
+ "Content-Type": "application/json",
1175
+ ...options.headers
1176
+ }
1177
+ });
938
1178
  var addSegmentToCollection = (options) => (options.client ?? client).post({
939
1179
  security: [{ scheme: "bearer", type: "http" }],
940
1180
  url: "/v1/collections/{collectionPublicId}/segments",
@@ -958,7 +1198,162 @@ var removeSegmentFromCollection = (options) => (options.client ?? client).delete
958
1198
  url: "/v1/collections/{collectionPublicId}/segments/{segmentPublicId}",
959
1199
  ...options
960
1200
  });
961
- // generated/public/retry.ts
1201
+ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1202
+ security: [{
1203
+ in: "cookie",
1204
+ name: "nadeshiko.session_token",
1205
+ type: "apiKey"
1206
+ }],
1207
+ url: "/v1/collections/{collectionPublicId}/segments/{segmentPublicId}",
1208
+ ...options,
1209
+ headers: {
1210
+ "Content-Type": "application/json",
1211
+ ...options.headers
1212
+ }
1213
+ });
1214
+ var getCollectionStats = (options) => (options.client ?? client).get({
1215
+ security: [{
1216
+ in: "cookie",
1217
+ name: "nadeshiko.session_token",
1218
+ type: "apiKey"
1219
+ }],
1220
+ url: "/v1/collections/{collectionPublicId}/stats",
1221
+ ...options
1222
+ });
1223
+ var listAdminReports = (options) => (options?.client ?? client).get({
1224
+ security: [{
1225
+ in: "cookie",
1226
+ name: "nadeshiko.session_token",
1227
+ type: "apiKey"
1228
+ }],
1229
+ url: "/v1/admin/reports",
1230
+ ...options
1231
+ });
1232
+ var batchUpdateAdminReports = (options) => (options.client ?? client).patch({
1233
+ security: [{
1234
+ in: "cookie",
1235
+ name: "nadeshiko.session_token",
1236
+ type: "apiKey"
1237
+ }],
1238
+ url: "/v1/admin/reports/batch",
1239
+ ...options,
1240
+ headers: {
1241
+ "Content-Type": "application/json",
1242
+ ...options.headers
1243
+ }
1244
+ });
1245
+ var bulkDeleteAdminReports = (options) => (options.client ?? client).delete({
1246
+ security: [{
1247
+ in: "cookie",
1248
+ name: "nadeshiko.session_token",
1249
+ type: "apiKey"
1250
+ }],
1251
+ url: "/v1/admin/reports/bulk",
1252
+ ...options,
1253
+ headers: {
1254
+ "Content-Type": "application/json",
1255
+ ...options.headers
1256
+ }
1257
+ });
1258
+ var bulkUpdateAdminReports = (options) => (options.client ?? client).patch({
1259
+ security: [{
1260
+ in: "cookie",
1261
+ name: "nadeshiko.session_token",
1262
+ type: "apiKey"
1263
+ }],
1264
+ url: "/v1/admin/reports/bulk",
1265
+ ...options,
1266
+ headers: {
1267
+ "Content-Type": "application/json",
1268
+ ...options.headers
1269
+ }
1270
+ });
1271
+ var deleteAdminReport = (options) => (options.client ?? client).delete({
1272
+ security: [{
1273
+ in: "cookie",
1274
+ name: "nadeshiko.session_token",
1275
+ type: "apiKey"
1276
+ }],
1277
+ url: "/v1/admin/reports/{reportId}",
1278
+ ...options
1279
+ });
1280
+ var updateAdminReport = (options) => (options.client ?? client).patch({
1281
+ security: [{
1282
+ in: "cookie",
1283
+ name: "nadeshiko.session_token",
1284
+ type: "apiKey"
1285
+ }],
1286
+ url: "/v1/admin/reports/{reportId}",
1287
+ ...options,
1288
+ headers: {
1289
+ "Content-Type": "application/json",
1290
+ ...options.headers
1291
+ }
1292
+ });
1293
+ var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1294
+ security: [{
1295
+ in: "cookie",
1296
+ name: "nadeshiko.session_token",
1297
+ type: "apiKey"
1298
+ }],
1299
+ url: "/v1/admin/media/audits",
1300
+ ...options
1301
+ });
1302
+ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1303
+ security: [{
1304
+ in: "cookie",
1305
+ name: "nadeshiko.session_token",
1306
+ type: "apiKey"
1307
+ }],
1308
+ url: "/v1/admin/media/audits/{name}",
1309
+ ...options,
1310
+ headers: {
1311
+ "Content-Type": "application/json",
1312
+ ...options.headers
1313
+ }
1314
+ });
1315
+ var runAdminMediaAudit = (options) => (options.client ?? client).post({
1316
+ security: [{
1317
+ in: "cookie",
1318
+ name: "nadeshiko.session_token",
1319
+ type: "apiKey"
1320
+ }],
1321
+ url: "/v1/admin/media/audits/{name}/run",
1322
+ ...options
1323
+ });
1324
+ var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1325
+ security: [{
1326
+ in: "cookie",
1327
+ name: "nadeshiko.session_token",
1328
+ type: "apiKey"
1329
+ }],
1330
+ url: "/v1/admin/media/audits/runs",
1331
+ ...options
1332
+ });
1333
+ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1334
+ security: [{
1335
+ in: "cookie",
1336
+ name: "nadeshiko.session_token",
1337
+ type: "apiKey"
1338
+ }],
1339
+ url: "/v1/admin/media/audits/runs/{auditRunId}",
1340
+ ...options
1341
+ });
1342
+ var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
1343
+ var updateAnnouncement = (options) => (options.client ?? client).put({
1344
+ security: [{
1345
+ in: "cookie",
1346
+ name: "nadeshiko.session_token",
1347
+ type: "apiKey"
1348
+ }],
1349
+ url: "/v1/admin/announcement",
1350
+ ...options,
1351
+ headers: {
1352
+ "Content-Type": "application/json",
1353
+ ...options.headers
1354
+ }
1355
+ });
1356
+ // generated/internal/retry.ts
962
1357
  var RETRYABLE_STATUS = new Set([408, 429, 500, 502, 503, 504]);
963
1358
  function parseRetryAfter(value) {
964
1359
  const seconds = Number(value);
@@ -1013,7 +1408,7 @@ function withRetry(fetchImpl = globalThis.fetch, options = {}) {
1013
1408
  };
1014
1409
  }
1015
1410
 
1016
- // generated/public/errors.ts
1411
+ // generated/internal/errors.ts
1017
1412
  class NadeshikoError extends Error {
1018
1413
  code;
1019
1414
  title;
@@ -1035,7 +1430,7 @@ class NadeshikoError extends Error {
1035
1430
  }
1036
1431
  }
1037
1432
 
1038
- // generated/public/paginate.ts
1433
+ // generated/internal/paginate.ts
1039
1434
  async function* paginate(fn, options, extract) {
1040
1435
  let cursor = null;
1041
1436
  let first = true;
@@ -1084,21 +1479,40 @@ async function* flatPaginate(params, fn, extract) {
1084
1479
  }
1085
1480
  }
1086
1481
 
1087
- // generated/public/nadeshiko.gen.ts
1482
+ // generated/internal/nadeshiko.gen.ts
1088
1483
  var environments = {
1089
1484
  LOCAL: "http://localhost:5000/api",
1090
1485
  DEVELOPMENT: "https://api-stg.nadeshiko.co",
1091
1486
  STAGING: "https://api-stg.nadeshiko.co",
1092
- PRODUCTION: "https://api.nadeshiko.co"
1487
+ PRODUCTION: "https://api.nadeshiko.co",
1488
+ PROXY: ""
1489
+ };
1490
+ var defaultSessionTokenGetter = () => {
1491
+ if (typeof document === "undefined")
1492
+ return;
1493
+ const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
1494
+ return match ? decodeURIComponent(match[1]) : undefined;
1093
1495
  };
1094
1496
  function createNadeshikoClient(config) {
1095
1497
  const rawBaseUrl = config.baseURL ?? config.baseUrl;
1096
1498
  const baseUrl = rawBaseUrl === undefined ? environments.PRODUCTION : (rawBaseUrl in environments) ? environments[rawBaseUrl] : rawBaseUrl;
1499
+ const getApiKey = async () => {
1500
+ if (typeof config.apiKey === "function") {
1501
+ return await config.apiKey();
1502
+ }
1503
+ return config.apiKey;
1504
+ };
1505
+ const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
1097
1506
  const clientInstance = createClient(createConfig({
1098
1507
  baseUrl,
1099
- headers: { "User-Agent": "nadeshiko-sdk-ts/2.1.0", ...config.headers },
1508
+ headers: { "User-Agent": "nadeshiko-sdk-ts/2.2.0", ...config.headers },
1100
1509
  fetch: withRetry(globalThis.fetch, config.retryOptions),
1101
- auth: () => config.apiKey
1510
+ auth: (auth) => {
1511
+ if (auth.in === "cookie") {
1512
+ return getSessionToken();
1513
+ }
1514
+ return getApiKey();
1515
+ }
1102
1516
  }));
1103
1517
  clientInstance.interceptors.error.use((error) => {
1104
1518
  if (error && typeof error === "object" && "code" in error && typeof error.code === "string") {
@@ -1291,6 +1705,279 @@ function createNadeshikoClient(config) {
1291
1705
  const p = removeSegmentFromCollection({ path: { collectionPublicId, segmentPublicId }, client: clientInstance, throwOnError: tOE === false ? false : true });
1292
1706
  return tOE === false ? p : p.then((r) => r.data);
1293
1707
  };
1708
+ const _getCoveredWords = (params) => {
1709
+ const { throwOnError: tOE, ...query } = params ?? {};
1710
+ const p = getCoveredWords({ ...Object.keys(query).length > 0 ? { query } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1711
+ return tOE === false ? p : p.then((r) => r.data);
1712
+ };
1713
+ _getCoveredWords.paginate = (params) => flatPaginate(params ?? {}, (flat) => {
1714
+ return getCoveredWords({ query: flat, client: clientInstance });
1715
+ }, (data) => ({ items: data.words, pagination: data.pagination }));
1716
+ const _triggerCoveredWordsUpdate = (params) => {
1717
+ const { throwOnError: tOE, ...body } = params ?? {};
1718
+ const p = triggerCoveredWordsUpdate({ ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1719
+ return tOE === false ? p : p.then((r) => r.data);
1720
+ };
1721
+ const _createMedia = (params) => {
1722
+ const { throwOnError: tOE, ...body } = params ?? {};
1723
+ const p = createMedia({ ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1724
+ return tOE === false ? p : p.then((r) => r.data);
1725
+ };
1726
+ const _updateSegment = (paramsOrId) => {
1727
+ if (typeof paramsOrId === "string") {
1728
+ return updateSegment({ throwOnError: true, path: { segmentPublicId: paramsOrId }, client: clientInstance }).then((r) => r.data);
1729
+ }
1730
+ const params = paramsOrId;
1731
+ const { throwOnError: tOE, segmentPublicId, ...body } = params ?? {};
1732
+ const p = updateSegment({ path: { segmentPublicId }, ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1733
+ return tOE === false ? p : p.then((r) => r.data);
1734
+ };
1735
+ const _listSegmentRevisions = (paramsOrId) => {
1736
+ if (typeof paramsOrId === "string") {
1737
+ return listSegmentRevisions({ throwOnError: true, path: { segmentPublicId: paramsOrId }, client: clientInstance }).then((r) => r.data);
1738
+ }
1739
+ const params = paramsOrId;
1740
+ const { throwOnError: tOE, segmentPublicId } = params ?? {};
1741
+ const p = listSegmentRevisions({ path: { segmentPublicId }, client: clientInstance, throwOnError: tOE === false ? false : true });
1742
+ return tOE === false ? p : p.then((r) => r.data);
1743
+ };
1744
+ const _updateMedia = (paramsOrId) => {
1745
+ if (typeof paramsOrId === "string") {
1746
+ return updateMedia({ throwOnError: true, path: { mediaPublicId: paramsOrId }, client: clientInstance }).then((r) => r.data);
1747
+ }
1748
+ const params = paramsOrId;
1749
+ const { throwOnError: tOE, mediaPublicId, ...body } = params ?? {};
1750
+ const p = updateMedia({ path: { mediaPublicId }, ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1751
+ return tOE === false ? p : p.then((r) => r.data);
1752
+ };
1753
+ const _deleteMedia = (paramsOrId) => {
1754
+ if (typeof paramsOrId === "string") {
1755
+ return deleteMedia({ throwOnError: true, path: { mediaPublicId: paramsOrId }, client: clientInstance }).then((r) => r.data);
1756
+ }
1757
+ const params = paramsOrId;
1758
+ const { throwOnError: tOE, mediaPublicId } = params ?? {};
1759
+ const p = deleteMedia({ path: { mediaPublicId }, client: clientInstance, throwOnError: tOE === false ? false : true });
1760
+ return tOE === false ? p : p.then((r) => r.data);
1761
+ };
1762
+ const _createEpisode = (params) => {
1763
+ const { throwOnError: tOE, mediaPublicId, ...body } = params ?? {};
1764
+ const p = createEpisode({ path: { mediaPublicId }, ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1765
+ return tOE === false ? p : p.then((r) => r.data);
1766
+ };
1767
+ const _updateEpisode = (params) => {
1768
+ const { throwOnError: tOE, mediaPublicId, episodeNumber, ...body } = params ?? {};
1769
+ const p = updateEpisode({ path: { mediaPublicId, episodeNumber }, ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1770
+ return tOE === false ? p : p.then((r) => r.data);
1771
+ };
1772
+ const _deleteEpisode = (params) => {
1773
+ const { throwOnError: tOE, mediaPublicId, episodeNumber } = params ?? {};
1774
+ const p = deleteEpisode({ path: { mediaPublicId, episodeNumber }, client: clientInstance, throwOnError: tOE === false ? false : true });
1775
+ return tOE === false ? p : p.then((r) => r.data);
1776
+ };
1777
+ const _listSegments = (params) => {
1778
+ const { throwOnError: tOE, mediaPublicId, episodeNumber, ...query } = params ?? {};
1779
+ const p = listSegments({ path: { mediaPublicId, episodeNumber }, ...Object.keys(query).length > 0 ? { query } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1780
+ return tOE === false ? p : p.then((r) => r.data);
1781
+ };
1782
+ _listSegments.paginate = (params) => flatPaginate(params ?? {}, (flat) => {
1783
+ const { mediaPublicId, episodeNumber, ...q } = flat;
1784
+ return listSegments({ path: { mediaPublicId, episodeNumber }, query: q, client: clientInstance });
1785
+ }, (data) => ({ items: data.segments, pagination: data.pagination }));
1786
+ const _createSegment = (params) => {
1787
+ const { throwOnError: tOE, mediaPublicId, episodeNumber, ...body } = params ?? {};
1788
+ const p = createSegment({ path: { mediaPublicId, episodeNumber }, ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1789
+ return tOE === false ? p : p.then((r) => r.data);
1790
+ };
1791
+ const _createSegmentsBatch = (params) => {
1792
+ const { throwOnError: tOE, mediaPublicId, episodeNumber, ...body } = params ?? {};
1793
+ const p = createSegmentsBatch({ path: { mediaPublicId, episodeNumber }, ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1794
+ return tOE === false ? p : p.then((r) => r.data);
1795
+ };
1796
+ const _createUserReport = (params) => {
1797
+ const { throwOnError: tOE, ...body } = params ?? {};
1798
+ const p = createUserReport({ ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1799
+ return tOE === false ? p : p.then((r) => r.data);
1800
+ };
1801
+ const _getUserPreferences = (params) => {
1802
+ const tOE = params?.throwOnError;
1803
+ const p = getUserPreferences({ client: clientInstance, throwOnError: tOE === false ? false : true });
1804
+ return tOE === false ? p : p.then((r) => r.data);
1805
+ };
1806
+ const _updateUserPreferences = (params) => {
1807
+ const { throwOnError: tOE, ...body } = params ?? {};
1808
+ const p = updateUserPreferences({ ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1809
+ return tOE === false ? p : p.then((r) => r.data);
1810
+ };
1811
+ const _trackUserActivity = (params) => {
1812
+ const { throwOnError: tOE, ...body } = params ?? {};
1813
+ const p = trackUserActivity({ ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1814
+ return tOE === false ? p : p.then((r) => r.data);
1815
+ };
1816
+ const _deleteUserActivity = (params) => {
1817
+ const { throwOnError: tOE, ...query } = params ?? {};
1818
+ const p = deleteUserActivity({ ...Object.keys(query).length > 0 ? { query } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1819
+ return tOE === false ? p : p.then((r) => r.data);
1820
+ };
1821
+ const _deleteUserActivityByDate = (paramsOrId) => {
1822
+ if (typeof paramsOrId === "string") {
1823
+ return deleteUserActivityByDate({ throwOnError: true, path: { date: paramsOrId }, client: clientInstance }).then((r) => r.data);
1824
+ }
1825
+ const params = paramsOrId;
1826
+ const { throwOnError: tOE, date } = params ?? {};
1827
+ const p = deleteUserActivityByDate({ path: { date }, client: clientInstance, throwOnError: tOE === false ? false : true });
1828
+ return tOE === false ? p : p.then((r) => r.data);
1829
+ };
1830
+ const _deleteUserActivityById = (paramsOrId) => {
1831
+ if (typeof paramsOrId === "number") {
1832
+ return deleteUserActivityById({ throwOnError: true, path: { activityId: paramsOrId }, client: clientInstance }).then((r) => r.data);
1833
+ }
1834
+ const params = paramsOrId;
1835
+ const { throwOnError: tOE, activityId } = params ?? {};
1836
+ const p = deleteUserActivityById({ path: { activityId }, client: clientInstance, throwOnError: tOE === false ? false : true });
1837
+ return tOE === false ? p : p.then((r) => r.data);
1838
+ };
1839
+ const _exportUserData = (params) => {
1840
+ const tOE = params?.throwOnError;
1841
+ const p = exportUserData({ client: clientInstance, throwOnError: tOE === false ? false : true });
1842
+ return tOE === false ? p : p.then((r) => r.data);
1843
+ };
1844
+ const _listUserLabs = (params) => {
1845
+ const tOE = params?.throwOnError;
1846
+ const p = listUserLabs({ client: clientInstance, throwOnError: tOE === false ? false : true });
1847
+ return tOE === false ? p : p.then((r) => r.data);
1848
+ };
1849
+ const _enrollUserLab = (paramsOrId) => {
1850
+ if (typeof paramsOrId === "string") {
1851
+ return enrollUserLab({ throwOnError: true, path: { key: paramsOrId }, client: clientInstance }).then((r) => r.data);
1852
+ }
1853
+ const params = paramsOrId;
1854
+ const { throwOnError: tOE, key } = params ?? {};
1855
+ const p = enrollUserLab({ path: { key }, client: clientInstance, throwOnError: tOE === false ? false : true });
1856
+ return tOE === false ? p : p.then((r) => r.data);
1857
+ };
1858
+ const _unenrollUserLab = (paramsOrId) => {
1859
+ if (typeof paramsOrId === "string") {
1860
+ return unenrollUserLab({ throwOnError: true, path: { key: paramsOrId }, client: clientInstance }).then((r) => r.data);
1861
+ }
1862
+ const params = paramsOrId;
1863
+ const { throwOnError: tOE, key } = params ?? {};
1864
+ const p = unenrollUserLab({ path: { key }, client: clientInstance, throwOnError: tOE === false ? false : true });
1865
+ return tOE === false ? p : p.then((r) => r.data);
1866
+ };
1867
+ const _updateCollection = (paramsOrId) => {
1868
+ if (typeof paramsOrId === "string") {
1869
+ return updateCollection({ throwOnError: true, path: { collectionPublicId: paramsOrId }, client: clientInstance }).then((r) => r.data);
1870
+ }
1871
+ const params = paramsOrId;
1872
+ const { throwOnError: tOE, collectionPublicId, ...body } = params ?? {};
1873
+ const p = updateCollection({ path: { collectionPublicId }, ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1874
+ return tOE === false ? p : p.then((r) => r.data);
1875
+ };
1876
+ const _updateCollectionSegment = (params) => {
1877
+ const { throwOnError: tOE, collectionPublicId, segmentPublicId, ...body } = params ?? {};
1878
+ const p = updateCollectionSegment({ path: { collectionPublicId, segmentPublicId }, ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1879
+ return tOE === false ? p : p.then((r) => r.data);
1880
+ };
1881
+ const _getCollectionStats = (paramsOrId) => {
1882
+ if (typeof paramsOrId === "string") {
1883
+ return getCollectionStats({ throwOnError: true, path: { collectionPublicId: paramsOrId }, client: clientInstance }).then((r) => r.data);
1884
+ }
1885
+ const params = paramsOrId;
1886
+ const { throwOnError: tOE, collectionPublicId } = params ?? {};
1887
+ const p = getCollectionStats({ path: { collectionPublicId }, client: clientInstance, throwOnError: tOE === false ? false : true });
1888
+ return tOE === false ? p : p.then((r) => r.data);
1889
+ };
1890
+ const _listAdminReports = (params) => {
1891
+ const { throwOnError: tOE, ...query } = params ?? {};
1892
+ const p = listAdminReports({ ...Object.keys(query).length > 0 ? { query } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1893
+ return tOE === false ? p : p.then((r) => r.data);
1894
+ };
1895
+ _listAdminReports.paginate = (params) => flatPaginate(params ?? {}, (flat) => {
1896
+ return listAdminReports({ query: flat, client: clientInstance });
1897
+ }, (data) => ({ items: data.groups, pagination: data.pagination }));
1898
+ const _batchUpdateAdminReports = (params) => {
1899
+ const { throwOnError: tOE, ...body } = params ?? {};
1900
+ const p = batchUpdateAdminReports({ ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1901
+ return tOE === false ? p : p.then((r) => r.data);
1902
+ };
1903
+ const _bulkUpdateAdminReports = (params) => {
1904
+ const { throwOnError: tOE, ...body } = params ?? {};
1905
+ const p = bulkUpdateAdminReports({ ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1906
+ return tOE === false ? p : p.then((r) => r.data);
1907
+ };
1908
+ const _bulkDeleteAdminReports = (params) => {
1909
+ const { throwOnError: tOE, ...body } = params ?? {};
1910
+ const p = bulkDeleteAdminReports({ ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1911
+ return tOE === false ? p : p.then((r) => r.data);
1912
+ };
1913
+ const _updateAdminReport = (paramsOrId) => {
1914
+ if (typeof paramsOrId === "number") {
1915
+ return updateAdminReport({ throwOnError: true, path: { reportId: paramsOrId }, client: clientInstance }).then((r) => r.data);
1916
+ }
1917
+ const params = paramsOrId;
1918
+ const { throwOnError: tOE, reportId, ...body } = params ?? {};
1919
+ const p = updateAdminReport({ path: { reportId }, ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1920
+ return tOE === false ? p : p.then((r) => r.data);
1921
+ };
1922
+ const _deleteAdminReport = (paramsOrId) => {
1923
+ if (typeof paramsOrId === "number") {
1924
+ return deleteAdminReport({ throwOnError: true, path: { reportId: paramsOrId }, client: clientInstance }).then((r) => r.data);
1925
+ }
1926
+ const params = paramsOrId;
1927
+ const { throwOnError: tOE, reportId } = params ?? {};
1928
+ const p = deleteAdminReport({ path: { reportId }, client: clientInstance, throwOnError: tOE === false ? false : true });
1929
+ return tOE === false ? p : p.then((r) => r.data);
1930
+ };
1931
+ const _listAdminMediaAudits = (params) => {
1932
+ const tOE = params?.throwOnError;
1933
+ const p = listAdminMediaAudits({ client: clientInstance, throwOnError: tOE === false ? false : true });
1934
+ return tOE === false ? p : p.then((r) => r.data);
1935
+ };
1936
+ const _updateAdminMediaAudit = (paramsOrId) => {
1937
+ if (typeof paramsOrId === "string") {
1938
+ return updateAdminMediaAudit({ throwOnError: true, path: { name: paramsOrId }, client: clientInstance }).then((r) => r.data);
1939
+ }
1940
+ const params = paramsOrId;
1941
+ const { throwOnError: tOE, name, ...body } = params ?? {};
1942
+ const p = updateAdminMediaAudit({ path: { name }, ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1943
+ return tOE === false ? p : p.then((r) => r.data);
1944
+ };
1945
+ const _runAdminMediaAudit = (paramsOrId) => {
1946
+ if (typeof paramsOrId === "string") {
1947
+ return runAdminMediaAudit({ throwOnError: true, path: { name: paramsOrId }, client: clientInstance }).then((r) => r.data);
1948
+ }
1949
+ const params = paramsOrId;
1950
+ const { throwOnError: tOE, name, ...query } = params ?? {};
1951
+ const p = runAdminMediaAudit({ path: { name }, ...Object.keys(query).length > 0 ? { query } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1952
+ return tOE === false ? p : p.then((r) => r.data);
1953
+ };
1954
+ const _listAdminMediaAuditRuns = (params) => {
1955
+ const { throwOnError: tOE, ...query } = params ?? {};
1956
+ const p = listAdminMediaAuditRuns({ ...Object.keys(query).length > 0 ? { query } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1957
+ return tOE === false ? p : p.then((r) => r.data);
1958
+ };
1959
+ _listAdminMediaAuditRuns.paginate = (params) => flatPaginate(params ?? {}, (flat) => {
1960
+ return listAdminMediaAuditRuns({ query: flat, client: clientInstance });
1961
+ }, (data) => ({ items: data.runs, pagination: data.pagination }));
1962
+ const _getAdminMediaAuditRun = (paramsOrId) => {
1963
+ if (typeof paramsOrId === "number") {
1964
+ return getAdminMediaAuditRun({ throwOnError: true, path: { auditRunId: paramsOrId }, client: clientInstance }).then((r) => r.data);
1965
+ }
1966
+ const params = paramsOrId;
1967
+ const { throwOnError: tOE, auditRunId } = params ?? {};
1968
+ const p = getAdminMediaAuditRun({ path: { auditRunId }, client: clientInstance, throwOnError: tOE === false ? false : true });
1969
+ return tOE === false ? p : p.then((r) => r.data);
1970
+ };
1971
+ const _getAnnouncement = (params) => {
1972
+ const tOE = params?.throwOnError;
1973
+ const p = getAnnouncement({ client: clientInstance, throwOnError: tOE === false ? false : true });
1974
+ return tOE === false ? p : p.then((r) => r.data);
1975
+ };
1976
+ const _updateAnnouncement = (params) => {
1977
+ const { throwOnError: tOE, ...body } = params ?? {};
1978
+ const p = updateAnnouncement({ ...Object.keys(body).length > 0 ? { body } : {}, client: clientInstance, throwOnError: tOE === false ? false : true });
1979
+ return tOE === false ? p : p.then((r) => r.data);
1980
+ };
1294
1981
  return {
1295
1982
  client: clientInstance,
1296
1983
  search: _search,
@@ -1317,23 +2004,146 @@ function createNadeshikoClient(config) {
1317
2004
  deleteCollection: _deleteCollection,
1318
2005
  addSegmentToCollection: _addSegmentToCollection,
1319
2006
  searchCollectionSegments: _searchCollectionSegments,
1320
- removeSegmentFromCollection: _removeSegmentFromCollection
2007
+ removeSegmentFromCollection: _removeSegmentFromCollection,
2008
+ getCoveredWords: _getCoveredWords,
2009
+ triggerCoveredWordsUpdate: _triggerCoveredWordsUpdate,
2010
+ createMedia: _createMedia,
2011
+ updateSegment: _updateSegment,
2012
+ listSegmentRevisions: _listSegmentRevisions,
2013
+ updateMedia: _updateMedia,
2014
+ deleteMedia: _deleteMedia,
2015
+ createEpisode: _createEpisode,
2016
+ updateEpisode: _updateEpisode,
2017
+ deleteEpisode: _deleteEpisode,
2018
+ listSegments: _listSegments,
2019
+ createSegment: _createSegment,
2020
+ createSegmentsBatch: _createSegmentsBatch,
2021
+ createUserReport: _createUserReport,
2022
+ getUserPreferences: _getUserPreferences,
2023
+ updateUserPreferences: _updateUserPreferences,
2024
+ trackUserActivity: _trackUserActivity,
2025
+ deleteUserActivity: _deleteUserActivity,
2026
+ deleteUserActivityByDate: _deleteUserActivityByDate,
2027
+ deleteUserActivityById: _deleteUserActivityById,
2028
+ exportUserData: _exportUserData,
2029
+ listUserLabs: _listUserLabs,
2030
+ enrollUserLab: _enrollUserLab,
2031
+ unenrollUserLab: _unenrollUserLab,
2032
+ updateCollection: _updateCollection,
2033
+ updateCollectionSegment: _updateCollectionSegment,
2034
+ getCollectionStats: _getCollectionStats,
2035
+ listAdminReports: _listAdminReports,
2036
+ batchUpdateAdminReports: _batchUpdateAdminReports,
2037
+ bulkUpdateAdminReports: _bulkUpdateAdminReports,
2038
+ bulkDeleteAdminReports: _bulkDeleteAdminReports,
2039
+ updateAdminReport: _updateAdminReport,
2040
+ deleteAdminReport: _deleteAdminReport,
2041
+ listAdminMediaAudits: _listAdminMediaAudits,
2042
+ updateAdminMediaAudit: _updateAdminMediaAudit,
2043
+ runAdminMediaAudit: _runAdminMediaAudit,
2044
+ listAdminMediaAuditRuns: _listAdminMediaAuditRuns,
2045
+ getAdminMediaAuditRun: _getAdminMediaAuditRun,
2046
+ getAnnouncement: _getAnnouncement,
2047
+ updateAnnouncement: _updateAnnouncement
1321
2048
  };
1322
2049
  }
2050
+ // generated/internal/internal/stats.gen.ts
2051
+ var exports_stats_gen = {};
2052
+ __export(exports_stats_gen, {
2053
+ triggerCoveredWordsUpdate: () => triggerCoveredWordsUpdate,
2054
+ getCoveredWords: () => getCoveredWords
2055
+ });
2056
+ // generated/internal/internal/media.gen.ts
2057
+ var exports_media_gen = {};
2058
+ __export(exports_media_gen, {
2059
+ updateSegment: () => updateSegment,
2060
+ updateMedia: () => updateMedia,
2061
+ updateEpisode: () => updateEpisode,
2062
+ listSegments: () => listSegments,
2063
+ listSegmentRevisions: () => listSegmentRevisions,
2064
+ deleteMedia: () => deleteMedia,
2065
+ deleteEpisode: () => deleteEpisode,
2066
+ createSegmentsBatch: () => createSegmentsBatch,
2067
+ createSegment: () => createSegment,
2068
+ createMedia: () => createMedia,
2069
+ createEpisode: () => createEpisode
2070
+ });
2071
+ // generated/internal/internal/user.gen.ts
2072
+ var exports_user_gen = {};
2073
+ __export(exports_user_gen, {
2074
+ updateUserPreferences: () => updateUserPreferences,
2075
+ unenrollUserLab: () => unenrollUserLab,
2076
+ trackUserActivity: () => trackUserActivity,
2077
+ listUserLabs: () => listUserLabs,
2078
+ getUserPreferences: () => getUserPreferences,
2079
+ exportUserData: () => exportUserData,
2080
+ enrollUserLab: () => enrollUserLab,
2081
+ deleteUserActivityById: () => deleteUserActivityById,
2082
+ deleteUserActivityByDate: () => deleteUserActivityByDate,
2083
+ deleteUserActivity: () => deleteUserActivity,
2084
+ createUserReport: () => createUserReport
2085
+ });
2086
+ // generated/internal/internal/collections.gen.ts
2087
+ var exports_collections_gen = {};
2088
+ __export(exports_collections_gen, {
2089
+ updateCollectionSegment: () => updateCollectionSegment,
2090
+ updateCollection: () => updateCollection,
2091
+ getCollectionStats: () => getCollectionStats
2092
+ });
2093
+ // generated/internal/internal/admin.gen.ts
2094
+ var exports_admin_gen = {};
2095
+ __export(exports_admin_gen, {
2096
+ updateAnnouncement: () => updateAnnouncement,
2097
+ updateAdminReport: () => updateAdminReport,
2098
+ updateAdminMediaAudit: () => updateAdminMediaAudit,
2099
+ runAdminMediaAudit: () => runAdminMediaAudit,
2100
+ listAdminReports: () => listAdminReports,
2101
+ listAdminMediaAudits: () => listAdminMediaAudits,
2102
+ listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
2103
+ getAnnouncement: () => getAnnouncement,
2104
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
2105
+ deleteAdminReport: () => deleteAdminReport,
2106
+ bulkUpdateAdminReports: () => bulkUpdateAdminReports,
2107
+ bulkDeleteAdminReports: () => bulkDeleteAdminReports,
2108
+ batchUpdateAdminReports: () => batchUpdateAdminReports
2109
+ });
1323
2110
  export {
1324
2111
  withRetry,
2112
+ exports_user_gen as user,
2113
+ updateUserPreferences,
2114
+ updateSegment,
2115
+ updateMedia,
2116
+ updateEpisode,
2117
+ updateCollectionSegment,
2118
+ updateCollection,
2119
+ updateAnnouncement,
2120
+ updateAdminReport,
2121
+ updateAdminMediaAudit,
2122
+ unenrollUserLab,
2123
+ triggerCoveredWordsUpdate,
2124
+ trackUserActivity,
2125
+ exports_stats_gen as stats,
1325
2126
  searchWords,
1326
2127
  searchMedia,
1327
2128
  searchCollectionSegments,
1328
2129
  search,
2130
+ runAdminMediaAudit,
1329
2131
  removeSegmentFromCollection,
1330
2132
  removeExcludedMedia,
1331
2133
  paginate,
2134
+ exports_media_gen as media,
2135
+ listUserLabs,
1332
2136
  listUserActivity,
2137
+ listSegments,
2138
+ listSegmentRevisions,
1333
2139
  listMedia,
1334
2140
  listExcludedMedia,
1335
2141
  listEpisodes,
1336
2142
  listCollections,
2143
+ listAdminReports,
2144
+ listAdminMediaAudits,
2145
+ listAdminMediaAuditRuns,
2146
+ getUserPreferences,
1337
2147
  getUserActivityStats,
1338
2148
  getUserActivityHeatmap,
1339
2149
  getStatsOverview,
@@ -1343,16 +2153,38 @@ export {
1343
2153
  getMedia,
1344
2154
  getMe,
1345
2155
  getEpisode,
2156
+ getCoveredWords,
2157
+ getCollectionStats,
1346
2158
  getCollection,
2159
+ getAnnouncement,
2160
+ getAdminMediaAuditRun,
1347
2161
  flatPaginate,
2162
+ exportUserData,
2163
+ enrollUserLab,
2164
+ deleteUserActivityById,
2165
+ deleteUserActivityByDate,
2166
+ deleteUserActivity,
2167
+ deleteMedia,
2168
+ deleteEpisode,
1348
2169
  deleteCollection,
2170
+ deleteAdminReport,
2171
+ createUserReport,
2172
+ createSegmentsBatch,
2173
+ createSegment,
1349
2174
  createNadeshikoClient,
2175
+ createMedia,
2176
+ createEpisode,
1350
2177
  createCollection,
2178
+ exports_collections_gen as collections,
1351
2179
  client,
2180
+ bulkUpdateAdminReports,
2181
+ bulkDeleteAdminReports,
2182
+ batchUpdateAdminReports,
2183
+ exports_admin_gen as admin,
1352
2184
  addSegmentToCollection,
1353
2185
  addExcludedMedia,
1354
2186
  NadeshikoError
1355
2187
  };
1356
2188
 
1357
- //# debugId=DA633494A11616B664756E2164756E21
2189
+ //# debugId=306F0F71C8509B1F64756E2164756E21
1358
2190
  //# sourceMappingURL=index.js.map