@brigadasos/nadeshiko-sdk 1.4.3-dev.e5c01f0 → 1.5.0-dev.7d15241

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.
package/dist/index.js CHANGED
@@ -1,11 +1,15 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __returnValue = (v) => v;
3
+ function __exportSetter(name, newValue) {
4
+ this[name] = __returnValue.bind(null, newValue);
5
+ }
2
6
  var __export = (target, all) => {
3
7
  for (var name in all)
4
8
  __defProp(target, name, {
5
9
  get: all[name],
6
10
  enumerable: true,
7
11
  configurable: true,
8
- set: (newValue) => all[name] = () => newValue
12
+ set: __exportSetter.bind(all, name)
9
13
  });
10
14
  };
11
15
 
@@ -809,15 +813,11 @@ var createClient = (config = {}) => {
809
813
  };
810
814
  };
811
815
  // generated/dev/client.gen.ts
812
- var client = createClient(createConfig({ baseUrl: "http://localhost:5000" }));
816
+ var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
813
817
 
814
818
  // generated/dev/sdk.gen.ts
815
819
  var search = (options) => (options?.client ?? client).post({
816
- security: [{ scheme: "bearer", type: "http" }, {
817
- in: "cookie",
818
- name: "nadeshiko.session_token",
819
- type: "apiKey"
820
- }],
820
+ security: [{ scheme: "bearer", type: "http" }],
821
821
  url: "/v1/search",
822
822
  ...options,
823
823
  headers: {
@@ -826,11 +826,7 @@ var search = (options) => (options?.client ?? client).post({
826
826
  }
827
827
  });
828
828
  var getSearchStats = (options) => (options?.client ?? client).post({
829
- security: [{ scheme: "bearer", type: "http" }, {
830
- in: "cookie",
831
- name: "nadeshiko.session_token",
832
- type: "apiKey"
833
- }],
829
+ security: [{ scheme: "bearer", type: "http" }],
834
830
  url: "/v1/search/stats",
835
831
  ...options,
836
832
  headers: {
@@ -839,11 +835,7 @@ var getSearchStats = (options) => (options?.client ?? client).post({
839
835
  }
840
836
  });
841
837
  var searchWords = (options) => (options.client ?? client).post({
842
- security: [{ scheme: "bearer", type: "http" }, {
843
- in: "cookie",
844
- name: "nadeshiko.session_token",
845
- type: "apiKey"
846
- }],
838
+ security: [{ scheme: "bearer", type: "http" }],
847
839
  url: "/v1/search/words",
848
840
  ...options,
849
841
  headers: {
@@ -870,191 +862,187 @@ var autocompleteMedia = (options) => (options.client ?? client).get({
870
862
  url: "/v1/media/autocomplete",
871
863
  ...options
872
864
  });
873
- var deleteMedia = (options) => (options.client ?? client).delete({
874
- security: [{ scheme: "bearer", type: "http" }],
875
- url: "/v1/media/{id}",
876
- ...options
877
- });
878
- var getMedia = (options) => (options.client ?? client).get({
865
+ var getSegmentByUuid = (options) => (options.client ?? client).get({
879
866
  security: [{ scheme: "bearer", type: "http" }],
880
- url: "/v1/media/{id}",
867
+ url: "/v1/media/segments/{uuid}",
881
868
  ...options
882
869
  });
883
- var updateMedia = (options) => (options.client ?? client).patch({
884
- security: [{ scheme: "bearer", type: "http" }],
885
- url: "/v1/media/{id}",
870
+ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
871
+ security: [{ scheme: "bearer", type: "http" }, {
872
+ in: "cookie",
873
+ name: "nadeshiko.session_token",
874
+ type: "apiKey"
875
+ }],
876
+ url: "/v1/media/segments/{uuid}",
886
877
  ...options,
887
878
  headers: {
888
879
  "Content-Type": "application/json",
889
880
  ...options.headers
890
881
  }
891
882
  });
892
- var listEpisodes = (options) => (options.client ?? client).get({
883
+ var getSegmentContext = (options) => (options.client ?? client).get({
893
884
  security: [{ scheme: "bearer", type: "http" }],
894
- url: "/v1/media/{mediaId}/episodes",
885
+ url: "/v1/media/segments/{uuid}/context",
895
886
  ...options
896
887
  });
897
- var createEpisode = (options) => (options.client ?? client).post({
888
+ var listSeries = (options) => (options?.client ?? client).get({
898
889
  security: [{ scheme: "bearer", type: "http" }],
899
- url: "/v1/media/{mediaId}/episodes",
890
+ url: "/v1/media/series",
891
+ ...options
892
+ });
893
+ var createSeries = (options) => (options.client ?? client).post({
894
+ security: [{ scheme: "bearer", type: "http" }],
895
+ url: "/v1/media/series",
900
896
  ...options,
901
897
  headers: {
902
898
  "Content-Type": "application/json",
903
899
  ...options.headers
904
900
  }
905
901
  });
906
- var deleteEpisode = (options) => (options.client ?? client).delete({
902
+ var deleteSeries = (options) => (options.client ?? client).delete({
907
903
  security: [{ scheme: "bearer", type: "http" }],
908
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
904
+ url: "/v1/media/series/{id}",
909
905
  ...options
910
906
  });
911
- var getEpisode = (options) => (options.client ?? client).get({
907
+ var getSeries = (options) => (options.client ?? client).get({
912
908
  security: [{ scheme: "bearer", type: "http" }],
913
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
909
+ url: "/v1/media/series/{id}",
914
910
  ...options
915
911
  });
916
- var updateEpisode = (options) => (options.client ?? client).patch({
912
+ var updateSeries = (options) => (options.client ?? client).patch({
917
913
  security: [{ scheme: "bearer", type: "http" }],
918
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
914
+ url: "/v1/media/series/{id}",
919
915
  ...options,
920
916
  headers: {
921
917
  "Content-Type": "application/json",
922
918
  ...options.headers
923
919
  }
924
920
  });
925
- var listSegments = (options) => (options.client ?? client).get({
926
- security: [{ scheme: "bearer", type: "http" }],
927
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
928
- ...options
929
- });
930
- var createSegment = (options) => (options.client ?? client).post({
921
+ var addMediaToSeries = (options) => (options.client ?? client).post({
931
922
  security: [{ scheme: "bearer", type: "http" }],
932
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
923
+ url: "/v1/media/series/{id}/media",
933
924
  ...options,
934
925
  headers: {
935
926
  "Content-Type": "application/json",
936
927
  ...options.headers
937
928
  }
938
929
  });
939
- var deleteSegment = (options) => (options.client ?? client).delete({
940
- security: [{ scheme: "bearer", type: "http" }],
941
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
942
- ...options
943
- });
944
- var getSegment = (options) => (options.client ?? client).get({
930
+ var removeMediaFromSeries = (options) => (options.client ?? client).delete({
945
931
  security: [{ scheme: "bearer", type: "http" }],
946
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
932
+ url: "/v1/media/series/{id}/media/{mediaId}",
947
933
  ...options
948
934
  });
949
- var updateSegment = (options) => (options.client ?? client).patch({
935
+ var updateSeriesMedia = (options) => (options.client ?? client).patch({
950
936
  security: [{ scheme: "bearer", type: "http" }],
951
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
937
+ url: "/v1/media/series/{id}/media/{mediaId}",
952
938
  ...options,
953
939
  headers: {
954
940
  "Content-Type": "application/json",
955
941
  ...options.headers
956
942
  }
957
943
  });
958
- var getSegmentByUuid = (options) => (options.client ?? client).get({
944
+ var getCharacter = (options) => (options.client ?? client).get({
959
945
  security: [{ scheme: "bearer", type: "http" }],
960
- url: "/v1/media/segments/{uuid}",
946
+ url: "/v1/media/characters/{id}",
961
947
  ...options
962
948
  });
963
- var getSegmentContext = (options) => (options.client ?? client).get({
949
+ var getSeiyuu = (options) => (options.client ?? client).get({
964
950
  security: [{ scheme: "bearer", type: "http" }],
965
- url: "/v1/media/segments/{uuid}/context",
951
+ url: "/v1/media/seiyuu/{id}",
966
952
  ...options
967
953
  });
968
- var listSeries = (options) => (options?.client ?? client).get({
969
- security: [{ scheme: "bearer", type: "http" }, {
970
- in: "cookie",
971
- name: "nadeshiko.session_token",
972
- type: "apiKey"
973
- }],
974
- url: "/v1/media/series",
954
+ var deleteMedia = (options) => (options.client ?? client).delete({
955
+ security: [{ scheme: "bearer", type: "http" }],
956
+ url: "/v1/media/{id}",
975
957
  ...options
976
958
  });
977
- var createSeries = (options) => (options.client ?? client).post({
959
+ var getMedia = (options) => (options.client ?? client).get({
978
960
  security: [{ scheme: "bearer", type: "http" }],
979
- url: "/v1/media/series",
961
+ url: "/v1/media/{id}",
962
+ ...options
963
+ });
964
+ var updateMedia = (options) => (options.client ?? client).patch({
965
+ security: [{ scheme: "bearer", type: "http" }],
966
+ url: "/v1/media/{id}",
980
967
  ...options,
981
968
  headers: {
982
969
  "Content-Type": "application/json",
983
970
  ...options.headers
984
971
  }
985
972
  });
986
- var deleteSeries = (options) => (options.client ?? client).delete({
973
+ var listEpisodes = (options) => (options.client ?? client).get({
987
974
  security: [{ scheme: "bearer", type: "http" }],
988
- url: "/v1/media/series/{id}",
989
- ...options
990
- });
991
- var getSeries = (options) => (options.client ?? client).get({
992
- security: [{ scheme: "bearer", type: "http" }, {
993
- in: "cookie",
994
- name: "nadeshiko.session_token",
995
- type: "apiKey"
996
- }],
997
- url: "/v1/media/series/{id}",
975
+ url: "/v1/media/{mediaId}/episodes",
998
976
  ...options
999
977
  });
1000
- var updateSeries = (options) => (options.client ?? client).patch({
978
+ var createEpisode = (options) => (options.client ?? client).post({
1001
979
  security: [{ scheme: "bearer", type: "http" }],
1002
- url: "/v1/media/series/{id}",
980
+ url: "/v1/media/{mediaId}/episodes",
1003
981
  ...options,
1004
982
  headers: {
1005
983
  "Content-Type": "application/json",
1006
984
  ...options.headers
1007
985
  }
1008
986
  });
1009
- var addMediaToSeries = (options) => (options.client ?? client).post({
987
+ var deleteEpisode = (options) => (options.client ?? client).delete({
1010
988
  security: [{ scheme: "bearer", type: "http" }],
1011
- url: "/v1/media/series/{id}/media",
989
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
990
+ ...options
991
+ });
992
+ var getEpisode = (options) => (options.client ?? client).get({
993
+ security: [{ scheme: "bearer", type: "http" }],
994
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
995
+ ...options
996
+ });
997
+ var updateEpisode = (options) => (options.client ?? client).patch({
998
+ security: [{ scheme: "bearer", type: "http" }],
999
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1012
1000
  ...options,
1013
1001
  headers: {
1014
1002
  "Content-Type": "application/json",
1015
1003
  ...options.headers
1016
1004
  }
1017
1005
  });
1018
- var removeMediaFromSeries = (options) => (options.client ?? client).delete({
1006
+ var listSegments = (options) => (options.client ?? client).get({
1019
1007
  security: [{ scheme: "bearer", type: "http" }],
1020
- url: "/v1/media/series/{id}/media/{mediaId}",
1008
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1021
1009
  ...options
1022
1010
  });
1023
- var updateSeriesMedia = (options) => (options.client ?? client).patch({
1011
+ var createSegment = (options) => (options.client ?? client).post({
1024
1012
  security: [{ scheme: "bearer", type: "http" }],
1025
- url: "/v1/media/series/{id}/media/{mediaId}",
1013
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1026
1014
  ...options,
1027
1015
  headers: {
1028
1016
  "Content-Type": "application/json",
1029
1017
  ...options.headers
1030
1018
  }
1031
1019
  });
1032
- var getCharacter = (options) => (options.client ?? client).get({
1020
+ var deleteSegment = (options) => (options.client ?? client).delete({
1033
1021
  security: [{ scheme: "bearer", type: "http" }],
1034
- url: "/v1/media/characters/{id}",
1022
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1035
1023
  ...options
1036
1024
  });
1037
- var getSeiyuu = (options) => (options.client ?? client).get({
1025
+ var getSegment = (options) => (options.client ?? client).get({
1038
1026
  security: [{ scheme: "bearer", type: "http" }],
1039
- url: "/v1/media/seiyuu/{id}",
1027
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1040
1028
  ...options
1041
1029
  });
1042
- var getUserQuota = (options) => (options?.client ?? client).get({
1043
- security: [{
1044
- in: "cookie",
1045
- name: "nadeshiko.session_token",
1046
- type: "apiKey"
1047
- }, { scheme: "bearer", type: "http" }],
1048
- url: "/v1/user/quota",
1049
- ...options
1030
+ var updateSegment = (options) => (options.client ?? client).patch({
1031
+ security: [{ scheme: "bearer", type: "http" }],
1032
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1033
+ ...options,
1034
+ headers: {
1035
+ "Content-Type": "application/json",
1036
+ ...options.headers
1037
+ }
1050
1038
  });
1051
- var listUserReports = (options) => (options?.client ?? client).get({
1039
+ var getUserQuota = (options) => (options?.client ?? client).get({
1052
1040
  security: [{
1053
1041
  in: "cookie",
1054
1042
  name: "nadeshiko.session_token",
1055
1043
  type: "apiKey"
1056
1044
  }],
1057
- url: "/v1/user/reports",
1045
+ url: "/v1/user/quota",
1058
1046
  ...options
1059
1047
  });
1060
1048
  var createUserReport = (options) => (options.client ?? client).post({
@@ -1110,6 +1098,19 @@ var listUserActivity = (options) => (options?.client ?? client).get({
1110
1098
  url: "/v1/user/activity",
1111
1099
  ...options
1112
1100
  });
1101
+ var trackUserActivity = (options) => (options.client ?? client).post({
1102
+ security: [{
1103
+ in: "cookie",
1104
+ name: "nadeshiko.session_token",
1105
+ type: "apiKey"
1106
+ }],
1107
+ url: "/v1/user/activity",
1108
+ ...options,
1109
+ headers: {
1110
+ "Content-Type": "application/json",
1111
+ ...options.headers
1112
+ }
1113
+ });
1113
1114
  var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
1114
1115
  security: [{
1115
1116
  in: "cookie",
@@ -1128,6 +1129,24 @@ var getUserActivityStats = (options) => (options?.client ?? client).get({
1128
1129
  url: "/v1/user/activity/stats",
1129
1130
  ...options
1130
1131
  });
1132
+ var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
1133
+ security: [{
1134
+ in: "cookie",
1135
+ name: "nadeshiko.session_token",
1136
+ type: "apiKey"
1137
+ }],
1138
+ url: "/v1/user/activity/date/{date}",
1139
+ ...options
1140
+ });
1141
+ var deleteUserActivityById = (options) => (options.client ?? client).delete({
1142
+ security: [{
1143
+ in: "cookie",
1144
+ name: "nadeshiko.session_token",
1145
+ type: "apiKey"
1146
+ }],
1147
+ url: "/v1/user/activity/{id}",
1148
+ ...options
1149
+ });
1131
1150
  var exportUserData = (options) => (options?.client ?? client).get({
1132
1151
  security: [{
1133
1152
  in: "cookie",
@@ -1146,6 +1165,24 @@ var listUserLabs = (options) => (options?.client ?? client).get({
1146
1165
  url: "/v1/user/labs",
1147
1166
  ...options
1148
1167
  });
1168
+ var unenrollUserLab = (options) => (options.client ?? client).delete({
1169
+ security: [{
1170
+ in: "cookie",
1171
+ name: "nadeshiko.session_token",
1172
+ type: "apiKey"
1173
+ }],
1174
+ url: "/v1/user/labs/{key}",
1175
+ ...options
1176
+ });
1177
+ var enrollUserLab = (options) => (options.client ?? client).post({
1178
+ security: [{
1179
+ in: "cookie",
1180
+ name: "nadeshiko.session_token",
1181
+ type: "apiKey"
1182
+ }],
1183
+ url: "/v1/user/labs/{key}",
1184
+ ...options
1185
+ });
1149
1186
  var listCollections = (options) => (options?.client ?? client).get({
1150
1187
  security: [{
1151
1188
  in: "cookie",
@@ -1234,6 +1271,24 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1234
1271
  ...options.headers
1235
1272
  }
1236
1273
  });
1274
+ var searchCollectionSegments = (options) => (options.client ?? client).get({
1275
+ security: [{
1276
+ in: "cookie",
1277
+ name: "nadeshiko.session_token",
1278
+ type: "apiKey"
1279
+ }],
1280
+ url: "/v1/collections/{id}/search",
1281
+ ...options
1282
+ });
1283
+ var getCollectionStats = (options) => (options.client ?? client).get({
1284
+ security: [{
1285
+ in: "cookie",
1286
+ name: "nadeshiko.session_token",
1287
+ type: "apiKey"
1288
+ }],
1289
+ url: "/v1/collections/{id}/stats",
1290
+ ...options
1291
+ });
1237
1292
  var getAdminDashboard = (options) => (options?.client ?? client).get({
1238
1293
  security: [{ scheme: "bearer", type: "http" }],
1239
1294
  url: "/v1/admin/dashboard",
@@ -1278,6 +1333,28 @@ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1278
1333
  url: "/v1/admin/queues/{queueName}/purge",
1279
1334
  ...options
1280
1335
  });
1336
+ var clearAdminImpersonation = (options) => (options?.client ?? client).delete({
1337
+ security: [{
1338
+ in: "cookie",
1339
+ name: "nadeshiko.session_token",
1340
+ type: "apiKey"
1341
+ }],
1342
+ url: "/v1/admin/impersonation",
1343
+ ...options
1344
+ });
1345
+ var impersonateAdminUser = (options) => (options.client ?? client).post({
1346
+ security: [{
1347
+ in: "cookie",
1348
+ name: "nadeshiko.session_token",
1349
+ type: "apiKey"
1350
+ }],
1351
+ url: "/v1/admin/impersonation",
1352
+ ...options,
1353
+ headers: {
1354
+ "Content-Type": "application/json",
1355
+ ...options.headers
1356
+ }
1357
+ });
1281
1358
  var listAdminReports = (options) => (options?.client ?? client).get({
1282
1359
  security: [{ scheme: "bearer", type: "http" }],
1283
1360
  url: "/v1/admin/reports",
@@ -1292,52 +1369,33 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
1292
1369
  ...options.headers
1293
1370
  }
1294
1371
  });
1295
- var runAdminReview = (options) => (options?.client ?? client).post({
1372
+ var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1296
1373
  security: [{ scheme: "bearer", type: "http" }],
1297
- url: "/v1/admin/review/run",
1374
+ url: "/v1/admin/media/audits",
1298
1375
  ...options
1299
1376
  });
1300
- var listAdminReviewChecks = (options) => (options?.client ?? client).get({
1377
+ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1301
1378
  security: [{ scheme: "bearer", type: "http" }],
1302
- url: "/v1/admin/review/checks",
1303
- ...options
1304
- });
1305
- var updateAdminReviewCheck = (options) => (options.client ?? client).patch({
1306
- security: [{ scheme: "bearer", type: "http" }],
1307
- url: "/v1/admin/review/checks/{name}",
1379
+ url: "/v1/admin/media/audits/{name}",
1308
1380
  ...options,
1309
1381
  headers: {
1310
1382
  "Content-Type": "application/json",
1311
1383
  ...options.headers
1312
1384
  }
1313
1385
  });
1314
- var listAdminReviewRuns = (options) => (options?.client ?? client).get({
1315
- security: [{ scheme: "bearer", type: "http" }],
1316
- url: "/v1/admin/review/runs",
1317
- ...options
1318
- });
1319
- var getAdminReviewRun = (options) => (options.client ?? client).get({
1386
+ var runAdminMediaAudit = (options) => (options.client ?? client).post({
1320
1387
  security: [{ scheme: "bearer", type: "http" }],
1321
- url: "/v1/admin/review/runs/{id}",
1388
+ url: "/v1/admin/media/audits/{name}/run",
1322
1389
  ...options
1323
1390
  });
1324
- var listAdminReviewAllowlist = (options) => (options?.client ?? client).get({
1391
+ var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1325
1392
  security: [{ scheme: "bearer", type: "http" }],
1326
- url: "/v1/admin/review/allowlist",
1393
+ url: "/v1/admin/media/audits/runs",
1327
1394
  ...options
1328
1395
  });
1329
- var createAdminReviewAllowlistEntry = (options) => (options.client ?? client).post({
1330
- security: [{ scheme: "bearer", type: "http" }],
1331
- url: "/v1/admin/review/allowlist",
1332
- ...options,
1333
- headers: {
1334
- "Content-Type": "application/json",
1335
- ...options.headers
1336
- }
1337
- });
1338
- var deleteAdminReviewAllowlistEntry = (options) => (options.client ?? client).delete({
1396
+ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1339
1397
  security: [{ scheme: "bearer", type: "http" }],
1340
- url: "/v1/admin/review/allowlist/{id}",
1398
+ url: "/v1/admin/media/audits/runs/{id}",
1341
1399
  ...options
1342
1400
  });
1343
1401
  // generated/dev/nadeshiko.gen.ts
@@ -1370,43 +1428,25 @@ function createNadeshikoClient(config) {
1370
1428
  getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
1371
1429
  searchWords: (options) => searchWords({ ...options, client: clientInstance }),
1372
1430
  listMedia: (options) => listMedia({ ...options, client: clientInstance }),
1373
- getMedia: (options) => getMedia({ ...options, client: clientInstance }),
1374
- listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
1375
- getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
1376
- getSegment: (options) => getSegment({ ...options, client: clientInstance }),
1377
1431
  getSegmentByUuid: (options) => getSegmentByUuid({ ...options, client: clientInstance }),
1378
1432
  getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
1379
1433
  listSeries: (options) => listSeries({ ...options, client: clientInstance }),
1380
1434
  getSeries: (options) => getSeries({ ...options, client: clientInstance }),
1381
1435
  getCharacter: (options) => getCharacter({ ...options, client: clientInstance }),
1382
1436
  getSeiyuu: (options) => getSeiyuu({ ...options, client: clientInstance }),
1383
- getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
1384
- listCollections: (options) => listCollections({ ...options, client: clientInstance }),
1385
- createCollection: (options) => createCollection({ ...options, client: clientInstance }),
1386
- getCollection: (options) => getCollection({ ...options, client: clientInstance }),
1387
- updateCollection: (options) => updateCollection({ ...options, client: clientInstance }),
1388
- deleteCollection: (options) => deleteCollection({ ...options, client: clientInstance }),
1389
- addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
1390
- updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
1391
- removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
1392
- triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
1393
- listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
1394
- getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
1395
- listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
1396
- retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
1397
- purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
1398
- listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
1399
- updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
1400
- runAdminReview: (options) => runAdminReview({ ...options, client: clientInstance }),
1401
- listAdminReviewChecks: (options) => listAdminReviewChecks({ ...options, client: clientInstance }),
1402
- updateAdminReviewCheck: (options) => updateAdminReviewCheck({ ...options, client: clientInstance }),
1403
- listAdminReviewRuns: (options) => listAdminReviewRuns({ ...options, client: clientInstance }),
1404
- getAdminReviewRun: (options) => getAdminReviewRun({ ...options, client: clientInstance }),
1405
- listAdminReviewAllowlist: (options) => listAdminReviewAllowlist({ ...options, client: clientInstance }),
1406
- createAdminReviewAllowlistEntry: (options) => createAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
1407
- deleteAdminReviewAllowlistEntry: (options) => deleteAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
1437
+ getMedia: (options) => getMedia({ ...options, client: clientInstance }),
1438
+ listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
1439
+ getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
1440
+ getSegment: (options) => getSegment({ ...options, client: clientInstance }),
1408
1441
  createMedia: (options) => createMedia({ ...options, client: clientInstance }),
1409
1442
  autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
1443
+ updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
1444
+ createSeries: (options) => createSeries({ ...options, client: clientInstance }),
1445
+ updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
1446
+ deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
1447
+ addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
1448
+ updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
1449
+ removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
1410
1450
  updateMedia: (options) => updateMedia({ ...options, client: clientInstance }),
1411
1451
  deleteMedia: (options) => deleteMedia({ ...options, client: clientInstance }),
1412
1452
  createEpisode: (options) => createEpisode({ ...options, client: clientInstance }),
@@ -1416,24 +1456,48 @@ function createNadeshikoClient(config) {
1416
1456
  createSegment: (options) => createSegment({ ...options, client: clientInstance }),
1417
1457
  updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
1418
1458
  deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
1419
- createSeries: (options) => createSeries({ ...options, client: clientInstance }),
1420
- updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
1421
- deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
1422
- addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
1423
- updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
1424
- removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
1459
+ getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
1425
1460
  createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
1426
- listUserReports: (options) => listUserReports({ ...options, client: clientInstance }),
1427
1461
  getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
1428
1462
  updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
1429
1463
  listUserActivity: (options) => listUserActivity({ ...options, client: clientInstance }),
1464
+ trackUserActivity: (options) => trackUserActivity({ ...options, client: clientInstance }),
1430
1465
  deleteUserActivity: (options) => deleteUserActivity({ ...options, client: clientInstance }),
1431
1466
  getUserActivityHeatmap: (options) => getUserActivityHeatmap({ ...options, client: clientInstance }),
1432
1467
  getUserActivityStats: (options) => getUserActivityStats({ ...options, client: clientInstance }),
1468
+ deleteUserActivityByDate: (options) => deleteUserActivityByDate({ ...options, client: clientInstance }),
1469
+ deleteUserActivityById: (options) => deleteUserActivityById({ ...options, client: clientInstance }),
1433
1470
  exportUserData: (options) => exportUserData({ ...options, client: clientInstance }),
1434
1471
  listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
1472
+ enrollUserLab: (options) => enrollUserLab({ ...options, client: clientInstance }),
1473
+ unenrollUserLab: (options) => unenrollUserLab({ ...options, client: clientInstance }),
1474
+ listCollections: (options) => listCollections({ ...options, client: clientInstance }),
1475
+ createCollection: (options) => createCollection({ ...options, client: clientInstance }),
1476
+ getCollection: (options) => getCollection({ ...options, client: clientInstance }),
1477
+ updateCollection: (options) => updateCollection({ ...options, client: clientInstance }),
1478
+ deleteCollection: (options) => deleteCollection({ ...options, client: clientInstance }),
1479
+ addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
1480
+ updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
1481
+ removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
1482
+ searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
1483
+ getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
1435
1484
  getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
1436
- getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance })
1485
+ getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance }),
1486
+ triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
1487
+ listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
1488
+ getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
1489
+ listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
1490
+ retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
1491
+ purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
1492
+ impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
1493
+ clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance }),
1494
+ listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
1495
+ updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
1496
+ listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
1497
+ updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
1498
+ runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
1499
+ listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
1500
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
1437
1501
  };
1438
1502
  }
1439
1503
  // generated/dev/internal/media.gen.ts
@@ -1441,6 +1505,7 @@ var exports_media_gen = {};
1441
1505
  __export(exports_media_gen, {
1442
1506
  updateSeriesMedia: () => updateSeriesMedia,
1443
1507
  updateSeries: () => updateSeries,
1508
+ updateSegmentByUuid: () => updateSegmentByUuid,
1444
1509
  updateSegment: () => updateSegment,
1445
1510
  updateMedia: () => updateMedia,
1446
1511
  updateEpisode: () => updateEpisode,
@@ -1461,44 +1526,81 @@ __export(exports_media_gen, {
1461
1526
  var exports_user_gen = {};
1462
1527
  __export(exports_user_gen, {
1463
1528
  updateUserPreferences: () => updateUserPreferences,
1464
- listUserReports: () => listUserReports,
1529
+ unenrollUserLab: () => unenrollUserLab,
1530
+ trackUserActivity: () => trackUserActivity,
1465
1531
  listUserLabs: () => listUserLabs,
1466
1532
  listUserActivity: () => listUserActivity,
1533
+ getUserQuota: () => getUserQuota,
1467
1534
  getUserPreferences: () => getUserPreferences,
1468
1535
  getUserActivityStats: () => getUserActivityStats,
1469
1536
  getUserActivityHeatmap: () => getUserActivityHeatmap,
1470
1537
  exportUserData: () => exportUserData,
1538
+ enrollUserLab: () => enrollUserLab,
1539
+ deleteUserActivityById: () => deleteUserActivityById,
1540
+ deleteUserActivityByDate: () => deleteUserActivityByDate,
1471
1541
  deleteUserActivity: () => deleteUserActivity,
1472
1542
  createUserReport: () => createUserReport
1473
1543
  });
1544
+ // generated/dev/internal/collections.gen.ts
1545
+ var exports_collections_gen = {};
1546
+ __export(exports_collections_gen, {
1547
+ updateCollectionSegment: () => updateCollectionSegment,
1548
+ updateCollection: () => updateCollection,
1549
+ searchCollectionSegments: () => searchCollectionSegments,
1550
+ removeSegmentFromCollection: () => removeSegmentFromCollection,
1551
+ listCollections: () => listCollections,
1552
+ getCollectionStats: () => getCollectionStats,
1553
+ getCollection: () => getCollection,
1554
+ deleteCollection: () => deleteCollection,
1555
+ createCollection: () => createCollection,
1556
+ addSegmentToCollection: () => addSegmentToCollection
1557
+ });
1474
1558
  // generated/dev/internal/admin.gen.ts
1475
1559
  var exports_admin_gen = {};
1476
1560
  __export(exports_admin_gen, {
1561
+ updateAdminReport: () => updateAdminReport,
1562
+ updateAdminMediaAudit: () => updateAdminMediaAudit,
1563
+ triggerReindex: () => triggerReindex,
1564
+ runAdminMediaAudit: () => runAdminMediaAudit,
1565
+ retryAdminQueueFailed: () => retryAdminQueueFailed,
1566
+ purgeAdminQueueFailed: () => purgeAdminQueueFailed,
1567
+ listAdminReports: () => listAdminReports,
1568
+ listAdminQueueStats: () => listAdminQueueStats,
1569
+ listAdminQueueFailed: () => listAdminQueueFailed,
1570
+ listAdminMediaAudits: () => listAdminMediaAudits,
1571
+ listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1572
+ impersonateAdminUser: () => impersonateAdminUser,
1573
+ getAdminQueue: () => getAdminQueue,
1574
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1477
1575
  getAdminHealth: () => getAdminHealth,
1478
- getAdminDashboard: () => getAdminDashboard
1576
+ getAdminDashboard: () => getAdminDashboard,
1577
+ clearAdminImpersonation: () => clearAdminImpersonation
1479
1578
  });
1480
1579
  export {
1481
1580
  exports_user_gen as user,
1482
1581
  updateUserPreferences,
1483
1582
  updateSeriesMedia,
1484
1583
  updateSeries,
1584
+ updateSegmentByUuid,
1485
1585
  updateSegment,
1486
1586
  updateMedia,
1487
1587
  updateEpisode,
1488
1588
  updateCollectionSegment,
1489
1589
  updateCollection,
1490
- updateAdminReviewCheck,
1491
1590
  updateAdminReport,
1591
+ updateAdminMediaAudit,
1592
+ unenrollUserLab,
1492
1593
  triggerReindex,
1594
+ trackUserActivity,
1493
1595
  searchWords,
1596
+ searchCollectionSegments,
1494
1597
  search,
1495
- runAdminReview,
1598
+ runAdminMediaAudit,
1496
1599
  retryAdminQueueFailed,
1497
1600
  removeSegmentFromCollection,
1498
1601
  removeMediaFromSeries,
1499
1602
  purgeAdminQueueFailed,
1500
1603
  exports_media_gen as media,
1501
- listUserReports,
1502
1604
  listUserLabs,
1503
1605
  listUserActivity,
1504
1606
  listSeries,
@@ -1506,12 +1608,12 @@ export {
1506
1608
  listMedia,
1507
1609
  listEpisodes,
1508
1610
  listCollections,
1509
- listAdminReviewRuns,
1510
- listAdminReviewChecks,
1511
- listAdminReviewAllowlist,
1512
1611
  listAdminReports,
1513
1612
  listAdminQueueStats,
1514
1613
  listAdminQueueFailed,
1614
+ listAdminMediaAudits,
1615
+ listAdminMediaAuditRuns,
1616
+ impersonateAdminUser,
1515
1617
  getUserQuota,
1516
1618
  getUserPreferences,
1517
1619
  getUserActivityStats,
@@ -1524,20 +1626,23 @@ export {
1524
1626
  getSearchStats,
1525
1627
  getMedia,
1526
1628
  getEpisode,
1629
+ getCollectionStats,
1527
1630
  getCollection,
1528
1631
  getCharacter,
1529
- getAdminReviewRun,
1530
1632
  getAdminQueue,
1633
+ getAdminMediaAuditRun,
1531
1634
  getAdminHealth,
1532
1635
  getAdminDashboard,
1533
1636
  exportUserData,
1637
+ enrollUserLab,
1638
+ deleteUserActivityById,
1639
+ deleteUserActivityByDate,
1534
1640
  deleteUserActivity,
1535
1641
  deleteSeries,
1536
1642
  deleteSegment,
1537
1643
  deleteMedia,
1538
1644
  deleteEpisode,
1539
1645
  deleteCollection,
1540
- deleteAdminReviewAllowlistEntry,
1541
1646
  createUserReport,
1542
1647
  createSeries,
1543
1648
  createSegment,
@@ -1545,13 +1650,14 @@ export {
1545
1650
  createMedia,
1546
1651
  createEpisode,
1547
1652
  createCollection,
1548
- createAdminReviewAllowlistEntry,
1653
+ exports_collections_gen as collections,
1549
1654
  client,
1655
+ clearAdminImpersonation,
1550
1656
  autocompleteMedia,
1551
1657
  exports_admin_gen as admin,
1552
1658
  addSegmentToCollection,
1553
1659
  addMediaToSeries
1554
1660
  };
1555
1661
 
1556
- //# debugId=AB5963794BD4F67864756E2164756E21
1662
+ //# debugId=B4E32849EFACC53A64756E2164756E21
1557
1663
  //# sourceMappingURL=index.js.map