@brigadasos/nadeshiko-sdk 1.5.0-dev.0c1011b → 1.5.0-dev.2f9d92f

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { search, getSearchStats, searchWords, listMedia, getSegmentByUuid, getSegmentContext, listSeries, getSeries, getCharacter, getSeiyuu, getMedia, listEpisodes, getEpisode, getSegment, createMedia, autocompleteMedia, updateSegmentByUuid, createSeries, updateSeries, deleteSeries, addMediaToSeries, updateSeriesMedia, removeMediaFromSeries, updateMedia, deleteMedia, createEpisode, updateEpisode, deleteEpisode, listSegments, createSegment, updateSegment, deleteSegment, getUserQuota, createUserReport, getUserPreferences, updateUserPreferences, listUserActivity, trackUserActivity, deleteUserActivity, getUserActivityHeatmap, getUserActivityStats, deleteUserActivityByDate, deleteUserActivityById, exportUserData, listUserLabs, enrollUserLab, unenrollUserLab, listCollections, createCollection, getCollection, updateCollection, deleteCollection, addSegmentToCollection, updateCollectionSegment, removeSegmentFromCollection, searchCollectionSegments, getCollectionStats, getAdminDashboard, getAdminHealth, triggerReindex, listAdminQueueStats, getAdminQueue, listAdminQueueFailed, retryAdminQueueFailed, purgeAdminQueueFailed, impersonateAdminUser, clearAdminImpersonation, listAdminReports, updateAdminReport, listAdminMediaAudits, updateAdminMediaAudit, runAdminMediaAudit, listAdminMediaAuditRuns, getAdminMediaAuditRun, type Options } from './sdk.gen';
1
+ export { search, getSearchStats, searchWords, listMedia, getSegmentByUuid, getSegmentContext, listSeries, getSeries, getCharacter, getSeiyuu, getMedia, listEpisodes, getEpisode, getSegment, createMedia, autocompleteMedia, updateSegmentByUuid, listSegmentRevisions, createSeries, updateSeries, deleteSeries, addMediaToSeries, updateSeriesMedia, removeMediaFromSeries, updateMedia, deleteMedia, createEpisode, updateEpisode, deleteEpisode, listSegments, createSegment, createSegmentsBatch, updateSegment, deleteSegment, getUserQuota, createUserReport, getUserPreferences, updateUserPreferences, listUserActivity, trackUserActivity, deleteUserActivity, getUserActivityHeatmap, getUserActivityStats, deleteUserActivityByDate, deleteUserActivityById, exportUserData, listUserLabs, enrollUserLab, unenrollUserLab, listCollections, createCollection, getCollection, updateCollection, deleteCollection, addSegmentToCollection, updateCollectionSegment, removeSegmentFromCollection, searchCollectionSegments, getCollectionStats, getAdminDashboard, getAdminHealth, triggerReindex, listAdminQueueStats, getAdminQueue, listAdminQueueFailed, retryAdminQueueFailed, purgeAdminQueueFailed, impersonateAdminUser, clearAdminImpersonation, listAdminReports, updateAdminReport, listAdminMediaAudits, updateAdminMediaAudit, runAdminMediaAudit, listAdminMediaAuditRuns, getAdminMediaAuditRun, getAnnouncement, updateAnnouncement, type Options } from './sdk.gen';
2
2
  export { createNadeshikoClient, type NadeshikoClient, type NadeshikoConfig } from './nadeshiko.gen';
3
3
  export { client } from './client.gen';
4
4
  export * from './internal.gen';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../generated/dev/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAG/0C,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGpG,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,aAAa,CAAC;AAC5B,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../generated/dev/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,eAAe,EAAE,kBAAkB,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAG/5C,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGpG,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,aAAa,CAAC;AAC5B,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
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,7 +878,11 @@ 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
  });
@@ -893,13 +917,30 @@ var getSegmentContext = (options) => (options.client ?? client).get({
893
917
  url: "/v1/media/segments/{uuid}/context",
894
918
  ...options
895
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
+ });
896
929
  var listSeries = (options) => (options?.client ?? client).get({
897
- security: [{ scheme: "bearer", type: "http" }],
930
+ security: [{ scheme: "bearer", type: "http" }, {
931
+ in: "cookie",
932
+ name: "nadeshiko.session_token",
933
+ type: "apiKey"
934
+ }],
898
935
  url: "/v1/media/series",
899
936
  ...options
900
937
  });
901
938
  var createSeries = (options) => (options.client ?? client).post({
902
- security: [{ scheme: "bearer", type: "http" }],
939
+ security: [{ scheme: "bearer", type: "http" }, {
940
+ in: "cookie",
941
+ name: "nadeshiko.session_token",
942
+ type: "apiKey"
943
+ }],
903
944
  url: "/v1/media/series",
904
945
  ...options,
905
946
  headers: {
@@ -908,17 +949,29 @@ var createSeries = (options) => (options.client ?? client).post({
908
949
  }
909
950
  });
910
951
  var deleteSeries = (options) => (options.client ?? client).delete({
911
- security: [{ scheme: "bearer", type: "http" }],
952
+ security: [{ scheme: "bearer", type: "http" }, {
953
+ in: "cookie",
954
+ name: "nadeshiko.session_token",
955
+ type: "apiKey"
956
+ }],
912
957
  url: "/v1/media/series/{id}",
913
958
  ...options
914
959
  });
915
960
  var getSeries = (options) => (options.client ?? client).get({
916
- security: [{ scheme: "bearer", type: "http" }],
961
+ security: [{ scheme: "bearer", type: "http" }, {
962
+ in: "cookie",
963
+ name: "nadeshiko.session_token",
964
+ type: "apiKey"
965
+ }],
917
966
  url: "/v1/media/series/{id}",
918
967
  ...options
919
968
  });
920
969
  var updateSeries = (options) => (options.client ?? client).patch({
921
- security: [{ scheme: "bearer", type: "http" }],
970
+ security: [{ scheme: "bearer", type: "http" }, {
971
+ in: "cookie",
972
+ name: "nadeshiko.session_token",
973
+ type: "apiKey"
974
+ }],
922
975
  url: "/v1/media/series/{id}",
923
976
  ...options,
924
977
  headers: {
@@ -927,7 +980,11 @@ var updateSeries = (options) => (options.client ?? client).patch({
927
980
  }
928
981
  });
929
982
  var addMediaToSeries = (options) => (options.client ?? client).post({
930
- security: [{ scheme: "bearer", type: "http" }],
983
+ security: [{ scheme: "bearer", type: "http" }, {
984
+ in: "cookie",
985
+ name: "nadeshiko.session_token",
986
+ type: "apiKey"
987
+ }],
931
988
  url: "/v1/media/series/{id}/media",
932
989
  ...options,
933
990
  headers: {
@@ -936,12 +993,20 @@ var addMediaToSeries = (options) => (options.client ?? client).post({
936
993
  }
937
994
  });
938
995
  var removeMediaFromSeries = (options) => (options.client ?? client).delete({
939
- security: [{ scheme: "bearer", type: "http" }],
996
+ security: [{ scheme: "bearer", type: "http" }, {
997
+ in: "cookie",
998
+ name: "nadeshiko.session_token",
999
+ type: "apiKey"
1000
+ }],
940
1001
  url: "/v1/media/series/{id}/media/{mediaId}",
941
1002
  ...options
942
1003
  });
943
1004
  var updateSeriesMedia = (options) => (options.client ?? client).patch({
944
- security: [{ scheme: "bearer", type: "http" }],
1005
+ security: [{ scheme: "bearer", type: "http" }, {
1006
+ in: "cookie",
1007
+ name: "nadeshiko.session_token",
1008
+ type: "apiKey"
1009
+ }],
945
1010
  url: "/v1/media/series/{id}/media/{mediaId}",
946
1011
  ...options,
947
1012
  headers: {
@@ -950,27 +1015,47 @@ var updateSeriesMedia = (options) => (options.client ?? client).patch({
950
1015
  }
951
1016
  });
952
1017
  var getCharacter = (options) => (options.client ?? client).get({
953
- security: [{ scheme: "bearer", type: "http" }],
1018
+ security: [{ scheme: "bearer", type: "http" }, {
1019
+ in: "cookie",
1020
+ name: "nadeshiko.session_token",
1021
+ type: "apiKey"
1022
+ }],
954
1023
  url: "/v1/media/characters/{id}",
955
1024
  ...options
956
1025
  });
957
1026
  var getSeiyuu = (options) => (options.client ?? client).get({
958
- security: [{ scheme: "bearer", type: "http" }],
1027
+ security: [{ scheme: "bearer", type: "http" }, {
1028
+ in: "cookie",
1029
+ name: "nadeshiko.session_token",
1030
+ type: "apiKey"
1031
+ }],
959
1032
  url: "/v1/media/seiyuu/{id}",
960
1033
  ...options
961
1034
  });
962
1035
  var deleteMedia = (options) => (options.client ?? client).delete({
963
- security: [{ scheme: "bearer", type: "http" }],
1036
+ security: [{ scheme: "bearer", type: "http" }, {
1037
+ in: "cookie",
1038
+ name: "nadeshiko.session_token",
1039
+ type: "apiKey"
1040
+ }],
964
1041
  url: "/v1/media/{id}",
965
1042
  ...options
966
1043
  });
967
1044
  var getMedia = (options) => (options.client ?? client).get({
968
- security: [{ scheme: "bearer", type: "http" }],
1045
+ security: [{ scheme: "bearer", type: "http" }, {
1046
+ in: "cookie",
1047
+ name: "nadeshiko.session_token",
1048
+ type: "apiKey"
1049
+ }],
969
1050
  url: "/v1/media/{id}",
970
1051
  ...options
971
1052
  });
972
1053
  var updateMedia = (options) => (options.client ?? client).patch({
973
- security: [{ scheme: "bearer", type: "http" }],
1054
+ security: [{ scheme: "bearer", type: "http" }, {
1055
+ in: "cookie",
1056
+ name: "nadeshiko.session_token",
1057
+ type: "apiKey"
1058
+ }],
974
1059
  url: "/v1/media/{id}",
975
1060
  ...options,
976
1061
  headers: {
@@ -979,12 +1064,20 @@ var updateMedia = (options) => (options.client ?? client).patch({
979
1064
  }
980
1065
  });
981
1066
  var listEpisodes = (options) => (options.client ?? client).get({
982
- security: [{ scheme: "bearer", type: "http" }],
1067
+ security: [{ scheme: "bearer", type: "http" }, {
1068
+ in: "cookie",
1069
+ name: "nadeshiko.session_token",
1070
+ type: "apiKey"
1071
+ }],
983
1072
  url: "/v1/media/{mediaId}/episodes",
984
1073
  ...options
985
1074
  });
986
1075
  var createEpisode = (options) => (options.client ?? client).post({
987
- security: [{ scheme: "bearer", type: "http" }],
1076
+ security: [{ scheme: "bearer", type: "http" }, {
1077
+ in: "cookie",
1078
+ name: "nadeshiko.session_token",
1079
+ type: "apiKey"
1080
+ }],
988
1081
  url: "/v1/media/{mediaId}/episodes",
989
1082
  ...options,
990
1083
  headers: {
@@ -993,17 +1086,29 @@ var createEpisode = (options) => (options.client ?? client).post({
993
1086
  }
994
1087
  });
995
1088
  var deleteEpisode = (options) => (options.client ?? client).delete({
996
- security: [{ scheme: "bearer", type: "http" }],
1089
+ security: [{ scheme: "bearer", type: "http" }, {
1090
+ in: "cookie",
1091
+ name: "nadeshiko.session_token",
1092
+ type: "apiKey"
1093
+ }],
997
1094
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
998
1095
  ...options
999
1096
  });
1000
1097
  var getEpisode = (options) => (options.client ?? client).get({
1001
- security: [{ scheme: "bearer", type: "http" }],
1098
+ security: [{ scheme: "bearer", type: "http" }, {
1099
+ in: "cookie",
1100
+ name: "nadeshiko.session_token",
1101
+ type: "apiKey"
1102
+ }],
1002
1103
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1003
1104
  ...options
1004
1105
  });
1005
1106
  var updateEpisode = (options) => (options.client ?? client).patch({
1006
- security: [{ scheme: "bearer", type: "http" }],
1107
+ security: [{ scheme: "bearer", type: "http" }, {
1108
+ in: "cookie",
1109
+ name: "nadeshiko.session_token",
1110
+ type: "apiKey"
1111
+ }],
1007
1112
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1008
1113
  ...options,
1009
1114
  headers: {
@@ -1012,12 +1117,20 @@ var updateEpisode = (options) => (options.client ?? client).patch({
1012
1117
  }
1013
1118
  });
1014
1119
  var listSegments = (options) => (options.client ?? client).get({
1015
- security: [{ scheme: "bearer", type: "http" }],
1120
+ security: [{ scheme: "bearer", type: "http" }, {
1121
+ in: "cookie",
1122
+ name: "nadeshiko.session_token",
1123
+ type: "apiKey"
1124
+ }],
1016
1125
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1017
1126
  ...options
1018
1127
  });
1019
1128
  var createSegment = (options) => (options.client ?? client).post({
1020
- security: [{ scheme: "bearer", type: "http" }],
1129
+ security: [{ scheme: "bearer", type: "http" }, {
1130
+ in: "cookie",
1131
+ name: "nadeshiko.session_token",
1132
+ type: "apiKey"
1133
+ }],
1021
1134
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1022
1135
  ...options,
1023
1136
  headers: {
@@ -1025,18 +1138,43 @@ var createSegment = (options) => (options.client ?? client).post({
1025
1138
  ...options.headers
1026
1139
  }
1027
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
+ });
1028
1154
  var deleteSegment = (options) => (options.client ?? client).delete({
1029
- security: [{ scheme: "bearer", type: "http" }],
1155
+ security: [{ scheme: "bearer", type: "http" }, {
1156
+ in: "cookie",
1157
+ name: "nadeshiko.session_token",
1158
+ type: "apiKey"
1159
+ }],
1030
1160
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1031
1161
  ...options
1032
1162
  });
1033
1163
  var getSegment = (options) => (options.client ?? client).get({
1034
- security: [{ scheme: "bearer", type: "http" }],
1164
+ security: [{ scheme: "bearer", type: "http" }, {
1165
+ in: "cookie",
1166
+ name: "nadeshiko.session_token",
1167
+ type: "apiKey"
1168
+ }],
1035
1169
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1036
1170
  ...options
1037
1171
  });
1038
1172
  var updateSegment = (options) => (options.client ?? client).patch({
1039
- security: [{ scheme: "bearer", type: "http" }],
1173
+ security: [{ scheme: "bearer", type: "http" }, {
1174
+ in: "cookie",
1175
+ name: "nadeshiko.session_token",
1176
+ type: "apiKey"
1177
+ }],
1040
1178
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1041
1179
  ...options,
1042
1180
  headers: {
@@ -1263,7 +1401,7 @@ var removeSegmentFromCollection = (options) => (options.client ?? client).delete
1263
1401
  name: "nadeshiko.session_token",
1264
1402
  type: "apiKey"
1265
1403
  }],
1266
- url: "/v1/collections/{id}/segments/{uuid}",
1404
+ url: "/v1/collections/{id}/segments/{segmentId}",
1267
1405
  ...options
1268
1406
  });
1269
1407
  var updateCollectionSegment = (options) => (options.client ?? client).patch({
@@ -1272,7 +1410,7 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1272
1410
  name: "nadeshiko.session_token",
1273
1411
  type: "apiKey"
1274
1412
  }],
1275
- url: "/v1/collections/{id}/segments/{uuid}",
1413
+ url: "/v1/collections/{id}/segments/{segmentId}",
1276
1414
  ...options,
1277
1415
  headers: {
1278
1416
  "Content-Type": "application/json",
@@ -1453,6 +1591,20 @@ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1453
1591
  url: "/v1/admin/media/audits/runs/{id}",
1454
1592
  ...options
1455
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
+ });
1456
1608
  // generated/dev/nadeshiko.gen.ts
1457
1609
  var environments = {
1458
1610
  LOCAL: "http://localhost:5000/api",
@@ -1502,6 +1654,7 @@ function createNadeshikoClient(config) {
1502
1654
  createMedia: (options) => createMedia({ ...options, client: clientInstance }),
1503
1655
  autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
1504
1656
  updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
1657
+ listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
1505
1658
  createSeries: (options) => createSeries({ ...options, client: clientInstance }),
1506
1659
  updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
1507
1660
  deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
@@ -1515,6 +1668,7 @@ function createNadeshikoClient(config) {
1515
1668
  deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
1516
1669
  listSegments: (options) => listSegments({ ...options, client: clientInstance }),
1517
1670
  createSegment: (options) => createSegment({ ...options, client: clientInstance }),
1671
+ createSegmentsBatch: (options) => createSegmentsBatch({ ...options, client: clientInstance }),
1518
1672
  updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
1519
1673
  deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
1520
1674
  getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
@@ -1558,7 +1712,9 @@ function createNadeshikoClient(config) {
1558
1712
  updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
1559
1713
  runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
1560
1714
  listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
1561
- getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
1715
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
1716
+ getAnnouncement: (options) => getAnnouncement({ ...options, client: clientInstance }),
1717
+ updateAnnouncement: (options) => updateAnnouncement({ ...options, client: clientInstance })
1562
1718
  };
1563
1719
  }
1564
1720
  // generated/dev/internal/media.gen.ts
@@ -1572,11 +1728,13 @@ __export(exports_media_gen, {
1572
1728
  updateEpisode: () => updateEpisode,
1573
1729
  removeMediaFromSeries: () => removeMediaFromSeries,
1574
1730
  listSegments: () => listSegments,
1731
+ listSegmentRevisions: () => listSegmentRevisions,
1575
1732
  deleteSeries: () => deleteSeries,
1576
1733
  deleteSegment: () => deleteSegment,
1577
1734
  deleteMedia: () => deleteMedia,
1578
1735
  deleteEpisode: () => deleteEpisode,
1579
1736
  createSeries: () => createSeries,
1737
+ createSegmentsBatch: () => createSegmentsBatch,
1580
1738
  createSegment: () => createSegment,
1581
1739
  createMedia: () => createMedia,
1582
1740
  createEpisode: () => createEpisode,
@@ -1619,6 +1777,7 @@ __export(exports_collections_gen, {
1619
1777
  // generated/dev/internal/admin.gen.ts
1620
1778
  var exports_admin_gen = {};
1621
1779
  __export(exports_admin_gen, {
1780
+ updateAnnouncement: () => updateAnnouncement,
1622
1781
  updateAdminReport: () => updateAdminReport,
1623
1782
  updateAdminMediaAudit: () => updateAdminMediaAudit,
1624
1783
  triggerReindex: () => triggerReindex,
@@ -1631,6 +1790,7 @@ __export(exports_admin_gen, {
1631
1790
  listAdminMediaAudits: () => listAdminMediaAudits,
1632
1791
  listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1633
1792
  impersonateAdminUser: () => impersonateAdminUser,
1793
+ getAnnouncement: () => getAnnouncement,
1634
1794
  getAdminQueue: () => getAdminQueue,
1635
1795
  getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1636
1796
  getAdminHealth: () => getAdminHealth,
@@ -1648,6 +1808,7 @@ export {
1648
1808
  updateEpisode,
1649
1809
  updateCollectionSegment,
1650
1810
  updateCollection,
1811
+ updateAnnouncement,
1651
1812
  updateAdminReport,
1652
1813
  updateAdminMediaAudit,
1653
1814
  unenrollUserLab,
@@ -1666,6 +1827,7 @@ export {
1666
1827
  listUserActivity,
1667
1828
  listSeries,
1668
1829
  listSegments,
1830
+ listSegmentRevisions,
1669
1831
  listMedia,
1670
1832
  listEpisodes,
1671
1833
  listCollections,
@@ -1690,6 +1852,7 @@ export {
1690
1852
  getCollectionStats,
1691
1853
  getCollection,
1692
1854
  getCharacter,
1855
+ getAnnouncement,
1693
1856
  getAdminQueue,
1694
1857
  getAdminMediaAuditRun,
1695
1858
  getAdminHealth,
@@ -1706,6 +1869,7 @@ export {
1706
1869
  deleteCollection,
1707
1870
  createUserReport,
1708
1871
  createSeries,
1872
+ createSegmentsBatch,
1709
1873
  createSegment,
1710
1874
  createNadeshikoClient,
1711
1875
  createMedia,
@@ -1720,5 +1884,5 @@ export {
1720
1884
  addMediaToSeries
1721
1885
  };
1722
1886
 
1723
- //# debugId=0F6D8F5370A3363364756E2164756E21
1887
+ //# debugId=6099CEB4339B310F64756E2164756E21
1724
1888
  //# sourceMappingURL=index.js.map