@brigadasos/nadeshiko-sdk 2.0.0-internal → 2.0.1-dev.7bb457a

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, 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, batchUpdateAdminReports, updateAdminReport, listAdminMediaAudits, updateAdminMediaAudit, runAdminMediaAudit, listAdminMediaAuditRuns, getAdminMediaAuditRun, getAnnouncement, updateAnnouncement, type Options } from './sdk.gen';
1
+ export { search, getSearchStats, searchWords, listMedia, getSegmentByUuid, getSegmentContext, listSeries, getSeries, getMedia, listEpisodes, getEpisode, getSegment, createMedia, autocompleteMedia, updateSegmentByUuid, listSegmentRevisions, createSeries, updateSeries, deleteSeries, addMediaToSeries, updateSeriesMedia, removeMediaFromSeries, getCharacter, getSeiyuu, 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, batchUpdateAdminReports, 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/internal/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,gBA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,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC"}
package/dist/index.js CHANGED
@@ -13,11 +13,11 @@ var __export = (target, all) => {
13
13
  });
14
14
  };
15
15
 
16
- // generated/internal/core/bodySerializer.gen.ts
16
+ // generated/dev/core/bodySerializer.gen.ts
17
17
  var jsonBodySerializer = {
18
18
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
19
19
  };
20
- // generated/internal/core/params.gen.ts
20
+ // generated/dev/core/params.gen.ts
21
21
  var extraPrefixesMap = {
22
22
  $body_: "body",
23
23
  $headers_: "headers",
@@ -25,7 +25,7 @@ var extraPrefixesMap = {
25
25
  $query_: "query"
26
26
  };
27
27
  var extraPrefixes = Object.entries(extraPrefixesMap);
28
- // generated/internal/core/serverSentEvents.gen.ts
28
+ // generated/dev/core/serverSentEvents.gen.ts
29
29
  var createSseClient = ({
30
30
  onRequest,
31
31
  onSseError,
@@ -161,7 +161,7 @@ var createSseClient = ({
161
161
  return { stream };
162
162
  };
163
163
 
164
- // generated/internal/core/pathSerializer.gen.ts
164
+ // generated/dev/core/pathSerializer.gen.ts
165
165
  var separatorArrayExplode = (style) => {
166
166
  switch (style) {
167
167
  case "label":
@@ -285,7 +285,7 @@ var serializeObjectParam = ({
285
285
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
286
286
  };
287
287
 
288
- // generated/internal/core/utils.gen.ts
288
+ // generated/dev/core/utils.gen.ts
289
289
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
290
290
  var defaultPathSerializer = ({ path, url: _url }) => {
291
291
  let url = _url;
@@ -374,7 +374,7 @@ function getValidRequestBody(options) {
374
374
  return;
375
375
  }
376
376
 
377
- // generated/internal/core/auth.gen.ts
377
+ // generated/dev/core/auth.gen.ts
378
378
  var getAuthToken = async (auth, callback) => {
379
379
  const token = typeof callback === "function" ? await callback(auth) : callback;
380
380
  if (!token) {
@@ -389,7 +389,7 @@ var getAuthToken = async (auth, callback) => {
389
389
  return token;
390
390
  };
391
391
 
392
- // generated/internal/client/utils.gen.ts
392
+ // generated/dev/client/utils.gen.ts
393
393
  var createQuerySerializer = ({
394
394
  parameters = {},
395
395
  ...args
@@ -606,7 +606,7 @@ var createConfig = (override = {}) => ({
606
606
  ...override
607
607
  });
608
608
 
609
- // generated/internal/client/client.gen.ts
609
+ // generated/dev/client/client.gen.ts
610
610
  var createClient = (config = {}) => {
611
611
  let _config = mergeConfigs(createConfig(), config);
612
612
  const getConfig = () => ({ ..._config });
@@ -812,16 +812,12 @@ var createClient = (config = {}) => {
812
812
  trace: makeMethodFn("TRACE")
813
813
  };
814
814
  };
815
- // generated/internal/client.gen.ts
815
+ // generated/dev/client.gen.ts
816
816
  var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
817
817
 
818
- // generated/internal/sdk.gen.ts
818
+ // generated/dev/sdk.gen.ts
819
819
  var search = (options) => (options?.client ?? client).post({
820
- security: [{ scheme: "bearer", type: "http" }, {
821
- in: "cookie",
822
- name: "nadeshiko.session_token",
823
- type: "apiKey"
824
- }],
820
+ security: [{ scheme: "bearer", type: "http" }],
825
821
  url: "/v1/search",
826
822
  ...options,
827
823
  headers: {
@@ -830,11 +826,7 @@ var search = (options) => (options?.client ?? client).post({
830
826
  }
831
827
  });
832
828
  var getSearchStats = (options) => (options?.client ?? client).post({
833
- security: [{ scheme: "bearer", type: "http" }, {
834
- in: "cookie",
835
- name: "nadeshiko.session_token",
836
- type: "apiKey"
837
- }],
829
+ security: [{ scheme: "bearer", type: "http" }],
838
830
  url: "/v1/search/stats",
839
831
  ...options,
840
832
  headers: {
@@ -843,11 +835,7 @@ var getSearchStats = (options) => (options?.client ?? client).post({
843
835
  }
844
836
  });
845
837
  var searchWords = (options) => (options.client ?? client).post({
846
- security: [{ scheme: "bearer", type: "http" }, {
847
- in: "cookie",
848
- name: "nadeshiko.session_token",
849
- type: "apiKey"
850
- }],
838
+ security: [{ scheme: "bearer", type: "http" }],
851
839
  url: "/v1/search/words",
852
840
  ...options,
853
841
  headers: {
@@ -856,20 +844,12 @@ var searchWords = (options) => (options.client ?? client).post({
856
844
  }
857
845
  });
858
846
  var listMedia = (options) => (options?.client ?? client).get({
859
- security: [{ scheme: "bearer", type: "http" }, {
860
- in: "cookie",
861
- name: "nadeshiko.session_token",
862
- type: "apiKey"
863
- }],
847
+ security: [{ scheme: "bearer", type: "http" }],
864
848
  url: "/v1/media",
865
849
  ...options
866
850
  });
867
851
  var createMedia = (options) => (options.client ?? client).post({
868
- security: [{ scheme: "bearer", type: "http" }, {
869
- in: "cookie",
870
- name: "nadeshiko.session_token",
871
- type: "apiKey"
872
- }],
852
+ security: [{ scheme: "bearer", type: "http" }],
873
853
  url: "/v1/media",
874
854
  ...options,
875
855
  headers: {
@@ -878,29 +858,17 @@ var createMedia = (options) => (options.client ?? client).post({
878
858
  }
879
859
  });
880
860
  var autocompleteMedia = (options) => (options.client ?? client).get({
881
- security: [{ scheme: "bearer", type: "http" }, {
882
- in: "cookie",
883
- name: "nadeshiko.session_token",
884
- type: "apiKey"
885
- }],
861
+ security: [{ scheme: "bearer", type: "http" }],
886
862
  url: "/v1/media/autocomplete",
887
863
  ...options
888
864
  });
889
865
  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
- }],
866
+ security: [{ scheme: "bearer", type: "http" }],
895
867
  url: "/v1/media/segments/{uuid}",
896
868
  ...options
897
869
  });
898
870
  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
- }],
871
+ security: [{ scheme: "bearer", type: "http" }],
904
872
  url: "/v1/media/segments/{uuid}",
905
873
  ...options,
906
874
  headers: {
@@ -909,38 +877,22 @@ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
909
877
  }
910
878
  });
911
879
  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
- }],
880
+ security: [{ scheme: "bearer", type: "http" }],
917
881
  url: "/v1/media/segments/{uuid}/context",
918
882
  ...options
919
883
  });
920
884
  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
- }],
885
+ security: [{ scheme: "bearer", type: "http" }],
926
886
  url: "/v1/media/segments/{uuid}/revisions",
927
887
  ...options
928
888
  });
929
889
  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
- }],
890
+ security: [{ scheme: "bearer", type: "http" }],
935
891
  url: "/v1/media/series",
936
892
  ...options
937
893
  });
938
894
  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
- }],
895
+ security: [{ scheme: "bearer", type: "http" }],
944
896
  url: "/v1/media/series",
945
897
  ...options,
946
898
  headers: {
@@ -949,29 +901,17 @@ var createSeries = (options) => (options.client ?? client).post({
949
901
  }
950
902
  });
951
903
  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
- }],
904
+ security: [{ scheme: "bearer", type: "http" }],
957
905
  url: "/v1/media/series/{id}",
958
906
  ...options
959
907
  });
960
908
  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
- }],
909
+ security: [{ scheme: "bearer", type: "http" }],
966
910
  url: "/v1/media/series/{id}",
967
911
  ...options
968
912
  });
969
913
  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
- }],
914
+ security: [{ scheme: "bearer", type: "http" }],
975
915
  url: "/v1/media/series/{id}",
976
916
  ...options,
977
917
  headers: {
@@ -980,11 +920,7 @@ var updateSeries = (options) => (options.client ?? client).patch({
980
920
  }
981
921
  });
982
922
  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
- }],
923
+ security: [{ scheme: "bearer", type: "http" }],
988
924
  url: "/v1/media/series/{id}/media",
989
925
  ...options,
990
926
  headers: {
@@ -993,20 +929,12 @@ var addMediaToSeries = (options) => (options.client ?? client).post({
993
929
  }
994
930
  });
995
931
  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
- }],
932
+ security: [{ scheme: "bearer", type: "http" }],
1001
933
  url: "/v1/media/series/{id}/media/{mediaId}",
1002
934
  ...options
1003
935
  });
1004
936
  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
- }],
937
+ security: [{ scheme: "bearer", type: "http" }],
1010
938
  url: "/v1/media/series/{id}/media/{mediaId}",
1011
939
  ...options,
1012
940
  headers: {
@@ -1015,47 +943,27 @@ var updateSeriesMedia = (options) => (options.client ?? client).patch({
1015
943
  }
1016
944
  });
1017
945
  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
- }],
946
+ security: [{ scheme: "bearer", type: "http" }],
1023
947
  url: "/v1/media/characters/{id}",
1024
948
  ...options
1025
949
  });
1026
950
  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
- }],
951
+ security: [{ scheme: "bearer", type: "http" }],
1032
952
  url: "/v1/media/seiyuu/{id}",
1033
953
  ...options
1034
954
  });
1035
955
  var deleteMedia = (options) => (options.client ?? client).delete({
1036
- security: [{ scheme: "bearer", type: "http" }, {
1037
- in: "cookie",
1038
- name: "nadeshiko.session_token",
1039
- type: "apiKey"
1040
- }],
956
+ security: [{ scheme: "bearer", type: "http" }],
1041
957
  url: "/v1/media/{id}",
1042
958
  ...options
1043
959
  });
1044
960
  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
- }],
961
+ security: [{ scheme: "bearer", type: "http" }],
1050
962
  url: "/v1/media/{id}",
1051
963
  ...options
1052
964
  });
1053
965
  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
- }],
966
+ security: [{ scheme: "bearer", type: "http" }],
1059
967
  url: "/v1/media/{id}",
1060
968
  ...options,
1061
969
  headers: {
@@ -1064,20 +972,12 @@ var updateMedia = (options) => (options.client ?? client).patch({
1064
972
  }
1065
973
  });
1066
974
  var listEpisodes = (options) => (options.client ?? client).get({
1067
- security: [{ scheme: "bearer", type: "http" }, {
1068
- in: "cookie",
1069
- name: "nadeshiko.session_token",
1070
- type: "apiKey"
1071
- }],
975
+ security: [{ scheme: "bearer", type: "http" }],
1072
976
  url: "/v1/media/{mediaId}/episodes",
1073
977
  ...options
1074
978
  });
1075
979
  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
- }],
980
+ security: [{ scheme: "bearer", type: "http" }],
1081
981
  url: "/v1/media/{mediaId}/episodes",
1082
982
  ...options,
1083
983
  headers: {
@@ -1086,29 +986,17 @@ var createEpisode = (options) => (options.client ?? client).post({
1086
986
  }
1087
987
  });
1088
988
  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
- }],
989
+ security: [{ scheme: "bearer", type: "http" }],
1094
990
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1095
991
  ...options
1096
992
  });
1097
993
  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
- }],
994
+ security: [{ scheme: "bearer", type: "http" }],
1103
995
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1104
996
  ...options
1105
997
  });
1106
998
  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
- }],
999
+ security: [{ scheme: "bearer", type: "http" }],
1112
1000
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1113
1001
  ...options,
1114
1002
  headers: {
@@ -1117,20 +1005,12 @@ var updateEpisode = (options) => (options.client ?? client).patch({
1117
1005
  }
1118
1006
  });
1119
1007
  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
- }],
1008
+ security: [{ scheme: "bearer", type: "http" }],
1125
1009
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1126
1010
  ...options
1127
1011
  });
1128
1012
  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
- }],
1013
+ security: [{ scheme: "bearer", type: "http" }],
1134
1014
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1135
1015
  ...options,
1136
1016
  headers: {
@@ -1139,11 +1019,7 @@ var createSegment = (options) => (options.client ?? client).post({
1139
1019
  }
1140
1020
  });
1141
1021
  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
- }],
1022
+ security: [{ scheme: "bearer", type: "http" }],
1147
1023
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
1148
1024
  ...options,
1149
1025
  headers: {
@@ -1152,29 +1028,17 @@ var createSegmentsBatch = (options) => (options.client ?? client).post({
1152
1028
  }
1153
1029
  });
1154
1030
  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
- }],
1031
+ security: [{ scheme: "bearer", type: "http" }],
1160
1032
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1161
1033
  ...options
1162
1034
  });
1163
1035
  var getSegment = (options) => (options.client ?? client).get({
1164
- security: [{ scheme: "bearer", type: "http" }, {
1165
- in: "cookie",
1166
- name: "nadeshiko.session_token",
1167
- type: "apiKey"
1168
- }],
1036
+ security: [{ scheme: "bearer", type: "http" }],
1169
1037
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1170
1038
  ...options
1171
1039
  });
1172
1040
  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
- }],
1041
+ security: [{ scheme: "bearer", type: "http" }],
1178
1042
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1179
1043
  ...options,
1180
1044
  headers: {
@@ -1618,7 +1482,7 @@ var updateAnnouncement = (options) => (options.client ?? client).put({
1618
1482
  ...options.headers
1619
1483
  }
1620
1484
  });
1621
- // generated/internal/retry.ts
1485
+ // generated/dev/retry.ts
1622
1486
  var RETRYABLE_STATUS = new Set([408, 429, 500, 502, 503, 504]);
1623
1487
  function parseRetryAfter(value) {
1624
1488
  const seconds = Number(value);
@@ -1688,7 +1552,7 @@ function withRetry(fetchImpl = globalThis.fetch, options = {}) {
1688
1552
  };
1689
1553
  }
1690
1554
 
1691
- // generated/internal/errors.ts
1555
+ // generated/dev/errors.ts
1692
1556
  class NadeshikoError extends Error {
1693
1557
  code;
1694
1558
  title;
@@ -1710,7 +1574,7 @@ class NadeshikoError extends Error {
1710
1574
  }
1711
1575
  }
1712
1576
 
1713
- // generated/internal/nadeshiko.gen.ts
1577
+ // generated/dev/nadeshiko.gen.ts
1714
1578
  var environments = {
1715
1579
  LOCAL: "http://localhost:5000/api",
1716
1580
  DEVELOPMENT: "https://api-dev.nadeshiko.co",
@@ -1759,8 +1623,6 @@ function createNadeshikoClient(config) {
1759
1623
  getSegmentContext: (options) => getSegmentContext({ throwOnError: true, ...options, client: clientInstance }),
1760
1624
  listSeries: (options) => listSeries({ throwOnError: true, ...options, client: clientInstance }),
1761
1625
  getSeries: (options) => getSeries({ throwOnError: true, ...options, client: clientInstance }),
1762
- getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
1763
- getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
1764
1626
  getMedia: (options) => getMedia({ throwOnError: true, ...options, client: clientInstance }),
1765
1627
  listEpisodes: (options) => listEpisodes({ throwOnError: true, ...options, client: clientInstance }),
1766
1628
  getEpisode: (options) => getEpisode({ throwOnError: true, ...options, client: clientInstance }),
@@ -1775,6 +1637,8 @@ function createNadeshikoClient(config) {
1775
1637
  addMediaToSeries: (options) => addMediaToSeries({ throwOnError: true, ...options, client: clientInstance }),
1776
1638
  updateSeriesMedia: (options) => updateSeriesMedia({ throwOnError: true, ...options, client: clientInstance }),
1777
1639
  removeMediaFromSeries: (options) => removeMediaFromSeries({ throwOnError: true, ...options, client: clientInstance }),
1640
+ getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
1641
+ getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
1778
1642
  updateMedia: (options) => updateMedia({ throwOnError: true, ...options, client: clientInstance }),
1779
1643
  deleteMedia: (options) => deleteMedia({ throwOnError: true, ...options, client: clientInstance }),
1780
1644
  createEpisode: (options) => createEpisode({ throwOnError: true, ...options, client: clientInstance }),
@@ -1832,7 +1696,7 @@ function createNadeshikoClient(config) {
1832
1696
  updateAnnouncement: (options) => updateAnnouncement({ throwOnError: true, ...options, client: clientInstance })
1833
1697
  };
1834
1698
  }
1835
- // generated/internal/internal/media.gen.ts
1699
+ // generated/dev/internal/media.gen.ts
1836
1700
  var exports_media_gen = {};
1837
1701
  __export(exports_media_gen, {
1838
1702
  updateSeriesMedia: () => updateSeriesMedia,
@@ -1844,6 +1708,8 @@ __export(exports_media_gen, {
1844
1708
  removeMediaFromSeries: () => removeMediaFromSeries,
1845
1709
  listSegments: () => listSegments,
1846
1710
  listSegmentRevisions: () => listSegmentRevisions,
1711
+ getSeiyuu: () => getSeiyuu,
1712
+ getCharacter: () => getCharacter,
1847
1713
  deleteSeries: () => deleteSeries,
1848
1714
  deleteSegment: () => deleteSegment,
1849
1715
  deleteMedia: () => deleteMedia,
@@ -1856,7 +1722,7 @@ __export(exports_media_gen, {
1856
1722
  autocompleteMedia: () => autocompleteMedia,
1857
1723
  addMediaToSeries: () => addMediaToSeries
1858
1724
  });
1859
- // generated/internal/internal/user.gen.ts
1725
+ // generated/dev/internal/user.gen.ts
1860
1726
  var exports_user_gen = {};
1861
1727
  __export(exports_user_gen, {
1862
1728
  updateUserPreferences: () => updateUserPreferences,
@@ -1875,7 +1741,7 @@ __export(exports_user_gen, {
1875
1741
  deleteUserActivity: () => deleteUserActivity,
1876
1742
  createUserReport: () => createUserReport
1877
1743
  });
1878
- // generated/internal/internal/collections.gen.ts
1744
+ // generated/dev/internal/collections.gen.ts
1879
1745
  var exports_collections_gen = {};
1880
1746
  __export(exports_collections_gen, {
1881
1747
  updateCollectionSegment: () => updateCollectionSegment,
@@ -1889,7 +1755,7 @@ __export(exports_collections_gen, {
1889
1755
  createCollection: () => createCollection,
1890
1756
  addSegmentToCollection: () => addSegmentToCollection
1891
1757
  });
1892
- // generated/internal/internal/admin.gen.ts
1758
+ // generated/dev/internal/admin.gen.ts
1893
1759
  var exports_admin_gen = {};
1894
1760
  __export(exports_admin_gen, {
1895
1761
  updateAnnouncement: () => updateAnnouncement,
@@ -1913,7 +1779,7 @@ __export(exports_admin_gen, {
1913
1779
  clearAdminImpersonation: () => clearAdminImpersonation,
1914
1780
  batchUpdateAdminReports: () => batchUpdateAdminReports
1915
1781
  });
1916
- // generated/internal/paginate.ts
1782
+ // generated/dev/paginate.ts
1917
1783
  async function* paginate(fn, options, extract) {
1918
1784
  let cursor = null;
1919
1785
  let first = true;
@@ -2033,5 +1899,5 @@ export {
2033
1899
  NadeshikoError
2034
1900
  };
2035
1901
 
2036
- //# debugId=5341C10013F2ABD664756E2164756E21
1902
+ //# debugId=C04B33B3D5D6E85964756E2164756E21
2037
1903
  //# sourceMappingURL=index.js.map