@brigadasos/nadeshiko-sdk 1.5.0-dev.f8e069f → 1.5.1-dev.2b4f333
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/README.md +17 -14
- package/dist/index.cjs +305 -63
- 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 +305 -63
- 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 +11 -4
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +55 -11
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +584 -171
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
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,59 +1467,87 @@ 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: [{
|
|
1497
|
+
security: [{
|
|
1498
|
+
in: "cookie",
|
|
1499
|
+
name: "nadeshiko.session_token",
|
|
1500
|
+
type: "apiKey"
|
|
1501
|
+
}],
|
|
1328
1502
|
url: "/v1/admin/queues/{queueName}/retry",
|
|
1329
1503
|
...options
|
|
1330
1504
|
});
|
|
1331
1505
|
var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
|
|
1332
|
-
security: [{
|
|
1506
|
+
security: [{
|
|
1507
|
+
in: "cookie",
|
|
1508
|
+
name: "nadeshiko.session_token",
|
|
1509
|
+
type: "apiKey"
|
|
1510
|
+
}],
|
|
1333
1511
|
url: "/v1/admin/queues/{queueName}/purge",
|
|
1334
1512
|
...options
|
|
1335
1513
|
});
|
|
1336
|
-
var clearAdminImpersonation = (options) => (options?.client ?? client).delete({
|
|
1514
|
+
var clearAdminImpersonation = (options) => (options?.client ?? client).delete({ url: "/v1/admin/impersonation", ...options });
|
|
1515
|
+
var impersonateAdminUser = (options) => (options.client ?? client).post({
|
|
1516
|
+
url: "/v1/admin/impersonation",
|
|
1517
|
+
...options,
|
|
1518
|
+
headers: {
|
|
1519
|
+
"Content-Type": "application/json",
|
|
1520
|
+
...options.headers
|
|
1521
|
+
}
|
|
1522
|
+
});
|
|
1523
|
+
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1337
1524
|
security: [{
|
|
1338
1525
|
in: "cookie",
|
|
1339
1526
|
name: "nadeshiko.session_token",
|
|
1340
1527
|
type: "apiKey"
|
|
1341
1528
|
}],
|
|
1342
|
-
url: "/v1/admin/
|
|
1529
|
+
url: "/v1/admin/reports",
|
|
1343
1530
|
...options
|
|
1344
1531
|
});
|
|
1345
|
-
var
|
|
1532
|
+
var batchUpdateAdminReports = (options) => (options.client ?? client).patch({
|
|
1346
1533
|
security: [{
|
|
1347
1534
|
in: "cookie",
|
|
1348
1535
|
name: "nadeshiko.session_token",
|
|
1349
1536
|
type: "apiKey"
|
|
1350
1537
|
}],
|
|
1351
|
-
url: "/v1/admin/
|
|
1538
|
+
url: "/v1/admin/reports/batch",
|
|
1352
1539
|
...options,
|
|
1353
1540
|
headers: {
|
|
1354
1541
|
"Content-Type": "application/json",
|
|
1355
1542
|
...options.headers
|
|
1356
1543
|
}
|
|
1357
1544
|
});
|
|
1358
|
-
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1359
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1360
|
-
url: "/v1/admin/reports",
|
|
1361
|
-
...options
|
|
1362
|
-
});
|
|
1363
1545
|
var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
1364
|
-
security: [{
|
|
1546
|
+
security: [{
|
|
1547
|
+
in: "cookie",
|
|
1548
|
+
name: "nadeshiko.session_token",
|
|
1549
|
+
type: "apiKey"
|
|
1550
|
+
}],
|
|
1365
1551
|
url: "/v1/admin/reports/{id}",
|
|
1366
1552
|
...options,
|
|
1367
1553
|
headers: {
|
|
@@ -1370,12 +1556,20 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
|
1370
1556
|
}
|
|
1371
1557
|
});
|
|
1372
1558
|
var listAdminMediaAudits = (options) => (options?.client ?? client).get({
|
|
1373
|
-
security: [{
|
|
1559
|
+
security: [{
|
|
1560
|
+
in: "cookie",
|
|
1561
|
+
name: "nadeshiko.session_token",
|
|
1562
|
+
type: "apiKey"
|
|
1563
|
+
}],
|
|
1374
1564
|
url: "/v1/admin/media/audits",
|
|
1375
1565
|
...options
|
|
1376
1566
|
});
|
|
1377
1567
|
var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
1378
|
-
security: [{
|
|
1568
|
+
security: [{
|
|
1569
|
+
in: "cookie",
|
|
1570
|
+
name: "nadeshiko.session_token",
|
|
1571
|
+
type: "apiKey"
|
|
1572
|
+
}],
|
|
1379
1573
|
url: "/v1/admin/media/audits/{name}",
|
|
1380
1574
|
...options,
|
|
1381
1575
|
headers: {
|
|
@@ -1384,25 +1578,52 @@ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
|
1384
1578
|
}
|
|
1385
1579
|
});
|
|
1386
1580
|
var runAdminMediaAudit = (options) => (options.client ?? client).post({
|
|
1387
|
-
security: [{
|
|
1581
|
+
security: [{
|
|
1582
|
+
in: "cookie",
|
|
1583
|
+
name: "nadeshiko.session_token",
|
|
1584
|
+
type: "apiKey"
|
|
1585
|
+
}],
|
|
1388
1586
|
url: "/v1/admin/media/audits/{name}/run",
|
|
1389
1587
|
...options
|
|
1390
1588
|
});
|
|
1391
1589
|
var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
|
|
1392
|
-
security: [{
|
|
1590
|
+
security: [{
|
|
1591
|
+
in: "cookie",
|
|
1592
|
+
name: "nadeshiko.session_token",
|
|
1593
|
+
type: "apiKey"
|
|
1594
|
+
}],
|
|
1393
1595
|
url: "/v1/admin/media/audits/runs",
|
|
1394
1596
|
...options
|
|
1395
1597
|
});
|
|
1396
1598
|
var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
1397
|
-
security: [{
|
|
1599
|
+
security: [{
|
|
1600
|
+
in: "cookie",
|
|
1601
|
+
name: "nadeshiko.session_token",
|
|
1602
|
+
type: "apiKey"
|
|
1603
|
+
}],
|
|
1398
1604
|
url: "/v1/admin/media/audits/runs/{id}",
|
|
1399
1605
|
...options
|
|
1400
1606
|
});
|
|
1607
|
+
var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
|
|
1608
|
+
var updateAnnouncement = (options) => (options.client ?? client).put({
|
|
1609
|
+
security: [{
|
|
1610
|
+
in: "cookie",
|
|
1611
|
+
name: "nadeshiko.session_token",
|
|
1612
|
+
type: "apiKey"
|
|
1613
|
+
}],
|
|
1614
|
+
url: "/v1/admin/announcement",
|
|
1615
|
+
...options,
|
|
1616
|
+
headers: {
|
|
1617
|
+
"Content-Type": "application/json",
|
|
1618
|
+
...options.headers
|
|
1619
|
+
}
|
|
1620
|
+
});
|
|
1401
1621
|
// generated/dev/nadeshiko.gen.ts
|
|
1402
1622
|
var environments = {
|
|
1403
1623
|
LOCAL: "http://localhost:5000/api",
|
|
1404
|
-
DEVELOPMENT: "https://api
|
|
1405
|
-
PRODUCTION: "https://api.
|
|
1624
|
+
DEVELOPMENT: "https://api-dev.nadeshiko.co",
|
|
1625
|
+
PRODUCTION: "https://api.nadeshiko.co",
|
|
1626
|
+
PROXY: ""
|
|
1406
1627
|
};
|
|
1407
1628
|
var defaultSessionTokenGetter = () => {
|
|
1408
1629
|
if (typeof document === "undefined")
|
|
@@ -1411,7 +1632,13 @@ var defaultSessionTokenGetter = () => {
|
|
|
1411
1632
|
return match ? decodeURIComponent(match[1]) : undefined;
|
|
1412
1633
|
};
|
|
1413
1634
|
function createNadeshikoClient(config) {
|
|
1414
|
-
const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl
|
|
1635
|
+
const baseUrl = config.baseUrl === undefined ? environments.PRODUCTION : (config.baseUrl in environments) ? environments[config.baseUrl] : config.baseUrl;
|
|
1636
|
+
const getApiKey = async () => {
|
|
1637
|
+
if (typeof config.apiKey === "function") {
|
|
1638
|
+
return await config.apiKey();
|
|
1639
|
+
}
|
|
1640
|
+
return config.apiKey;
|
|
1641
|
+
};
|
|
1415
1642
|
const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
|
|
1416
1643
|
const clientInstance = createClient(createConfig({
|
|
1417
1644
|
baseUrl,
|
|
@@ -1419,7 +1646,7 @@ function createNadeshikoClient(config) {
|
|
|
1419
1646
|
if (auth.in === "cookie") {
|
|
1420
1647
|
return getSessionToken();
|
|
1421
1648
|
}
|
|
1422
|
-
return
|
|
1649
|
+
return getApiKey();
|
|
1423
1650
|
}
|
|
1424
1651
|
}));
|
|
1425
1652
|
return {
|
|
@@ -1441,6 +1668,7 @@ function createNadeshikoClient(config) {
|
|
|
1441
1668
|
createMedia: (options) => createMedia({ ...options, client: clientInstance }),
|
|
1442
1669
|
autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
|
|
1443
1670
|
updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
|
|
1671
|
+
listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
|
|
1444
1672
|
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1445
1673
|
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1446
1674
|
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
@@ -1454,6 +1682,7 @@ function createNadeshikoClient(config) {
|
|
|
1454
1682
|
deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
|
|
1455
1683
|
listSegments: (options) => listSegments({ ...options, client: clientInstance }),
|
|
1456
1684
|
createSegment: (options) => createSegment({ ...options, client: clientInstance }),
|
|
1685
|
+
createSegmentsBatch: (options) => createSegmentsBatch({ ...options, client: clientInstance }),
|
|
1457
1686
|
updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
|
|
1458
1687
|
deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
|
|
1459
1688
|
getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
|
|
@@ -1492,12 +1721,15 @@ function createNadeshikoClient(config) {
|
|
|
1492
1721
|
impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
|
|
1493
1722
|
clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance }),
|
|
1494
1723
|
listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
|
|
1724
|
+
batchUpdateAdminReports: (options) => batchUpdateAdminReports({ ...options, client: clientInstance }),
|
|
1495
1725
|
updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
|
|
1496
1726
|
listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
|
|
1497
1727
|
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1498
1728
|
runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1499
1729
|
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
|
|
1500
|
-
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
|
|
1730
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
|
|
1731
|
+
getAnnouncement: (options) => getAnnouncement({ ...options, client: clientInstance }),
|
|
1732
|
+
updateAnnouncement: (options) => updateAnnouncement({ ...options, client: clientInstance })
|
|
1501
1733
|
};
|
|
1502
1734
|
}
|
|
1503
1735
|
// generated/dev/internal/media.gen.ts
|
|
@@ -1511,11 +1743,13 @@ __export(exports_media_gen, {
|
|
|
1511
1743
|
updateEpisode: () => updateEpisode,
|
|
1512
1744
|
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
1513
1745
|
listSegments: () => listSegments,
|
|
1746
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
1514
1747
|
deleteSeries: () => deleteSeries,
|
|
1515
1748
|
deleteSegment: () => deleteSegment,
|
|
1516
1749
|
deleteMedia: () => deleteMedia,
|
|
1517
1750
|
deleteEpisode: () => deleteEpisode,
|
|
1518
1751
|
createSeries: () => createSeries,
|
|
1752
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
1519
1753
|
createSegment: () => createSegment,
|
|
1520
1754
|
createMedia: () => createMedia,
|
|
1521
1755
|
createEpisode: () => createEpisode,
|
|
@@ -1558,6 +1792,7 @@ __export(exports_collections_gen, {
|
|
|
1558
1792
|
// generated/dev/internal/admin.gen.ts
|
|
1559
1793
|
var exports_admin_gen = {};
|
|
1560
1794
|
__export(exports_admin_gen, {
|
|
1795
|
+
updateAnnouncement: () => updateAnnouncement,
|
|
1561
1796
|
updateAdminReport: () => updateAdminReport,
|
|
1562
1797
|
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
1563
1798
|
triggerReindex: () => triggerReindex,
|
|
@@ -1570,11 +1805,13 @@ __export(exports_admin_gen, {
|
|
|
1570
1805
|
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
1571
1806
|
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
1572
1807
|
impersonateAdminUser: () => impersonateAdminUser,
|
|
1808
|
+
getAnnouncement: () => getAnnouncement,
|
|
1573
1809
|
getAdminQueue: () => getAdminQueue,
|
|
1574
1810
|
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
1575
1811
|
getAdminHealth: () => getAdminHealth,
|
|
1576
1812
|
getAdminDashboard: () => getAdminDashboard,
|
|
1577
|
-
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1813
|
+
clearAdminImpersonation: () => clearAdminImpersonation,
|
|
1814
|
+
batchUpdateAdminReports: () => batchUpdateAdminReports
|
|
1578
1815
|
});
|
|
1579
1816
|
export {
|
|
1580
1817
|
exports_user_gen as user,
|
|
@@ -1587,6 +1824,7 @@ export {
|
|
|
1587
1824
|
updateEpisode,
|
|
1588
1825
|
updateCollectionSegment,
|
|
1589
1826
|
updateCollection,
|
|
1827
|
+
updateAnnouncement,
|
|
1590
1828
|
updateAdminReport,
|
|
1591
1829
|
updateAdminMediaAudit,
|
|
1592
1830
|
unenrollUserLab,
|
|
@@ -1605,6 +1843,7 @@ export {
|
|
|
1605
1843
|
listUserActivity,
|
|
1606
1844
|
listSeries,
|
|
1607
1845
|
listSegments,
|
|
1846
|
+
listSegmentRevisions,
|
|
1608
1847
|
listMedia,
|
|
1609
1848
|
listEpisodes,
|
|
1610
1849
|
listCollections,
|
|
@@ -1629,6 +1868,7 @@ export {
|
|
|
1629
1868
|
getCollectionStats,
|
|
1630
1869
|
getCollection,
|
|
1631
1870
|
getCharacter,
|
|
1871
|
+
getAnnouncement,
|
|
1632
1872
|
getAdminQueue,
|
|
1633
1873
|
getAdminMediaAuditRun,
|
|
1634
1874
|
getAdminHealth,
|
|
@@ -1645,6 +1885,7 @@ export {
|
|
|
1645
1885
|
deleteCollection,
|
|
1646
1886
|
createUserReport,
|
|
1647
1887
|
createSeries,
|
|
1888
|
+
createSegmentsBatch,
|
|
1648
1889
|
createSegment,
|
|
1649
1890
|
createNadeshikoClient,
|
|
1650
1891
|
createMedia,
|
|
@@ -1653,11 +1894,12 @@ export {
|
|
|
1653
1894
|
exports_collections_gen as collections,
|
|
1654
1895
|
client,
|
|
1655
1896
|
clearAdminImpersonation,
|
|
1897
|
+
batchUpdateAdminReports,
|
|
1656
1898
|
autocompleteMedia,
|
|
1657
1899
|
exports_admin_gen as admin,
|
|
1658
1900
|
addSegmentToCollection,
|
|
1659
1901
|
addMediaToSeries
|
|
1660
1902
|
};
|
|
1661
1903
|
|
|
1662
|
-
//# debugId=
|
|
1904
|
+
//# debugId=C36235197D26B5D064756E2164756E21
|
|
1663
1905
|
//# sourceMappingURL=index.js.map
|