@brigadasos/nadeshiko-sdk 1.4.3-dev.0ffbf39 → 1.4.3-dev.2ba18e0

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: {
@@ -865,191 +857,192 @@ var createMedia = (options) => (options.client ?? client).post({
865
857
  ...options.headers
866
858
  }
867
859
  });
868
- var deleteMedia = (options) => (options.client ?? client).delete({
860
+ var autocompleteMedia = (options) => (options.client ?? client).get({
869
861
  security: [{ scheme: "bearer", type: "http" }],
870
- url: "/v1/media/{id}",
862
+ url: "/v1/media/autocomplete",
871
863
  ...options
872
864
  });
873
- var getMedia = (options) => (options.client ?? client).get({
865
+ var getSegmentByUuid = (options) => (options.client ?? client).get({
874
866
  security: [{ scheme: "bearer", type: "http" }],
875
- url: "/v1/media/{id}",
867
+ url: "/v1/media/segments/{uuid}",
876
868
  ...options
877
869
  });
878
- var updateMedia = (options) => (options.client ?? client).patch({
879
- security: [{ scheme: "bearer", type: "http" }],
880
- 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}",
881
877
  ...options,
882
878
  headers: {
883
879
  "Content-Type": "application/json",
884
880
  ...options.headers
885
881
  }
886
882
  });
887
- var listEpisodes = (options) => (options.client ?? client).get({
883
+ var getSegmentContext = (options) => (options.client ?? client).get({
888
884
  security: [{ scheme: "bearer", type: "http" }],
889
- url: "/v1/media/{mediaId}/episodes",
885
+ url: "/v1/media/segments/{uuid}/context",
890
886
  ...options
891
887
  });
892
- var createEpisode = (options) => (options.client ?? client).post({
888
+ var listSeries = (options) => (options?.client ?? client).get({
893
889
  security: [{ scheme: "bearer", type: "http" }],
894
- 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",
895
896
  ...options,
896
897
  headers: {
897
898
  "Content-Type": "application/json",
898
899
  ...options.headers
899
900
  }
900
901
  });
901
- var deleteEpisode = (options) => (options.client ?? client).delete({
902
+ var deleteSeries = (options) => (options.client ?? client).delete({
902
903
  security: [{ scheme: "bearer", type: "http" }],
903
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
904
+ url: "/v1/media/series/{id}",
904
905
  ...options
905
906
  });
906
- var getEpisode = (options) => (options.client ?? client).get({
907
+ var getSeries = (options) => (options.client ?? client).get({
907
908
  security: [{ scheme: "bearer", type: "http" }],
908
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
909
+ url: "/v1/media/series/{id}",
909
910
  ...options
910
911
  });
911
- var updateEpisode = (options) => (options.client ?? client).patch({
912
+ var updateSeries = (options) => (options.client ?? client).patch({
912
913
  security: [{ scheme: "bearer", type: "http" }],
913
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
914
+ url: "/v1/media/series/{id}",
914
915
  ...options,
915
916
  headers: {
916
917
  "Content-Type": "application/json",
917
918
  ...options.headers
918
919
  }
919
920
  });
920
- var listSegments = (options) => (options.client ?? client).get({
921
- security: [{ scheme: "bearer", type: "http" }],
922
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
923
- ...options
924
- });
925
- var createSegment = (options) => (options.client ?? client).post({
921
+ var addMediaToSeries = (options) => (options.client ?? client).post({
926
922
  security: [{ scheme: "bearer", type: "http" }],
927
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
923
+ url: "/v1/media/series/{id}/media",
928
924
  ...options,
929
925
  headers: {
930
926
  "Content-Type": "application/json",
931
927
  ...options.headers
932
928
  }
933
929
  });
934
- var deleteSegment = (options) => (options.client ?? client).delete({
935
- security: [{ scheme: "bearer", type: "http" }],
936
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
937
- ...options
938
- });
939
- var getSegment = (options) => (options.client ?? client).get({
930
+ var removeMediaFromSeries = (options) => (options.client ?? client).delete({
940
931
  security: [{ scheme: "bearer", type: "http" }],
941
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
932
+ url: "/v1/media/series/{id}/media/{mediaId}",
942
933
  ...options
943
934
  });
944
- var updateSegment = (options) => (options.client ?? client).patch({
935
+ var updateSeriesMedia = (options) => (options.client ?? client).patch({
945
936
  security: [{ scheme: "bearer", type: "http" }],
946
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
937
+ url: "/v1/media/series/{id}/media/{mediaId}",
947
938
  ...options,
948
939
  headers: {
949
940
  "Content-Type": "application/json",
950
941
  ...options.headers
951
942
  }
952
943
  });
953
- var getSegmentByUuid = (options) => (options.client ?? client).get({
944
+ var getCharacter = (options) => (options.client ?? client).get({
954
945
  security: [{ scheme: "bearer", type: "http" }],
955
- url: "/v1/media/segments/{uuid}",
946
+ url: "/v1/media/characters/{id}",
956
947
  ...options
957
948
  });
958
- var getSegmentContext = (options) => (options.client ?? client).get({
949
+ var getSeiyuu = (options) => (options.client ?? client).get({
959
950
  security: [{ scheme: "bearer", type: "http" }],
960
- url: "/v1/media/segments/{uuid}/context",
951
+ url: "/v1/media/seiyuu/{id}",
961
952
  ...options
962
953
  });
963
- var listSeries = (options) => (options?.client ?? client).get({
964
- security: [{ scheme: "bearer", type: "http" }, {
965
- in: "cookie",
966
- name: "nadeshiko.session_token",
967
- type: "apiKey"
968
- }],
969
- url: "/v1/media/series",
954
+ var deleteMedia = (options) => (options.client ?? client).delete({
955
+ security: [{ scheme: "bearer", type: "http" }],
956
+ url: "/v1/media/{id}",
970
957
  ...options
971
958
  });
972
- var createSeries = (options) => (options.client ?? client).post({
959
+ var getMedia = (options) => (options.client ?? client).get({
973
960
  security: [{ scheme: "bearer", type: "http" }],
974
- 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}",
975
967
  ...options,
976
968
  headers: {
977
969
  "Content-Type": "application/json",
978
970
  ...options.headers
979
971
  }
980
972
  });
981
- var deleteSeries = (options) => (options.client ?? client).delete({
973
+ var listEpisodes = (options) => (options.client ?? client).get({
982
974
  security: [{ scheme: "bearer", type: "http" }],
983
- url: "/v1/media/series/{id}",
984
- ...options
985
- });
986
- var getSeries = (options) => (options.client ?? client).get({
987
- security: [{ scheme: "bearer", type: "http" }, {
988
- in: "cookie",
989
- name: "nadeshiko.session_token",
990
- type: "apiKey"
991
- }],
992
- url: "/v1/media/series/{id}",
975
+ url: "/v1/media/{mediaId}/episodes",
993
976
  ...options
994
977
  });
995
- var updateSeries = (options) => (options.client ?? client).patch({
978
+ var createEpisode = (options) => (options.client ?? client).post({
996
979
  security: [{ scheme: "bearer", type: "http" }],
997
- url: "/v1/media/series/{id}",
980
+ url: "/v1/media/{mediaId}/episodes",
998
981
  ...options,
999
982
  headers: {
1000
983
  "Content-Type": "application/json",
1001
984
  ...options.headers
1002
985
  }
1003
986
  });
1004
- var addMediaToSeries = (options) => (options.client ?? client).post({
987
+ var deleteEpisode = (options) => (options.client ?? client).delete({
1005
988
  security: [{ scheme: "bearer", type: "http" }],
1006
- 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}",
1007
1000
  ...options,
1008
1001
  headers: {
1009
1002
  "Content-Type": "application/json",
1010
1003
  ...options.headers
1011
1004
  }
1012
1005
  });
1013
- var removeMediaFromSeries = (options) => (options.client ?? client).delete({
1006
+ var listSegments = (options) => (options.client ?? client).get({
1014
1007
  security: [{ scheme: "bearer", type: "http" }],
1015
- url: "/v1/media/series/{id}/media/{mediaId}",
1008
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1016
1009
  ...options
1017
1010
  });
1018
- var updateSeriesMedia = (options) => (options.client ?? client).patch({
1011
+ var createSegment = (options) => (options.client ?? client).post({
1019
1012
  security: [{ scheme: "bearer", type: "http" }],
1020
- url: "/v1/media/series/{id}/media/{mediaId}",
1013
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1021
1014
  ...options,
1022
1015
  headers: {
1023
1016
  "Content-Type": "application/json",
1024
1017
  ...options.headers
1025
1018
  }
1026
1019
  });
1027
- var getCharacter = (options) => (options.client ?? client).get({
1020
+ var deleteSegment = (options) => (options.client ?? client).delete({
1028
1021
  security: [{ scheme: "bearer", type: "http" }],
1029
- url: "/v1/media/characters/{id}",
1022
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1030
1023
  ...options
1031
1024
  });
1032
- var getSeiyuu = (options) => (options.client ?? client).get({
1025
+ var getSegment = (options) => (options.client ?? client).get({
1033
1026
  security: [{ scheme: "bearer", type: "http" }],
1034
- url: "/v1/media/seiyuu/{id}",
1027
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1035
1028
  ...options
1036
1029
  });
1037
- var getUserQuota = (options) => (options?.client ?? client).get({
1038
- security: [{
1039
- in: "cookie",
1040
- name: "nadeshiko.session_token",
1041
- type: "apiKey"
1042
- }, { scheme: "bearer", type: "http" }],
1043
- url: "/v1/user/quota",
1044
- ...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
+ }
1045
1038
  });
1046
- var listUserReports = (options) => (options?.client ?? client).get({
1039
+ var getUserQuota = (options) => (options?.client ?? client).get({
1047
1040
  security: [{
1048
1041
  in: "cookie",
1049
1042
  name: "nadeshiko.session_token",
1050
1043
  type: "apiKey"
1051
1044
  }],
1052
- url: "/v1/user/reports",
1045
+ url: "/v1/user/quota",
1053
1046
  ...options
1054
1047
  });
1055
1048
  var createUserReport = (options) => (options.client ?? client).post({
@@ -1105,6 +1098,19 @@ var listUserActivity = (options) => (options?.client ?? client).get({
1105
1098
  url: "/v1/user/activity",
1106
1099
  ...options
1107
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
+ });
1108
1114
  var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
1109
1115
  security: [{
1110
1116
  in: "cookie",
@@ -1123,6 +1129,24 @@ var getUserActivityStats = (options) => (options?.client ?? client).get({
1123
1129
  url: "/v1/user/activity/stats",
1124
1130
  ...options
1125
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
+ });
1126
1150
  var exportUserData = (options) => (options?.client ?? client).get({
1127
1151
  security: [{
1128
1152
  in: "cookie",
@@ -1141,6 +1165,24 @@ var listUserLabs = (options) => (options?.client ?? client).get({
1141
1165
  url: "/v1/user/labs",
1142
1166
  ...options
1143
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
+ });
1144
1186
  var listCollections = (options) => (options?.client ?? client).get({
1145
1187
  security: [{
1146
1188
  in: "cookie",
@@ -1229,6 +1271,24 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1229
1271
  ...options.headers
1230
1272
  }
1231
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
+ });
1232
1292
  var getAdminDashboard = (options) => (options?.client ?? client).get({
1233
1293
  security: [{ scheme: "bearer", type: "http" }],
1234
1294
  url: "/v1/admin/dashboard",
@@ -1273,6 +1333,28 @@ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1273
1333
  url: "/v1/admin/queues/{queueName}/purge",
1274
1334
  ...options
1275
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
+ });
1276
1358
  var listAdminReports = (options) => (options?.client ?? client).get({
1277
1359
  security: [{ scheme: "bearer", type: "http" }],
1278
1360
  url: "/v1/admin/reports",
@@ -1287,52 +1369,33 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
1287
1369
  ...options.headers
1288
1370
  }
1289
1371
  });
1290
- var runAdminReview = (options) => (options?.client ?? client).post({
1291
- security: [{ scheme: "bearer", type: "http" }],
1292
- url: "/v1/admin/review/run",
1293
- ...options
1294
- });
1295
- var listAdminReviewChecks = (options) => (options?.client ?? client).get({
1372
+ var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1296
1373
  security: [{ scheme: "bearer", type: "http" }],
1297
- url: "/v1/admin/review/checks",
1374
+ url: "/v1/admin/media/audits",
1298
1375
  ...options
1299
1376
  });
1300
- var updateAdminReviewCheck = (options) => (options.client ?? client).patch({
1377
+ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1301
1378
  security: [{ scheme: "bearer", type: "http" }],
1302
- url: "/v1/admin/review/checks/{name}",
1379
+ url: "/v1/admin/media/audits/{name}",
1303
1380
  ...options,
1304
1381
  headers: {
1305
1382
  "Content-Type": "application/json",
1306
1383
  ...options.headers
1307
1384
  }
1308
1385
  });
1309
- var listAdminReviewRuns = (options) => (options?.client ?? client).get({
1386
+ var runAdminMediaAudit = (options) => (options.client ?? client).post({
1310
1387
  security: [{ scheme: "bearer", type: "http" }],
1311
- url: "/v1/admin/review/runs",
1388
+ url: "/v1/admin/media/audits/{name}/run",
1312
1389
  ...options
1313
1390
  });
1314
- var getAdminReviewRun = (options) => (options.client ?? client).get({
1391
+ var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1315
1392
  security: [{ scheme: "bearer", type: "http" }],
1316
- url: "/v1/admin/review/runs/{id}",
1393
+ url: "/v1/admin/media/audits/runs",
1317
1394
  ...options
1318
1395
  });
1319
- var listAdminReviewAllowlist = (options) => (options?.client ?? client).get({
1320
- security: [{ scheme: "bearer", type: "http" }],
1321
- url: "/v1/admin/review/allowlist",
1322
- ...options
1323
- });
1324
- var createAdminReviewAllowlistEntry = (options) => (options.client ?? client).post({
1325
- security: [{ scheme: "bearer", type: "http" }],
1326
- url: "/v1/admin/review/allowlist",
1327
- ...options,
1328
- headers: {
1329
- "Content-Type": "application/json",
1330
- ...options.headers
1331
- }
1332
- });
1333
- var deleteAdminReviewAllowlistEntry = (options) => (options.client ?? client).delete({
1396
+ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1334
1397
  security: [{ scheme: "bearer", type: "http" }],
1335
- url: "/v1/admin/review/allowlist/{id}",
1398
+ url: "/v1/admin/media/audits/runs/{id}",
1336
1399
  ...options
1337
1400
  });
1338
1401
  // generated/dev/nadeshiko.gen.ts
@@ -1341,13 +1404,20 @@ var environments = {
1341
1404
  DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
1342
1405
  PRODUCTION: "https://api.brigadasos.xyz/api"
1343
1406
  };
1407
+ var defaultSessionTokenGetter = () => {
1408
+ if (typeof document === "undefined")
1409
+ return;
1410
+ const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
1411
+ return match ? decodeURIComponent(match[1]) : undefined;
1412
+ };
1344
1413
  function createNadeshikoClient(config) {
1345
1414
  const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl : environments.PRODUCTION;
1415
+ const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
1346
1416
  const clientInstance = createClient(createConfig({
1347
1417
  baseUrl,
1348
1418
  auth: (auth) => {
1349
1419
  if (auth.in === "cookie") {
1350
- return config.sessionToken;
1420
+ return getSessionToken();
1351
1421
  }
1352
1422
  return config.apiKey;
1353
1423
  }
@@ -1358,17 +1428,16 @@ function createNadeshikoClient(config) {
1358
1428
  getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
1359
1429
  searchWords: (options) => searchWords({ ...options, client: clientInstance }),
1360
1430
  listMedia: (options) => listMedia({ ...options, client: clientInstance }),
1361
- getMedia: (options) => getMedia({ ...options, client: clientInstance }),
1362
- listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
1363
- getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
1364
- getSegment: (options) => getSegment({ ...options, client: clientInstance }),
1365
1431
  getSegmentByUuid: (options) => getSegmentByUuid({ ...options, client: clientInstance }),
1366
1432
  getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
1367
1433
  listSeries: (options) => listSeries({ ...options, client: clientInstance }),
1368
1434
  getSeries: (options) => getSeries({ ...options, client: clientInstance }),
1369
1435
  getCharacter: (options) => getCharacter({ ...options, client: clientInstance }),
1370
1436
  getSeiyuu: (options) => getSeiyuu({ ...options, client: clientInstance }),
1371
- getUserQuota: (options) => getUserQuota({ ...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 }),
1372
1441
  listCollections: (options) => listCollections({ ...options, client: clientInstance }),
1373
1442
  createCollection: (options) => createCollection({ ...options, client: clientInstance }),
1374
1443
  getCollection: (options) => getCollection({ ...options, client: clientInstance }),
@@ -1377,23 +1446,17 @@ function createNadeshikoClient(config) {
1377
1446
  addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
1378
1447
  updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
1379
1448
  removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
1380
- triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
1381
- listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
1382
- getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
1383
- listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
1384
- retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
1385
- purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
1386
- listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
1387
- updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
1388
- runAdminReview: (options) => runAdminReview({ ...options, client: clientInstance }),
1389
- listAdminReviewChecks: (options) => listAdminReviewChecks({ ...options, client: clientInstance }),
1390
- updateAdminReviewCheck: (options) => updateAdminReviewCheck({ ...options, client: clientInstance }),
1391
- listAdminReviewRuns: (options) => listAdminReviewRuns({ ...options, client: clientInstance }),
1392
- getAdminReviewRun: (options) => getAdminReviewRun({ ...options, client: clientInstance }),
1393
- listAdminReviewAllowlist: (options) => listAdminReviewAllowlist({ ...options, client: clientInstance }),
1394
- createAdminReviewAllowlistEntry: (options) => createAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
1395
- deleteAdminReviewAllowlistEntry: (options) => deleteAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
1449
+ searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
1450
+ getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
1396
1451
  createMedia: (options) => createMedia({ ...options, client: clientInstance }),
1452
+ autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
1453
+ updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
1454
+ createSeries: (options) => createSeries({ ...options, client: clientInstance }),
1455
+ updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
1456
+ deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
1457
+ addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
1458
+ updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
1459
+ removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
1397
1460
  updateMedia: (options) => updateMedia({ ...options, client: clientInstance }),
1398
1461
  deleteMedia: (options) => deleteMedia({ ...options, client: clientInstance }),
1399
1462
  createEpisode: (options) => createEpisode({ ...options, client: clientInstance }),
@@ -1403,32 +1466,46 @@ function createNadeshikoClient(config) {
1403
1466
  createSegment: (options) => createSegment({ ...options, client: clientInstance }),
1404
1467
  updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
1405
1468
  deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
1406
- createSeries: (options) => createSeries({ ...options, client: clientInstance }),
1407
- updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
1408
- deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
1409
- addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
1410
- updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
1411
- removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
1469
+ getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
1412
1470
  createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
1413
- listUserReports: (options) => listUserReports({ ...options, client: clientInstance }),
1414
1471
  getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
1415
1472
  updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
1416
1473
  listUserActivity: (options) => listUserActivity({ ...options, client: clientInstance }),
1474
+ trackUserActivity: (options) => trackUserActivity({ ...options, client: clientInstance }),
1417
1475
  deleteUserActivity: (options) => deleteUserActivity({ ...options, client: clientInstance }),
1418
1476
  getUserActivityHeatmap: (options) => getUserActivityHeatmap({ ...options, client: clientInstance }),
1419
1477
  getUserActivityStats: (options) => getUserActivityStats({ ...options, client: clientInstance }),
1478
+ deleteUserActivityByDate: (options) => deleteUserActivityByDate({ ...options, client: clientInstance }),
1479
+ deleteUserActivityById: (options) => deleteUserActivityById({ ...options, client: clientInstance }),
1420
1480
  exportUserData: (options) => exportUserData({ ...options, client: clientInstance }),
1421
1481
  listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
1482
+ enrollUserLab: (options) => enrollUserLab({ ...options, client: clientInstance }),
1483
+ unenrollUserLab: (options) => unenrollUserLab({ ...options, client: clientInstance }),
1422
1484
  getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
1423
- 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 })
1424
1501
  };
1425
1502
  }
1426
- var createClient2 = createNadeshikoClient;
1427
1503
  // generated/dev/internal/media.gen.ts
1428
1504
  var exports_media_gen = {};
1429
1505
  __export(exports_media_gen, {
1430
1506
  updateSeriesMedia: () => updateSeriesMedia,
1431
1507
  updateSeries: () => updateSeries,
1508
+ updateSegmentByUuid: () => updateSegmentByUuid,
1432
1509
  updateSegment: () => updateSegment,
1433
1510
  updateMedia: () => updateMedia,
1434
1511
  updateEpisode: () => updateEpisode,
@@ -1442,50 +1519,74 @@ __export(exports_media_gen, {
1442
1519
  createSegment: () => createSegment,
1443
1520
  createMedia: () => createMedia,
1444
1521
  createEpisode: () => createEpisode,
1522
+ autocompleteMedia: () => autocompleteMedia,
1445
1523
  addMediaToSeries: () => addMediaToSeries
1446
1524
  });
1447
1525
  // generated/dev/internal/user.gen.ts
1448
1526
  var exports_user_gen = {};
1449
1527
  __export(exports_user_gen, {
1450
1528
  updateUserPreferences: () => updateUserPreferences,
1451
- listUserReports: () => listUserReports,
1529
+ unenrollUserLab: () => unenrollUserLab,
1530
+ trackUserActivity: () => trackUserActivity,
1452
1531
  listUserLabs: () => listUserLabs,
1453
1532
  listUserActivity: () => listUserActivity,
1533
+ getUserQuota: () => getUserQuota,
1454
1534
  getUserPreferences: () => getUserPreferences,
1455
1535
  getUserActivityStats: () => getUserActivityStats,
1456
1536
  getUserActivityHeatmap: () => getUserActivityHeatmap,
1457
1537
  exportUserData: () => exportUserData,
1538
+ enrollUserLab: () => enrollUserLab,
1539
+ deleteUserActivityById: () => deleteUserActivityById,
1540
+ deleteUserActivityByDate: () => deleteUserActivityByDate,
1458
1541
  deleteUserActivity: () => deleteUserActivity,
1459
1542
  createUserReport: () => createUserReport
1460
1543
  });
1461
1544
  // generated/dev/internal/admin.gen.ts
1462
1545
  var exports_admin_gen = {};
1463
1546
  __export(exports_admin_gen, {
1547
+ updateAdminReport: () => updateAdminReport,
1548
+ updateAdminMediaAudit: () => updateAdminMediaAudit,
1549
+ triggerReindex: () => triggerReindex,
1550
+ runAdminMediaAudit: () => runAdminMediaAudit,
1551
+ retryAdminQueueFailed: () => retryAdminQueueFailed,
1552
+ purgeAdminQueueFailed: () => purgeAdminQueueFailed,
1553
+ listAdminReports: () => listAdminReports,
1554
+ listAdminQueueStats: () => listAdminQueueStats,
1555
+ listAdminQueueFailed: () => listAdminQueueFailed,
1556
+ listAdminMediaAudits: () => listAdminMediaAudits,
1557
+ listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1558
+ impersonateAdminUser: () => impersonateAdminUser,
1559
+ getAdminQueue: () => getAdminQueue,
1560
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1464
1561
  getAdminHealth: () => getAdminHealth,
1465
- getAdminDashboard: () => getAdminDashboard
1562
+ getAdminDashboard: () => getAdminDashboard,
1563
+ clearAdminImpersonation: () => clearAdminImpersonation
1466
1564
  });
1467
1565
  export {
1468
1566
  exports_user_gen as user,
1469
1567
  updateUserPreferences,
1470
1568
  updateSeriesMedia,
1471
1569
  updateSeries,
1570
+ updateSegmentByUuid,
1472
1571
  updateSegment,
1473
1572
  updateMedia,
1474
1573
  updateEpisode,
1475
1574
  updateCollectionSegment,
1476
1575
  updateCollection,
1477
- updateAdminReviewCheck,
1478
1576
  updateAdminReport,
1577
+ updateAdminMediaAudit,
1578
+ unenrollUserLab,
1479
1579
  triggerReindex,
1580
+ trackUserActivity,
1480
1581
  searchWords,
1582
+ searchCollectionSegments,
1481
1583
  search,
1482
- runAdminReview,
1584
+ runAdminMediaAudit,
1483
1585
  retryAdminQueueFailed,
1484
1586
  removeSegmentFromCollection,
1485
1587
  removeMediaFromSeries,
1486
1588
  purgeAdminQueueFailed,
1487
1589
  exports_media_gen as media,
1488
- listUserReports,
1489
1590
  listUserLabs,
1490
1591
  listUserActivity,
1491
1592
  listSeries,
@@ -1493,12 +1594,12 @@ export {
1493
1594
  listMedia,
1494
1595
  listEpisodes,
1495
1596
  listCollections,
1496
- listAdminReviewRuns,
1497
- listAdminReviewChecks,
1498
- listAdminReviewAllowlist,
1499
1597
  listAdminReports,
1500
1598
  listAdminQueueStats,
1501
1599
  listAdminQueueFailed,
1600
+ listAdminMediaAudits,
1601
+ listAdminMediaAuditRuns,
1602
+ impersonateAdminUser,
1502
1603
  getUserQuota,
1503
1604
  getUserPreferences,
1504
1605
  getUserActivityStats,
@@ -1511,20 +1612,23 @@ export {
1511
1612
  getSearchStats,
1512
1613
  getMedia,
1513
1614
  getEpisode,
1615
+ getCollectionStats,
1514
1616
  getCollection,
1515
1617
  getCharacter,
1516
- getAdminReviewRun,
1517
1618
  getAdminQueue,
1619
+ getAdminMediaAuditRun,
1518
1620
  getAdminHealth,
1519
1621
  getAdminDashboard,
1520
1622
  exportUserData,
1623
+ enrollUserLab,
1624
+ deleteUserActivityById,
1625
+ deleteUserActivityByDate,
1521
1626
  deleteUserActivity,
1522
1627
  deleteSeries,
1523
1628
  deleteSegment,
1524
1629
  deleteMedia,
1525
1630
  deleteEpisode,
1526
1631
  deleteCollection,
1527
- deleteAdminReviewAllowlistEntry,
1528
1632
  createUserReport,
1529
1633
  createSeries,
1530
1634
  createSegment,
@@ -1532,13 +1636,13 @@ export {
1532
1636
  createMedia,
1533
1637
  createEpisode,
1534
1638
  createCollection,
1535
- createClient2 as createClient,
1536
- createAdminReviewAllowlistEntry,
1537
1639
  client,
1640
+ clearAdminImpersonation,
1641
+ autocompleteMedia,
1538
1642
  exports_admin_gen as admin,
1539
1643
  addSegmentToCollection,
1540
1644
  addMediaToSeries
1541
1645
  };
1542
1646
 
1543
- //# debugId=263E667AD4EF730B64756E2164756E21
1647
+ //# debugId=B3130B9CEE1BCB7964756E2164756E21
1544
1648
  //# sourceMappingURL=index.js.map