@brigadasos/nadeshiko-sdk 1.5.0-dev.f8e069f → 1.5.0-dev.fe381ff

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
@@ -817,7 +817,11 @@ var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }))
817
817
 
818
818
  // generated/dev/sdk.gen.ts
819
819
  var search = (options) => (options?.client ?? client).post({
820
- security: [{ scheme: "bearer", type: "http" }],
820
+ security: [{ scheme: "bearer", type: "http" }, {
821
+ in: "cookie",
822
+ name: "nadeshiko.session_token",
823
+ type: "apiKey"
824
+ }],
821
825
  url: "/v1/search",
822
826
  ...options,
823
827
  headers: {
@@ -826,7 +830,11 @@ var search = (options) => (options?.client ?? client).post({
826
830
  }
827
831
  });
828
832
  var getSearchStats = (options) => (options?.client ?? client).post({
829
- security: [{ scheme: "bearer", type: "http" }],
833
+ security: [{ scheme: "bearer", type: "http" }, {
834
+ in: "cookie",
835
+ name: "nadeshiko.session_token",
836
+ type: "apiKey"
837
+ }],
830
838
  url: "/v1/search/stats",
831
839
  ...options,
832
840
  headers: {
@@ -835,7 +843,11 @@ var getSearchStats = (options) => (options?.client ?? client).post({
835
843
  }
836
844
  });
837
845
  var searchWords = (options) => (options.client ?? client).post({
838
- security: [{ scheme: "bearer", type: "http" }],
846
+ security: [{ scheme: "bearer", type: "http" }, {
847
+ in: "cookie",
848
+ name: "nadeshiko.session_token",
849
+ type: "apiKey"
850
+ }],
839
851
  url: "/v1/search/words",
840
852
  ...options,
841
853
  headers: {
@@ -844,12 +856,20 @@ var searchWords = (options) => (options.client ?? client).post({
844
856
  }
845
857
  });
846
858
  var listMedia = (options) => (options?.client ?? client).get({
847
- security: [{ scheme: "bearer", type: "http" }],
859
+ security: [{ scheme: "bearer", type: "http" }, {
860
+ in: "cookie",
861
+ name: "nadeshiko.session_token",
862
+ type: "apiKey"
863
+ }],
848
864
  url: "/v1/media",
849
865
  ...options
850
866
  });
851
867
  var createMedia = (options) => (options.client ?? client).post({
852
- security: [{ scheme: "bearer", type: "http" }],
868
+ security: [{ scheme: "bearer", type: "http" }, {
869
+ in: "cookie",
870
+ name: "nadeshiko.session_token",
871
+ type: "apiKey"
872
+ }],
853
873
  url: "/v1/media",
854
874
  ...options,
855
875
  headers: {
@@ -858,12 +878,20 @@ var createMedia = (options) => (options.client ?? client).post({
858
878
  }
859
879
  });
860
880
  var autocompleteMedia = (options) => (options.client ?? client).get({
861
- security: [{ scheme: "bearer", type: "http" }],
881
+ security: [{ scheme: "bearer", type: "http" }, {
882
+ in: "cookie",
883
+ name: "nadeshiko.session_token",
884
+ type: "apiKey"
885
+ }],
862
886
  url: "/v1/media/autocomplete",
863
887
  ...options
864
888
  });
865
889
  var getSegmentByUuid = (options) => (options.client ?? client).get({
866
- security: [{ scheme: "bearer", type: "http" }],
890
+ security: [{ scheme: "bearer", type: "http" }, {
891
+ in: "cookie",
892
+ name: "nadeshiko.session_token",
893
+ type: "apiKey"
894
+ }],
867
895
  url: "/v1/media/segments/{uuid}",
868
896
  ...options
869
897
  });
@@ -881,17 +909,38 @@ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
881
909
  }
882
910
  });
883
911
  var getSegmentContext = (options) => (options.client ?? client).get({
884
- security: [{ scheme: "bearer", type: "http" }],
912
+ security: [{ scheme: "bearer", type: "http" }, {
913
+ in: "cookie",
914
+ name: "nadeshiko.session_token",
915
+ type: "apiKey"
916
+ }],
885
917
  url: "/v1/media/segments/{uuid}/context",
886
918
  ...options
887
919
  });
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
+ });
888
929
  var listSeries = (options) => (options?.client ?? client).get({
889
- security: [{ scheme: "bearer", type: "http" }],
930
+ security: [{ scheme: "bearer", type: "http" }, {
931
+ in: "cookie",
932
+ name: "nadeshiko.session_token",
933
+ type: "apiKey"
934
+ }],
890
935
  url: "/v1/media/series",
891
936
  ...options
892
937
  });
893
938
  var createSeries = (options) => (options.client ?? client).post({
894
- security: [{ scheme: "bearer", type: "http" }],
939
+ security: [{ scheme: "bearer", type: "http" }, {
940
+ in: "cookie",
941
+ name: "nadeshiko.session_token",
942
+ type: "apiKey"
943
+ }],
895
944
  url: "/v1/media/series",
896
945
  ...options,
897
946
  headers: {
@@ -900,17 +949,29 @@ var createSeries = (options) => (options.client ?? client).post({
900
949
  }
901
950
  });
902
951
  var deleteSeries = (options) => (options.client ?? client).delete({
903
- security: [{ scheme: "bearer", type: "http" }],
952
+ security: [{ scheme: "bearer", type: "http" }, {
953
+ in: "cookie",
954
+ name: "nadeshiko.session_token",
955
+ type: "apiKey"
956
+ }],
904
957
  url: "/v1/media/series/{id}",
905
958
  ...options
906
959
  });
907
960
  var getSeries = (options) => (options.client ?? client).get({
908
- security: [{ scheme: "bearer", type: "http" }],
961
+ security: [{ scheme: "bearer", type: "http" }, {
962
+ in: "cookie",
963
+ name: "nadeshiko.session_token",
964
+ type: "apiKey"
965
+ }],
909
966
  url: "/v1/media/series/{id}",
910
967
  ...options
911
968
  });
912
969
  var updateSeries = (options) => (options.client ?? client).patch({
913
- security: [{ scheme: "bearer", type: "http" }],
970
+ security: [{ scheme: "bearer", type: "http" }, {
971
+ in: "cookie",
972
+ name: "nadeshiko.session_token",
973
+ type: "apiKey"
974
+ }],
914
975
  url: "/v1/media/series/{id}",
915
976
  ...options,
916
977
  headers: {
@@ -919,7 +980,11 @@ var updateSeries = (options) => (options.client ?? client).patch({
919
980
  }
920
981
  });
921
982
  var addMediaToSeries = (options) => (options.client ?? client).post({
922
- security: [{ scheme: "bearer", type: "http" }],
983
+ security: [{ scheme: "bearer", type: "http" }, {
984
+ in: "cookie",
985
+ name: "nadeshiko.session_token",
986
+ type: "apiKey"
987
+ }],
923
988
  url: "/v1/media/series/{id}/media",
924
989
  ...options,
925
990
  headers: {
@@ -928,12 +993,20 @@ var addMediaToSeries = (options) => (options.client ?? client).post({
928
993
  }
929
994
  });
930
995
  var removeMediaFromSeries = (options) => (options.client ?? client).delete({
931
- security: [{ scheme: "bearer", type: "http" }],
996
+ security: [{ scheme: "bearer", type: "http" }, {
997
+ in: "cookie",
998
+ name: "nadeshiko.session_token",
999
+ type: "apiKey"
1000
+ }],
932
1001
  url: "/v1/media/series/{id}/media/{mediaId}",
933
1002
  ...options
934
1003
  });
935
1004
  var updateSeriesMedia = (options) => (options.client ?? client).patch({
936
- security: [{ scheme: "bearer", type: "http" }],
1005
+ security: [{ scheme: "bearer", type: "http" }, {
1006
+ in: "cookie",
1007
+ name: "nadeshiko.session_token",
1008
+ type: "apiKey"
1009
+ }],
937
1010
  url: "/v1/media/series/{id}/media/{mediaId}",
938
1011
  ...options,
939
1012
  headers: {
@@ -942,27 +1015,47 @@ var updateSeriesMedia = (options) => (options.client ?? client).patch({
942
1015
  }
943
1016
  });
944
1017
  var getCharacter = (options) => (options.client ?? client).get({
945
- security: [{ scheme: "bearer", type: "http" }],
1018
+ security: [{ scheme: "bearer", type: "http" }, {
1019
+ in: "cookie",
1020
+ name: "nadeshiko.session_token",
1021
+ type: "apiKey"
1022
+ }],
946
1023
  url: "/v1/media/characters/{id}",
947
1024
  ...options
948
1025
  });
949
1026
  var getSeiyuu = (options) => (options.client ?? client).get({
950
- security: [{ scheme: "bearer", type: "http" }],
1027
+ security: [{ scheme: "bearer", type: "http" }, {
1028
+ in: "cookie",
1029
+ name: "nadeshiko.session_token",
1030
+ type: "apiKey"
1031
+ }],
951
1032
  url: "/v1/media/seiyuu/{id}",
952
1033
  ...options
953
1034
  });
954
1035
  var deleteMedia = (options) => (options.client ?? client).delete({
955
- security: [{ scheme: "bearer", type: "http" }],
1036
+ security: [{ scheme: "bearer", type: "http" }, {
1037
+ in: "cookie",
1038
+ name: "nadeshiko.session_token",
1039
+ type: "apiKey"
1040
+ }],
956
1041
  url: "/v1/media/{id}",
957
1042
  ...options
958
1043
  });
959
1044
  var getMedia = (options) => (options.client ?? client).get({
960
- security: [{ scheme: "bearer", type: "http" }],
1045
+ security: [{ scheme: "bearer", type: "http" }, {
1046
+ in: "cookie",
1047
+ name: "nadeshiko.session_token",
1048
+ type: "apiKey"
1049
+ }],
961
1050
  url: "/v1/media/{id}",
962
1051
  ...options
963
1052
  });
964
1053
  var updateMedia = (options) => (options.client ?? client).patch({
965
- security: [{ scheme: "bearer", type: "http" }],
1054
+ security: [{ scheme: "bearer", type: "http" }, {
1055
+ in: "cookie",
1056
+ name: "nadeshiko.session_token",
1057
+ type: "apiKey"
1058
+ }],
966
1059
  url: "/v1/media/{id}",
967
1060
  ...options,
968
1061
  headers: {
@@ -971,12 +1064,20 @@ var updateMedia = (options) => (options.client ?? client).patch({
971
1064
  }
972
1065
  });
973
1066
  var listEpisodes = (options) => (options.client ?? client).get({
974
- security: [{ scheme: "bearer", type: "http" }],
1067
+ security: [{ scheme: "bearer", type: "http" }, {
1068
+ in: "cookie",
1069
+ name: "nadeshiko.session_token",
1070
+ type: "apiKey"
1071
+ }],
975
1072
  url: "/v1/media/{mediaId}/episodes",
976
1073
  ...options
977
1074
  });
978
1075
  var createEpisode = (options) => (options.client ?? client).post({
979
- security: [{ scheme: "bearer", type: "http" }],
1076
+ security: [{ scheme: "bearer", type: "http" }, {
1077
+ in: "cookie",
1078
+ name: "nadeshiko.session_token",
1079
+ type: "apiKey"
1080
+ }],
980
1081
  url: "/v1/media/{mediaId}/episodes",
981
1082
  ...options,
982
1083
  headers: {
@@ -985,17 +1086,29 @@ var createEpisode = (options) => (options.client ?? client).post({
985
1086
  }
986
1087
  });
987
1088
  var deleteEpisode = (options) => (options.client ?? client).delete({
988
- security: [{ scheme: "bearer", type: "http" }],
1089
+ security: [{ scheme: "bearer", type: "http" }, {
1090
+ in: "cookie",
1091
+ name: "nadeshiko.session_token",
1092
+ type: "apiKey"
1093
+ }],
989
1094
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
990
1095
  ...options
991
1096
  });
992
1097
  var getEpisode = (options) => (options.client ?? client).get({
993
- security: [{ scheme: "bearer", type: "http" }],
1098
+ security: [{ scheme: "bearer", type: "http" }, {
1099
+ in: "cookie",
1100
+ name: "nadeshiko.session_token",
1101
+ type: "apiKey"
1102
+ }],
994
1103
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
995
1104
  ...options
996
1105
  });
997
1106
  var updateEpisode = (options) => (options.client ?? client).patch({
998
- security: [{ scheme: "bearer", type: "http" }],
1107
+ security: [{ scheme: "bearer", type: "http" }, {
1108
+ in: "cookie",
1109
+ name: "nadeshiko.session_token",
1110
+ type: "apiKey"
1111
+ }],
999
1112
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1000
1113
  ...options,
1001
1114
  headers: {
@@ -1004,12 +1117,20 @@ var updateEpisode = (options) => (options.client ?? client).patch({
1004
1117
  }
1005
1118
  });
1006
1119
  var listSegments = (options) => (options.client ?? client).get({
1007
- security: [{ scheme: "bearer", type: "http" }],
1120
+ security: [{ scheme: "bearer", type: "http" }, {
1121
+ in: "cookie",
1122
+ name: "nadeshiko.session_token",
1123
+ type: "apiKey"
1124
+ }],
1008
1125
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1009
1126
  ...options
1010
1127
  });
1011
1128
  var createSegment = (options) => (options.client ?? client).post({
1012
- security: [{ scheme: "bearer", type: "http" }],
1129
+ security: [{ scheme: "bearer", type: "http" }, {
1130
+ in: "cookie",
1131
+ name: "nadeshiko.session_token",
1132
+ type: "apiKey"
1133
+ }],
1013
1134
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1014
1135
  ...options,
1015
1136
  headers: {
@@ -1017,18 +1138,43 @@ var createSegment = (options) => (options.client ?? client).post({
1017
1138
  ...options.headers
1018
1139
  }
1019
1140
  });
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
+ }
1153
+ });
1020
1154
  var deleteSegment = (options) => (options.client ?? client).delete({
1021
- security: [{ scheme: "bearer", type: "http" }],
1155
+ security: [{ scheme: "bearer", type: "http" }, {
1156
+ in: "cookie",
1157
+ name: "nadeshiko.session_token",
1158
+ type: "apiKey"
1159
+ }],
1022
1160
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1023
1161
  ...options
1024
1162
  });
1025
1163
  var getSegment = (options) => (options.client ?? client).get({
1026
- security: [{ scheme: "bearer", type: "http" }],
1164
+ security: [{ scheme: "bearer", type: "http" }, {
1165
+ in: "cookie",
1166
+ name: "nadeshiko.session_token",
1167
+ type: "apiKey"
1168
+ }],
1027
1169
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1028
1170
  ...options
1029
1171
  });
1030
1172
  var updateSegment = (options) => (options.client ?? client).patch({
1031
- security: [{ scheme: "bearer", type: "http" }],
1173
+ security: [{ scheme: "bearer", type: "http" }, {
1174
+ in: "cookie",
1175
+ name: "nadeshiko.session_token",
1176
+ type: "apiKey"
1177
+ }],
1032
1178
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1033
1179
  ...options,
1034
1180
  headers: {
@@ -1255,7 +1401,7 @@ var removeSegmentFromCollection = (options) => (options.client ?? client).delete
1255
1401
  name: "nadeshiko.session_token",
1256
1402
  type: "apiKey"
1257
1403
  }],
1258
- url: "/v1/collections/{id}/segments/{uuid}",
1404
+ url: "/v1/collections/{id}/segments/{segmentId}",
1259
1405
  ...options
1260
1406
  });
1261
1407
  var updateCollectionSegment = (options) => (options.client ?? client).patch({
@@ -1264,7 +1410,7 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1264
1410
  name: "nadeshiko.session_token",
1265
1411
  type: "apiKey"
1266
1412
  }],
1267
- url: "/v1/collections/{id}/segments/{uuid}",
1413
+ url: "/v1/collections/{id}/segments/{segmentId}",
1268
1414
  ...options,
1269
1415
  headers: {
1270
1416
  "Content-Type": "application/json",
@@ -1290,17 +1436,29 @@ var getCollectionStats = (options) => (options.client ?? client).get({
1290
1436
  ...options
1291
1437
  });
1292
1438
  var getAdminDashboard = (options) => (options?.client ?? client).get({
1293
- security: [{ scheme: "bearer", type: "http" }],
1439
+ security: [{
1440
+ in: "cookie",
1441
+ name: "nadeshiko.session_token",
1442
+ type: "apiKey"
1443
+ }],
1294
1444
  url: "/v1/admin/dashboard",
1295
1445
  ...options
1296
1446
  });
1297
1447
  var getAdminHealth = (options) => (options?.client ?? client).get({
1298
- security: [{ scheme: "bearer", type: "http" }],
1448
+ security: [{
1449
+ in: "cookie",
1450
+ name: "nadeshiko.session_token",
1451
+ type: "apiKey"
1452
+ }],
1299
1453
  url: "/v1/admin/health",
1300
1454
  ...options
1301
1455
  });
1302
1456
  var triggerReindex = (options) => (options?.client ?? client).post({
1303
- security: [{ scheme: "bearer", type: "http" }],
1457
+ security: [{
1458
+ in: "cookie",
1459
+ name: "nadeshiko.session_token",
1460
+ type: "apiKey"
1461
+ }],
1304
1462
  url: "/v1/admin/reindex",
1305
1463
  ...options,
1306
1464
  headers: {
@@ -1309,45 +1467,52 @@ var triggerReindex = (options) => (options?.client ?? client).post({
1309
1467
  }
1310
1468
  });
1311
1469
  var listAdminQueueStats = (options) => (options?.client ?? client).get({
1312
- security: [{ scheme: "bearer", type: "http" }],
1470
+ security: [{
1471
+ in: "cookie",
1472
+ name: "nadeshiko.session_token",
1473
+ type: "apiKey"
1474
+ }],
1313
1475
  url: "/v1/admin/queues/stats",
1314
1476
  ...options
1315
1477
  });
1316
1478
  var getAdminQueue = (options) => (options.client ?? client).get({
1317
- security: [{ scheme: "bearer", type: "http" }],
1479
+ security: [{
1480
+ in: "cookie",
1481
+ name: "nadeshiko.session_token",
1482
+ type: "apiKey"
1483
+ }],
1318
1484
  url: "/v1/admin/queues/{queueName}",
1319
1485
  ...options
1320
1486
  });
1321
1487
  var listAdminQueueFailed = (options) => (options.client ?? client).get({
1322
- security: [{ scheme: "bearer", type: "http" }],
1488
+ security: [{
1489
+ in: "cookie",
1490
+ name: "nadeshiko.session_token",
1491
+ type: "apiKey"
1492
+ }],
1323
1493
  url: "/v1/admin/queues/{queueName}/failed",
1324
1494
  ...options
1325
1495
  });
1326
1496
  var retryAdminQueueFailed = (options) => (options.client ?? client).post({
1327
- security: [{ scheme: "bearer", type: "http" }],
1328
- url: "/v1/admin/queues/{queueName}/retry",
1329
- ...options
1330
- });
1331
- var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1332
- security: [{ scheme: "bearer", type: "http" }],
1333
- url: "/v1/admin/queues/{queueName}/purge",
1334
- ...options
1335
- });
1336
- var clearAdminImpersonation = (options) => (options?.client ?? client).delete({
1337
1497
  security: [{
1338
1498
  in: "cookie",
1339
1499
  name: "nadeshiko.session_token",
1340
1500
  type: "apiKey"
1341
1501
  }],
1342
- url: "/v1/admin/impersonation",
1502
+ url: "/v1/admin/queues/{queueName}/retry",
1343
1503
  ...options
1344
1504
  });
1345
- var impersonateAdminUser = (options) => (options.client ?? client).post({
1505
+ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1346
1506
  security: [{
1347
1507
  in: "cookie",
1348
1508
  name: "nadeshiko.session_token",
1349
1509
  type: "apiKey"
1350
1510
  }],
1511
+ url: "/v1/admin/queues/{queueName}/purge",
1512
+ ...options
1513
+ });
1514
+ var clearAdminImpersonation = (options) => (options?.client ?? client).delete({ url: "/v1/admin/impersonation", ...options });
1515
+ var impersonateAdminUser = (options) => (options.client ?? client).post({
1351
1516
  url: "/v1/admin/impersonation",
1352
1517
  ...options,
1353
1518
  headers: {
@@ -1356,12 +1521,20 @@ var impersonateAdminUser = (options) => (options.client ?? client).post({
1356
1521
  }
1357
1522
  });
1358
1523
  var listAdminReports = (options) => (options?.client ?? client).get({
1359
- security: [{ scheme: "bearer", type: "http" }],
1524
+ security: [{
1525
+ in: "cookie",
1526
+ name: "nadeshiko.session_token",
1527
+ type: "apiKey"
1528
+ }],
1360
1529
  url: "/v1/admin/reports",
1361
1530
  ...options
1362
1531
  });
1363
1532
  var updateAdminReport = (options) => (options.client ?? client).patch({
1364
- security: [{ scheme: "bearer", type: "http" }],
1533
+ security: [{
1534
+ in: "cookie",
1535
+ name: "nadeshiko.session_token",
1536
+ type: "apiKey"
1537
+ }],
1365
1538
  url: "/v1/admin/reports/{id}",
1366
1539
  ...options,
1367
1540
  headers: {
@@ -1370,12 +1543,20 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
1370
1543
  }
1371
1544
  });
1372
1545
  var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1373
- security: [{ scheme: "bearer", type: "http" }],
1546
+ security: [{
1547
+ in: "cookie",
1548
+ name: "nadeshiko.session_token",
1549
+ type: "apiKey"
1550
+ }],
1374
1551
  url: "/v1/admin/media/audits",
1375
1552
  ...options
1376
1553
  });
1377
1554
  var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1378
- security: [{ scheme: "bearer", type: "http" }],
1555
+ security: [{
1556
+ in: "cookie",
1557
+ name: "nadeshiko.session_token",
1558
+ type: "apiKey"
1559
+ }],
1379
1560
  url: "/v1/admin/media/audits/{name}",
1380
1561
  ...options,
1381
1562
  headers: {
@@ -1384,25 +1565,52 @@ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1384
1565
  }
1385
1566
  });
1386
1567
  var runAdminMediaAudit = (options) => (options.client ?? client).post({
1387
- security: [{ scheme: "bearer", type: "http" }],
1568
+ security: [{
1569
+ in: "cookie",
1570
+ name: "nadeshiko.session_token",
1571
+ type: "apiKey"
1572
+ }],
1388
1573
  url: "/v1/admin/media/audits/{name}/run",
1389
1574
  ...options
1390
1575
  });
1391
1576
  var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1392
- security: [{ scheme: "bearer", type: "http" }],
1577
+ security: [{
1578
+ in: "cookie",
1579
+ name: "nadeshiko.session_token",
1580
+ type: "apiKey"
1581
+ }],
1393
1582
  url: "/v1/admin/media/audits/runs",
1394
1583
  ...options
1395
1584
  });
1396
1585
  var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1397
- security: [{ scheme: "bearer", type: "http" }],
1586
+ security: [{
1587
+ in: "cookie",
1588
+ name: "nadeshiko.session_token",
1589
+ type: "apiKey"
1590
+ }],
1398
1591
  url: "/v1/admin/media/audits/runs/{id}",
1399
1592
  ...options
1400
1593
  });
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",
1602
+ ...options,
1603
+ headers: {
1604
+ "Content-Type": "application/json",
1605
+ ...options.headers
1606
+ }
1607
+ });
1401
1608
  // generated/dev/nadeshiko.gen.ts
1402
1609
  var environments = {
1403
1610
  LOCAL: "http://localhost:5000/api",
1404
- DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
1405
- PRODUCTION: "https://api.brigadasos.xyz/api"
1611
+ DEVELOPMENT: "https://api-dev.nadeshiko.co",
1612
+ PRODUCTION: "https://api.nadeshiko.co",
1613
+ PROXY: ""
1406
1614
  };
1407
1615
  var defaultSessionTokenGetter = () => {
1408
1616
  if (typeof document === "undefined")
@@ -1411,7 +1619,13 @@ var defaultSessionTokenGetter = () => {
1411
1619
  return match ? decodeURIComponent(match[1]) : undefined;
1412
1620
  };
1413
1621
  function createNadeshikoClient(config) {
1414
- 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
+ };
1415
1629
  const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
1416
1630
  const clientInstance = createClient(createConfig({
1417
1631
  baseUrl,
@@ -1419,7 +1633,7 @@ function createNadeshikoClient(config) {
1419
1633
  if (auth.in === "cookie") {
1420
1634
  return getSessionToken();
1421
1635
  }
1422
- return config.apiKey;
1636
+ return getApiKey();
1423
1637
  }
1424
1638
  }));
1425
1639
  return {
@@ -1441,6 +1655,7 @@ function createNadeshikoClient(config) {
1441
1655
  createMedia: (options) => createMedia({ ...options, client: clientInstance }),
1442
1656
  autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
1443
1657
  updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
1658
+ listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
1444
1659
  createSeries: (options) => createSeries({ ...options, client: clientInstance }),
1445
1660
  updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
1446
1661
  deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
@@ -1454,6 +1669,7 @@ function createNadeshikoClient(config) {
1454
1669
  deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
1455
1670
  listSegments: (options) => listSegments({ ...options, client: clientInstance }),
1456
1671
  createSegment: (options) => createSegment({ ...options, client: clientInstance }),
1672
+ createSegmentsBatch: (options) => createSegmentsBatch({ ...options, client: clientInstance }),
1457
1673
  updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
1458
1674
  deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
1459
1675
  getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
@@ -1497,7 +1713,9 @@ function createNadeshikoClient(config) {
1497
1713
  updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
1498
1714
  runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
1499
1715
  listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
1500
- getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
1716
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
1717
+ getAnnouncement: (options) => getAnnouncement({ ...options, client: clientInstance }),
1718
+ updateAnnouncement: (options) => updateAnnouncement({ ...options, client: clientInstance })
1501
1719
  };
1502
1720
  }
1503
1721
  // generated/dev/internal/media.gen.ts
@@ -1511,11 +1729,13 @@ __export(exports_media_gen, {
1511
1729
  updateEpisode: () => updateEpisode,
1512
1730
  removeMediaFromSeries: () => removeMediaFromSeries,
1513
1731
  listSegments: () => listSegments,
1732
+ listSegmentRevisions: () => listSegmentRevisions,
1514
1733
  deleteSeries: () => deleteSeries,
1515
1734
  deleteSegment: () => deleteSegment,
1516
1735
  deleteMedia: () => deleteMedia,
1517
1736
  deleteEpisode: () => deleteEpisode,
1518
1737
  createSeries: () => createSeries,
1738
+ createSegmentsBatch: () => createSegmentsBatch,
1519
1739
  createSegment: () => createSegment,
1520
1740
  createMedia: () => createMedia,
1521
1741
  createEpisode: () => createEpisode,
@@ -1558,6 +1778,7 @@ __export(exports_collections_gen, {
1558
1778
  // generated/dev/internal/admin.gen.ts
1559
1779
  var exports_admin_gen = {};
1560
1780
  __export(exports_admin_gen, {
1781
+ updateAnnouncement: () => updateAnnouncement,
1561
1782
  updateAdminReport: () => updateAdminReport,
1562
1783
  updateAdminMediaAudit: () => updateAdminMediaAudit,
1563
1784
  triggerReindex: () => triggerReindex,
@@ -1570,6 +1791,7 @@ __export(exports_admin_gen, {
1570
1791
  listAdminMediaAudits: () => listAdminMediaAudits,
1571
1792
  listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1572
1793
  impersonateAdminUser: () => impersonateAdminUser,
1794
+ getAnnouncement: () => getAnnouncement,
1573
1795
  getAdminQueue: () => getAdminQueue,
1574
1796
  getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1575
1797
  getAdminHealth: () => getAdminHealth,
@@ -1587,6 +1809,7 @@ export {
1587
1809
  updateEpisode,
1588
1810
  updateCollectionSegment,
1589
1811
  updateCollection,
1812
+ updateAnnouncement,
1590
1813
  updateAdminReport,
1591
1814
  updateAdminMediaAudit,
1592
1815
  unenrollUserLab,
@@ -1605,6 +1828,7 @@ export {
1605
1828
  listUserActivity,
1606
1829
  listSeries,
1607
1830
  listSegments,
1831
+ listSegmentRevisions,
1608
1832
  listMedia,
1609
1833
  listEpisodes,
1610
1834
  listCollections,
@@ -1629,6 +1853,7 @@ export {
1629
1853
  getCollectionStats,
1630
1854
  getCollection,
1631
1855
  getCharacter,
1856
+ getAnnouncement,
1632
1857
  getAdminQueue,
1633
1858
  getAdminMediaAuditRun,
1634
1859
  getAdminHealth,
@@ -1645,6 +1870,7 @@ export {
1645
1870
  deleteCollection,
1646
1871
  createUserReport,
1647
1872
  createSeries,
1873
+ createSegmentsBatch,
1648
1874
  createSegment,
1649
1875
  createNadeshikoClient,
1650
1876
  createMedia,
@@ -1659,5 +1885,5 @@ export {
1659
1885
  addMediaToSeries
1660
1886
  };
1661
1887
 
1662
- //# debugId=B4E32849EFACC53A64756E2164756E21
1888
+ //# debugId=A503DA465868C54E64756E2164756E21
1663
1889
  //# sourceMappingURL=index.js.map