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