@brigadasos/nadeshiko-sdk 1.4.3-dev.e5c01f0 → 1.5.0-dev.0dea288

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,7 +813,7 @@ 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({
@@ -852,12 +856,20 @@ var searchWords = (options) => (options.client ?? client).post({
852
856
  }
853
857
  });
854
858
  var listMedia = (options) => (options?.client ?? client).get({
855
- security: [{ scheme: "bearer", type: "http" }],
859
+ security: [{ scheme: "bearer", type: "http" }, {
860
+ in: "cookie",
861
+ name: "nadeshiko.session_token",
862
+ type: "apiKey"
863
+ }],
856
864
  url: "/v1/media",
857
865
  ...options
858
866
  });
859
867
  var createMedia = (options) => (options.client ?? client).post({
860
- security: [{ scheme: "bearer", type: "http" }],
868
+ security: [{ scheme: "bearer", type: "http" }, {
869
+ in: "cookie",
870
+ name: "nadeshiko.session_token",
871
+ type: "apiKey"
872
+ }],
861
873
  url: "/v1/media",
862
874
  ...options,
863
875
  headers: {
@@ -866,195 +878,317 @@ var createMedia = (options) => (options.client ?? client).post({
866
878
  }
867
879
  });
868
880
  var autocompleteMedia = (options) => (options.client ?? client).get({
869
- security: [{ scheme: "bearer", type: "http" }],
881
+ security: [{ scheme: "bearer", type: "http" }, {
882
+ in: "cookie",
883
+ name: "nadeshiko.session_token",
884
+ type: "apiKey"
885
+ }],
870
886
  url: "/v1/media/autocomplete",
871
887
  ...options
872
888
  });
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({
879
- security: [{ scheme: "bearer", type: "http" }],
880
- url: "/v1/media/{id}",
889
+ var getSegmentByUuid = (options) => (options.client ?? client).get({
890
+ security: [{ scheme: "bearer", type: "http" }, {
891
+ in: "cookie",
892
+ name: "nadeshiko.session_token",
893
+ type: "apiKey"
894
+ }],
895
+ url: "/v1/media/segments/{uuid}",
881
896
  ...options
882
897
  });
883
- var updateMedia = (options) => (options.client ?? client).patch({
884
- security: [{ scheme: "bearer", type: "http" }],
885
- url: "/v1/media/{id}",
898
+ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
899
+ security: [{ scheme: "bearer", type: "http" }, {
900
+ in: "cookie",
901
+ name: "nadeshiko.session_token",
902
+ type: "apiKey"
903
+ }],
904
+ url: "/v1/media/segments/{uuid}",
886
905
  ...options,
887
906
  headers: {
888
907
  "Content-Type": "application/json",
889
908
  ...options.headers
890
909
  }
891
910
  });
892
- var listEpisodes = (options) => (options.client ?? client).get({
893
- security: [{ scheme: "bearer", type: "http" }],
894
- url: "/v1/media/{mediaId}/episodes",
911
+ var getSegmentContext = (options) => (options.client ?? client).get({
912
+ security: [{ scheme: "bearer", type: "http" }, {
913
+ in: "cookie",
914
+ name: "nadeshiko.session_token",
915
+ type: "apiKey"
916
+ }],
917
+ url: "/v1/media/segments/{uuid}/context",
895
918
  ...options
896
919
  });
897
- var createEpisode = (options) => (options.client ?? client).post({
898
- security: [{ scheme: "bearer", type: "http" }],
899
- url: "/v1/media/{mediaId}/episodes",
920
+ var listSegmentRevisions = (options) => (options.client ?? client).get({
921
+ security: [{ scheme: "bearer", type: "http" }, {
922
+ in: "cookie",
923
+ name: "nadeshiko.session_token",
924
+ type: "apiKey"
925
+ }],
926
+ url: "/v1/media/segments/{uuid}/revisions",
927
+ ...options
928
+ });
929
+ var listSeries = (options) => (options?.client ?? client).get({
930
+ security: [{ scheme: "bearer", type: "http" }, {
931
+ in: "cookie",
932
+ name: "nadeshiko.session_token",
933
+ type: "apiKey"
934
+ }],
935
+ url: "/v1/media/series",
936
+ ...options
937
+ });
938
+ var createSeries = (options) => (options.client ?? client).post({
939
+ security: [{ scheme: "bearer", type: "http" }, {
940
+ in: "cookie",
941
+ name: "nadeshiko.session_token",
942
+ type: "apiKey"
943
+ }],
944
+ url: "/v1/media/series",
900
945
  ...options,
901
946
  headers: {
902
947
  "Content-Type": "application/json",
903
948
  ...options.headers
904
949
  }
905
950
  });
906
- var deleteEpisode = (options) => (options.client ?? client).delete({
907
- security: [{ scheme: "bearer", type: "http" }],
908
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
951
+ var deleteSeries = (options) => (options.client ?? client).delete({
952
+ security: [{ scheme: "bearer", type: "http" }, {
953
+ in: "cookie",
954
+ name: "nadeshiko.session_token",
955
+ type: "apiKey"
956
+ }],
957
+ url: "/v1/media/series/{id}",
909
958
  ...options
910
959
  });
911
- var getEpisode = (options) => (options.client ?? client).get({
912
- security: [{ scheme: "bearer", type: "http" }],
913
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
960
+ var getSeries = (options) => (options.client ?? client).get({
961
+ security: [{ scheme: "bearer", type: "http" }, {
962
+ in: "cookie",
963
+ name: "nadeshiko.session_token",
964
+ type: "apiKey"
965
+ }],
966
+ url: "/v1/media/series/{id}",
914
967
  ...options
915
968
  });
916
- var updateEpisode = (options) => (options.client ?? client).patch({
917
- security: [{ scheme: "bearer", type: "http" }],
918
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
969
+ var updateSeries = (options) => (options.client ?? client).patch({
970
+ security: [{ scheme: "bearer", type: "http" }, {
971
+ in: "cookie",
972
+ name: "nadeshiko.session_token",
973
+ type: "apiKey"
974
+ }],
975
+ url: "/v1/media/series/{id}",
919
976
  ...options,
920
977
  headers: {
921
978
  "Content-Type": "application/json",
922
979
  ...options.headers
923
980
  }
924
981
  });
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({
931
- security: [{ scheme: "bearer", type: "http" }],
932
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
982
+ var addMediaToSeries = (options) => (options.client ?? client).post({
983
+ security: [{ scheme: "bearer", type: "http" }, {
984
+ in: "cookie",
985
+ name: "nadeshiko.session_token",
986
+ type: "apiKey"
987
+ }],
988
+ url: "/v1/media/series/{id}/media",
933
989
  ...options,
934
990
  headers: {
935
991
  "Content-Type": "application/json",
936
992
  ...options.headers
937
993
  }
938
994
  });
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({
945
- security: [{ scheme: "bearer", type: "http" }],
946
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
995
+ var removeMediaFromSeries = (options) => (options.client ?? client).delete({
996
+ security: [{ scheme: "bearer", type: "http" }, {
997
+ in: "cookie",
998
+ name: "nadeshiko.session_token",
999
+ type: "apiKey"
1000
+ }],
1001
+ url: "/v1/media/series/{id}/media/{mediaId}",
947
1002
  ...options
948
1003
  });
949
- var updateSegment = (options) => (options.client ?? client).patch({
950
- security: [{ scheme: "bearer", type: "http" }],
951
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1004
+ var updateSeriesMedia = (options) => (options.client ?? client).patch({
1005
+ security: [{ scheme: "bearer", type: "http" }, {
1006
+ in: "cookie",
1007
+ name: "nadeshiko.session_token",
1008
+ type: "apiKey"
1009
+ }],
1010
+ url: "/v1/media/series/{id}/media/{mediaId}",
952
1011
  ...options,
953
1012
  headers: {
954
1013
  "Content-Type": "application/json",
955
1014
  ...options.headers
956
1015
  }
957
1016
  });
958
- var getSegmentByUuid = (options) => (options.client ?? client).get({
959
- security: [{ scheme: "bearer", type: "http" }],
960
- url: "/v1/media/segments/{uuid}",
1017
+ var getCharacter = (options) => (options.client ?? client).get({
1018
+ security: [{ scheme: "bearer", type: "http" }, {
1019
+ in: "cookie",
1020
+ name: "nadeshiko.session_token",
1021
+ type: "apiKey"
1022
+ }],
1023
+ url: "/v1/media/characters/{id}",
961
1024
  ...options
962
1025
  });
963
- var getSegmentContext = (options) => (options.client ?? client).get({
964
- security: [{ scheme: "bearer", type: "http" }],
965
- url: "/v1/media/segments/{uuid}/context",
1026
+ var getSeiyuu = (options) => (options.client ?? client).get({
1027
+ security: [{ scheme: "bearer", type: "http" }, {
1028
+ in: "cookie",
1029
+ name: "nadeshiko.session_token",
1030
+ type: "apiKey"
1031
+ }],
1032
+ url: "/v1/media/seiyuu/{id}",
966
1033
  ...options
967
1034
  });
968
- var listSeries = (options) => (options?.client ?? client).get({
1035
+ var deleteMedia = (options) => (options.client ?? client).delete({
969
1036
  security: [{ scheme: "bearer", type: "http" }, {
970
1037
  in: "cookie",
971
1038
  name: "nadeshiko.session_token",
972
1039
  type: "apiKey"
973
1040
  }],
974
- url: "/v1/media/series",
1041
+ url: "/v1/media/{id}",
975
1042
  ...options
976
1043
  });
977
- var createSeries = (options) => (options.client ?? client).post({
978
- security: [{ scheme: "bearer", type: "http" }],
979
- url: "/v1/media/series",
1044
+ var getMedia = (options) => (options.client ?? client).get({
1045
+ security: [{ scheme: "bearer", type: "http" }, {
1046
+ in: "cookie",
1047
+ name: "nadeshiko.session_token",
1048
+ type: "apiKey"
1049
+ }],
1050
+ url: "/v1/media/{id}",
1051
+ ...options
1052
+ });
1053
+ var updateMedia = (options) => (options.client ?? client).patch({
1054
+ security: [{ scheme: "bearer", type: "http" }, {
1055
+ in: "cookie",
1056
+ name: "nadeshiko.session_token",
1057
+ type: "apiKey"
1058
+ }],
1059
+ url: "/v1/media/{id}",
980
1060
  ...options,
981
1061
  headers: {
982
1062
  "Content-Type": "application/json",
983
1063
  ...options.headers
984
1064
  }
985
1065
  });
986
- var deleteSeries = (options) => (options.client ?? client).delete({
987
- security: [{ scheme: "bearer", type: "http" }],
988
- url: "/v1/media/series/{id}",
989
- ...options
990
- });
991
- var getSeries = (options) => (options.client ?? client).get({
1066
+ var listEpisodes = (options) => (options.client ?? client).get({
992
1067
  security: [{ scheme: "bearer", type: "http" }, {
993
1068
  in: "cookie",
994
1069
  name: "nadeshiko.session_token",
995
1070
  type: "apiKey"
996
1071
  }],
997
- url: "/v1/media/series/{id}",
1072
+ url: "/v1/media/{mediaId}/episodes",
998
1073
  ...options
999
1074
  });
1000
- var updateSeries = (options) => (options.client ?? client).patch({
1001
- security: [{ scheme: "bearer", type: "http" }],
1002
- url: "/v1/media/series/{id}",
1075
+ var createEpisode = (options) => (options.client ?? client).post({
1076
+ security: [{ scheme: "bearer", type: "http" }, {
1077
+ in: "cookie",
1078
+ name: "nadeshiko.session_token",
1079
+ type: "apiKey"
1080
+ }],
1081
+ url: "/v1/media/{mediaId}/episodes",
1003
1082
  ...options,
1004
1083
  headers: {
1005
1084
  "Content-Type": "application/json",
1006
1085
  ...options.headers
1007
1086
  }
1008
1087
  });
1009
- var addMediaToSeries = (options) => (options.client ?? client).post({
1010
- security: [{ scheme: "bearer", type: "http" }],
1011
- url: "/v1/media/series/{id}/media",
1088
+ var deleteEpisode = (options) => (options.client ?? client).delete({
1089
+ security: [{ scheme: "bearer", type: "http" }, {
1090
+ in: "cookie",
1091
+ name: "nadeshiko.session_token",
1092
+ type: "apiKey"
1093
+ }],
1094
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1095
+ ...options
1096
+ });
1097
+ var getEpisode = (options) => (options.client ?? client).get({
1098
+ security: [{ scheme: "bearer", type: "http" }, {
1099
+ in: "cookie",
1100
+ name: "nadeshiko.session_token",
1101
+ type: "apiKey"
1102
+ }],
1103
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1104
+ ...options
1105
+ });
1106
+ var updateEpisode = (options) => (options.client ?? client).patch({
1107
+ security: [{ scheme: "bearer", type: "http" }, {
1108
+ in: "cookie",
1109
+ name: "nadeshiko.session_token",
1110
+ type: "apiKey"
1111
+ }],
1112
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1012
1113
  ...options,
1013
1114
  headers: {
1014
1115
  "Content-Type": "application/json",
1015
1116
  ...options.headers
1016
1117
  }
1017
1118
  });
1018
- var removeMediaFromSeries = (options) => (options.client ?? client).delete({
1019
- security: [{ scheme: "bearer", type: "http" }],
1020
- url: "/v1/media/series/{id}/media/{mediaId}",
1119
+ var listSegments = (options) => (options.client ?? client).get({
1120
+ security: [{ scheme: "bearer", type: "http" }, {
1121
+ in: "cookie",
1122
+ name: "nadeshiko.session_token",
1123
+ type: "apiKey"
1124
+ }],
1125
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1021
1126
  ...options
1022
1127
  });
1023
- var updateSeriesMedia = (options) => (options.client ?? client).patch({
1024
- security: [{ scheme: "bearer", type: "http" }],
1025
- url: "/v1/media/series/{id}/media/{mediaId}",
1128
+ var createSegment = (options) => (options.client ?? client).post({
1129
+ security: [{ scheme: "bearer", type: "http" }, {
1130
+ in: "cookie",
1131
+ name: "nadeshiko.session_token",
1132
+ type: "apiKey"
1133
+ }],
1134
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1026
1135
  ...options,
1027
1136
  headers: {
1028
1137
  "Content-Type": "application/json",
1029
1138
  ...options.headers
1030
1139
  }
1031
1140
  });
1032
- var getCharacter = (options) => (options.client ?? client).get({
1033
- security: [{ scheme: "bearer", type: "http" }],
1034
- url: "/v1/media/characters/{id}",
1035
- ...options
1141
+ var createSegmentsBatch = (options) => (options.client ?? client).post({
1142
+ security: [{ scheme: "bearer", type: "http" }, {
1143
+ in: "cookie",
1144
+ name: "nadeshiko.session_token",
1145
+ type: "apiKey"
1146
+ }],
1147
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
1148
+ ...options,
1149
+ headers: {
1150
+ "Content-Type": "application/json",
1151
+ ...options.headers
1152
+ }
1036
1153
  });
1037
- var getSeiyuu = (options) => (options.client ?? client).get({
1038
- security: [{ scheme: "bearer", type: "http" }],
1039
- url: "/v1/media/seiyuu/{id}",
1154
+ var deleteSegment = (options) => (options.client ?? client).delete({
1155
+ security: [{ scheme: "bearer", type: "http" }, {
1156
+ in: "cookie",
1157
+ name: "nadeshiko.session_token",
1158
+ type: "apiKey"
1159
+ }],
1160
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1040
1161
  ...options
1041
1162
  });
1042
- var getUserQuota = (options) => (options?.client ?? client).get({
1043
- security: [{
1163
+ var getSegment = (options) => (options.client ?? client).get({
1164
+ security: [{ scheme: "bearer", type: "http" }, {
1044
1165
  in: "cookie",
1045
1166
  name: "nadeshiko.session_token",
1046
1167
  type: "apiKey"
1047
- }, { scheme: "bearer", type: "http" }],
1048
- url: "/v1/user/quota",
1168
+ }],
1169
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1049
1170
  ...options
1050
1171
  });
1051
- var listUserReports = (options) => (options?.client ?? client).get({
1172
+ var updateSegment = (options) => (options.client ?? client).patch({
1173
+ security: [{ scheme: "bearer", type: "http" }, {
1174
+ in: "cookie",
1175
+ name: "nadeshiko.session_token",
1176
+ type: "apiKey"
1177
+ }],
1178
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1179
+ ...options,
1180
+ headers: {
1181
+ "Content-Type": "application/json",
1182
+ ...options.headers
1183
+ }
1184
+ });
1185
+ var getUserQuota = (options) => (options?.client ?? client).get({
1052
1186
  security: [{
1053
1187
  in: "cookie",
1054
1188
  name: "nadeshiko.session_token",
1055
1189
  type: "apiKey"
1056
1190
  }],
1057
- url: "/v1/user/reports",
1191
+ url: "/v1/user/quota",
1058
1192
  ...options
1059
1193
  });
1060
1194
  var createUserReport = (options) => (options.client ?? client).post({
@@ -1110,6 +1244,19 @@ var listUserActivity = (options) => (options?.client ?? client).get({
1110
1244
  url: "/v1/user/activity",
1111
1245
  ...options
1112
1246
  });
1247
+ var trackUserActivity = (options) => (options.client ?? client).post({
1248
+ security: [{
1249
+ in: "cookie",
1250
+ name: "nadeshiko.session_token",
1251
+ type: "apiKey"
1252
+ }],
1253
+ url: "/v1/user/activity",
1254
+ ...options,
1255
+ headers: {
1256
+ "Content-Type": "application/json",
1257
+ ...options.headers
1258
+ }
1259
+ });
1113
1260
  var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
1114
1261
  security: [{
1115
1262
  in: "cookie",
@@ -1128,6 +1275,24 @@ var getUserActivityStats = (options) => (options?.client ?? client).get({
1128
1275
  url: "/v1/user/activity/stats",
1129
1276
  ...options
1130
1277
  });
1278
+ var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
1279
+ security: [{
1280
+ in: "cookie",
1281
+ name: "nadeshiko.session_token",
1282
+ type: "apiKey"
1283
+ }],
1284
+ url: "/v1/user/activity/date/{date}",
1285
+ ...options
1286
+ });
1287
+ var deleteUserActivityById = (options) => (options.client ?? client).delete({
1288
+ security: [{
1289
+ in: "cookie",
1290
+ name: "nadeshiko.session_token",
1291
+ type: "apiKey"
1292
+ }],
1293
+ url: "/v1/user/activity/{id}",
1294
+ ...options
1295
+ });
1131
1296
  var exportUserData = (options) => (options?.client ?? client).get({
1132
1297
  security: [{
1133
1298
  in: "cookie",
@@ -1146,6 +1311,24 @@ var listUserLabs = (options) => (options?.client ?? client).get({
1146
1311
  url: "/v1/user/labs",
1147
1312
  ...options
1148
1313
  });
1314
+ var unenrollUserLab = (options) => (options.client ?? client).delete({
1315
+ security: [{
1316
+ in: "cookie",
1317
+ name: "nadeshiko.session_token",
1318
+ type: "apiKey"
1319
+ }],
1320
+ url: "/v1/user/labs/{key}",
1321
+ ...options
1322
+ });
1323
+ var enrollUserLab = (options) => (options.client ?? client).post({
1324
+ security: [{
1325
+ in: "cookie",
1326
+ name: "nadeshiko.session_token",
1327
+ type: "apiKey"
1328
+ }],
1329
+ url: "/v1/user/labs/{key}",
1330
+ ...options
1331
+ });
1149
1332
  var listCollections = (options) => (options?.client ?? client).get({
1150
1333
  security: [{
1151
1334
  in: "cookie",
@@ -1218,7 +1401,7 @@ var removeSegmentFromCollection = (options) => (options.client ?? client).delete
1218
1401
  name: "nadeshiko.session_token",
1219
1402
  type: "apiKey"
1220
1403
  }],
1221
- url: "/v1/collections/{id}/segments/{uuid}",
1404
+ url: "/v1/collections/{id}/segments/{segmentId}",
1222
1405
  ...options
1223
1406
  });
1224
1407
  var updateCollectionSegment = (options) => (options.client ?? client).patch({
@@ -1227,25 +1410,55 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1227
1410
  name: "nadeshiko.session_token",
1228
1411
  type: "apiKey"
1229
1412
  }],
1230
- url: "/v1/collections/{id}/segments/{uuid}",
1413
+ url: "/v1/collections/{id}/segments/{segmentId}",
1231
1414
  ...options,
1232
1415
  headers: {
1233
1416
  "Content-Type": "application/json",
1234
1417
  ...options.headers
1235
1418
  }
1236
1419
  });
1420
+ var searchCollectionSegments = (options) => (options.client ?? client).get({
1421
+ security: [{
1422
+ in: "cookie",
1423
+ name: "nadeshiko.session_token",
1424
+ type: "apiKey"
1425
+ }],
1426
+ url: "/v1/collections/{id}/search",
1427
+ ...options
1428
+ });
1429
+ var getCollectionStats = (options) => (options.client ?? client).get({
1430
+ security: [{
1431
+ in: "cookie",
1432
+ name: "nadeshiko.session_token",
1433
+ type: "apiKey"
1434
+ }],
1435
+ url: "/v1/collections/{id}/stats",
1436
+ ...options
1437
+ });
1237
1438
  var getAdminDashboard = (options) => (options?.client ?? client).get({
1238
- security: [{ scheme: "bearer", type: "http" }],
1439
+ security: [{
1440
+ in: "cookie",
1441
+ name: "nadeshiko.session_token",
1442
+ type: "apiKey"
1443
+ }],
1239
1444
  url: "/v1/admin/dashboard",
1240
1445
  ...options
1241
1446
  });
1242
1447
  var getAdminHealth = (options) => (options?.client ?? client).get({
1243
- security: [{ scheme: "bearer", type: "http" }],
1448
+ security: [{
1449
+ in: "cookie",
1450
+ name: "nadeshiko.session_token",
1451
+ type: "apiKey"
1452
+ }],
1244
1453
  url: "/v1/admin/health",
1245
1454
  ...options
1246
1455
  });
1247
1456
  var triggerReindex = (options) => (options?.client ?? client).post({
1248
- security: [{ scheme: "bearer", type: "http" }],
1457
+ security: [{
1458
+ in: "cookie",
1459
+ name: "nadeshiko.session_token",
1460
+ type: "apiKey"
1461
+ }],
1249
1462
  url: "/v1/admin/reindex",
1250
1463
  ...options,
1251
1464
  headers: {
@@ -1254,37 +1467,74 @@ var triggerReindex = (options) => (options?.client ?? client).post({
1254
1467
  }
1255
1468
  });
1256
1469
  var listAdminQueueStats = (options) => (options?.client ?? client).get({
1257
- security: [{ scheme: "bearer", type: "http" }],
1470
+ security: [{
1471
+ in: "cookie",
1472
+ name: "nadeshiko.session_token",
1473
+ type: "apiKey"
1474
+ }],
1258
1475
  url: "/v1/admin/queues/stats",
1259
1476
  ...options
1260
1477
  });
1261
1478
  var getAdminQueue = (options) => (options.client ?? client).get({
1262
- security: [{ scheme: "bearer", type: "http" }],
1479
+ security: [{
1480
+ in: "cookie",
1481
+ name: "nadeshiko.session_token",
1482
+ type: "apiKey"
1483
+ }],
1263
1484
  url: "/v1/admin/queues/{queueName}",
1264
1485
  ...options
1265
1486
  });
1266
1487
  var listAdminQueueFailed = (options) => (options.client ?? client).get({
1267
- security: [{ scheme: "bearer", type: "http" }],
1488
+ security: [{
1489
+ in: "cookie",
1490
+ name: "nadeshiko.session_token",
1491
+ type: "apiKey"
1492
+ }],
1268
1493
  url: "/v1/admin/queues/{queueName}/failed",
1269
1494
  ...options
1270
1495
  });
1271
1496
  var retryAdminQueueFailed = (options) => (options.client ?? client).post({
1272
- security: [{ scheme: "bearer", type: "http" }],
1497
+ security: [{
1498
+ in: "cookie",
1499
+ name: "nadeshiko.session_token",
1500
+ type: "apiKey"
1501
+ }],
1273
1502
  url: "/v1/admin/queues/{queueName}/retry",
1274
1503
  ...options
1275
1504
  });
1276
1505
  var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1277
- security: [{ scheme: "bearer", type: "http" }],
1506
+ security: [{
1507
+ in: "cookie",
1508
+ name: "nadeshiko.session_token",
1509
+ type: "apiKey"
1510
+ }],
1278
1511
  url: "/v1/admin/queues/{queueName}/purge",
1279
1512
  ...options
1280
1513
  });
1514
+ var clearAdminImpersonation = (options) => (options?.client ?? client).delete({ url: "/v1/admin/impersonation", ...options });
1515
+ var impersonateAdminUser = (options) => (options.client ?? client).post({
1516
+ url: "/v1/admin/impersonation",
1517
+ ...options,
1518
+ headers: {
1519
+ "Content-Type": "application/json",
1520
+ ...options.headers
1521
+ }
1522
+ });
1281
1523
  var listAdminReports = (options) => (options?.client ?? client).get({
1282
- security: [{ scheme: "bearer", type: "http" }],
1524
+ security: [{
1525
+ in: "cookie",
1526
+ name: "nadeshiko.session_token",
1527
+ type: "apiKey"
1528
+ }],
1283
1529
  url: "/v1/admin/reports",
1284
1530
  ...options
1285
1531
  });
1286
1532
  var updateAdminReport = (options) => (options.client ?? client).patch({
1287
- security: [{ scheme: "bearer", type: "http" }],
1533
+ security: [{
1534
+ in: "cookie",
1535
+ name: "nadeshiko.session_token",
1536
+ type: "apiKey"
1537
+ }],
1288
1538
  url: "/v1/admin/reports/{id}",
1289
1539
  ...options,
1290
1540
  headers: {
@@ -1292,59 +1542,75 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
1292
1542
  ...options.headers
1293
1543
  }
1294
1544
  });
1295
- var runAdminReview = (options) => (options?.client ?? client).post({
1296
- security: [{ scheme: "bearer", type: "http" }],
1297
- url: "/v1/admin/review/run",
1298
- ...options
1299
- });
1300
- var listAdminReviewChecks = (options) => (options?.client ?? client).get({
1301
- security: [{ scheme: "bearer", type: "http" }],
1302
- url: "/v1/admin/review/checks",
1545
+ var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1546
+ security: [{
1547
+ in: "cookie",
1548
+ name: "nadeshiko.session_token",
1549
+ type: "apiKey"
1550
+ }],
1551
+ url: "/v1/admin/media/audits",
1303
1552
  ...options
1304
1553
  });
1305
- var updateAdminReviewCheck = (options) => (options.client ?? client).patch({
1306
- security: [{ scheme: "bearer", type: "http" }],
1307
- url: "/v1/admin/review/checks/{name}",
1554
+ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1555
+ security: [{
1556
+ in: "cookie",
1557
+ name: "nadeshiko.session_token",
1558
+ type: "apiKey"
1559
+ }],
1560
+ url: "/v1/admin/media/audits/{name}",
1308
1561
  ...options,
1309
1562
  headers: {
1310
1563
  "Content-Type": "application/json",
1311
1564
  ...options.headers
1312
1565
  }
1313
1566
  });
1314
- var listAdminReviewRuns = (options) => (options?.client ?? client).get({
1315
- security: [{ scheme: "bearer", type: "http" }],
1316
- url: "/v1/admin/review/runs",
1567
+ var runAdminMediaAudit = (options) => (options.client ?? client).post({
1568
+ security: [{
1569
+ in: "cookie",
1570
+ name: "nadeshiko.session_token",
1571
+ type: "apiKey"
1572
+ }],
1573
+ url: "/v1/admin/media/audits/{name}/run",
1317
1574
  ...options
1318
1575
  });
1319
- var getAdminReviewRun = (options) => (options.client ?? client).get({
1320
- security: [{ scheme: "bearer", type: "http" }],
1321
- url: "/v1/admin/review/runs/{id}",
1576
+ var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1577
+ security: [{
1578
+ in: "cookie",
1579
+ name: "nadeshiko.session_token",
1580
+ type: "apiKey"
1581
+ }],
1582
+ url: "/v1/admin/media/audits/runs",
1322
1583
  ...options
1323
1584
  });
1324
- var listAdminReviewAllowlist = (options) => (options?.client ?? client).get({
1325
- security: [{ scheme: "bearer", type: "http" }],
1326
- url: "/v1/admin/review/allowlist",
1585
+ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1586
+ security: [{
1587
+ in: "cookie",
1588
+ name: "nadeshiko.session_token",
1589
+ type: "apiKey"
1590
+ }],
1591
+ url: "/v1/admin/media/audits/runs/{id}",
1327
1592
  ...options
1328
1593
  });
1329
- var createAdminReviewAllowlistEntry = (options) => (options.client ?? client).post({
1330
- security: [{ scheme: "bearer", type: "http" }],
1331
- url: "/v1/admin/review/allowlist",
1594
+ var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
1595
+ var updateAnnouncement = (options) => (options.client ?? client).put({
1596
+ security: [{
1597
+ in: "cookie",
1598
+ name: "nadeshiko.session_token",
1599
+ type: "apiKey"
1600
+ }],
1601
+ url: "/v1/admin/announcement",
1332
1602
  ...options,
1333
1603
  headers: {
1334
1604
  "Content-Type": "application/json",
1335
1605
  ...options.headers
1336
1606
  }
1337
1607
  });
1338
- var deleteAdminReviewAllowlistEntry = (options) => (options.client ?? client).delete({
1339
- security: [{ scheme: "bearer", type: "http" }],
1340
- url: "/v1/admin/review/allowlist/{id}",
1341
- ...options
1342
- });
1343
1608
  // generated/dev/nadeshiko.gen.ts
1344
1609
  var environments = {
1345
1610
  LOCAL: "http://localhost:5000/api",
1346
- DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
1347
- PRODUCTION: "https://api.brigadasos.xyz/api"
1611
+ DEVELOPMENT: "https://api-dev.nadeshiko.co",
1612
+ PRODUCTION: "https://api.nadeshiko.co",
1613
+ PROXY: ""
1348
1614
  };
1349
1615
  var defaultSessionTokenGetter = () => {
1350
1616
  if (typeof document === "undefined")
@@ -1353,7 +1619,13 @@ var defaultSessionTokenGetter = () => {
1353
1619
  return match ? decodeURIComponent(match[1]) : undefined;
1354
1620
  };
1355
1621
  function createNadeshikoClient(config) {
1356
- const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl : environments.PRODUCTION;
1622
+ const baseUrl = config.baseUrl === undefined ? environments.PRODUCTION : (config.baseUrl in environments) ? environments[config.baseUrl] : config.baseUrl;
1623
+ const getApiKey = async () => {
1624
+ if (typeof config.apiKey === "function") {
1625
+ return await config.apiKey();
1626
+ }
1627
+ return config.apiKey;
1628
+ };
1357
1629
  const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
1358
1630
  const clientInstance = createClient(createConfig({
1359
1631
  baseUrl,
@@ -1361,7 +1633,7 @@ function createNadeshikoClient(config) {
1361
1633
  if (auth.in === "cookie") {
1362
1634
  return getSessionToken();
1363
1635
  }
1364
- return config.apiKey;
1636
+ return getApiKey();
1365
1637
  }
1366
1638
  }));
1367
1639
  return {
@@ -1370,43 +1642,26 @@ function createNadeshikoClient(config) {
1370
1642
  getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
1371
1643
  searchWords: (options) => searchWords({ ...options, client: clientInstance }),
1372
1644
  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
1645
  getSegmentByUuid: (options) => getSegmentByUuid({ ...options, client: clientInstance }),
1378
1646
  getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
1379
1647
  listSeries: (options) => listSeries({ ...options, client: clientInstance }),
1380
1648
  getSeries: (options) => getSeries({ ...options, client: clientInstance }),
1381
1649
  getCharacter: (options) => getCharacter({ ...options, client: clientInstance }),
1382
1650
  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 }),
1651
+ getMedia: (options) => getMedia({ ...options, client: clientInstance }),
1652
+ listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
1653
+ getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
1654
+ getSegment: (options) => getSegment({ ...options, client: clientInstance }),
1408
1655
  createMedia: (options) => createMedia({ ...options, client: clientInstance }),
1409
1656
  autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
1657
+ updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
1658
+ listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
1659
+ createSeries: (options) => createSeries({ ...options, client: clientInstance }),
1660
+ updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
1661
+ deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
1662
+ addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
1663
+ updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
1664
+ removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
1410
1665
  updateMedia: (options) => updateMedia({ ...options, client: clientInstance }),
1411
1666
  deleteMedia: (options) => deleteMedia({ ...options, client: clientInstance }),
1412
1667
  createEpisode: (options) => createEpisode({ ...options, client: clientInstance }),
@@ -1414,26 +1669,53 @@ function createNadeshikoClient(config) {
1414
1669
  deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
1415
1670
  listSegments: (options) => listSegments({ ...options, client: clientInstance }),
1416
1671
  createSegment: (options) => createSegment({ ...options, client: clientInstance }),
1672
+ createSegmentsBatch: (options) => createSegmentsBatch({ ...options, client: clientInstance }),
1417
1673
  updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
1418
1674
  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 }),
1675
+ getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
1425
1676
  createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
1426
- listUserReports: (options) => listUserReports({ ...options, client: clientInstance }),
1427
1677
  getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
1428
1678
  updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
1429
1679
  listUserActivity: (options) => listUserActivity({ ...options, client: clientInstance }),
1680
+ trackUserActivity: (options) => trackUserActivity({ ...options, client: clientInstance }),
1430
1681
  deleteUserActivity: (options) => deleteUserActivity({ ...options, client: clientInstance }),
1431
1682
  getUserActivityHeatmap: (options) => getUserActivityHeatmap({ ...options, client: clientInstance }),
1432
1683
  getUserActivityStats: (options) => getUserActivityStats({ ...options, client: clientInstance }),
1684
+ deleteUserActivityByDate: (options) => deleteUserActivityByDate({ ...options, client: clientInstance }),
1685
+ deleteUserActivityById: (options) => deleteUserActivityById({ ...options, client: clientInstance }),
1433
1686
  exportUserData: (options) => exportUserData({ ...options, client: clientInstance }),
1434
1687
  listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
1688
+ enrollUserLab: (options) => enrollUserLab({ ...options, client: clientInstance }),
1689
+ unenrollUserLab: (options) => unenrollUserLab({ ...options, client: clientInstance }),
1690
+ listCollections: (options) => listCollections({ ...options, client: clientInstance }),
1691
+ createCollection: (options) => createCollection({ ...options, client: clientInstance }),
1692
+ getCollection: (options) => getCollection({ ...options, client: clientInstance }),
1693
+ updateCollection: (options) => updateCollection({ ...options, client: clientInstance }),
1694
+ deleteCollection: (options) => deleteCollection({ ...options, client: clientInstance }),
1695
+ addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
1696
+ updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
1697
+ removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
1698
+ searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
1699
+ getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
1435
1700
  getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
1436
- getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance })
1701
+ getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance }),
1702
+ triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
1703
+ listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
1704
+ getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
1705
+ listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
1706
+ retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
1707
+ purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
1708
+ impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
1709
+ clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance }),
1710
+ listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
1711
+ updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
1712
+ listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
1713
+ updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
1714
+ runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
1715
+ listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
1716
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
1717
+ getAnnouncement: (options) => getAnnouncement({ ...options, client: clientInstance }),
1718
+ updateAnnouncement: (options) => updateAnnouncement({ ...options, client: clientInstance })
1437
1719
  };
1438
1720
  }
1439
1721
  // generated/dev/internal/media.gen.ts
@@ -1441,16 +1723,19 @@ var exports_media_gen = {};
1441
1723
  __export(exports_media_gen, {
1442
1724
  updateSeriesMedia: () => updateSeriesMedia,
1443
1725
  updateSeries: () => updateSeries,
1726
+ updateSegmentByUuid: () => updateSegmentByUuid,
1444
1727
  updateSegment: () => updateSegment,
1445
1728
  updateMedia: () => updateMedia,
1446
1729
  updateEpisode: () => updateEpisode,
1447
1730
  removeMediaFromSeries: () => removeMediaFromSeries,
1448
1731
  listSegments: () => listSegments,
1732
+ listSegmentRevisions: () => listSegmentRevisions,
1449
1733
  deleteSeries: () => deleteSeries,
1450
1734
  deleteSegment: () => deleteSegment,
1451
1735
  deleteMedia: () => deleteMedia,
1452
1736
  deleteEpisode: () => deleteEpisode,
1453
1737
  createSeries: () => createSeries,
1738
+ createSegmentsBatch: () => createSegmentsBatch,
1454
1739
  createSegment: () => createSegment,
1455
1740
  createMedia: () => createMedia,
1456
1741
  createEpisode: () => createEpisode,
@@ -1461,57 +1746,98 @@ __export(exports_media_gen, {
1461
1746
  var exports_user_gen = {};
1462
1747
  __export(exports_user_gen, {
1463
1748
  updateUserPreferences: () => updateUserPreferences,
1464
- listUserReports: () => listUserReports,
1749
+ unenrollUserLab: () => unenrollUserLab,
1750
+ trackUserActivity: () => trackUserActivity,
1465
1751
  listUserLabs: () => listUserLabs,
1466
1752
  listUserActivity: () => listUserActivity,
1753
+ getUserQuota: () => getUserQuota,
1467
1754
  getUserPreferences: () => getUserPreferences,
1468
1755
  getUserActivityStats: () => getUserActivityStats,
1469
1756
  getUserActivityHeatmap: () => getUserActivityHeatmap,
1470
1757
  exportUserData: () => exportUserData,
1758
+ enrollUserLab: () => enrollUserLab,
1759
+ deleteUserActivityById: () => deleteUserActivityById,
1760
+ deleteUserActivityByDate: () => deleteUserActivityByDate,
1471
1761
  deleteUserActivity: () => deleteUserActivity,
1472
1762
  createUserReport: () => createUserReport
1473
1763
  });
1764
+ // generated/dev/internal/collections.gen.ts
1765
+ var exports_collections_gen = {};
1766
+ __export(exports_collections_gen, {
1767
+ updateCollectionSegment: () => updateCollectionSegment,
1768
+ updateCollection: () => updateCollection,
1769
+ searchCollectionSegments: () => searchCollectionSegments,
1770
+ removeSegmentFromCollection: () => removeSegmentFromCollection,
1771
+ listCollections: () => listCollections,
1772
+ getCollectionStats: () => getCollectionStats,
1773
+ getCollection: () => getCollection,
1774
+ deleteCollection: () => deleteCollection,
1775
+ createCollection: () => createCollection,
1776
+ addSegmentToCollection: () => addSegmentToCollection
1777
+ });
1474
1778
  // generated/dev/internal/admin.gen.ts
1475
1779
  var exports_admin_gen = {};
1476
1780
  __export(exports_admin_gen, {
1781
+ updateAnnouncement: () => updateAnnouncement,
1782
+ updateAdminReport: () => updateAdminReport,
1783
+ updateAdminMediaAudit: () => updateAdminMediaAudit,
1784
+ triggerReindex: () => triggerReindex,
1785
+ runAdminMediaAudit: () => runAdminMediaAudit,
1786
+ retryAdminQueueFailed: () => retryAdminQueueFailed,
1787
+ purgeAdminQueueFailed: () => purgeAdminQueueFailed,
1788
+ listAdminReports: () => listAdminReports,
1789
+ listAdminQueueStats: () => listAdminQueueStats,
1790
+ listAdminQueueFailed: () => listAdminQueueFailed,
1791
+ listAdminMediaAudits: () => listAdminMediaAudits,
1792
+ listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1793
+ impersonateAdminUser: () => impersonateAdminUser,
1794
+ getAnnouncement: () => getAnnouncement,
1795
+ getAdminQueue: () => getAdminQueue,
1796
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1477
1797
  getAdminHealth: () => getAdminHealth,
1478
- getAdminDashboard: () => getAdminDashboard
1798
+ getAdminDashboard: () => getAdminDashboard,
1799
+ clearAdminImpersonation: () => clearAdminImpersonation
1479
1800
  });
1480
1801
  export {
1481
1802
  exports_user_gen as user,
1482
1803
  updateUserPreferences,
1483
1804
  updateSeriesMedia,
1484
1805
  updateSeries,
1806
+ updateSegmentByUuid,
1485
1807
  updateSegment,
1486
1808
  updateMedia,
1487
1809
  updateEpisode,
1488
1810
  updateCollectionSegment,
1489
1811
  updateCollection,
1490
- updateAdminReviewCheck,
1812
+ updateAnnouncement,
1491
1813
  updateAdminReport,
1814
+ updateAdminMediaAudit,
1815
+ unenrollUserLab,
1492
1816
  triggerReindex,
1817
+ trackUserActivity,
1493
1818
  searchWords,
1819
+ searchCollectionSegments,
1494
1820
  search,
1495
- runAdminReview,
1821
+ runAdminMediaAudit,
1496
1822
  retryAdminQueueFailed,
1497
1823
  removeSegmentFromCollection,
1498
1824
  removeMediaFromSeries,
1499
1825
  purgeAdminQueueFailed,
1500
1826
  exports_media_gen as media,
1501
- listUserReports,
1502
1827
  listUserLabs,
1503
1828
  listUserActivity,
1504
1829
  listSeries,
1505
1830
  listSegments,
1831
+ listSegmentRevisions,
1506
1832
  listMedia,
1507
1833
  listEpisodes,
1508
1834
  listCollections,
1509
- listAdminReviewRuns,
1510
- listAdminReviewChecks,
1511
- listAdminReviewAllowlist,
1512
1835
  listAdminReports,
1513
1836
  listAdminQueueStats,
1514
1837
  listAdminQueueFailed,
1838
+ listAdminMediaAudits,
1839
+ listAdminMediaAuditRuns,
1840
+ impersonateAdminUser,
1515
1841
  getUserQuota,
1516
1842
  getUserPreferences,
1517
1843
  getUserActivityStats,
@@ -1524,34 +1850,40 @@ export {
1524
1850
  getSearchStats,
1525
1851
  getMedia,
1526
1852
  getEpisode,
1853
+ getCollectionStats,
1527
1854
  getCollection,
1528
1855
  getCharacter,
1529
- getAdminReviewRun,
1856
+ getAnnouncement,
1530
1857
  getAdminQueue,
1858
+ getAdminMediaAuditRun,
1531
1859
  getAdminHealth,
1532
1860
  getAdminDashboard,
1533
1861
  exportUserData,
1862
+ enrollUserLab,
1863
+ deleteUserActivityById,
1864
+ deleteUserActivityByDate,
1534
1865
  deleteUserActivity,
1535
1866
  deleteSeries,
1536
1867
  deleteSegment,
1537
1868
  deleteMedia,
1538
1869
  deleteEpisode,
1539
1870
  deleteCollection,
1540
- deleteAdminReviewAllowlistEntry,
1541
1871
  createUserReport,
1542
1872
  createSeries,
1873
+ createSegmentsBatch,
1543
1874
  createSegment,
1544
1875
  createNadeshikoClient,
1545
1876
  createMedia,
1546
1877
  createEpisode,
1547
1878
  createCollection,
1548
- createAdminReviewAllowlistEntry,
1879
+ exports_collections_gen as collections,
1549
1880
  client,
1881
+ clearAdminImpersonation,
1550
1882
  autocompleteMedia,
1551
1883
  exports_admin_gen as admin,
1552
1884
  addSegmentToCollection,
1553
1885
  addMediaToSeries
1554
1886
  };
1555
1887
 
1556
- //# debugId=AB5963794BD4F67864756E2164756E21
1888
+ //# debugId=A503DA465868C54E64756E2164756E21
1557
1889
  //# sourceMappingURL=index.js.map