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