@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.cjs CHANGED
@@ -49,6 +49,7 @@ __export(exports_dev, {
49
49
  updateEpisode: () => updateEpisode,
50
50
  updateCollectionSegment: () => updateCollectionSegment,
51
51
  updateCollection: () => updateCollection,
52
+ updateAnnouncement: () => updateAnnouncement,
52
53
  updateAdminReport: () => updateAdminReport,
53
54
  updateAdminMediaAudit: () => updateAdminMediaAudit,
54
55
  unenrollUserLab: () => unenrollUserLab,
@@ -67,6 +68,7 @@ __export(exports_dev, {
67
68
  listUserActivity: () => listUserActivity,
68
69
  listSeries: () => listSeries,
69
70
  listSegments: () => listSegments,
71
+ listSegmentRevisions: () => listSegmentRevisions,
70
72
  listMedia: () => listMedia,
71
73
  listEpisodes: () => listEpisodes,
72
74
  listCollections: () => listCollections,
@@ -91,6 +93,7 @@ __export(exports_dev, {
91
93
  getCollectionStats: () => getCollectionStats,
92
94
  getCollection: () => getCollection,
93
95
  getCharacter: () => getCharacter,
96
+ getAnnouncement: () => getAnnouncement,
94
97
  getAdminQueue: () => getAdminQueue,
95
98
  getAdminMediaAuditRun: () => getAdminMediaAuditRun,
96
99
  getAdminHealth: () => getAdminHealth,
@@ -107,6 +110,7 @@ __export(exports_dev, {
107
110
  deleteCollection: () => deleteCollection,
108
111
  createUserReport: () => createUserReport,
109
112
  createSeries: () => createSeries,
113
+ createSegmentsBatch: () => createSegmentsBatch,
110
114
  createSegment: () => createSegment,
111
115
  createNadeshikoClient: () => createNadeshikoClient,
112
116
  createMedia: () => createMedia,
@@ -926,7 +930,11 @@ var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }))
926
930
 
927
931
  // generated/dev/sdk.gen.ts
928
932
  var search = (options) => (options?.client ?? client).post({
929
- security: [{ scheme: "bearer", type: "http" }],
933
+ security: [{ scheme: "bearer", type: "http" }, {
934
+ in: "cookie",
935
+ name: "nadeshiko.session_token",
936
+ type: "apiKey"
937
+ }],
930
938
  url: "/v1/search",
931
939
  ...options,
932
940
  headers: {
@@ -935,7 +943,11 @@ var search = (options) => (options?.client ?? client).post({
935
943
  }
936
944
  });
937
945
  var getSearchStats = (options) => (options?.client ?? client).post({
938
- security: [{ scheme: "bearer", type: "http" }],
946
+ security: [{ scheme: "bearer", type: "http" }, {
947
+ in: "cookie",
948
+ name: "nadeshiko.session_token",
949
+ type: "apiKey"
950
+ }],
939
951
  url: "/v1/search/stats",
940
952
  ...options,
941
953
  headers: {
@@ -944,7 +956,11 @@ var getSearchStats = (options) => (options?.client ?? client).post({
944
956
  }
945
957
  });
946
958
  var searchWords = (options) => (options.client ?? client).post({
947
- security: [{ scheme: "bearer", type: "http" }],
959
+ security: [{ scheme: "bearer", type: "http" }, {
960
+ in: "cookie",
961
+ name: "nadeshiko.session_token",
962
+ type: "apiKey"
963
+ }],
948
964
  url: "/v1/search/words",
949
965
  ...options,
950
966
  headers: {
@@ -953,12 +969,20 @@ var searchWords = (options) => (options.client ?? client).post({
953
969
  }
954
970
  });
955
971
  var listMedia = (options) => (options?.client ?? client).get({
956
- security: [{ scheme: "bearer", type: "http" }],
972
+ security: [{ scheme: "bearer", type: "http" }, {
973
+ in: "cookie",
974
+ name: "nadeshiko.session_token",
975
+ type: "apiKey"
976
+ }],
957
977
  url: "/v1/media",
958
978
  ...options
959
979
  });
960
980
  var createMedia = (options) => (options.client ?? client).post({
961
- security: [{ scheme: "bearer", type: "http" }],
981
+ security: [{ scheme: "bearer", type: "http" }, {
982
+ in: "cookie",
983
+ name: "nadeshiko.session_token",
984
+ type: "apiKey"
985
+ }],
962
986
  url: "/v1/media",
963
987
  ...options,
964
988
  headers: {
@@ -967,12 +991,20 @@ var createMedia = (options) => (options.client ?? client).post({
967
991
  }
968
992
  });
969
993
  var autocompleteMedia = (options) => (options.client ?? client).get({
970
- security: [{ scheme: "bearer", type: "http" }],
994
+ security: [{ scheme: "bearer", type: "http" }, {
995
+ in: "cookie",
996
+ name: "nadeshiko.session_token",
997
+ type: "apiKey"
998
+ }],
971
999
  url: "/v1/media/autocomplete",
972
1000
  ...options
973
1001
  });
974
1002
  var getSegmentByUuid = (options) => (options.client ?? client).get({
975
- security: [{ scheme: "bearer", type: "http" }],
1003
+ security: [{ scheme: "bearer", type: "http" }, {
1004
+ in: "cookie",
1005
+ name: "nadeshiko.session_token",
1006
+ type: "apiKey"
1007
+ }],
976
1008
  url: "/v1/media/segments/{uuid}",
977
1009
  ...options
978
1010
  });
@@ -990,17 +1022,38 @@ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
990
1022
  }
991
1023
  });
992
1024
  var getSegmentContext = (options) => (options.client ?? client).get({
993
- security: [{ scheme: "bearer", type: "http" }],
1025
+ security: [{ scheme: "bearer", type: "http" }, {
1026
+ in: "cookie",
1027
+ name: "nadeshiko.session_token",
1028
+ type: "apiKey"
1029
+ }],
994
1030
  url: "/v1/media/segments/{uuid}/context",
995
1031
  ...options
996
1032
  });
1033
+ var listSegmentRevisions = (options) => (options.client ?? client).get({
1034
+ security: [{ scheme: "bearer", type: "http" }, {
1035
+ in: "cookie",
1036
+ name: "nadeshiko.session_token",
1037
+ type: "apiKey"
1038
+ }],
1039
+ url: "/v1/media/segments/{uuid}/revisions",
1040
+ ...options
1041
+ });
997
1042
  var listSeries = (options) => (options?.client ?? client).get({
998
- security: [{ scheme: "bearer", type: "http" }],
1043
+ security: [{ scheme: "bearer", type: "http" }, {
1044
+ in: "cookie",
1045
+ name: "nadeshiko.session_token",
1046
+ type: "apiKey"
1047
+ }],
999
1048
  url: "/v1/media/series",
1000
1049
  ...options
1001
1050
  });
1002
1051
  var createSeries = (options) => (options.client ?? client).post({
1003
- security: [{ scheme: "bearer", type: "http" }],
1052
+ security: [{ scheme: "bearer", type: "http" }, {
1053
+ in: "cookie",
1054
+ name: "nadeshiko.session_token",
1055
+ type: "apiKey"
1056
+ }],
1004
1057
  url: "/v1/media/series",
1005
1058
  ...options,
1006
1059
  headers: {
@@ -1009,17 +1062,29 @@ var createSeries = (options) => (options.client ?? client).post({
1009
1062
  }
1010
1063
  });
1011
1064
  var deleteSeries = (options) => (options.client ?? client).delete({
1012
- security: [{ scheme: "bearer", type: "http" }],
1065
+ security: [{ scheme: "bearer", type: "http" }, {
1066
+ in: "cookie",
1067
+ name: "nadeshiko.session_token",
1068
+ type: "apiKey"
1069
+ }],
1013
1070
  url: "/v1/media/series/{id}",
1014
1071
  ...options
1015
1072
  });
1016
1073
  var getSeries = (options) => (options.client ?? client).get({
1017
- security: [{ scheme: "bearer", type: "http" }],
1074
+ security: [{ scheme: "bearer", type: "http" }, {
1075
+ in: "cookie",
1076
+ name: "nadeshiko.session_token",
1077
+ type: "apiKey"
1078
+ }],
1018
1079
  url: "/v1/media/series/{id}",
1019
1080
  ...options
1020
1081
  });
1021
1082
  var updateSeries = (options) => (options.client ?? client).patch({
1022
- security: [{ scheme: "bearer", type: "http" }],
1083
+ security: [{ scheme: "bearer", type: "http" }, {
1084
+ in: "cookie",
1085
+ name: "nadeshiko.session_token",
1086
+ type: "apiKey"
1087
+ }],
1023
1088
  url: "/v1/media/series/{id}",
1024
1089
  ...options,
1025
1090
  headers: {
@@ -1028,7 +1093,11 @@ var updateSeries = (options) => (options.client ?? client).patch({
1028
1093
  }
1029
1094
  });
1030
1095
  var addMediaToSeries = (options) => (options.client ?? client).post({
1031
- security: [{ scheme: "bearer", type: "http" }],
1096
+ security: [{ scheme: "bearer", type: "http" }, {
1097
+ in: "cookie",
1098
+ name: "nadeshiko.session_token",
1099
+ type: "apiKey"
1100
+ }],
1032
1101
  url: "/v1/media/series/{id}/media",
1033
1102
  ...options,
1034
1103
  headers: {
@@ -1037,12 +1106,20 @@ var addMediaToSeries = (options) => (options.client ?? client).post({
1037
1106
  }
1038
1107
  });
1039
1108
  var removeMediaFromSeries = (options) => (options.client ?? client).delete({
1040
- security: [{ scheme: "bearer", type: "http" }],
1109
+ security: [{ scheme: "bearer", type: "http" }, {
1110
+ in: "cookie",
1111
+ name: "nadeshiko.session_token",
1112
+ type: "apiKey"
1113
+ }],
1041
1114
  url: "/v1/media/series/{id}/media/{mediaId}",
1042
1115
  ...options
1043
1116
  });
1044
1117
  var updateSeriesMedia = (options) => (options.client ?? client).patch({
1045
- security: [{ scheme: "bearer", type: "http" }],
1118
+ security: [{ scheme: "bearer", type: "http" }, {
1119
+ in: "cookie",
1120
+ name: "nadeshiko.session_token",
1121
+ type: "apiKey"
1122
+ }],
1046
1123
  url: "/v1/media/series/{id}/media/{mediaId}",
1047
1124
  ...options,
1048
1125
  headers: {
@@ -1051,27 +1128,47 @@ var updateSeriesMedia = (options) => (options.client ?? client).patch({
1051
1128
  }
1052
1129
  });
1053
1130
  var getCharacter = (options) => (options.client ?? client).get({
1054
- security: [{ scheme: "bearer", type: "http" }],
1131
+ security: [{ scheme: "bearer", type: "http" }, {
1132
+ in: "cookie",
1133
+ name: "nadeshiko.session_token",
1134
+ type: "apiKey"
1135
+ }],
1055
1136
  url: "/v1/media/characters/{id}",
1056
1137
  ...options
1057
1138
  });
1058
1139
  var getSeiyuu = (options) => (options.client ?? client).get({
1059
- security: [{ scheme: "bearer", type: "http" }],
1140
+ security: [{ scheme: "bearer", type: "http" }, {
1141
+ in: "cookie",
1142
+ name: "nadeshiko.session_token",
1143
+ type: "apiKey"
1144
+ }],
1060
1145
  url: "/v1/media/seiyuu/{id}",
1061
1146
  ...options
1062
1147
  });
1063
1148
  var deleteMedia = (options) => (options.client ?? client).delete({
1064
- security: [{ scheme: "bearer", type: "http" }],
1149
+ security: [{ scheme: "bearer", type: "http" }, {
1150
+ in: "cookie",
1151
+ name: "nadeshiko.session_token",
1152
+ type: "apiKey"
1153
+ }],
1065
1154
  url: "/v1/media/{id}",
1066
1155
  ...options
1067
1156
  });
1068
1157
  var getMedia = (options) => (options.client ?? client).get({
1069
- security: [{ scheme: "bearer", type: "http" }],
1158
+ security: [{ scheme: "bearer", type: "http" }, {
1159
+ in: "cookie",
1160
+ name: "nadeshiko.session_token",
1161
+ type: "apiKey"
1162
+ }],
1070
1163
  url: "/v1/media/{id}",
1071
1164
  ...options
1072
1165
  });
1073
1166
  var updateMedia = (options) => (options.client ?? client).patch({
1074
- security: [{ scheme: "bearer", type: "http" }],
1167
+ security: [{ scheme: "bearer", type: "http" }, {
1168
+ in: "cookie",
1169
+ name: "nadeshiko.session_token",
1170
+ type: "apiKey"
1171
+ }],
1075
1172
  url: "/v1/media/{id}",
1076
1173
  ...options,
1077
1174
  headers: {
@@ -1080,12 +1177,20 @@ var updateMedia = (options) => (options.client ?? client).patch({
1080
1177
  }
1081
1178
  });
1082
1179
  var listEpisodes = (options) => (options.client ?? client).get({
1083
- security: [{ scheme: "bearer", type: "http" }],
1180
+ security: [{ scheme: "bearer", type: "http" }, {
1181
+ in: "cookie",
1182
+ name: "nadeshiko.session_token",
1183
+ type: "apiKey"
1184
+ }],
1084
1185
  url: "/v1/media/{mediaId}/episodes",
1085
1186
  ...options
1086
1187
  });
1087
1188
  var createEpisode = (options) => (options.client ?? client).post({
1088
- security: [{ scheme: "bearer", type: "http" }],
1189
+ security: [{ scheme: "bearer", type: "http" }, {
1190
+ in: "cookie",
1191
+ name: "nadeshiko.session_token",
1192
+ type: "apiKey"
1193
+ }],
1089
1194
  url: "/v1/media/{mediaId}/episodes",
1090
1195
  ...options,
1091
1196
  headers: {
@@ -1094,17 +1199,29 @@ var createEpisode = (options) => (options.client ?? client).post({
1094
1199
  }
1095
1200
  });
1096
1201
  var deleteEpisode = (options) => (options.client ?? client).delete({
1097
- security: [{ scheme: "bearer", type: "http" }],
1202
+ security: [{ scheme: "bearer", type: "http" }, {
1203
+ in: "cookie",
1204
+ name: "nadeshiko.session_token",
1205
+ type: "apiKey"
1206
+ }],
1098
1207
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1099
1208
  ...options
1100
1209
  });
1101
1210
  var getEpisode = (options) => (options.client ?? client).get({
1102
- security: [{ scheme: "bearer", type: "http" }],
1211
+ security: [{ scheme: "bearer", type: "http" }, {
1212
+ in: "cookie",
1213
+ name: "nadeshiko.session_token",
1214
+ type: "apiKey"
1215
+ }],
1103
1216
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1104
1217
  ...options
1105
1218
  });
1106
1219
  var updateEpisode = (options) => (options.client ?? client).patch({
1107
- security: [{ scheme: "bearer", type: "http" }],
1220
+ security: [{ scheme: "bearer", type: "http" }, {
1221
+ in: "cookie",
1222
+ name: "nadeshiko.session_token",
1223
+ type: "apiKey"
1224
+ }],
1108
1225
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1109
1226
  ...options,
1110
1227
  headers: {
@@ -1113,12 +1230,20 @@ var updateEpisode = (options) => (options.client ?? client).patch({
1113
1230
  }
1114
1231
  });
1115
1232
  var listSegments = (options) => (options.client ?? client).get({
1116
- security: [{ scheme: "bearer", type: "http" }],
1233
+ security: [{ scheme: "bearer", type: "http" }, {
1234
+ in: "cookie",
1235
+ name: "nadeshiko.session_token",
1236
+ type: "apiKey"
1237
+ }],
1117
1238
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1118
1239
  ...options
1119
1240
  });
1120
1241
  var createSegment = (options) => (options.client ?? client).post({
1121
- security: [{ scheme: "bearer", type: "http" }],
1242
+ security: [{ scheme: "bearer", type: "http" }, {
1243
+ in: "cookie",
1244
+ name: "nadeshiko.session_token",
1245
+ type: "apiKey"
1246
+ }],
1122
1247
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1123
1248
  ...options,
1124
1249
  headers: {
@@ -1126,18 +1251,43 @@ var createSegment = (options) => (options.client ?? client).post({
1126
1251
  ...options.headers
1127
1252
  }
1128
1253
  });
1254
+ var createSegmentsBatch = (options) => (options.client ?? client).post({
1255
+ security: [{ scheme: "bearer", type: "http" }, {
1256
+ in: "cookie",
1257
+ name: "nadeshiko.session_token",
1258
+ type: "apiKey"
1259
+ }],
1260
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
1261
+ ...options,
1262
+ headers: {
1263
+ "Content-Type": "application/json",
1264
+ ...options.headers
1265
+ }
1266
+ });
1129
1267
  var deleteSegment = (options) => (options.client ?? client).delete({
1130
- security: [{ scheme: "bearer", type: "http" }],
1268
+ security: [{ scheme: "bearer", type: "http" }, {
1269
+ in: "cookie",
1270
+ name: "nadeshiko.session_token",
1271
+ type: "apiKey"
1272
+ }],
1131
1273
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1132
1274
  ...options
1133
1275
  });
1134
1276
  var getSegment = (options) => (options.client ?? client).get({
1135
- security: [{ scheme: "bearer", type: "http" }],
1277
+ security: [{ scheme: "bearer", type: "http" }, {
1278
+ in: "cookie",
1279
+ name: "nadeshiko.session_token",
1280
+ type: "apiKey"
1281
+ }],
1136
1282
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1137
1283
  ...options
1138
1284
  });
1139
1285
  var updateSegment = (options) => (options.client ?? client).patch({
1140
- security: [{ scheme: "bearer", type: "http" }],
1286
+ security: [{ scheme: "bearer", type: "http" }, {
1287
+ in: "cookie",
1288
+ name: "nadeshiko.session_token",
1289
+ type: "apiKey"
1290
+ }],
1141
1291
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1142
1292
  ...options,
1143
1293
  headers: {
@@ -1364,7 +1514,7 @@ var removeSegmentFromCollection = (options) => (options.client ?? client).delete
1364
1514
  name: "nadeshiko.session_token",
1365
1515
  type: "apiKey"
1366
1516
  }],
1367
- url: "/v1/collections/{id}/segments/{uuid}",
1517
+ url: "/v1/collections/{id}/segments/{segmentId}",
1368
1518
  ...options
1369
1519
  });
1370
1520
  var updateCollectionSegment = (options) => (options.client ?? client).patch({
@@ -1373,7 +1523,7 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1373
1523
  name: "nadeshiko.session_token",
1374
1524
  type: "apiKey"
1375
1525
  }],
1376
- url: "/v1/collections/{id}/segments/{uuid}",
1526
+ url: "/v1/collections/{id}/segments/{segmentId}",
1377
1527
  ...options,
1378
1528
  headers: {
1379
1529
  "Content-Type": "application/json",
@@ -1399,17 +1549,29 @@ var getCollectionStats = (options) => (options.client ?? client).get({
1399
1549
  ...options
1400
1550
  });
1401
1551
  var getAdminDashboard = (options) => (options?.client ?? client).get({
1402
- security: [{ scheme: "bearer", type: "http" }],
1552
+ security: [{
1553
+ in: "cookie",
1554
+ name: "nadeshiko.session_token",
1555
+ type: "apiKey"
1556
+ }],
1403
1557
  url: "/v1/admin/dashboard",
1404
1558
  ...options
1405
1559
  });
1406
1560
  var getAdminHealth = (options) => (options?.client ?? client).get({
1407
- security: [{ scheme: "bearer", type: "http" }],
1561
+ security: [{
1562
+ in: "cookie",
1563
+ name: "nadeshiko.session_token",
1564
+ type: "apiKey"
1565
+ }],
1408
1566
  url: "/v1/admin/health",
1409
1567
  ...options
1410
1568
  });
1411
1569
  var triggerReindex = (options) => (options?.client ?? client).post({
1412
- security: [{ scheme: "bearer", type: "http" }],
1570
+ security: [{
1571
+ in: "cookie",
1572
+ name: "nadeshiko.session_token",
1573
+ type: "apiKey"
1574
+ }],
1413
1575
  url: "/v1/admin/reindex",
1414
1576
  ...options,
1415
1577
  headers: {
@@ -1418,45 +1580,52 @@ var triggerReindex = (options) => (options?.client ?? client).post({
1418
1580
  }
1419
1581
  });
1420
1582
  var listAdminQueueStats = (options) => (options?.client ?? client).get({
1421
- security: [{ scheme: "bearer", type: "http" }],
1583
+ security: [{
1584
+ in: "cookie",
1585
+ name: "nadeshiko.session_token",
1586
+ type: "apiKey"
1587
+ }],
1422
1588
  url: "/v1/admin/queues/stats",
1423
1589
  ...options
1424
1590
  });
1425
1591
  var getAdminQueue = (options) => (options.client ?? client).get({
1426
- security: [{ scheme: "bearer", type: "http" }],
1592
+ security: [{
1593
+ in: "cookie",
1594
+ name: "nadeshiko.session_token",
1595
+ type: "apiKey"
1596
+ }],
1427
1597
  url: "/v1/admin/queues/{queueName}",
1428
1598
  ...options
1429
1599
  });
1430
1600
  var listAdminQueueFailed = (options) => (options.client ?? client).get({
1431
- security: [{ scheme: "bearer", type: "http" }],
1601
+ security: [{
1602
+ in: "cookie",
1603
+ name: "nadeshiko.session_token",
1604
+ type: "apiKey"
1605
+ }],
1432
1606
  url: "/v1/admin/queues/{queueName}/failed",
1433
1607
  ...options
1434
1608
  });
1435
1609
  var retryAdminQueueFailed = (options) => (options.client ?? client).post({
1436
- security: [{ scheme: "bearer", type: "http" }],
1437
- url: "/v1/admin/queues/{queueName}/retry",
1438
- ...options
1439
- });
1440
- var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1441
- security: [{ scheme: "bearer", type: "http" }],
1442
- url: "/v1/admin/queues/{queueName}/purge",
1443
- ...options
1444
- });
1445
- var clearAdminImpersonation = (options) => (options?.client ?? client).delete({
1446
1610
  security: [{
1447
1611
  in: "cookie",
1448
1612
  name: "nadeshiko.session_token",
1449
1613
  type: "apiKey"
1450
1614
  }],
1451
- url: "/v1/admin/impersonation",
1615
+ url: "/v1/admin/queues/{queueName}/retry",
1452
1616
  ...options
1453
1617
  });
1454
- var impersonateAdminUser = (options) => (options.client ?? client).post({
1618
+ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1455
1619
  security: [{
1456
1620
  in: "cookie",
1457
1621
  name: "nadeshiko.session_token",
1458
1622
  type: "apiKey"
1459
1623
  }],
1624
+ url: "/v1/admin/queues/{queueName}/purge",
1625
+ ...options
1626
+ });
1627
+ var clearAdminImpersonation = (options) => (options?.client ?? client).delete({ url: "/v1/admin/impersonation", ...options });
1628
+ var impersonateAdminUser = (options) => (options.client ?? client).post({
1460
1629
  url: "/v1/admin/impersonation",
1461
1630
  ...options,
1462
1631
  headers: {
@@ -1465,12 +1634,20 @@ var impersonateAdminUser = (options) => (options.client ?? client).post({
1465
1634
  }
1466
1635
  });
1467
1636
  var listAdminReports = (options) => (options?.client ?? client).get({
1468
- security: [{ scheme: "bearer", type: "http" }],
1637
+ security: [{
1638
+ in: "cookie",
1639
+ name: "nadeshiko.session_token",
1640
+ type: "apiKey"
1641
+ }],
1469
1642
  url: "/v1/admin/reports",
1470
1643
  ...options
1471
1644
  });
1472
1645
  var updateAdminReport = (options) => (options.client ?? client).patch({
1473
- security: [{ scheme: "bearer", type: "http" }],
1646
+ security: [{
1647
+ in: "cookie",
1648
+ name: "nadeshiko.session_token",
1649
+ type: "apiKey"
1650
+ }],
1474
1651
  url: "/v1/admin/reports/{id}",
1475
1652
  ...options,
1476
1653
  headers: {
@@ -1479,12 +1656,20 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
1479
1656
  }
1480
1657
  });
1481
1658
  var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1482
- security: [{ scheme: "bearer", type: "http" }],
1659
+ security: [{
1660
+ in: "cookie",
1661
+ name: "nadeshiko.session_token",
1662
+ type: "apiKey"
1663
+ }],
1483
1664
  url: "/v1/admin/media/audits",
1484
1665
  ...options
1485
1666
  });
1486
1667
  var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1487
- security: [{ scheme: "bearer", type: "http" }],
1668
+ security: [{
1669
+ in: "cookie",
1670
+ name: "nadeshiko.session_token",
1671
+ type: "apiKey"
1672
+ }],
1488
1673
  url: "/v1/admin/media/audits/{name}",
1489
1674
  ...options,
1490
1675
  headers: {
@@ -1493,25 +1678,52 @@ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1493
1678
  }
1494
1679
  });
1495
1680
  var runAdminMediaAudit = (options) => (options.client ?? client).post({
1496
- security: [{ scheme: "bearer", type: "http" }],
1681
+ security: [{
1682
+ in: "cookie",
1683
+ name: "nadeshiko.session_token",
1684
+ type: "apiKey"
1685
+ }],
1497
1686
  url: "/v1/admin/media/audits/{name}/run",
1498
1687
  ...options
1499
1688
  });
1500
1689
  var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1501
- security: [{ scheme: "bearer", type: "http" }],
1690
+ security: [{
1691
+ in: "cookie",
1692
+ name: "nadeshiko.session_token",
1693
+ type: "apiKey"
1694
+ }],
1502
1695
  url: "/v1/admin/media/audits/runs",
1503
1696
  ...options
1504
1697
  });
1505
1698
  var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1506
- security: [{ scheme: "bearer", type: "http" }],
1699
+ security: [{
1700
+ in: "cookie",
1701
+ name: "nadeshiko.session_token",
1702
+ type: "apiKey"
1703
+ }],
1507
1704
  url: "/v1/admin/media/audits/runs/{id}",
1508
1705
  ...options
1509
1706
  });
1707
+ var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
1708
+ var updateAnnouncement = (options) => (options.client ?? client).put({
1709
+ security: [{
1710
+ in: "cookie",
1711
+ name: "nadeshiko.session_token",
1712
+ type: "apiKey"
1713
+ }],
1714
+ url: "/v1/admin/announcement",
1715
+ ...options,
1716
+ headers: {
1717
+ "Content-Type": "application/json",
1718
+ ...options.headers
1719
+ }
1720
+ });
1510
1721
  // generated/dev/nadeshiko.gen.ts
1511
1722
  var environments = {
1512
1723
  LOCAL: "http://localhost:5000/api",
1513
- DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
1514
- PRODUCTION: "https://api.brigadasos.xyz/api"
1724
+ DEVELOPMENT: "https://api-dev.nadeshiko.co",
1725
+ PRODUCTION: "https://api.nadeshiko.co",
1726
+ PROXY: ""
1515
1727
  };
1516
1728
  var defaultSessionTokenGetter = () => {
1517
1729
  if (typeof document === "undefined")
@@ -1520,7 +1732,13 @@ var defaultSessionTokenGetter = () => {
1520
1732
  return match ? decodeURIComponent(match[1]) : undefined;
1521
1733
  };
1522
1734
  function createNadeshikoClient(config) {
1523
- const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl : environments.PRODUCTION;
1735
+ const baseUrl = config.baseUrl === undefined ? environments.PRODUCTION : (config.baseUrl in environments) ? environments[config.baseUrl] : config.baseUrl;
1736
+ const getApiKey = async () => {
1737
+ if (typeof config.apiKey === "function") {
1738
+ return await config.apiKey();
1739
+ }
1740
+ return config.apiKey;
1741
+ };
1524
1742
  const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
1525
1743
  const clientInstance = createClient(createConfig({
1526
1744
  baseUrl,
@@ -1528,7 +1746,7 @@ function createNadeshikoClient(config) {
1528
1746
  if (auth.in === "cookie") {
1529
1747
  return getSessionToken();
1530
1748
  }
1531
- return config.apiKey;
1749
+ return getApiKey();
1532
1750
  }
1533
1751
  }));
1534
1752
  return {
@@ -1550,6 +1768,7 @@ function createNadeshikoClient(config) {
1550
1768
  createMedia: (options) => createMedia({ ...options, client: clientInstance }),
1551
1769
  autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
1552
1770
  updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
1771
+ listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
1553
1772
  createSeries: (options) => createSeries({ ...options, client: clientInstance }),
1554
1773
  updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
1555
1774
  deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
@@ -1563,6 +1782,7 @@ function createNadeshikoClient(config) {
1563
1782
  deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
1564
1783
  listSegments: (options) => listSegments({ ...options, client: clientInstance }),
1565
1784
  createSegment: (options) => createSegment({ ...options, client: clientInstance }),
1785
+ createSegmentsBatch: (options) => createSegmentsBatch({ ...options, client: clientInstance }),
1566
1786
  updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
1567
1787
  deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
1568
1788
  getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
@@ -1606,7 +1826,9 @@ function createNadeshikoClient(config) {
1606
1826
  updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
1607
1827
  runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
1608
1828
  listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
1609
- getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
1829
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
1830
+ getAnnouncement: (options) => getAnnouncement({ ...options, client: clientInstance }),
1831
+ updateAnnouncement: (options) => updateAnnouncement({ ...options, client: clientInstance })
1610
1832
  };
1611
1833
  }
1612
1834
  // generated/dev/internal/media.gen.ts
@@ -1620,11 +1842,13 @@ __export(exports_media_gen, {
1620
1842
  updateEpisode: () => updateEpisode,
1621
1843
  removeMediaFromSeries: () => removeMediaFromSeries,
1622
1844
  listSegments: () => listSegments,
1845
+ listSegmentRevisions: () => listSegmentRevisions,
1623
1846
  deleteSeries: () => deleteSeries,
1624
1847
  deleteSegment: () => deleteSegment,
1625
1848
  deleteMedia: () => deleteMedia,
1626
1849
  deleteEpisode: () => deleteEpisode,
1627
1850
  createSeries: () => createSeries,
1851
+ createSegmentsBatch: () => createSegmentsBatch,
1628
1852
  createSegment: () => createSegment,
1629
1853
  createMedia: () => createMedia,
1630
1854
  createEpisode: () => createEpisode,
@@ -1667,6 +1891,7 @@ __export(exports_collections_gen, {
1667
1891
  // generated/dev/internal/admin.gen.ts
1668
1892
  var exports_admin_gen = {};
1669
1893
  __export(exports_admin_gen, {
1894
+ updateAnnouncement: () => updateAnnouncement,
1670
1895
  updateAdminReport: () => updateAdminReport,
1671
1896
  updateAdminMediaAudit: () => updateAdminMediaAudit,
1672
1897
  triggerReindex: () => triggerReindex,
@@ -1679,6 +1904,7 @@ __export(exports_admin_gen, {
1679
1904
  listAdminMediaAudits: () => listAdminMediaAudits,
1680
1905
  listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1681
1906
  impersonateAdminUser: () => impersonateAdminUser,
1907
+ getAnnouncement: () => getAnnouncement,
1682
1908
  getAdminQueue: () => getAdminQueue,
1683
1909
  getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1684
1910
  getAdminHealth: () => getAdminHealth,
@@ -1686,5 +1912,5 @@ __export(exports_admin_gen, {
1686
1912
  clearAdminImpersonation: () => clearAdminImpersonation
1687
1913
  });
1688
1914
 
1689
- //# debugId=E295580D1109844C64756E2164756E21
1915
+ //# debugId=8ABA5B3A395A47F564756E2164756E21
1690
1916
  //# sourceMappingURL=index.js.map