@brigadasos/nadeshiko-sdk 1.5.1-dev.f577920 → 2.0.0-dev.1607304
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 +39 -173
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -173
- package/dist/index.js.map +4 -4
- package/dist/internal/media.gen.d.ts +1 -1
- package/dist/internal/media.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +36 -36
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +26 -180
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +113 -113
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { search, getSearchStats, searchWords, listMedia, getSegmentByUuid, getSegmentContext, listSeries, getSeries,
|
|
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';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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,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,YAAY,EAAE,SAAS,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,uBAAuB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,eAAe,EAAE,kBAAkB,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAGx7C,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;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
|
@@ -817,11 +817,7 @@ 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" },
|
|
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: {
|
|
@@ -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 }),
|
|
@@ -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,
|
|
@@ -2033,5 +1899,5 @@ export {
|
|
|
2033
1899
|
NadeshikoError
|
|
2034
1900
|
};
|
|
2035
1901
|
|
|
2036
|
-
//# debugId=
|
|
1902
|
+
//# debugId=C04B33B3D5D6E85964756E2164756E21
|
|
2037
1903
|
//# sourceMappingURL=index.js.map
|