@brigadasos/nadeshiko-sdk 2.0.7-internal → 2.0.7
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/client/client.gen.d.ts.map +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/core/auth.gen.d.ts.map +1 -1
- package/dist/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/core/params.gen.d.ts.map +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -1
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/core/types.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.d.ts.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.cjs +21 -920
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -931
- package/dist/index.js.map +4 -4
- package/dist/nadeshiko.gen.d.ts +1 -1303
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/paginate.d.ts.map +1 -1
- package/dist/retry.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +3 -4
- package/dist/internal/admin.gen.d.ts +0 -2
- package/dist/internal/admin.gen.d.ts.map +0 -1
- package/dist/internal/collections.gen.d.ts +0 -2
- package/dist/internal/collections.gen.d.ts.map +0 -1
- package/dist/internal/media.gen.d.ts +0 -2
- package/dist/internal/media.gen.d.ts.map +0 -1
- package/dist/internal/user.gen.d.ts +0 -2
- package/dist/internal/user.gen.d.ts.map +0 -1
- package/dist/internal.gen.d.ts +0 -5
- package/dist/internal.gen.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
var __returnValue = (v) => v;
|
|
3
|
-
function __exportSetter(name, newValue) {
|
|
4
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
-
}
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true,
|
|
11
|
-
configurable: true,
|
|
12
|
-
set: __exportSetter.bind(all, name)
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
// generated/internal/core/bodySerializer.gen.ts
|
|
1
|
+
// generated/public/core/bodySerializer.gen.ts
|
|
17
2
|
var jsonBodySerializer = {
|
|
18
3
|
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
19
4
|
};
|
|
20
|
-
// generated/
|
|
5
|
+
// generated/public/core/params.gen.ts
|
|
21
6
|
var extraPrefixesMap = {
|
|
22
7
|
$body_: "body",
|
|
23
8
|
$headers_: "headers",
|
|
@@ -25,7 +10,7 @@ var extraPrefixesMap = {
|
|
|
25
10
|
$query_: "query"
|
|
26
11
|
};
|
|
27
12
|
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
28
|
-
// generated/
|
|
13
|
+
// generated/public/core/serverSentEvents.gen.ts
|
|
29
14
|
var createSseClient = ({
|
|
30
15
|
onRequest,
|
|
31
16
|
onSseError,
|
|
@@ -161,7 +146,7 @@ var createSseClient = ({
|
|
|
161
146
|
return { stream };
|
|
162
147
|
};
|
|
163
148
|
|
|
164
|
-
// generated/
|
|
149
|
+
// generated/public/core/pathSerializer.gen.ts
|
|
165
150
|
var separatorArrayExplode = (style) => {
|
|
166
151
|
switch (style) {
|
|
167
152
|
case "label":
|
|
@@ -285,7 +270,7 @@ var serializeObjectParam = ({
|
|
|
285
270
|
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
286
271
|
};
|
|
287
272
|
|
|
288
|
-
// generated/
|
|
273
|
+
// generated/public/core/utils.gen.ts
|
|
289
274
|
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
290
275
|
var defaultPathSerializer = ({ path, url: _url }) => {
|
|
291
276
|
let url = _url;
|
|
@@ -374,7 +359,7 @@ function getValidRequestBody(options) {
|
|
|
374
359
|
return;
|
|
375
360
|
}
|
|
376
361
|
|
|
377
|
-
// generated/
|
|
362
|
+
// generated/public/core/auth.gen.ts
|
|
378
363
|
var getAuthToken = async (auth, callback) => {
|
|
379
364
|
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
380
365
|
if (!token) {
|
|
@@ -389,7 +374,7 @@ var getAuthToken = async (auth, callback) => {
|
|
|
389
374
|
return token;
|
|
390
375
|
};
|
|
391
376
|
|
|
392
|
-
// generated/
|
|
377
|
+
// generated/public/client/utils.gen.ts
|
|
393
378
|
var createQuerySerializer = ({
|
|
394
379
|
parameters = {},
|
|
395
380
|
...args
|
|
@@ -606,7 +591,7 @@ var createConfig = (override = {}) => ({
|
|
|
606
591
|
...override
|
|
607
592
|
});
|
|
608
593
|
|
|
609
|
-
// generated/
|
|
594
|
+
// generated/public/client/client.gen.ts
|
|
610
595
|
var createClient = (config = {}) => {
|
|
611
596
|
let _config = mergeConfigs(createConfig(), config);
|
|
612
597
|
const getConfig = () => ({ ..._config });
|
|
@@ -812,10 +797,10 @@ var createClient = (config = {}) => {
|
|
|
812
797
|
trace: makeMethodFn("TRACE")
|
|
813
798
|
};
|
|
814
799
|
};
|
|
815
|
-
// generated/
|
|
800
|
+
// generated/public/client.gen.ts
|
|
816
801
|
var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
|
|
817
802
|
|
|
818
|
-
// generated/
|
|
803
|
+
// generated/public/sdk.gen.ts
|
|
819
804
|
var search = (options) => (options?.client ?? client).post({
|
|
820
805
|
security: [{ scheme: "bearer", type: "http" }],
|
|
821
806
|
url: "/v1/search",
|
|
@@ -853,704 +838,52 @@ var getCoveredWords = (options) => (options.client ?? client).get({
|
|
|
853
838
|
url: "/v1/stats/covered-words",
|
|
854
839
|
...options
|
|
855
840
|
});
|
|
856
|
-
var triggerCoveredWordsUpdate = (options) => (options?.client ?? client).post({
|
|
857
|
-
security: [{
|
|
858
|
-
in: "cookie",
|
|
859
|
-
name: "nadeshiko.session_token",
|
|
860
|
-
type: "apiKey"
|
|
861
|
-
}],
|
|
862
|
-
url: "/v1/stats/covered-words/update",
|
|
863
|
-
...options,
|
|
864
|
-
headers: {
|
|
865
|
-
"Content-Type": "application/json",
|
|
866
|
-
...options?.headers
|
|
867
|
-
}
|
|
868
|
-
});
|
|
869
841
|
var listMedia = (options) => (options?.client ?? client).get({
|
|
870
842
|
security: [{ scheme: "bearer", type: "http" }],
|
|
871
843
|
url: "/v1/media",
|
|
872
844
|
...options
|
|
873
845
|
});
|
|
874
|
-
var createMedia = (options) => (options.client ?? client).post({
|
|
875
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
876
|
-
url: "/v1/media",
|
|
877
|
-
...options,
|
|
878
|
-
headers: {
|
|
879
|
-
"Content-Type": "application/json",
|
|
880
|
-
...options.headers
|
|
881
|
-
}
|
|
882
|
-
});
|
|
883
|
-
var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
884
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
885
|
-
url: "/v1/media/autocomplete",
|
|
886
|
-
...options
|
|
887
|
-
});
|
|
888
846
|
var getSegmentByUuid = (options) => (options.client ?? client).get({
|
|
889
847
|
security: [{ scheme: "bearer", type: "http" }],
|
|
890
848
|
url: "/v1/media/segments/{uuid}",
|
|
891
849
|
...options
|
|
892
850
|
});
|
|
893
|
-
var updateSegmentByUuid = (options) => (options.client ?? client).patch({
|
|
894
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
895
|
-
url: "/v1/media/segments/{uuid}",
|
|
896
|
-
...options,
|
|
897
|
-
headers: {
|
|
898
|
-
"Content-Type": "application/json",
|
|
899
|
-
...options.headers
|
|
900
|
-
}
|
|
901
|
-
});
|
|
902
851
|
var getSegmentContext = (options) => (options.client ?? client).get({
|
|
903
852
|
security: [{ scheme: "bearer", type: "http" }],
|
|
904
853
|
url: "/v1/media/segments/{uuid}/context",
|
|
905
854
|
...options
|
|
906
855
|
});
|
|
907
|
-
var listSegmentRevisions = (options) => (options.client ?? client).get({
|
|
908
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
909
|
-
url: "/v1/media/segments/{uuid}/revisions",
|
|
910
|
-
...options
|
|
911
|
-
});
|
|
912
856
|
var listSeries = (options) => (options?.client ?? client).get({
|
|
913
857
|
security: [{ scheme: "bearer", type: "http" }],
|
|
914
858
|
url: "/v1/media/series",
|
|
915
859
|
...options
|
|
916
860
|
});
|
|
917
|
-
var createSeries = (options) => (options.client ?? client).post({
|
|
918
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
919
|
-
url: "/v1/media/series",
|
|
920
|
-
...options,
|
|
921
|
-
headers: {
|
|
922
|
-
"Content-Type": "application/json",
|
|
923
|
-
...options.headers
|
|
924
|
-
}
|
|
925
|
-
});
|
|
926
|
-
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
927
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
928
|
-
url: "/v1/media/series/{id}",
|
|
929
|
-
...options
|
|
930
|
-
});
|
|
931
861
|
var getSeries = (options) => (options.client ?? client).get({
|
|
932
862
|
security: [{ scheme: "bearer", type: "http" }],
|
|
933
863
|
url: "/v1/media/series/{id}",
|
|
934
864
|
...options
|
|
935
865
|
});
|
|
936
|
-
var updateSeries = (options) => (options.client ?? client).patch({
|
|
937
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
938
|
-
url: "/v1/media/series/{id}",
|
|
939
|
-
...options,
|
|
940
|
-
headers: {
|
|
941
|
-
"Content-Type": "application/json",
|
|
942
|
-
...options.headers
|
|
943
|
-
}
|
|
944
|
-
});
|
|
945
|
-
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
946
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
947
|
-
url: "/v1/media/series/{id}/media",
|
|
948
|
-
...options,
|
|
949
|
-
headers: {
|
|
950
|
-
"Content-Type": "application/json",
|
|
951
|
-
...options.headers
|
|
952
|
-
}
|
|
953
|
-
});
|
|
954
|
-
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
955
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
956
|
-
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
957
|
-
...options
|
|
958
|
-
});
|
|
959
|
-
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
960
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
961
|
-
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
962
|
-
...options,
|
|
963
|
-
headers: {
|
|
964
|
-
"Content-Type": "application/json",
|
|
965
|
-
...options.headers
|
|
966
|
-
}
|
|
967
|
-
});
|
|
968
|
-
var getCharacter = (options) => (options.client ?? client).get({
|
|
969
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
970
|
-
url: "/v1/media/characters/{id}",
|
|
971
|
-
...options
|
|
972
|
-
});
|
|
973
|
-
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
974
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
975
|
-
url: "/v1/media/seiyuu/{id}",
|
|
976
|
-
...options
|
|
977
|
-
});
|
|
978
|
-
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
979
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
980
|
-
url: "/v1/media/{id}",
|
|
981
|
-
...options
|
|
982
|
-
});
|
|
983
866
|
var getMedia = (options) => (options.client ?? client).get({
|
|
984
867
|
security: [{ scheme: "bearer", type: "http" }],
|
|
985
868
|
url: "/v1/media/{id}",
|
|
986
869
|
...options
|
|
987
870
|
});
|
|
988
|
-
var updateMedia = (options) => (options.client ?? client).patch({
|
|
989
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
990
|
-
url: "/v1/media/{id}",
|
|
991
|
-
...options,
|
|
992
|
-
headers: {
|
|
993
|
-
"Content-Type": "application/json",
|
|
994
|
-
...options.headers
|
|
995
|
-
}
|
|
996
|
-
});
|
|
997
871
|
var listEpisodes = (options) => (options.client ?? client).get({
|
|
998
872
|
security: [{ scheme: "bearer", type: "http" }],
|
|
999
873
|
url: "/v1/media/{mediaId}/episodes",
|
|
1000
874
|
...options
|
|
1001
875
|
});
|
|
1002
|
-
var createEpisode = (options) => (options.client ?? client).post({
|
|
1003
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1004
|
-
url: "/v1/media/{mediaId}/episodes",
|
|
1005
|
-
...options,
|
|
1006
|
-
headers: {
|
|
1007
|
-
"Content-Type": "application/json",
|
|
1008
|
-
...options.headers
|
|
1009
|
-
}
|
|
1010
|
-
});
|
|
1011
|
-
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1012
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1013
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1014
|
-
...options
|
|
1015
|
-
});
|
|
1016
876
|
var getEpisode = (options) => (options.client ?? client).get({
|
|
1017
877
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1018
878
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1019
879
|
...options
|
|
1020
880
|
});
|
|
1021
|
-
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1022
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1023
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1024
|
-
...options,
|
|
1025
|
-
headers: {
|
|
1026
|
-
"Content-Type": "application/json",
|
|
1027
|
-
...options.headers
|
|
1028
|
-
}
|
|
1029
|
-
});
|
|
1030
|
-
var listSegments = (options) => (options.client ?? client).get({
|
|
1031
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1032
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1033
|
-
...options
|
|
1034
|
-
});
|
|
1035
|
-
var createSegment = (options) => (options.client ?? client).post({
|
|
1036
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1037
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1038
|
-
...options,
|
|
1039
|
-
headers: {
|
|
1040
|
-
"Content-Type": "application/json",
|
|
1041
|
-
...options.headers
|
|
1042
|
-
}
|
|
1043
|
-
});
|
|
1044
|
-
var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
1045
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1046
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
|
|
1047
|
-
...options,
|
|
1048
|
-
headers: {
|
|
1049
|
-
"Content-Type": "application/json",
|
|
1050
|
-
...options.headers
|
|
1051
|
-
}
|
|
1052
|
-
});
|
|
1053
|
-
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1054
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1055
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1056
|
-
...options
|
|
1057
|
-
});
|
|
1058
881
|
var getSegment = (options) => (options.client ?? client).get({
|
|
1059
882
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1060
883
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1061
884
|
...options
|
|
1062
885
|
});
|
|
1063
|
-
|
|
1064
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1065
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1066
|
-
...options,
|
|
1067
|
-
headers: {
|
|
1068
|
-
"Content-Type": "application/json",
|
|
1069
|
-
...options.headers
|
|
1070
|
-
}
|
|
1071
|
-
});
|
|
1072
|
-
var getUserQuota = (options) => (options?.client ?? client).get({
|
|
1073
|
-
security: [{
|
|
1074
|
-
in: "cookie",
|
|
1075
|
-
name: "nadeshiko.session_token",
|
|
1076
|
-
type: "apiKey"
|
|
1077
|
-
}],
|
|
1078
|
-
url: "/v1/user/quota",
|
|
1079
|
-
...options
|
|
1080
|
-
});
|
|
1081
|
-
var createUserReport = (options) => (options.client ?? client).post({
|
|
1082
|
-
security: [{
|
|
1083
|
-
in: "cookie",
|
|
1084
|
-
name: "nadeshiko.session_token",
|
|
1085
|
-
type: "apiKey"
|
|
1086
|
-
}],
|
|
1087
|
-
url: "/v1/user/reports",
|
|
1088
|
-
...options,
|
|
1089
|
-
headers: {
|
|
1090
|
-
"Content-Type": "application/json",
|
|
1091
|
-
...options.headers
|
|
1092
|
-
}
|
|
1093
|
-
});
|
|
1094
|
-
var getUserPreferences = (options) => (options?.client ?? client).get({
|
|
1095
|
-
security: [{
|
|
1096
|
-
in: "cookie",
|
|
1097
|
-
name: "nadeshiko.session_token",
|
|
1098
|
-
type: "apiKey"
|
|
1099
|
-
}],
|
|
1100
|
-
url: "/v1/user/preferences",
|
|
1101
|
-
...options
|
|
1102
|
-
});
|
|
1103
|
-
var updateUserPreferences = (options) => (options.client ?? client).patch({
|
|
1104
|
-
security: [{
|
|
1105
|
-
in: "cookie",
|
|
1106
|
-
name: "nadeshiko.session_token",
|
|
1107
|
-
type: "apiKey"
|
|
1108
|
-
}],
|
|
1109
|
-
url: "/v1/user/preferences",
|
|
1110
|
-
...options,
|
|
1111
|
-
headers: {
|
|
1112
|
-
"Content-Type": "application/json",
|
|
1113
|
-
...options.headers
|
|
1114
|
-
}
|
|
1115
|
-
});
|
|
1116
|
-
var deleteUserActivity = (options) => (options?.client ?? client).delete({
|
|
1117
|
-
security: [{
|
|
1118
|
-
in: "cookie",
|
|
1119
|
-
name: "nadeshiko.session_token",
|
|
1120
|
-
type: "apiKey"
|
|
1121
|
-
}],
|
|
1122
|
-
url: "/v1/user/activity",
|
|
1123
|
-
...options
|
|
1124
|
-
});
|
|
1125
|
-
var listUserActivity = (options) => (options?.client ?? client).get({
|
|
1126
|
-
security: [{
|
|
1127
|
-
in: "cookie",
|
|
1128
|
-
name: "nadeshiko.session_token",
|
|
1129
|
-
type: "apiKey"
|
|
1130
|
-
}],
|
|
1131
|
-
url: "/v1/user/activity",
|
|
1132
|
-
...options
|
|
1133
|
-
});
|
|
1134
|
-
var trackUserActivity = (options) => (options.client ?? client).post({
|
|
1135
|
-
security: [{
|
|
1136
|
-
in: "cookie",
|
|
1137
|
-
name: "nadeshiko.session_token",
|
|
1138
|
-
type: "apiKey"
|
|
1139
|
-
}],
|
|
1140
|
-
url: "/v1/user/activity",
|
|
1141
|
-
...options,
|
|
1142
|
-
headers: {
|
|
1143
|
-
"Content-Type": "application/json",
|
|
1144
|
-
...options.headers
|
|
1145
|
-
}
|
|
1146
|
-
});
|
|
1147
|
-
var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
|
|
1148
|
-
security: [{
|
|
1149
|
-
in: "cookie",
|
|
1150
|
-
name: "nadeshiko.session_token",
|
|
1151
|
-
type: "apiKey"
|
|
1152
|
-
}],
|
|
1153
|
-
url: "/v1/user/activity/heatmap",
|
|
1154
|
-
...options
|
|
1155
|
-
});
|
|
1156
|
-
var getUserActivityStats = (options) => (options?.client ?? client).get({
|
|
1157
|
-
security: [{
|
|
1158
|
-
in: "cookie",
|
|
1159
|
-
name: "nadeshiko.session_token",
|
|
1160
|
-
type: "apiKey"
|
|
1161
|
-
}],
|
|
1162
|
-
url: "/v1/user/activity/stats",
|
|
1163
|
-
...options
|
|
1164
|
-
});
|
|
1165
|
-
var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
|
|
1166
|
-
security: [{
|
|
1167
|
-
in: "cookie",
|
|
1168
|
-
name: "nadeshiko.session_token",
|
|
1169
|
-
type: "apiKey"
|
|
1170
|
-
}],
|
|
1171
|
-
url: "/v1/user/activity/date/{date}",
|
|
1172
|
-
...options
|
|
1173
|
-
});
|
|
1174
|
-
var deleteUserActivityById = (options) => (options.client ?? client).delete({
|
|
1175
|
-
security: [{
|
|
1176
|
-
in: "cookie",
|
|
1177
|
-
name: "nadeshiko.session_token",
|
|
1178
|
-
type: "apiKey"
|
|
1179
|
-
}],
|
|
1180
|
-
url: "/v1/user/activity/{id}",
|
|
1181
|
-
...options
|
|
1182
|
-
});
|
|
1183
|
-
var exportUserData = (options) => (options?.client ?? client).get({
|
|
1184
|
-
security: [{
|
|
1185
|
-
in: "cookie",
|
|
1186
|
-
name: "nadeshiko.session_token",
|
|
1187
|
-
type: "apiKey"
|
|
1188
|
-
}],
|
|
1189
|
-
url: "/v1/user/export",
|
|
1190
|
-
...options
|
|
1191
|
-
});
|
|
1192
|
-
var listUserLabs = (options) => (options?.client ?? client).get({
|
|
1193
|
-
security: [{
|
|
1194
|
-
in: "cookie",
|
|
1195
|
-
name: "nadeshiko.session_token",
|
|
1196
|
-
type: "apiKey"
|
|
1197
|
-
}],
|
|
1198
|
-
url: "/v1/user/labs",
|
|
1199
|
-
...options
|
|
1200
|
-
});
|
|
1201
|
-
var unenrollUserLab = (options) => (options.client ?? client).delete({
|
|
1202
|
-
security: [{
|
|
1203
|
-
in: "cookie",
|
|
1204
|
-
name: "nadeshiko.session_token",
|
|
1205
|
-
type: "apiKey"
|
|
1206
|
-
}],
|
|
1207
|
-
url: "/v1/user/labs/{key}",
|
|
1208
|
-
...options
|
|
1209
|
-
});
|
|
1210
|
-
var enrollUserLab = (options) => (options.client ?? client).post({
|
|
1211
|
-
security: [{
|
|
1212
|
-
in: "cookie",
|
|
1213
|
-
name: "nadeshiko.session_token",
|
|
1214
|
-
type: "apiKey"
|
|
1215
|
-
}],
|
|
1216
|
-
url: "/v1/user/labs/{key}",
|
|
1217
|
-
...options
|
|
1218
|
-
});
|
|
1219
|
-
var listCollections = (options) => (options?.client ?? client).get({
|
|
1220
|
-
security: [{
|
|
1221
|
-
in: "cookie",
|
|
1222
|
-
name: "nadeshiko.session_token",
|
|
1223
|
-
type: "apiKey"
|
|
1224
|
-
}],
|
|
1225
|
-
url: "/v1/collections",
|
|
1226
|
-
...options
|
|
1227
|
-
});
|
|
1228
|
-
var createCollection = (options) => (options.client ?? client).post({
|
|
1229
|
-
security: [{
|
|
1230
|
-
in: "cookie",
|
|
1231
|
-
name: "nadeshiko.session_token",
|
|
1232
|
-
type: "apiKey"
|
|
1233
|
-
}],
|
|
1234
|
-
url: "/v1/collections",
|
|
1235
|
-
...options,
|
|
1236
|
-
headers: {
|
|
1237
|
-
"Content-Type": "application/json",
|
|
1238
|
-
...options.headers
|
|
1239
|
-
}
|
|
1240
|
-
});
|
|
1241
|
-
var deleteCollection = (options) => (options.client ?? client).delete({
|
|
1242
|
-
security: [{
|
|
1243
|
-
in: "cookie",
|
|
1244
|
-
name: "nadeshiko.session_token",
|
|
1245
|
-
type: "apiKey"
|
|
1246
|
-
}],
|
|
1247
|
-
url: "/v1/collections/{id}",
|
|
1248
|
-
...options
|
|
1249
|
-
});
|
|
1250
|
-
var getCollection = (options) => (options.client ?? client).get({
|
|
1251
|
-
security: [{
|
|
1252
|
-
in: "cookie",
|
|
1253
|
-
name: "nadeshiko.session_token",
|
|
1254
|
-
type: "apiKey"
|
|
1255
|
-
}],
|
|
1256
|
-
url: "/v1/collections/{id}",
|
|
1257
|
-
...options
|
|
1258
|
-
});
|
|
1259
|
-
var updateCollection = (options) => (options.client ?? client).patch({
|
|
1260
|
-
security: [{
|
|
1261
|
-
in: "cookie",
|
|
1262
|
-
name: "nadeshiko.session_token",
|
|
1263
|
-
type: "apiKey"
|
|
1264
|
-
}],
|
|
1265
|
-
url: "/v1/collections/{id}",
|
|
1266
|
-
...options,
|
|
1267
|
-
headers: {
|
|
1268
|
-
"Content-Type": "application/json",
|
|
1269
|
-
...options.headers
|
|
1270
|
-
}
|
|
1271
|
-
});
|
|
1272
|
-
var addSegmentToCollection = (options) => (options.client ?? client).post({
|
|
1273
|
-
security: [{
|
|
1274
|
-
in: "cookie",
|
|
1275
|
-
name: "nadeshiko.session_token",
|
|
1276
|
-
type: "apiKey"
|
|
1277
|
-
}],
|
|
1278
|
-
url: "/v1/collections/{id}/segments",
|
|
1279
|
-
...options,
|
|
1280
|
-
headers: {
|
|
1281
|
-
"Content-Type": "application/json",
|
|
1282
|
-
...options.headers
|
|
1283
|
-
}
|
|
1284
|
-
});
|
|
1285
|
-
var removeSegmentFromCollection = (options) => (options.client ?? client).delete({
|
|
1286
|
-
security: [{
|
|
1287
|
-
in: "cookie",
|
|
1288
|
-
name: "nadeshiko.session_token",
|
|
1289
|
-
type: "apiKey"
|
|
1290
|
-
}],
|
|
1291
|
-
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1292
|
-
...options
|
|
1293
|
-
});
|
|
1294
|
-
var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
1295
|
-
security: [{
|
|
1296
|
-
in: "cookie",
|
|
1297
|
-
name: "nadeshiko.session_token",
|
|
1298
|
-
type: "apiKey"
|
|
1299
|
-
}],
|
|
1300
|
-
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1301
|
-
...options,
|
|
1302
|
-
headers: {
|
|
1303
|
-
"Content-Type": "application/json",
|
|
1304
|
-
...options.headers
|
|
1305
|
-
}
|
|
1306
|
-
});
|
|
1307
|
-
var searchCollectionSegments = (options) => (options.client ?? client).get({
|
|
1308
|
-
security: [{
|
|
1309
|
-
in: "cookie",
|
|
1310
|
-
name: "nadeshiko.session_token",
|
|
1311
|
-
type: "apiKey"
|
|
1312
|
-
}],
|
|
1313
|
-
url: "/v1/collections/{id}/search",
|
|
1314
|
-
...options
|
|
1315
|
-
});
|
|
1316
|
-
var getCollectionStats = (options) => (options.client ?? client).get({
|
|
1317
|
-
security: [{
|
|
1318
|
-
in: "cookie",
|
|
1319
|
-
name: "nadeshiko.session_token",
|
|
1320
|
-
type: "apiKey"
|
|
1321
|
-
}],
|
|
1322
|
-
url: "/v1/collections/{id}/stats",
|
|
1323
|
-
...options
|
|
1324
|
-
});
|
|
1325
|
-
var getAdminDashboard = (options) => (options?.client ?? client).get({
|
|
1326
|
-
security: [{
|
|
1327
|
-
in: "cookie",
|
|
1328
|
-
name: "nadeshiko.session_token",
|
|
1329
|
-
type: "apiKey"
|
|
1330
|
-
}],
|
|
1331
|
-
url: "/v1/admin/dashboard",
|
|
1332
|
-
...options
|
|
1333
|
-
});
|
|
1334
|
-
var getAdminDashboardOverview = (options) => (options?.client ?? client).get({
|
|
1335
|
-
security: [{
|
|
1336
|
-
in: "cookie",
|
|
1337
|
-
name: "nadeshiko.session_token",
|
|
1338
|
-
type: "apiKey"
|
|
1339
|
-
}],
|
|
1340
|
-
url: "/v1/admin/dashboard/overview",
|
|
1341
|
-
...options
|
|
1342
|
-
});
|
|
1343
|
-
var getAdminDashboardMedia = (options) => (options?.client ?? client).get({
|
|
1344
|
-
security: [{
|
|
1345
|
-
in: "cookie",
|
|
1346
|
-
name: "nadeshiko.session_token",
|
|
1347
|
-
type: "apiKey"
|
|
1348
|
-
}],
|
|
1349
|
-
url: "/v1/admin/dashboard/media",
|
|
1350
|
-
...options
|
|
1351
|
-
});
|
|
1352
|
-
var getAdminDashboardActivity = (options) => (options?.client ?? client).get({
|
|
1353
|
-
security: [{
|
|
1354
|
-
in: "cookie",
|
|
1355
|
-
name: "nadeshiko.session_token",
|
|
1356
|
-
type: "apiKey"
|
|
1357
|
-
}],
|
|
1358
|
-
url: "/v1/admin/dashboard/activity",
|
|
1359
|
-
...options
|
|
1360
|
-
});
|
|
1361
|
-
var getAdminDashboardCollections = (options) => (options?.client ?? client).get({
|
|
1362
|
-
security: [{
|
|
1363
|
-
in: "cookie",
|
|
1364
|
-
name: "nadeshiko.session_token",
|
|
1365
|
-
type: "apiKey"
|
|
1366
|
-
}],
|
|
1367
|
-
url: "/v1/admin/dashboard/collections",
|
|
1368
|
-
...options
|
|
1369
|
-
});
|
|
1370
|
-
var getAdminDashboardApiKeys = (options) => (options?.client ?? client).get({
|
|
1371
|
-
security: [{
|
|
1372
|
-
in: "cookie",
|
|
1373
|
-
name: "nadeshiko.session_token",
|
|
1374
|
-
type: "apiKey"
|
|
1375
|
-
}],
|
|
1376
|
-
url: "/v1/admin/dashboard/api-keys",
|
|
1377
|
-
...options
|
|
1378
|
-
});
|
|
1379
|
-
var getAdminDashboardSystem = (options) => (options?.client ?? client).get({
|
|
1380
|
-
security: [{
|
|
1381
|
-
in: "cookie",
|
|
1382
|
-
name: "nadeshiko.session_token",
|
|
1383
|
-
type: "apiKey"
|
|
1384
|
-
}],
|
|
1385
|
-
url: "/v1/admin/dashboard/system",
|
|
1386
|
-
...options
|
|
1387
|
-
});
|
|
1388
|
-
var getAdminHealth = (options) => (options?.client ?? client).get({
|
|
1389
|
-
security: [{
|
|
1390
|
-
in: "cookie",
|
|
1391
|
-
name: "nadeshiko.session_token",
|
|
1392
|
-
type: "apiKey"
|
|
1393
|
-
}],
|
|
1394
|
-
url: "/v1/admin/health",
|
|
1395
|
-
...options
|
|
1396
|
-
});
|
|
1397
|
-
var triggerReindex = (options) => (options?.client ?? client).post({
|
|
1398
|
-
security: [{
|
|
1399
|
-
in: "cookie",
|
|
1400
|
-
name: "nadeshiko.session_token",
|
|
1401
|
-
type: "apiKey"
|
|
1402
|
-
}],
|
|
1403
|
-
url: "/v1/admin/reindex",
|
|
1404
|
-
...options,
|
|
1405
|
-
headers: {
|
|
1406
|
-
"Content-Type": "application/json",
|
|
1407
|
-
...options?.headers
|
|
1408
|
-
}
|
|
1409
|
-
});
|
|
1410
|
-
var listAdminQueueStats = (options) => (options?.client ?? client).get({
|
|
1411
|
-
security: [{
|
|
1412
|
-
in: "cookie",
|
|
1413
|
-
name: "nadeshiko.session_token",
|
|
1414
|
-
type: "apiKey"
|
|
1415
|
-
}],
|
|
1416
|
-
url: "/v1/admin/queues/stats",
|
|
1417
|
-
...options
|
|
1418
|
-
});
|
|
1419
|
-
var getAdminQueue = (options) => (options.client ?? client).get({
|
|
1420
|
-
security: [{
|
|
1421
|
-
in: "cookie",
|
|
1422
|
-
name: "nadeshiko.session_token",
|
|
1423
|
-
type: "apiKey"
|
|
1424
|
-
}],
|
|
1425
|
-
url: "/v1/admin/queues/{queueName}",
|
|
1426
|
-
...options
|
|
1427
|
-
});
|
|
1428
|
-
var listAdminQueueFailed = (options) => (options.client ?? client).get({
|
|
1429
|
-
security: [{
|
|
1430
|
-
in: "cookie",
|
|
1431
|
-
name: "nadeshiko.session_token",
|
|
1432
|
-
type: "apiKey"
|
|
1433
|
-
}],
|
|
1434
|
-
url: "/v1/admin/queues/{queueName}/failed",
|
|
1435
|
-
...options
|
|
1436
|
-
});
|
|
1437
|
-
var retryAdminQueueFailed = (options) => (options.client ?? client).post({
|
|
1438
|
-
security: [{
|
|
1439
|
-
in: "cookie",
|
|
1440
|
-
name: "nadeshiko.session_token",
|
|
1441
|
-
type: "apiKey"
|
|
1442
|
-
}],
|
|
1443
|
-
url: "/v1/admin/queues/{queueName}/retry",
|
|
1444
|
-
...options
|
|
1445
|
-
});
|
|
1446
|
-
var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
|
|
1447
|
-
security: [{
|
|
1448
|
-
in: "cookie",
|
|
1449
|
-
name: "nadeshiko.session_token",
|
|
1450
|
-
type: "apiKey"
|
|
1451
|
-
}],
|
|
1452
|
-
url: "/v1/admin/queues/{queueName}/purge",
|
|
1453
|
-
...options
|
|
1454
|
-
});
|
|
1455
|
-
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1456
|
-
security: [{
|
|
1457
|
-
in: "cookie",
|
|
1458
|
-
name: "nadeshiko.session_token",
|
|
1459
|
-
type: "apiKey"
|
|
1460
|
-
}],
|
|
1461
|
-
url: "/v1/admin/reports",
|
|
1462
|
-
...options
|
|
1463
|
-
});
|
|
1464
|
-
var batchUpdateAdminReports = (options) => (options.client ?? client).patch({
|
|
1465
|
-
security: [{
|
|
1466
|
-
in: "cookie",
|
|
1467
|
-
name: "nadeshiko.session_token",
|
|
1468
|
-
type: "apiKey"
|
|
1469
|
-
}],
|
|
1470
|
-
url: "/v1/admin/reports/batch",
|
|
1471
|
-
...options,
|
|
1472
|
-
headers: {
|
|
1473
|
-
"Content-Type": "application/json",
|
|
1474
|
-
...options.headers
|
|
1475
|
-
}
|
|
1476
|
-
});
|
|
1477
|
-
var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
1478
|
-
security: [{
|
|
1479
|
-
in: "cookie",
|
|
1480
|
-
name: "nadeshiko.session_token",
|
|
1481
|
-
type: "apiKey"
|
|
1482
|
-
}],
|
|
1483
|
-
url: "/v1/admin/reports/{id}",
|
|
1484
|
-
...options,
|
|
1485
|
-
headers: {
|
|
1486
|
-
"Content-Type": "application/json",
|
|
1487
|
-
...options.headers
|
|
1488
|
-
}
|
|
1489
|
-
});
|
|
1490
|
-
var listAdminMediaAudits = (options) => (options?.client ?? client).get({
|
|
1491
|
-
security: [{
|
|
1492
|
-
in: "cookie",
|
|
1493
|
-
name: "nadeshiko.session_token",
|
|
1494
|
-
type: "apiKey"
|
|
1495
|
-
}],
|
|
1496
|
-
url: "/v1/admin/media/audits",
|
|
1497
|
-
...options
|
|
1498
|
-
});
|
|
1499
|
-
var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
1500
|
-
security: [{
|
|
1501
|
-
in: "cookie",
|
|
1502
|
-
name: "nadeshiko.session_token",
|
|
1503
|
-
type: "apiKey"
|
|
1504
|
-
}],
|
|
1505
|
-
url: "/v1/admin/media/audits/{name}",
|
|
1506
|
-
...options,
|
|
1507
|
-
headers: {
|
|
1508
|
-
"Content-Type": "application/json",
|
|
1509
|
-
...options.headers
|
|
1510
|
-
}
|
|
1511
|
-
});
|
|
1512
|
-
var runAdminMediaAudit = (options) => (options.client ?? client).post({
|
|
1513
|
-
security: [{
|
|
1514
|
-
in: "cookie",
|
|
1515
|
-
name: "nadeshiko.session_token",
|
|
1516
|
-
type: "apiKey"
|
|
1517
|
-
}],
|
|
1518
|
-
url: "/v1/admin/media/audits/{name}/run",
|
|
1519
|
-
...options
|
|
1520
|
-
});
|
|
1521
|
-
var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
|
|
1522
|
-
security: [{
|
|
1523
|
-
in: "cookie",
|
|
1524
|
-
name: "nadeshiko.session_token",
|
|
1525
|
-
type: "apiKey"
|
|
1526
|
-
}],
|
|
1527
|
-
url: "/v1/admin/media/audits/runs",
|
|
1528
|
-
...options
|
|
1529
|
-
});
|
|
1530
|
-
var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
1531
|
-
security: [{
|
|
1532
|
-
in: "cookie",
|
|
1533
|
-
name: "nadeshiko.session_token",
|
|
1534
|
-
type: "apiKey"
|
|
1535
|
-
}],
|
|
1536
|
-
url: "/v1/admin/media/audits/runs/{id}",
|
|
1537
|
-
...options
|
|
1538
|
-
});
|
|
1539
|
-
var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
|
|
1540
|
-
var updateAnnouncement = (options) => (options.client ?? client).put({
|
|
1541
|
-
security: [{
|
|
1542
|
-
in: "cookie",
|
|
1543
|
-
name: "nadeshiko.session_token",
|
|
1544
|
-
type: "apiKey"
|
|
1545
|
-
}],
|
|
1546
|
-
url: "/v1/admin/announcement",
|
|
1547
|
-
...options,
|
|
1548
|
-
headers: {
|
|
1549
|
-
"Content-Type": "application/json",
|
|
1550
|
-
...options.headers
|
|
1551
|
-
}
|
|
1552
|
-
});
|
|
1553
|
-
// generated/internal/retry.ts
|
|
886
|
+
// generated/public/retry.ts
|
|
1554
887
|
var RETRYABLE_STATUS = new Set([408, 429, 500, 502, 503, 504]);
|
|
1555
888
|
function parseRetryAfter(value) {
|
|
1556
889
|
const seconds = Number(value);
|
|
@@ -1620,7 +953,7 @@ function withRetry(fetchImpl = globalThis.fetch, options = {}) {
|
|
|
1620
953
|
};
|
|
1621
954
|
}
|
|
1622
955
|
|
|
1623
|
-
// generated/
|
|
956
|
+
// generated/public/errors.ts
|
|
1624
957
|
class NadeshikoError extends Error {
|
|
1625
958
|
code;
|
|
1626
959
|
title;
|
|
@@ -1642,19 +975,13 @@ class NadeshikoError extends Error {
|
|
|
1642
975
|
}
|
|
1643
976
|
}
|
|
1644
977
|
|
|
1645
|
-
// generated/
|
|
978
|
+
// generated/public/nadeshiko.gen.ts
|
|
1646
979
|
var environments = {
|
|
1647
980
|
LOCAL: "http://localhost:5000/api",
|
|
1648
981
|
DEVELOPMENT: "https://api-dev.nadeshiko.co",
|
|
1649
982
|
PRODUCTION: "https://api.nadeshiko.co",
|
|
1650
983
|
PROXY: ""
|
|
1651
984
|
};
|
|
1652
|
-
var defaultSessionTokenGetter = () => {
|
|
1653
|
-
if (typeof document === "undefined")
|
|
1654
|
-
return;
|
|
1655
|
-
const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
|
|
1656
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
1657
|
-
};
|
|
1658
985
|
function createNadeshikoClient(config) {
|
|
1659
986
|
const rawBaseUrl = config.baseURL ?? config.baseUrl;
|
|
1660
987
|
const baseUrl = rawBaseUrl === undefined ? environments.PRODUCTION : (rawBaseUrl in environments) ? environments[rawBaseUrl] : rawBaseUrl;
|
|
@@ -1664,16 +991,10 @@ function createNadeshikoClient(config) {
|
|
|
1664
991
|
}
|
|
1665
992
|
return config.apiKey;
|
|
1666
993
|
};
|
|
1667
|
-
const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
|
|
1668
994
|
const clientInstance = createClient(createConfig({
|
|
1669
995
|
baseUrl,
|
|
1670
996
|
fetch: withRetry(globalThis.fetch, config.retryOptions),
|
|
1671
|
-
auth: (
|
|
1672
|
-
if (auth.in === "cookie") {
|
|
1673
|
-
return getSessionToken();
|
|
1674
|
-
}
|
|
1675
|
-
return getApiKey();
|
|
1676
|
-
}
|
|
997
|
+
auth: () => getApiKey()
|
|
1677
998
|
}));
|
|
1678
999
|
clientInstance.interceptors.error.use((error) => {
|
|
1679
1000
|
if (error && typeof error === "object" && "code" in error && typeof error.code === "string") {
|
|
@@ -1688,7 +1009,6 @@ function createNadeshikoClient(config) {
|
|
|
1688
1009
|
searchWords: (options) => searchWords({ throwOnError: true, ...options, client: clientInstance }),
|
|
1689
1010
|
getStatsOverview: (options) => getStatsOverview({ throwOnError: true, ...options, client: clientInstance }),
|
|
1690
1011
|
getCoveredWords: (options) => getCoveredWords({ throwOnError: true, ...options, client: clientInstance }),
|
|
1691
|
-
triggerCoveredWordsUpdate: (options) => triggerCoveredWordsUpdate({ throwOnError: true, ...options, client: clientInstance }),
|
|
1692
1012
|
listMedia: (options) => listMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1693
1013
|
getSegmentByUuid: (options) => getSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
|
|
1694
1014
|
getSegmentContext: (options) => getSegmentContext({ throwOnError: true, ...options, client: clientInstance }),
|
|
@@ -1697,168 +1017,10 @@ function createNadeshikoClient(config) {
|
|
|
1697
1017
|
getMedia: (options) => getMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1698
1018
|
listEpisodes: (options) => listEpisodes({ throwOnError: true, ...options, client: clientInstance }),
|
|
1699
1019
|
getEpisode: (options) => getEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1700
|
-
getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance })
|
|
1701
|
-
createMedia: (options) => createMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1702
|
-
autocompleteMedia: (options) => autocompleteMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1703
|
-
updateSegmentByUuid: (options) => updateSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
|
|
1704
|
-
listSegmentRevisions: (options) => listSegmentRevisions({ throwOnError: true, ...options, client: clientInstance }),
|
|
1705
|
-
createSeries: (options) => createSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1706
|
-
updateSeries: (options) => updateSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1707
|
-
deleteSeries: (options) => deleteSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1708
|
-
addMediaToSeries: (options) => addMediaToSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1709
|
-
updateSeriesMedia: (options) => updateSeriesMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1710
|
-
removeMediaFromSeries: (options) => removeMediaFromSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1711
|
-
getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
|
|
1712
|
-
getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
|
|
1713
|
-
updateMedia: (options) => updateMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1714
|
-
deleteMedia: (options) => deleteMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1715
|
-
createEpisode: (options) => createEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1716
|
-
updateEpisode: (options) => updateEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1717
|
-
deleteEpisode: (options) => deleteEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1718
|
-
listSegments: (options) => listSegments({ throwOnError: true, ...options, client: clientInstance }),
|
|
1719
|
-
createSegment: (options) => createSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1720
|
-
createSegmentsBatch: (options) => createSegmentsBatch({ throwOnError: true, ...options, client: clientInstance }),
|
|
1721
|
-
updateSegment: (options) => updateSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1722
|
-
deleteSegment: (options) => deleteSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1723
|
-
getUserQuota: (options) => getUserQuota({ throwOnError: true, ...options, client: clientInstance }),
|
|
1724
|
-
createUserReport: (options) => createUserReport({ throwOnError: true, ...options, client: clientInstance }),
|
|
1725
|
-
getUserPreferences: (options) => getUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
|
|
1726
|
-
updateUserPreferences: (options) => updateUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
|
|
1727
|
-
listUserActivity: (options) => listUserActivity({ throwOnError: true, ...options, client: clientInstance }),
|
|
1728
|
-
trackUserActivity: (options) => trackUserActivity({ throwOnError: true, ...options, client: clientInstance }),
|
|
1729
|
-
deleteUserActivity: (options) => deleteUserActivity({ throwOnError: true, ...options, client: clientInstance }),
|
|
1730
|
-
getUserActivityHeatmap: (options) => getUserActivityHeatmap({ throwOnError: true, ...options, client: clientInstance }),
|
|
1731
|
-
getUserActivityStats: (options) => getUserActivityStats({ throwOnError: true, ...options, client: clientInstance }),
|
|
1732
|
-
deleteUserActivityByDate: (options) => deleteUserActivityByDate({ throwOnError: true, ...options, client: clientInstance }),
|
|
1733
|
-
deleteUserActivityById: (options) => deleteUserActivityById({ throwOnError: true, ...options, client: clientInstance }),
|
|
1734
|
-
exportUserData: (options) => exportUserData({ throwOnError: true, ...options, client: clientInstance }),
|
|
1735
|
-
listUserLabs: (options) => listUserLabs({ throwOnError: true, ...options, client: clientInstance }),
|
|
1736
|
-
enrollUserLab: (options) => enrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
|
|
1737
|
-
unenrollUserLab: (options) => unenrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
|
|
1738
|
-
listCollections: (options) => listCollections({ throwOnError: true, ...options, client: clientInstance }),
|
|
1739
|
-
createCollection: (options) => createCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1740
|
-
getCollection: (options) => getCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1741
|
-
updateCollection: (options) => updateCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1742
|
-
deleteCollection: (options) => deleteCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1743
|
-
addSegmentToCollection: (options) => addSegmentToCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1744
|
-
updateCollectionSegment: (options) => updateCollectionSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1745
|
-
removeSegmentFromCollection: (options) => removeSegmentFromCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1746
|
-
searchCollectionSegments: (options) => searchCollectionSegments({ throwOnError: true, ...options, client: clientInstance }),
|
|
1747
|
-
getCollectionStats: (options) => getCollectionStats({ throwOnError: true, ...options, client: clientInstance }),
|
|
1748
|
-
getAdminDashboard: (options) => getAdminDashboard({ throwOnError: true, ...options, client: clientInstance }),
|
|
1749
|
-
getAdminDashboardOverview: (options) => getAdminDashboardOverview({ throwOnError: true, ...options, client: clientInstance }),
|
|
1750
|
-
getAdminDashboardMedia: (options) => getAdminDashboardMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1751
|
-
getAdminDashboardActivity: (options) => getAdminDashboardActivity({ throwOnError: true, ...options, client: clientInstance }),
|
|
1752
|
-
getAdminDashboardCollections: (options) => getAdminDashboardCollections({ throwOnError: true, ...options, client: clientInstance }),
|
|
1753
|
-
getAdminDashboardApiKeys: (options) => getAdminDashboardApiKeys({ throwOnError: true, ...options, client: clientInstance }),
|
|
1754
|
-
getAdminDashboardSystem: (options) => getAdminDashboardSystem({ throwOnError: true, ...options, client: clientInstance }),
|
|
1755
|
-
getAdminHealth: (options) => getAdminHealth({ throwOnError: true, ...options, client: clientInstance }),
|
|
1756
|
-
triggerReindex: (options) => triggerReindex({ throwOnError: true, ...options, client: clientInstance }),
|
|
1757
|
-
listAdminQueueStats: (options) => listAdminQueueStats({ throwOnError: true, ...options, client: clientInstance }),
|
|
1758
|
-
getAdminQueue: (options) => getAdminQueue({ throwOnError: true, ...options, client: clientInstance }),
|
|
1759
|
-
listAdminQueueFailed: (options) => listAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
|
|
1760
|
-
retryAdminQueueFailed: (options) => retryAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
|
|
1761
|
-
purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
|
|
1762
|
-
listAdminReports: (options) => listAdminReports({ throwOnError: true, ...options, client: clientInstance }),
|
|
1763
|
-
batchUpdateAdminReports: (options) => batchUpdateAdminReports({ throwOnError: true, ...options, client: clientInstance }),
|
|
1764
|
-
updateAdminReport: (options) => updateAdminReport({ throwOnError: true, ...options, client: clientInstance }),
|
|
1765
|
-
listAdminMediaAudits: (options) => listAdminMediaAudits({ throwOnError: true, ...options, client: clientInstance }),
|
|
1766
|
-
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
|
|
1767
|
-
runAdminMediaAudit: (options) => runAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
|
|
1768
|
-
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ throwOnError: true, ...options, client: clientInstance }),
|
|
1769
|
-
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ throwOnError: true, ...options, client: clientInstance }),
|
|
1770
|
-
getAnnouncement: (options) => getAnnouncement({ throwOnError: true, ...options, client: clientInstance }),
|
|
1771
|
-
updateAnnouncement: (options) => updateAnnouncement({ throwOnError: true, ...options, client: clientInstance })
|
|
1020
|
+
getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance })
|
|
1772
1021
|
};
|
|
1773
1022
|
}
|
|
1774
|
-
// generated/
|
|
1775
|
-
var exports_media_gen = {};
|
|
1776
|
-
__export(exports_media_gen, {
|
|
1777
|
-
updateSeriesMedia: () => updateSeriesMedia,
|
|
1778
|
-
updateSeries: () => updateSeries,
|
|
1779
|
-
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
1780
|
-
updateSegment: () => updateSegment,
|
|
1781
|
-
updateMedia: () => updateMedia,
|
|
1782
|
-
updateEpisode: () => updateEpisode,
|
|
1783
|
-
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
1784
|
-
listSegments: () => listSegments,
|
|
1785
|
-
listSegmentRevisions: () => listSegmentRevisions,
|
|
1786
|
-
getSeiyuu: () => getSeiyuu,
|
|
1787
|
-
getCharacter: () => getCharacter,
|
|
1788
|
-
deleteSeries: () => deleteSeries,
|
|
1789
|
-
deleteSegment: () => deleteSegment,
|
|
1790
|
-
deleteMedia: () => deleteMedia,
|
|
1791
|
-
deleteEpisode: () => deleteEpisode,
|
|
1792
|
-
createSeries: () => createSeries,
|
|
1793
|
-
createSegmentsBatch: () => createSegmentsBatch,
|
|
1794
|
-
createSegment: () => createSegment,
|
|
1795
|
-
createMedia: () => createMedia,
|
|
1796
|
-
createEpisode: () => createEpisode,
|
|
1797
|
-
autocompleteMedia: () => autocompleteMedia,
|
|
1798
|
-
addMediaToSeries: () => addMediaToSeries
|
|
1799
|
-
});
|
|
1800
|
-
// generated/internal/internal/user.gen.ts
|
|
1801
|
-
var exports_user_gen = {};
|
|
1802
|
-
__export(exports_user_gen, {
|
|
1803
|
-
updateUserPreferences: () => updateUserPreferences,
|
|
1804
|
-
unenrollUserLab: () => unenrollUserLab,
|
|
1805
|
-
trackUserActivity: () => trackUserActivity,
|
|
1806
|
-
listUserLabs: () => listUserLabs,
|
|
1807
|
-
listUserActivity: () => listUserActivity,
|
|
1808
|
-
getUserQuota: () => getUserQuota,
|
|
1809
|
-
getUserPreferences: () => getUserPreferences,
|
|
1810
|
-
getUserActivityStats: () => getUserActivityStats,
|
|
1811
|
-
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
1812
|
-
exportUserData: () => exportUserData,
|
|
1813
|
-
enrollUserLab: () => enrollUserLab,
|
|
1814
|
-
deleteUserActivityById: () => deleteUserActivityById,
|
|
1815
|
-
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
1816
|
-
deleteUserActivity: () => deleteUserActivity,
|
|
1817
|
-
createUserReport: () => createUserReport
|
|
1818
|
-
});
|
|
1819
|
-
// generated/internal/internal/collections.gen.ts
|
|
1820
|
-
var exports_collections_gen = {};
|
|
1821
|
-
__export(exports_collections_gen, {
|
|
1822
|
-
updateCollectionSegment: () => updateCollectionSegment,
|
|
1823
|
-
updateCollection: () => updateCollection,
|
|
1824
|
-
searchCollectionSegments: () => searchCollectionSegments,
|
|
1825
|
-
removeSegmentFromCollection: () => removeSegmentFromCollection,
|
|
1826
|
-
listCollections: () => listCollections,
|
|
1827
|
-
getCollectionStats: () => getCollectionStats,
|
|
1828
|
-
getCollection: () => getCollection,
|
|
1829
|
-
deleteCollection: () => deleteCollection,
|
|
1830
|
-
createCollection: () => createCollection,
|
|
1831
|
-
addSegmentToCollection: () => addSegmentToCollection
|
|
1832
|
-
});
|
|
1833
|
-
// generated/internal/internal/admin.gen.ts
|
|
1834
|
-
var exports_admin_gen = {};
|
|
1835
|
-
__export(exports_admin_gen, {
|
|
1836
|
-
updateAnnouncement: () => updateAnnouncement,
|
|
1837
|
-
updateAdminReport: () => updateAdminReport,
|
|
1838
|
-
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
1839
|
-
triggerReindex: () => triggerReindex,
|
|
1840
|
-
runAdminMediaAudit: () => runAdminMediaAudit,
|
|
1841
|
-
retryAdminQueueFailed: () => retryAdminQueueFailed,
|
|
1842
|
-
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
1843
|
-
listAdminReports: () => listAdminReports,
|
|
1844
|
-
listAdminQueueStats: () => listAdminQueueStats,
|
|
1845
|
-
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
1846
|
-
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
1847
|
-
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
1848
|
-
getAnnouncement: () => getAnnouncement,
|
|
1849
|
-
getAdminQueue: () => getAdminQueue,
|
|
1850
|
-
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
1851
|
-
getAdminHealth: () => getAdminHealth,
|
|
1852
|
-
getAdminDashboardSystem: () => getAdminDashboardSystem,
|
|
1853
|
-
getAdminDashboardOverview: () => getAdminDashboardOverview,
|
|
1854
|
-
getAdminDashboardMedia: () => getAdminDashboardMedia,
|
|
1855
|
-
getAdminDashboardCollections: () => getAdminDashboardCollections,
|
|
1856
|
-
getAdminDashboardApiKeys: () => getAdminDashboardApiKeys,
|
|
1857
|
-
getAdminDashboardActivity: () => getAdminDashboardActivity,
|
|
1858
|
-
getAdminDashboard: () => getAdminDashboard,
|
|
1859
|
-
batchUpdateAdminReports: () => batchUpdateAdminReports
|
|
1860
|
-
});
|
|
1861
|
-
// generated/internal/paginate.ts
|
|
1023
|
+
// generated/public/paginate.ts
|
|
1862
1024
|
async function* paginate(fn, options, extract) {
|
|
1863
1025
|
let cursor = null;
|
|
1864
1026
|
let first = true;
|
|
@@ -1889,53 +1051,14 @@ function patchCursor(options, cursor) {
|
|
|
1889
1051
|
}
|
|
1890
1052
|
export {
|
|
1891
1053
|
withRetry,
|
|
1892
|
-
exports_user_gen as user,
|
|
1893
|
-
updateUserPreferences,
|
|
1894
|
-
updateSeriesMedia,
|
|
1895
|
-
updateSeries,
|
|
1896
|
-
updateSegmentByUuid,
|
|
1897
|
-
updateSegment,
|
|
1898
|
-
updateMedia,
|
|
1899
|
-
updateEpisode,
|
|
1900
|
-
updateCollectionSegment,
|
|
1901
|
-
updateCollection,
|
|
1902
|
-
updateAnnouncement,
|
|
1903
|
-
updateAdminReport,
|
|
1904
|
-
updateAdminMediaAudit,
|
|
1905
|
-
unenrollUserLab,
|
|
1906
|
-
triggerReindex,
|
|
1907
|
-
triggerCoveredWordsUpdate,
|
|
1908
|
-
trackUserActivity,
|
|
1909
1054
|
searchWords,
|
|
1910
|
-
searchCollectionSegments,
|
|
1911
1055
|
search,
|
|
1912
|
-
runAdminMediaAudit,
|
|
1913
|
-
retryAdminQueueFailed,
|
|
1914
|
-
removeSegmentFromCollection,
|
|
1915
|
-
removeMediaFromSeries,
|
|
1916
|
-
purgeAdminQueueFailed,
|
|
1917
1056
|
paginate,
|
|
1918
|
-
exports_media_gen as media,
|
|
1919
|
-
listUserLabs,
|
|
1920
|
-
listUserActivity,
|
|
1921
1057
|
listSeries,
|
|
1922
|
-
listSegments,
|
|
1923
|
-
listSegmentRevisions,
|
|
1924
1058
|
listMedia,
|
|
1925
1059
|
listEpisodes,
|
|
1926
|
-
listCollections,
|
|
1927
|
-
listAdminReports,
|
|
1928
|
-
listAdminQueueStats,
|
|
1929
|
-
listAdminQueueFailed,
|
|
1930
|
-
listAdminMediaAudits,
|
|
1931
|
-
listAdminMediaAuditRuns,
|
|
1932
|
-
getUserQuota,
|
|
1933
|
-
getUserPreferences,
|
|
1934
|
-
getUserActivityStats,
|
|
1935
|
-
getUserActivityHeatmap,
|
|
1936
1060
|
getStatsOverview,
|
|
1937
1061
|
getSeries,
|
|
1938
|
-
getSeiyuu,
|
|
1939
1062
|
getSegmentContext,
|
|
1940
1063
|
getSegmentByUuid,
|
|
1941
1064
|
getSegment,
|
|
@@ -1943,47 +1066,10 @@ export {
|
|
|
1943
1066
|
getMedia,
|
|
1944
1067
|
getEpisode,
|
|
1945
1068
|
getCoveredWords,
|
|
1946
|
-
getCollectionStats,
|
|
1947
|
-
getCollection,
|
|
1948
|
-
getCharacter,
|
|
1949
|
-
getAnnouncement,
|
|
1950
|
-
getAdminQueue,
|
|
1951
|
-
getAdminMediaAuditRun,
|
|
1952
|
-
getAdminHealth,
|
|
1953
|
-
getAdminDashboardSystem,
|
|
1954
|
-
getAdminDashboardOverview,
|
|
1955
|
-
getAdminDashboardMedia,
|
|
1956
|
-
getAdminDashboardCollections,
|
|
1957
|
-
getAdminDashboardApiKeys,
|
|
1958
|
-
getAdminDashboardActivity,
|
|
1959
|
-
getAdminDashboard,
|
|
1960
|
-
exportUserData,
|
|
1961
|
-
enrollUserLab,
|
|
1962
|
-
deleteUserActivityById,
|
|
1963
|
-
deleteUserActivityByDate,
|
|
1964
|
-
deleteUserActivity,
|
|
1965
|
-
deleteSeries,
|
|
1966
|
-
deleteSegment,
|
|
1967
|
-
deleteMedia,
|
|
1968
|
-
deleteEpisode,
|
|
1969
|
-
deleteCollection,
|
|
1970
|
-
createUserReport,
|
|
1971
|
-
createSeries,
|
|
1972
|
-
createSegmentsBatch,
|
|
1973
|
-
createSegment,
|
|
1974
1069
|
createNadeshikoClient,
|
|
1975
|
-
createMedia,
|
|
1976
|
-
createEpisode,
|
|
1977
|
-
createCollection,
|
|
1978
|
-
exports_collections_gen as collections,
|
|
1979
1070
|
client,
|
|
1980
|
-
batchUpdateAdminReports,
|
|
1981
|
-
autocompleteMedia,
|
|
1982
|
-
exports_admin_gen as admin,
|
|
1983
|
-
addSegmentToCollection,
|
|
1984
|
-
addMediaToSeries,
|
|
1985
1071
|
NadeshikoError
|
|
1986
1072
|
};
|
|
1987
1073
|
|
|
1988
|
-
//# debugId=
|
|
1074
|
+
//# debugId=3E16A701656D0CBF64756E2164756E21
|
|
1989
1075
|
//# sourceMappingURL=index.js.map
|