@brigadasos/nadeshiko-sdk 1.4.3-dev.cb99a26 → 1.4.3-dev.d3424ba
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 +34 -10
- package/dist/index.cjs +267 -151
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +254 -144
- 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/internal/user.gen.d.ts +1 -1
- package/dist/internal/user.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +30 -24
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +207 -144
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +1394 -1148
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __returnValue = (v) => v;
|
|
3
|
+
function __exportSetter(name, newValue) {
|
|
4
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
+
}
|
|
2
6
|
var __export = (target, all) => {
|
|
3
7
|
for (var name in all)
|
|
4
8
|
__defProp(target, name, {
|
|
5
9
|
get: all[name],
|
|
6
10
|
enumerable: true,
|
|
7
11
|
configurable: true,
|
|
8
|
-
set: (
|
|
12
|
+
set: __exportSetter.bind(all, name)
|
|
9
13
|
});
|
|
10
14
|
};
|
|
11
15
|
|
|
@@ -865,175 +869,193 @@ var createMedia = (options) => (options.client ?? client).post({
|
|
|
865
869
|
...options.headers
|
|
866
870
|
}
|
|
867
871
|
});
|
|
868
|
-
var
|
|
872
|
+
var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
869
873
|
security: [{ scheme: "bearer", type: "http" }],
|
|
870
|
-
url: "/v1/media/
|
|
874
|
+
url: "/v1/media/autocomplete",
|
|
871
875
|
...options
|
|
872
876
|
});
|
|
873
|
-
var
|
|
877
|
+
var getSegmentByUuid = (options) => (options.client ?? client).get({
|
|
874
878
|
security: [{ scheme: "bearer", type: "http" }],
|
|
875
|
-
url: "/v1/media/{
|
|
879
|
+
url: "/v1/media/segments/{uuid}",
|
|
876
880
|
...options
|
|
877
881
|
});
|
|
878
|
-
var
|
|
879
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
880
|
-
|
|
882
|
+
var updateSegmentByUuid = (options) => (options.client ?? client).patch({
|
|
883
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
884
|
+
in: "cookie",
|
|
885
|
+
name: "nadeshiko.session_token",
|
|
886
|
+
type: "apiKey"
|
|
887
|
+
}],
|
|
888
|
+
url: "/v1/media/segments/{uuid}",
|
|
881
889
|
...options,
|
|
882
890
|
headers: {
|
|
883
891
|
"Content-Type": "application/json",
|
|
884
892
|
...options.headers
|
|
885
893
|
}
|
|
886
894
|
});
|
|
887
|
-
var
|
|
895
|
+
var getSegmentContext = (options) => (options.client ?? client).get({
|
|
888
896
|
security: [{ scheme: "bearer", type: "http" }],
|
|
889
|
-
url: "/v1/media/{
|
|
897
|
+
url: "/v1/media/segments/{uuid}/context",
|
|
890
898
|
...options
|
|
891
899
|
});
|
|
892
|
-
var
|
|
900
|
+
var listSeries = (options) => (options?.client ?? client).get({
|
|
901
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
902
|
+
in: "cookie",
|
|
903
|
+
name: "nadeshiko.session_token",
|
|
904
|
+
type: "apiKey"
|
|
905
|
+
}],
|
|
906
|
+
url: "/v1/media/series",
|
|
907
|
+
...options
|
|
908
|
+
});
|
|
909
|
+
var createSeries = (options) => (options.client ?? client).post({
|
|
893
910
|
security: [{ scheme: "bearer", type: "http" }],
|
|
894
|
-
url: "/v1/media/
|
|
911
|
+
url: "/v1/media/series",
|
|
895
912
|
...options,
|
|
896
913
|
headers: {
|
|
897
914
|
"Content-Type": "application/json",
|
|
898
915
|
...options.headers
|
|
899
916
|
}
|
|
900
917
|
});
|
|
901
|
-
var
|
|
918
|
+
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
902
919
|
security: [{ scheme: "bearer", type: "http" }],
|
|
903
|
-
url: "/v1/media/
|
|
920
|
+
url: "/v1/media/series/{id}",
|
|
904
921
|
...options
|
|
905
922
|
});
|
|
906
|
-
var
|
|
907
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
908
|
-
|
|
923
|
+
var getSeries = (options) => (options.client ?? client).get({
|
|
924
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
925
|
+
in: "cookie",
|
|
926
|
+
name: "nadeshiko.session_token",
|
|
927
|
+
type: "apiKey"
|
|
928
|
+
}],
|
|
929
|
+
url: "/v1/media/series/{id}",
|
|
909
930
|
...options
|
|
910
931
|
});
|
|
911
|
-
var
|
|
932
|
+
var updateSeries = (options) => (options.client ?? client).patch({
|
|
912
933
|
security: [{ scheme: "bearer", type: "http" }],
|
|
913
|
-
url: "/v1/media/
|
|
934
|
+
url: "/v1/media/series/{id}",
|
|
914
935
|
...options,
|
|
915
936
|
headers: {
|
|
916
937
|
"Content-Type": "application/json",
|
|
917
938
|
...options.headers
|
|
918
939
|
}
|
|
919
940
|
});
|
|
920
|
-
var
|
|
921
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
922
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
923
|
-
...options
|
|
924
|
-
});
|
|
925
|
-
var createSegment = (options) => (options.client ?? client).post({
|
|
941
|
+
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
926
942
|
security: [{ scheme: "bearer", type: "http" }],
|
|
927
|
-
url: "/v1/media/
|
|
943
|
+
url: "/v1/media/series/{id}/media",
|
|
928
944
|
...options,
|
|
929
945
|
headers: {
|
|
930
946
|
"Content-Type": "application/json",
|
|
931
947
|
...options.headers
|
|
932
948
|
}
|
|
933
949
|
});
|
|
934
|
-
var
|
|
935
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
936
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
937
|
-
...options
|
|
938
|
-
});
|
|
939
|
-
var getSegment = (options) => (options.client ?? client).get({
|
|
950
|
+
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
940
951
|
security: [{ scheme: "bearer", type: "http" }],
|
|
941
|
-
url: "/v1/media/
|
|
952
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
942
953
|
...options
|
|
943
954
|
});
|
|
944
|
-
var
|
|
955
|
+
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
945
956
|
security: [{ scheme: "bearer", type: "http" }],
|
|
946
|
-
url: "/v1/media/
|
|
957
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
947
958
|
...options,
|
|
948
959
|
headers: {
|
|
949
960
|
"Content-Type": "application/json",
|
|
950
961
|
...options.headers
|
|
951
962
|
}
|
|
952
963
|
});
|
|
953
|
-
var
|
|
964
|
+
var getCharacter = (options) => (options.client ?? client).get({
|
|
954
965
|
security: [{ scheme: "bearer", type: "http" }],
|
|
955
|
-
url: "/v1/media/
|
|
966
|
+
url: "/v1/media/characters/{id}",
|
|
956
967
|
...options
|
|
957
968
|
});
|
|
958
|
-
var
|
|
969
|
+
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
959
970
|
security: [{ scheme: "bearer", type: "http" }],
|
|
960
|
-
url: "/v1/media/
|
|
971
|
+
url: "/v1/media/seiyuu/{id}",
|
|
961
972
|
...options
|
|
962
973
|
});
|
|
963
|
-
var
|
|
964
|
-
security: [{ scheme: "bearer", type: "http" },
|
|
965
|
-
|
|
966
|
-
name: "nadeshiko.session_token",
|
|
967
|
-
type: "apiKey"
|
|
968
|
-
}],
|
|
969
|
-
url: "/v1/media/series",
|
|
974
|
+
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
975
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
976
|
+
url: "/v1/media/{id}",
|
|
970
977
|
...options
|
|
971
978
|
});
|
|
972
|
-
var
|
|
979
|
+
var getMedia = (options) => (options.client ?? client).get({
|
|
973
980
|
security: [{ scheme: "bearer", type: "http" }],
|
|
974
|
-
url: "/v1/media/
|
|
981
|
+
url: "/v1/media/{id}",
|
|
982
|
+
...options
|
|
983
|
+
});
|
|
984
|
+
var updateMedia = (options) => (options.client ?? client).patch({
|
|
985
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
986
|
+
url: "/v1/media/{id}",
|
|
975
987
|
...options,
|
|
976
988
|
headers: {
|
|
977
989
|
"Content-Type": "application/json",
|
|
978
990
|
...options.headers
|
|
979
991
|
}
|
|
980
992
|
});
|
|
981
|
-
var
|
|
993
|
+
var listEpisodes = (options) => (options.client ?? client).get({
|
|
982
994
|
security: [{ scheme: "bearer", type: "http" }],
|
|
983
|
-
url: "/v1/media/
|
|
984
|
-
...options
|
|
985
|
-
});
|
|
986
|
-
var getSeries = (options) => (options.client ?? client).get({
|
|
987
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
988
|
-
in: "cookie",
|
|
989
|
-
name: "nadeshiko.session_token",
|
|
990
|
-
type: "apiKey"
|
|
991
|
-
}],
|
|
992
|
-
url: "/v1/media/series/{id}",
|
|
995
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
993
996
|
...options
|
|
994
997
|
});
|
|
995
|
-
var
|
|
998
|
+
var createEpisode = (options) => (options.client ?? client).post({
|
|
996
999
|
security: [{ scheme: "bearer", type: "http" }],
|
|
997
|
-
url: "/v1/media/
|
|
1000
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
998
1001
|
...options,
|
|
999
1002
|
headers: {
|
|
1000
1003
|
"Content-Type": "application/json",
|
|
1001
1004
|
...options.headers
|
|
1002
1005
|
}
|
|
1003
1006
|
});
|
|
1004
|
-
var
|
|
1007
|
+
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1005
1008
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1006
|
-
url: "/v1/media/
|
|
1009
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1010
|
+
...options
|
|
1011
|
+
});
|
|
1012
|
+
var getEpisode = (options) => (options.client ?? client).get({
|
|
1013
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1014
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1015
|
+
...options
|
|
1016
|
+
});
|
|
1017
|
+
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1018
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1019
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1007
1020
|
...options,
|
|
1008
1021
|
headers: {
|
|
1009
1022
|
"Content-Type": "application/json",
|
|
1010
1023
|
...options.headers
|
|
1011
1024
|
}
|
|
1012
1025
|
});
|
|
1013
|
-
var
|
|
1026
|
+
var listSegments = (options) => (options.client ?? client).get({
|
|
1014
1027
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1015
|
-
url: "/v1/media/
|
|
1028
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1016
1029
|
...options
|
|
1017
1030
|
});
|
|
1018
|
-
var
|
|
1031
|
+
var createSegment = (options) => (options.client ?? client).post({
|
|
1019
1032
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1020
|
-
url: "/v1/media/
|
|
1033
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1021
1034
|
...options,
|
|
1022
1035
|
headers: {
|
|
1023
1036
|
"Content-Type": "application/json",
|
|
1024
1037
|
...options.headers
|
|
1025
1038
|
}
|
|
1026
1039
|
});
|
|
1027
|
-
var
|
|
1040
|
+
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1028
1041
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1029
|
-
url: "/v1/media/
|
|
1042
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1030
1043
|
...options
|
|
1031
1044
|
});
|
|
1032
|
-
var
|
|
1045
|
+
var getSegment = (options) => (options.client ?? client).get({
|
|
1033
1046
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1034
|
-
url: "/v1/media/
|
|
1047
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1035
1048
|
...options
|
|
1036
1049
|
});
|
|
1050
|
+
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1051
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1052
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1053
|
+
...options,
|
|
1054
|
+
headers: {
|
|
1055
|
+
"Content-Type": "application/json",
|
|
1056
|
+
...options.headers
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1037
1059
|
var getUserQuota = (options) => (options?.client ?? client).get({
|
|
1038
1060
|
security: [{
|
|
1039
1061
|
in: "cookie",
|
|
@@ -1043,15 +1065,6 @@ var getUserQuota = (options) => (options?.client ?? client).get({
|
|
|
1043
1065
|
url: "/v1/user/quota",
|
|
1044
1066
|
...options
|
|
1045
1067
|
});
|
|
1046
|
-
var listUserReports = (options) => (options?.client ?? client).get({
|
|
1047
|
-
security: [{
|
|
1048
|
-
in: "cookie",
|
|
1049
|
-
name: "nadeshiko.session_token",
|
|
1050
|
-
type: "apiKey"
|
|
1051
|
-
}],
|
|
1052
|
-
url: "/v1/user/reports",
|
|
1053
|
-
...options
|
|
1054
|
-
});
|
|
1055
1068
|
var createUserReport = (options) => (options.client ?? client).post({
|
|
1056
1069
|
security: [{
|
|
1057
1070
|
in: "cookie",
|
|
@@ -1105,6 +1118,19 @@ var listUserActivity = (options) => (options?.client ?? client).get({
|
|
|
1105
1118
|
url: "/v1/user/activity",
|
|
1106
1119
|
...options
|
|
1107
1120
|
});
|
|
1121
|
+
var trackUserActivity = (options) => (options.client ?? client).post({
|
|
1122
|
+
security: [{
|
|
1123
|
+
in: "cookie",
|
|
1124
|
+
name: "nadeshiko.session_token",
|
|
1125
|
+
type: "apiKey"
|
|
1126
|
+
}],
|
|
1127
|
+
url: "/v1/user/activity",
|
|
1128
|
+
...options,
|
|
1129
|
+
headers: {
|
|
1130
|
+
"Content-Type": "application/json",
|
|
1131
|
+
...options.headers
|
|
1132
|
+
}
|
|
1133
|
+
});
|
|
1108
1134
|
var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
|
|
1109
1135
|
security: [{
|
|
1110
1136
|
in: "cookie",
|
|
@@ -1123,6 +1149,24 @@ var getUserActivityStats = (options) => (options?.client ?? client).get({
|
|
|
1123
1149
|
url: "/v1/user/activity/stats",
|
|
1124
1150
|
...options
|
|
1125
1151
|
});
|
|
1152
|
+
var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
|
|
1153
|
+
security: [{
|
|
1154
|
+
in: "cookie",
|
|
1155
|
+
name: "nadeshiko.session_token",
|
|
1156
|
+
type: "apiKey"
|
|
1157
|
+
}],
|
|
1158
|
+
url: "/v1/user/activity/date/{date}",
|
|
1159
|
+
...options
|
|
1160
|
+
});
|
|
1161
|
+
var deleteUserActivityById = (options) => (options.client ?? client).delete({
|
|
1162
|
+
security: [{
|
|
1163
|
+
in: "cookie",
|
|
1164
|
+
name: "nadeshiko.session_token",
|
|
1165
|
+
type: "apiKey"
|
|
1166
|
+
}],
|
|
1167
|
+
url: "/v1/user/activity/{id}",
|
|
1168
|
+
...options
|
|
1169
|
+
});
|
|
1126
1170
|
var exportUserData = (options) => (options?.client ?? client).get({
|
|
1127
1171
|
security: [{
|
|
1128
1172
|
in: "cookie",
|
|
@@ -1141,6 +1185,24 @@ var listUserLabs = (options) => (options?.client ?? client).get({
|
|
|
1141
1185
|
url: "/v1/user/labs",
|
|
1142
1186
|
...options
|
|
1143
1187
|
});
|
|
1188
|
+
var unenrollUserLab = (options) => (options.client ?? client).delete({
|
|
1189
|
+
security: [{
|
|
1190
|
+
in: "cookie",
|
|
1191
|
+
name: "nadeshiko.session_token",
|
|
1192
|
+
type: "apiKey"
|
|
1193
|
+
}],
|
|
1194
|
+
url: "/v1/user/labs/{key}",
|
|
1195
|
+
...options
|
|
1196
|
+
});
|
|
1197
|
+
var enrollUserLab = (options) => (options.client ?? client).post({
|
|
1198
|
+
security: [{
|
|
1199
|
+
in: "cookie",
|
|
1200
|
+
name: "nadeshiko.session_token",
|
|
1201
|
+
type: "apiKey"
|
|
1202
|
+
}],
|
|
1203
|
+
url: "/v1/user/labs/{key}",
|
|
1204
|
+
...options
|
|
1205
|
+
});
|
|
1144
1206
|
var listCollections = (options) => (options?.client ?? client).get({
|
|
1145
1207
|
security: [{
|
|
1146
1208
|
in: "cookie",
|
|
@@ -1229,6 +1291,24 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
|
1229
1291
|
...options.headers
|
|
1230
1292
|
}
|
|
1231
1293
|
});
|
|
1294
|
+
var searchCollectionSegments = (options) => (options.client ?? client).get({
|
|
1295
|
+
security: [{
|
|
1296
|
+
in: "cookie",
|
|
1297
|
+
name: "nadeshiko.session_token",
|
|
1298
|
+
type: "apiKey"
|
|
1299
|
+
}],
|
|
1300
|
+
url: "/v1/collections/{id}/search",
|
|
1301
|
+
...options
|
|
1302
|
+
});
|
|
1303
|
+
var getCollectionStats = (options) => (options.client ?? client).get({
|
|
1304
|
+
security: [{
|
|
1305
|
+
in: "cookie",
|
|
1306
|
+
name: "nadeshiko.session_token",
|
|
1307
|
+
type: "apiKey"
|
|
1308
|
+
}],
|
|
1309
|
+
url: "/v1/collections/{id}/stats",
|
|
1310
|
+
...options
|
|
1311
|
+
});
|
|
1232
1312
|
var getAdminDashboard = (options) => (options?.client ?? client).get({
|
|
1233
1313
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1234
1314
|
url: "/v1/admin/dashboard",
|
|
@@ -1273,6 +1353,28 @@ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
|
|
|
1273
1353
|
url: "/v1/admin/queues/{queueName}/purge",
|
|
1274
1354
|
...options
|
|
1275
1355
|
});
|
|
1356
|
+
var clearAdminImpersonation = (options) => (options?.client ?? client).delete({
|
|
1357
|
+
security: [{
|
|
1358
|
+
in: "cookie",
|
|
1359
|
+
name: "nadeshiko.session_token",
|
|
1360
|
+
type: "apiKey"
|
|
1361
|
+
}],
|
|
1362
|
+
url: "/v1/admin/impersonation",
|
|
1363
|
+
...options
|
|
1364
|
+
});
|
|
1365
|
+
var impersonateAdminUser = (options) => (options.client ?? client).post({
|
|
1366
|
+
security: [{
|
|
1367
|
+
in: "cookie",
|
|
1368
|
+
name: "nadeshiko.session_token",
|
|
1369
|
+
type: "apiKey"
|
|
1370
|
+
}],
|
|
1371
|
+
url: "/v1/admin/impersonation",
|
|
1372
|
+
...options,
|
|
1373
|
+
headers: {
|
|
1374
|
+
"Content-Type": "application/json",
|
|
1375
|
+
...options.headers
|
|
1376
|
+
}
|
|
1377
|
+
});
|
|
1276
1378
|
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1277
1379
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1278
1380
|
url: "/v1/admin/reports",
|
|
@@ -1287,52 +1389,33 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
|
1287
1389
|
...options.headers
|
|
1288
1390
|
}
|
|
1289
1391
|
});
|
|
1290
|
-
var
|
|
1392
|
+
var listAdminMediaAudits = (options) => (options?.client ?? client).get({
|
|
1291
1393
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1292
|
-
url: "/v1/admin/
|
|
1394
|
+
url: "/v1/admin/media/audits",
|
|
1293
1395
|
...options
|
|
1294
1396
|
});
|
|
1295
|
-
var
|
|
1397
|
+
var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
1296
1398
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1297
|
-
url: "/v1/admin/
|
|
1298
|
-
...options
|
|
1299
|
-
});
|
|
1300
|
-
var updateAdminReviewCheck = (options) => (options.client ?? client).patch({
|
|
1301
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1302
|
-
url: "/v1/admin/review/checks/{name}",
|
|
1399
|
+
url: "/v1/admin/media/audits/{name}",
|
|
1303
1400
|
...options,
|
|
1304
1401
|
headers: {
|
|
1305
1402
|
"Content-Type": "application/json",
|
|
1306
1403
|
...options.headers
|
|
1307
1404
|
}
|
|
1308
1405
|
});
|
|
1309
|
-
var
|
|
1406
|
+
var runAdminMediaAudit = (options) => (options.client ?? client).post({
|
|
1310
1407
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1311
|
-
url: "/v1/admin/
|
|
1408
|
+
url: "/v1/admin/media/audits/{name}/run",
|
|
1312
1409
|
...options
|
|
1313
1410
|
});
|
|
1314
|
-
var
|
|
1411
|
+
var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
|
|
1315
1412
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1316
|
-
url: "/v1/admin/
|
|
1413
|
+
url: "/v1/admin/media/audits/runs",
|
|
1317
1414
|
...options
|
|
1318
1415
|
});
|
|
1319
|
-
var
|
|
1416
|
+
var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
1320
1417
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1321
|
-
url: "/v1/admin/
|
|
1322
|
-
...options
|
|
1323
|
-
});
|
|
1324
|
-
var createAdminReviewAllowlistEntry = (options) => (options.client ?? client).post({
|
|
1325
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1326
|
-
url: "/v1/admin/review/allowlist",
|
|
1327
|
-
...options,
|
|
1328
|
-
headers: {
|
|
1329
|
-
"Content-Type": "application/json",
|
|
1330
|
-
...options.headers
|
|
1331
|
-
}
|
|
1332
|
-
});
|
|
1333
|
-
var deleteAdminReviewAllowlistEntry = (options) => (options.client ?? client).delete({
|
|
1334
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1335
|
-
url: "/v1/admin/review/allowlist/{id}",
|
|
1418
|
+
url: "/v1/admin/media/audits/runs/{id}",
|
|
1336
1419
|
...options
|
|
1337
1420
|
});
|
|
1338
1421
|
// generated/dev/nadeshiko.gen.ts
|
|
@@ -1341,13 +1424,20 @@ var environments = {
|
|
|
1341
1424
|
DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
|
|
1342
1425
|
PRODUCTION: "https://api.brigadasos.xyz/api"
|
|
1343
1426
|
};
|
|
1427
|
+
var defaultSessionTokenGetter = () => {
|
|
1428
|
+
if (typeof document === "undefined")
|
|
1429
|
+
return;
|
|
1430
|
+
const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
|
|
1431
|
+
return match ? decodeURIComponent(match[1]) : undefined;
|
|
1432
|
+
};
|
|
1344
1433
|
function createNadeshikoClient(config) {
|
|
1345
1434
|
const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl : environments.PRODUCTION;
|
|
1435
|
+
const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
|
|
1346
1436
|
const clientInstance = createClient(createConfig({
|
|
1347
1437
|
baseUrl,
|
|
1348
1438
|
auth: (auth) => {
|
|
1349
1439
|
if (auth.in === "cookie") {
|
|
1350
|
-
return
|
|
1440
|
+
return getSessionToken();
|
|
1351
1441
|
}
|
|
1352
1442
|
return config.apiKey;
|
|
1353
1443
|
}
|
|
@@ -1358,16 +1448,16 @@ function createNadeshikoClient(config) {
|
|
|
1358
1448
|
getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
|
|
1359
1449
|
searchWords: (options) => searchWords({ ...options, client: clientInstance }),
|
|
1360
1450
|
listMedia: (options) => listMedia({ ...options, client: clientInstance }),
|
|
1361
|
-
getMedia: (options) => getMedia({ ...options, client: clientInstance }),
|
|
1362
|
-
listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
|
|
1363
|
-
getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
|
|
1364
|
-
getSegment: (options) => getSegment({ ...options, client: clientInstance }),
|
|
1365
1451
|
getSegmentByUuid: (options) => getSegmentByUuid({ ...options, client: clientInstance }),
|
|
1366
1452
|
getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
|
|
1367
1453
|
listSeries: (options) => listSeries({ ...options, client: clientInstance }),
|
|
1368
1454
|
getSeries: (options) => getSeries({ ...options, client: clientInstance }),
|
|
1369
1455
|
getCharacter: (options) => getCharacter({ ...options, client: clientInstance }),
|
|
1370
1456
|
getSeiyuu: (options) => getSeiyuu({ ...options, client: clientInstance }),
|
|
1457
|
+
getMedia: (options) => getMedia({ ...options, client: clientInstance }),
|
|
1458
|
+
listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
|
|
1459
|
+
getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
|
|
1460
|
+
getSegment: (options) => getSegment({ ...options, client: clientInstance }),
|
|
1371
1461
|
getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
|
|
1372
1462
|
listCollections: (options) => listCollections({ ...options, client: clientInstance }),
|
|
1373
1463
|
createCollection: (options) => createCollection({ ...options, client: clientInstance }),
|
|
@@ -1377,6 +1467,8 @@ function createNadeshikoClient(config) {
|
|
|
1377
1467
|
addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
|
|
1378
1468
|
updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
|
|
1379
1469
|
removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
|
|
1470
|
+
searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
|
|
1471
|
+
getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
|
|
1380
1472
|
triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
|
|
1381
1473
|
listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
|
|
1382
1474
|
getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
|
|
@@ -1385,15 +1477,20 @@ function createNadeshikoClient(config) {
|
|
|
1385
1477
|
purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1386
1478
|
listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
|
|
1387
1479
|
updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
listAdminReviewAllowlist: (options) => listAdminReviewAllowlist({ ...options, client: clientInstance }),
|
|
1394
|
-
createAdminReviewAllowlistEntry: (options) => createAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
|
|
1395
|
-
deleteAdminReviewAllowlistEntry: (options) => deleteAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
|
|
1480
|
+
listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
|
|
1481
|
+
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1482
|
+
runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1483
|
+
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
|
|
1484
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
|
|
1396
1485
|
createMedia: (options) => createMedia({ ...options, client: clientInstance }),
|
|
1486
|
+
autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
|
|
1487
|
+
updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
|
|
1488
|
+
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1489
|
+
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1490
|
+
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
1491
|
+
addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
|
|
1492
|
+
updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
|
|
1493
|
+
removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
|
|
1397
1494
|
updateMedia: (options) => updateMedia({ ...options, client: clientInstance }),
|
|
1398
1495
|
deleteMedia: (options) => deleteMedia({ ...options, client: clientInstance }),
|
|
1399
1496
|
createEpisode: (options) => createEpisode({ ...options, client: clientInstance }),
|
|
@@ -1403,32 +1500,32 @@ function createNadeshikoClient(config) {
|
|
|
1403
1500
|
createSegment: (options) => createSegment({ ...options, client: clientInstance }),
|
|
1404
1501
|
updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
|
|
1405
1502
|
deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
|
|
1406
|
-
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1407
|
-
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1408
|
-
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
1409
|
-
addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
|
|
1410
|
-
updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
|
|
1411
|
-
removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
|
|
1412
1503
|
createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
|
|
1413
|
-
listUserReports: (options) => listUserReports({ ...options, client: clientInstance }),
|
|
1414
1504
|
getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
|
|
1415
1505
|
updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
|
|
1416
1506
|
listUserActivity: (options) => listUserActivity({ ...options, client: clientInstance }),
|
|
1507
|
+
trackUserActivity: (options) => trackUserActivity({ ...options, client: clientInstance }),
|
|
1417
1508
|
deleteUserActivity: (options) => deleteUserActivity({ ...options, client: clientInstance }),
|
|
1418
1509
|
getUserActivityHeatmap: (options) => getUserActivityHeatmap({ ...options, client: clientInstance }),
|
|
1419
1510
|
getUserActivityStats: (options) => getUserActivityStats({ ...options, client: clientInstance }),
|
|
1511
|
+
deleteUserActivityByDate: (options) => deleteUserActivityByDate({ ...options, client: clientInstance }),
|
|
1512
|
+
deleteUserActivityById: (options) => deleteUserActivityById({ ...options, client: clientInstance }),
|
|
1420
1513
|
exportUserData: (options) => exportUserData({ ...options, client: clientInstance }),
|
|
1421
1514
|
listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
|
|
1515
|
+
enrollUserLab: (options) => enrollUserLab({ ...options, client: clientInstance }),
|
|
1516
|
+
unenrollUserLab: (options) => unenrollUserLab({ ...options, client: clientInstance }),
|
|
1422
1517
|
getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
|
|
1423
|
-
getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance })
|
|
1518
|
+
getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance }),
|
|
1519
|
+
impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
|
|
1520
|
+
clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance })
|
|
1424
1521
|
};
|
|
1425
1522
|
}
|
|
1426
|
-
var createClient2 = createNadeshikoClient;
|
|
1427
1523
|
// generated/dev/internal/media.gen.ts
|
|
1428
1524
|
var exports_media_gen = {};
|
|
1429
1525
|
__export(exports_media_gen, {
|
|
1430
1526
|
updateSeriesMedia: () => updateSeriesMedia,
|
|
1431
1527
|
updateSeries: () => updateSeries,
|
|
1528
|
+
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
1432
1529
|
updateSegment: () => updateSegment,
|
|
1433
1530
|
updateMedia: () => updateMedia,
|
|
1434
1531
|
updateEpisode: () => updateEpisode,
|
|
@@ -1442,50 +1539,60 @@ __export(exports_media_gen, {
|
|
|
1442
1539
|
createSegment: () => createSegment,
|
|
1443
1540
|
createMedia: () => createMedia,
|
|
1444
1541
|
createEpisode: () => createEpisode,
|
|
1542
|
+
autocompleteMedia: () => autocompleteMedia,
|
|
1445
1543
|
addMediaToSeries: () => addMediaToSeries
|
|
1446
1544
|
});
|
|
1447
1545
|
// generated/dev/internal/user.gen.ts
|
|
1448
1546
|
var exports_user_gen = {};
|
|
1449
1547
|
__export(exports_user_gen, {
|
|
1450
1548
|
updateUserPreferences: () => updateUserPreferences,
|
|
1451
|
-
|
|
1549
|
+
unenrollUserLab: () => unenrollUserLab,
|
|
1550
|
+
trackUserActivity: () => trackUserActivity,
|
|
1452
1551
|
listUserLabs: () => listUserLabs,
|
|
1453
1552
|
listUserActivity: () => listUserActivity,
|
|
1454
1553
|
getUserPreferences: () => getUserPreferences,
|
|
1455
1554
|
getUserActivityStats: () => getUserActivityStats,
|
|
1456
1555
|
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
1457
1556
|
exportUserData: () => exportUserData,
|
|
1557
|
+
enrollUserLab: () => enrollUserLab,
|
|
1558
|
+
deleteUserActivityById: () => deleteUserActivityById,
|
|
1559
|
+
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
1458
1560
|
deleteUserActivity: () => deleteUserActivity,
|
|
1459
1561
|
createUserReport: () => createUserReport
|
|
1460
1562
|
});
|
|
1461
1563
|
// generated/dev/internal/admin.gen.ts
|
|
1462
1564
|
var exports_admin_gen = {};
|
|
1463
1565
|
__export(exports_admin_gen, {
|
|
1566
|
+
impersonateAdminUser: () => impersonateAdminUser,
|
|
1464
1567
|
getAdminHealth: () => getAdminHealth,
|
|
1465
|
-
getAdminDashboard: () => getAdminDashboard
|
|
1568
|
+
getAdminDashboard: () => getAdminDashboard,
|
|
1569
|
+
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1466
1570
|
});
|
|
1467
1571
|
export {
|
|
1468
1572
|
exports_user_gen as user,
|
|
1469
1573
|
updateUserPreferences,
|
|
1470
1574
|
updateSeriesMedia,
|
|
1471
1575
|
updateSeries,
|
|
1576
|
+
updateSegmentByUuid,
|
|
1472
1577
|
updateSegment,
|
|
1473
1578
|
updateMedia,
|
|
1474
1579
|
updateEpisode,
|
|
1475
1580
|
updateCollectionSegment,
|
|
1476
1581
|
updateCollection,
|
|
1477
|
-
updateAdminReviewCheck,
|
|
1478
1582
|
updateAdminReport,
|
|
1583
|
+
updateAdminMediaAudit,
|
|
1584
|
+
unenrollUserLab,
|
|
1479
1585
|
triggerReindex,
|
|
1586
|
+
trackUserActivity,
|
|
1480
1587
|
searchWords,
|
|
1588
|
+
searchCollectionSegments,
|
|
1481
1589
|
search,
|
|
1482
|
-
|
|
1590
|
+
runAdminMediaAudit,
|
|
1483
1591
|
retryAdminQueueFailed,
|
|
1484
1592
|
removeSegmentFromCollection,
|
|
1485
1593
|
removeMediaFromSeries,
|
|
1486
1594
|
purgeAdminQueueFailed,
|
|
1487
1595
|
exports_media_gen as media,
|
|
1488
|
-
listUserReports,
|
|
1489
1596
|
listUserLabs,
|
|
1490
1597
|
listUserActivity,
|
|
1491
1598
|
listSeries,
|
|
@@ -1493,12 +1600,12 @@ export {
|
|
|
1493
1600
|
listMedia,
|
|
1494
1601
|
listEpisodes,
|
|
1495
1602
|
listCollections,
|
|
1496
|
-
listAdminReviewRuns,
|
|
1497
|
-
listAdminReviewChecks,
|
|
1498
|
-
listAdminReviewAllowlist,
|
|
1499
1603
|
listAdminReports,
|
|
1500
1604
|
listAdminQueueStats,
|
|
1501
1605
|
listAdminQueueFailed,
|
|
1606
|
+
listAdminMediaAudits,
|
|
1607
|
+
listAdminMediaAuditRuns,
|
|
1608
|
+
impersonateAdminUser,
|
|
1502
1609
|
getUserQuota,
|
|
1503
1610
|
getUserPreferences,
|
|
1504
1611
|
getUserActivityStats,
|
|
@@ -1511,20 +1618,23 @@ export {
|
|
|
1511
1618
|
getSearchStats,
|
|
1512
1619
|
getMedia,
|
|
1513
1620
|
getEpisode,
|
|
1621
|
+
getCollectionStats,
|
|
1514
1622
|
getCollection,
|
|
1515
1623
|
getCharacter,
|
|
1516
|
-
getAdminReviewRun,
|
|
1517
1624
|
getAdminQueue,
|
|
1625
|
+
getAdminMediaAuditRun,
|
|
1518
1626
|
getAdminHealth,
|
|
1519
1627
|
getAdminDashboard,
|
|
1520
1628
|
exportUserData,
|
|
1629
|
+
enrollUserLab,
|
|
1630
|
+
deleteUserActivityById,
|
|
1631
|
+
deleteUserActivityByDate,
|
|
1521
1632
|
deleteUserActivity,
|
|
1522
1633
|
deleteSeries,
|
|
1523
1634
|
deleteSegment,
|
|
1524
1635
|
deleteMedia,
|
|
1525
1636
|
deleteEpisode,
|
|
1526
1637
|
deleteCollection,
|
|
1527
|
-
deleteAdminReviewAllowlistEntry,
|
|
1528
1638
|
createUserReport,
|
|
1529
1639
|
createSeries,
|
|
1530
1640
|
createSegment,
|
|
@@ -1532,13 +1642,13 @@ export {
|
|
|
1532
1642
|
createMedia,
|
|
1533
1643
|
createEpisode,
|
|
1534
1644
|
createCollection,
|
|
1535
|
-
createClient2 as createClient,
|
|
1536
|
-
createAdminReviewAllowlistEntry,
|
|
1537
1645
|
client,
|
|
1646
|
+
clearAdminImpersonation,
|
|
1647
|
+
autocompleteMedia,
|
|
1538
1648
|
exports_admin_gen as admin,
|
|
1539
1649
|
addSegmentToCollection,
|
|
1540
1650
|
addMediaToSeries
|
|
1541
1651
|
};
|
|
1542
1652
|
|
|
1543
|
-
//# debugId=
|
|
1653
|
+
//# debugId=6E2270D68B68807564756E2164756E21
|
|
1544
1654
|
//# sourceMappingURL=index.js.map
|