@brigadasos/nadeshiko-sdk 1.4.3-dev.e5c01f0 → 1.5.0-dev.66d279f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -14
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/index.cjs +387 -202
- package/dist/index.cjs.map +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +374 -195
- package/dist/index.js.map +5 -5
- package/dist/internal/admin.gen.d.ts +1 -1
- package/dist/internal/admin.gen.d.ts.map +1 -1
- 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 +1 -1
- package/dist/internal/media.gen.d.ts.map +1 -1
- package/dist/internal/user.gen.d.ts +1 -1
- package/dist/internal/user.gen.d.ts.map +1 -1
- package/dist/internal.gen.d.ts +1 -0
- package/dist/internal.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +49 -40
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +223 -143
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +1548 -1306
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2,27 +2,37 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
|
|
5
|
+
function __accessProp(key) {
|
|
6
|
+
return this[key];
|
|
7
|
+
}
|
|
6
8
|
var __toCommonJS = (from) => {
|
|
7
|
-
var entry = __moduleCache.get(from), desc;
|
|
9
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
8
10
|
if (entry)
|
|
9
11
|
return entry;
|
|
10
12
|
entry = __defProp({}, "__esModule", { value: true });
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (var key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(entry, key))
|
|
16
|
+
__defProp(entry, key, {
|
|
17
|
+
get: __accessProp.bind(from, key),
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
16
21
|
__moduleCache.set(from, entry);
|
|
17
22
|
return entry;
|
|
18
23
|
};
|
|
24
|
+
var __moduleCache;
|
|
25
|
+
var __returnValue = (v) => v;
|
|
26
|
+
function __exportSetter(name, newValue) {
|
|
27
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
28
|
+
}
|
|
19
29
|
var __export = (target, all) => {
|
|
20
30
|
for (var name in all)
|
|
21
31
|
__defProp(target, name, {
|
|
22
32
|
get: all[name],
|
|
23
33
|
enumerable: true,
|
|
24
34
|
configurable: true,
|
|
25
|
-
set: (
|
|
35
|
+
set: __exportSetter.bind(all, name)
|
|
26
36
|
});
|
|
27
37
|
};
|
|
28
38
|
|
|
@@ -33,23 +43,26 @@ __export(exports_dev, {
|
|
|
33
43
|
updateUserPreferences: () => updateUserPreferences,
|
|
34
44
|
updateSeriesMedia: () => updateSeriesMedia,
|
|
35
45
|
updateSeries: () => updateSeries,
|
|
46
|
+
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
36
47
|
updateSegment: () => updateSegment,
|
|
37
48
|
updateMedia: () => updateMedia,
|
|
38
49
|
updateEpisode: () => updateEpisode,
|
|
39
50
|
updateCollectionSegment: () => updateCollectionSegment,
|
|
40
51
|
updateCollection: () => updateCollection,
|
|
41
|
-
updateAdminReviewCheck: () => updateAdminReviewCheck,
|
|
42
52
|
updateAdminReport: () => updateAdminReport,
|
|
53
|
+
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
54
|
+
unenrollUserLab: () => unenrollUserLab,
|
|
43
55
|
triggerReindex: () => triggerReindex,
|
|
56
|
+
trackUserActivity: () => trackUserActivity,
|
|
44
57
|
searchWords: () => searchWords,
|
|
58
|
+
searchCollectionSegments: () => searchCollectionSegments,
|
|
45
59
|
search: () => search,
|
|
46
|
-
|
|
60
|
+
runAdminMediaAudit: () => runAdminMediaAudit,
|
|
47
61
|
retryAdminQueueFailed: () => retryAdminQueueFailed,
|
|
48
62
|
removeSegmentFromCollection: () => removeSegmentFromCollection,
|
|
49
63
|
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
50
64
|
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
51
65
|
media: () => exports_media_gen,
|
|
52
|
-
listUserReports: () => listUserReports,
|
|
53
66
|
listUserLabs: () => listUserLabs,
|
|
54
67
|
listUserActivity: () => listUserActivity,
|
|
55
68
|
listSeries: () => listSeries,
|
|
@@ -57,12 +70,12 @@ __export(exports_dev, {
|
|
|
57
70
|
listMedia: () => listMedia,
|
|
58
71
|
listEpisodes: () => listEpisodes,
|
|
59
72
|
listCollections: () => listCollections,
|
|
60
|
-
listAdminReviewRuns: () => listAdminReviewRuns,
|
|
61
|
-
listAdminReviewChecks: () => listAdminReviewChecks,
|
|
62
|
-
listAdminReviewAllowlist: () => listAdminReviewAllowlist,
|
|
63
73
|
listAdminReports: () => listAdminReports,
|
|
64
74
|
listAdminQueueStats: () => listAdminQueueStats,
|
|
65
75
|
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
76
|
+
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
77
|
+
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
78
|
+
impersonateAdminUser: () => impersonateAdminUser,
|
|
66
79
|
getUserQuota: () => getUserQuota,
|
|
67
80
|
getUserPreferences: () => getUserPreferences,
|
|
68
81
|
getUserActivityStats: () => getUserActivityStats,
|
|
@@ -75,29 +88,34 @@ __export(exports_dev, {
|
|
|
75
88
|
getSearchStats: () => getSearchStats,
|
|
76
89
|
getMedia: () => getMedia,
|
|
77
90
|
getEpisode: () => getEpisode,
|
|
91
|
+
getCollectionStats: () => getCollectionStats,
|
|
78
92
|
getCollection: () => getCollection,
|
|
79
93
|
getCharacter: () => getCharacter,
|
|
80
|
-
getAdminReviewRun: () => getAdminReviewRun,
|
|
81
94
|
getAdminQueue: () => getAdminQueue,
|
|
95
|
+
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
82
96
|
getAdminHealth: () => getAdminHealth,
|
|
83
97
|
getAdminDashboard: () => getAdminDashboard,
|
|
84
98
|
exportUserData: () => exportUserData,
|
|
99
|
+
enrollUserLab: () => enrollUserLab,
|
|
100
|
+
deleteUserActivityById: () => deleteUserActivityById,
|
|
101
|
+
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
85
102
|
deleteUserActivity: () => deleteUserActivity,
|
|
86
103
|
deleteSeries: () => deleteSeries,
|
|
87
104
|
deleteSegment: () => deleteSegment,
|
|
88
105
|
deleteMedia: () => deleteMedia,
|
|
89
106
|
deleteEpisode: () => deleteEpisode,
|
|
90
107
|
deleteCollection: () => deleteCollection,
|
|
91
|
-
deleteAdminReviewAllowlistEntry: () => deleteAdminReviewAllowlistEntry,
|
|
92
108
|
createUserReport: () => createUserReport,
|
|
93
109
|
createSeries: () => createSeries,
|
|
110
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
94
111
|
createSegment: () => createSegment,
|
|
95
112
|
createNadeshikoClient: () => createNadeshikoClient,
|
|
96
113
|
createMedia: () => createMedia,
|
|
97
114
|
createEpisode: () => createEpisode,
|
|
98
115
|
createCollection: () => createCollection,
|
|
99
|
-
|
|
116
|
+
collections: () => exports_collections_gen,
|
|
100
117
|
client: () => client,
|
|
118
|
+
clearAdminImpersonation: () => clearAdminImpersonation,
|
|
101
119
|
autocompleteMedia: () => autocompleteMedia,
|
|
102
120
|
admin: () => exports_admin_gen,
|
|
103
121
|
addSegmentToCollection: () => addSegmentToCollection,
|
|
@@ -905,15 +923,11 @@ var createClient = (config = {}) => {
|
|
|
905
923
|
};
|
|
906
924
|
};
|
|
907
925
|
// generated/dev/client.gen.ts
|
|
908
|
-
var client = createClient(createConfig({ baseUrl: "
|
|
926
|
+
var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
|
|
909
927
|
|
|
910
928
|
// generated/dev/sdk.gen.ts
|
|
911
929
|
var search = (options) => (options?.client ?? client).post({
|
|
912
|
-
security: [{ scheme: "bearer", type: "http" },
|
|
913
|
-
in: "cookie",
|
|
914
|
-
name: "nadeshiko.session_token",
|
|
915
|
-
type: "apiKey"
|
|
916
|
-
}],
|
|
930
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
917
931
|
url: "/v1/search",
|
|
918
932
|
...options,
|
|
919
933
|
headers: {
|
|
@@ -922,11 +936,7 @@ var search = (options) => (options?.client ?? client).post({
|
|
|
922
936
|
}
|
|
923
937
|
});
|
|
924
938
|
var getSearchStats = (options) => (options?.client ?? client).post({
|
|
925
|
-
security: [{ scheme: "bearer", type: "http" },
|
|
926
|
-
in: "cookie",
|
|
927
|
-
name: "nadeshiko.session_token",
|
|
928
|
-
type: "apiKey"
|
|
929
|
-
}],
|
|
939
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
930
940
|
url: "/v1/search/stats",
|
|
931
941
|
...options,
|
|
932
942
|
headers: {
|
|
@@ -935,11 +945,7 @@ var getSearchStats = (options) => (options?.client ?? client).post({
|
|
|
935
945
|
}
|
|
936
946
|
});
|
|
937
947
|
var searchWords = (options) => (options.client ?? client).post({
|
|
938
|
-
security: [{ scheme: "bearer", type: "http" },
|
|
939
|
-
in: "cookie",
|
|
940
|
-
name: "nadeshiko.session_token",
|
|
941
|
-
type: "apiKey"
|
|
942
|
-
}],
|
|
948
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
943
949
|
url: "/v1/search/words",
|
|
944
950
|
...options,
|
|
945
951
|
headers: {
|
|
@@ -966,191 +972,204 @@ var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
|
966
972
|
url: "/v1/media/autocomplete",
|
|
967
973
|
...options
|
|
968
974
|
});
|
|
969
|
-
var
|
|
970
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
url: "/v1/media/{id}",
|
|
975
|
+
var getSegmentByUuid = (options) => (options.client ?? client).get({
|
|
976
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
977
|
+
in: "cookie",
|
|
978
|
+
name: "nadeshiko.session_token",
|
|
979
|
+
type: "apiKey"
|
|
980
|
+
}],
|
|
981
|
+
url: "/v1/media/segments/{uuid}",
|
|
977
982
|
...options
|
|
978
983
|
});
|
|
979
|
-
var
|
|
980
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
981
|
-
|
|
984
|
+
var updateSegmentByUuid = (options) => (options.client ?? client).patch({
|
|
985
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
986
|
+
in: "cookie",
|
|
987
|
+
name: "nadeshiko.session_token",
|
|
988
|
+
type: "apiKey"
|
|
989
|
+
}],
|
|
990
|
+
url: "/v1/media/segments/{uuid}",
|
|
982
991
|
...options,
|
|
983
992
|
headers: {
|
|
984
993
|
"Content-Type": "application/json",
|
|
985
994
|
...options.headers
|
|
986
995
|
}
|
|
987
996
|
});
|
|
988
|
-
var
|
|
997
|
+
var getSegmentContext = (options) => (options.client ?? client).get({
|
|
998
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
999
|
+
in: "cookie",
|
|
1000
|
+
name: "nadeshiko.session_token",
|
|
1001
|
+
type: "apiKey"
|
|
1002
|
+
}],
|
|
1003
|
+
url: "/v1/media/segments/{uuid}/context",
|
|
1004
|
+
...options
|
|
1005
|
+
});
|
|
1006
|
+
var listSeries = (options) => (options?.client ?? client).get({
|
|
989
1007
|
security: [{ scheme: "bearer", type: "http" }],
|
|
990
|
-
url: "/v1/media/
|
|
1008
|
+
url: "/v1/media/series",
|
|
991
1009
|
...options
|
|
992
1010
|
});
|
|
993
|
-
var
|
|
1011
|
+
var createSeries = (options) => (options.client ?? client).post({
|
|
994
1012
|
security: [{ scheme: "bearer", type: "http" }],
|
|
995
|
-
url: "/v1/media/
|
|
1013
|
+
url: "/v1/media/series",
|
|
996
1014
|
...options,
|
|
997
1015
|
headers: {
|
|
998
1016
|
"Content-Type": "application/json",
|
|
999
1017
|
...options.headers
|
|
1000
1018
|
}
|
|
1001
1019
|
});
|
|
1002
|
-
var
|
|
1020
|
+
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
1003
1021
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1004
|
-
url: "/v1/media/
|
|
1022
|
+
url: "/v1/media/series/{id}",
|
|
1005
1023
|
...options
|
|
1006
1024
|
});
|
|
1007
|
-
var
|
|
1025
|
+
var getSeries = (options) => (options.client ?? client).get({
|
|
1008
1026
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1009
|
-
url: "/v1/media/
|
|
1027
|
+
url: "/v1/media/series/{id}",
|
|
1010
1028
|
...options
|
|
1011
1029
|
});
|
|
1012
|
-
var
|
|
1030
|
+
var updateSeries = (options) => (options.client ?? client).patch({
|
|
1013
1031
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1014
|
-
url: "/v1/media/
|
|
1032
|
+
url: "/v1/media/series/{id}",
|
|
1015
1033
|
...options,
|
|
1016
1034
|
headers: {
|
|
1017
1035
|
"Content-Type": "application/json",
|
|
1018
1036
|
...options.headers
|
|
1019
1037
|
}
|
|
1020
1038
|
});
|
|
1021
|
-
var
|
|
1022
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1023
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1024
|
-
...options
|
|
1025
|
-
});
|
|
1026
|
-
var createSegment = (options) => (options.client ?? client).post({
|
|
1039
|
+
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
1027
1040
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1028
|
-
url: "/v1/media/
|
|
1041
|
+
url: "/v1/media/series/{id}/media",
|
|
1029
1042
|
...options,
|
|
1030
1043
|
headers: {
|
|
1031
1044
|
"Content-Type": "application/json",
|
|
1032
1045
|
...options.headers
|
|
1033
1046
|
}
|
|
1034
1047
|
});
|
|
1035
|
-
var
|
|
1036
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1037
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1038
|
-
...options
|
|
1039
|
-
});
|
|
1040
|
-
var getSegment = (options) => (options.client ?? client).get({
|
|
1048
|
+
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
1041
1049
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1042
|
-
url: "/v1/media/
|
|
1050
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1043
1051
|
...options
|
|
1044
1052
|
});
|
|
1045
|
-
var
|
|
1053
|
+
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
1046
1054
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1047
|
-
url: "/v1/media/
|
|
1055
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1048
1056
|
...options,
|
|
1049
1057
|
headers: {
|
|
1050
1058
|
"Content-Type": "application/json",
|
|
1051
1059
|
...options.headers
|
|
1052
1060
|
}
|
|
1053
1061
|
});
|
|
1054
|
-
var
|
|
1062
|
+
var getCharacter = (options) => (options.client ?? client).get({
|
|
1055
1063
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1056
|
-
url: "/v1/media/
|
|
1064
|
+
url: "/v1/media/characters/{id}",
|
|
1057
1065
|
...options
|
|
1058
1066
|
});
|
|
1059
|
-
var
|
|
1067
|
+
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
1060
1068
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1061
|
-
url: "/v1/media/
|
|
1069
|
+
url: "/v1/media/seiyuu/{id}",
|
|
1062
1070
|
...options
|
|
1063
1071
|
});
|
|
1064
|
-
var
|
|
1065
|
-
security: [{ scheme: "bearer", type: "http" },
|
|
1066
|
-
|
|
1067
|
-
name: "nadeshiko.session_token",
|
|
1068
|
-
type: "apiKey"
|
|
1069
|
-
}],
|
|
1070
|
-
url: "/v1/media/series",
|
|
1072
|
+
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
1073
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1074
|
+
url: "/v1/media/{id}",
|
|
1071
1075
|
...options
|
|
1072
1076
|
});
|
|
1073
|
-
var
|
|
1077
|
+
var getMedia = (options) => (options.client ?? client).get({
|
|
1074
1078
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1075
|
-
url: "/v1/media/
|
|
1079
|
+
url: "/v1/media/{id}",
|
|
1080
|
+
...options
|
|
1081
|
+
});
|
|
1082
|
+
var updateMedia = (options) => (options.client ?? client).patch({
|
|
1083
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1084
|
+
url: "/v1/media/{id}",
|
|
1076
1085
|
...options,
|
|
1077
1086
|
headers: {
|
|
1078
1087
|
"Content-Type": "application/json",
|
|
1079
1088
|
...options.headers
|
|
1080
1089
|
}
|
|
1081
1090
|
});
|
|
1082
|
-
var
|
|
1091
|
+
var listEpisodes = (options) => (options.client ?? client).get({
|
|
1083
1092
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1084
|
-
url: "/v1/media/
|
|
1085
|
-
...options
|
|
1086
|
-
});
|
|
1087
|
-
var getSeries = (options) => (options.client ?? client).get({
|
|
1088
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1089
|
-
in: "cookie",
|
|
1090
|
-
name: "nadeshiko.session_token",
|
|
1091
|
-
type: "apiKey"
|
|
1092
|
-
}],
|
|
1093
|
-
url: "/v1/media/series/{id}",
|
|
1093
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
1094
1094
|
...options
|
|
1095
1095
|
});
|
|
1096
|
-
var
|
|
1096
|
+
var createEpisode = (options) => (options.client ?? client).post({
|
|
1097
1097
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1098
|
-
url: "/v1/media/
|
|
1098
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
1099
1099
|
...options,
|
|
1100
1100
|
headers: {
|
|
1101
1101
|
"Content-Type": "application/json",
|
|
1102
1102
|
...options.headers
|
|
1103
1103
|
}
|
|
1104
1104
|
});
|
|
1105
|
-
var
|
|
1105
|
+
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1106
1106
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1107
|
-
url: "/v1/media/
|
|
1107
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1108
|
+
...options
|
|
1109
|
+
});
|
|
1110
|
+
var getEpisode = (options) => (options.client ?? client).get({
|
|
1111
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1112
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1113
|
+
...options
|
|
1114
|
+
});
|
|
1115
|
+
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1116
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1117
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1108
1118
|
...options,
|
|
1109
1119
|
headers: {
|
|
1110
1120
|
"Content-Type": "application/json",
|
|
1111
1121
|
...options.headers
|
|
1112
1122
|
}
|
|
1113
1123
|
});
|
|
1114
|
-
var
|
|
1124
|
+
var listSegments = (options) => (options.client ?? client).get({
|
|
1115
1125
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1116
|
-
url: "/v1/media/
|
|
1126
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1117
1127
|
...options
|
|
1118
1128
|
});
|
|
1119
|
-
var
|
|
1129
|
+
var createSegment = (options) => (options.client ?? client).post({
|
|
1120
1130
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1121
|
-
url: "/v1/media/
|
|
1131
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1122
1132
|
...options,
|
|
1123
1133
|
headers: {
|
|
1124
1134
|
"Content-Type": "application/json",
|
|
1125
1135
|
...options.headers
|
|
1126
1136
|
}
|
|
1127
1137
|
});
|
|
1128
|
-
var
|
|
1138
|
+
var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
1129
1139
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1130
|
-
url: "/v1/media/
|
|
1131
|
-
...options
|
|
1140
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
|
|
1141
|
+
...options,
|
|
1142
|
+
headers: {
|
|
1143
|
+
"Content-Type": "application/json",
|
|
1144
|
+
...options.headers
|
|
1145
|
+
}
|
|
1132
1146
|
});
|
|
1133
|
-
var
|
|
1147
|
+
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1134
1148
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1135
|
-
url: "/v1/media/
|
|
1149
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1136
1150
|
...options
|
|
1137
1151
|
});
|
|
1138
|
-
var
|
|
1139
|
-
security: [{
|
|
1140
|
-
|
|
1141
|
-
name: "nadeshiko.session_token",
|
|
1142
|
-
type: "apiKey"
|
|
1143
|
-
}, { scheme: "bearer", type: "http" }],
|
|
1144
|
-
url: "/v1/user/quota",
|
|
1152
|
+
var getSegment = (options) => (options.client ?? client).get({
|
|
1153
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1154
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1145
1155
|
...options
|
|
1146
1156
|
});
|
|
1147
|
-
var
|
|
1157
|
+
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1158
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1159
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1160
|
+
...options,
|
|
1161
|
+
headers: {
|
|
1162
|
+
"Content-Type": "application/json",
|
|
1163
|
+
...options.headers
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
var getUserQuota = (options) => (options?.client ?? client).get({
|
|
1148
1167
|
security: [{
|
|
1149
1168
|
in: "cookie",
|
|
1150
1169
|
name: "nadeshiko.session_token",
|
|
1151
1170
|
type: "apiKey"
|
|
1152
1171
|
}],
|
|
1153
|
-
url: "/v1/user/
|
|
1172
|
+
url: "/v1/user/quota",
|
|
1154
1173
|
...options
|
|
1155
1174
|
});
|
|
1156
1175
|
var createUserReport = (options) => (options.client ?? client).post({
|
|
@@ -1206,6 +1225,19 @@ var listUserActivity = (options) => (options?.client ?? client).get({
|
|
|
1206
1225
|
url: "/v1/user/activity",
|
|
1207
1226
|
...options
|
|
1208
1227
|
});
|
|
1228
|
+
var trackUserActivity = (options) => (options.client ?? client).post({
|
|
1229
|
+
security: [{
|
|
1230
|
+
in: "cookie",
|
|
1231
|
+
name: "nadeshiko.session_token",
|
|
1232
|
+
type: "apiKey"
|
|
1233
|
+
}],
|
|
1234
|
+
url: "/v1/user/activity",
|
|
1235
|
+
...options,
|
|
1236
|
+
headers: {
|
|
1237
|
+
"Content-Type": "application/json",
|
|
1238
|
+
...options.headers
|
|
1239
|
+
}
|
|
1240
|
+
});
|
|
1209
1241
|
var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
|
|
1210
1242
|
security: [{
|
|
1211
1243
|
in: "cookie",
|
|
@@ -1224,6 +1256,24 @@ var getUserActivityStats = (options) => (options?.client ?? client).get({
|
|
|
1224
1256
|
url: "/v1/user/activity/stats",
|
|
1225
1257
|
...options
|
|
1226
1258
|
});
|
|
1259
|
+
var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
|
|
1260
|
+
security: [{
|
|
1261
|
+
in: "cookie",
|
|
1262
|
+
name: "nadeshiko.session_token",
|
|
1263
|
+
type: "apiKey"
|
|
1264
|
+
}],
|
|
1265
|
+
url: "/v1/user/activity/date/{date}",
|
|
1266
|
+
...options
|
|
1267
|
+
});
|
|
1268
|
+
var deleteUserActivityById = (options) => (options.client ?? client).delete({
|
|
1269
|
+
security: [{
|
|
1270
|
+
in: "cookie",
|
|
1271
|
+
name: "nadeshiko.session_token",
|
|
1272
|
+
type: "apiKey"
|
|
1273
|
+
}],
|
|
1274
|
+
url: "/v1/user/activity/{id}",
|
|
1275
|
+
...options
|
|
1276
|
+
});
|
|
1227
1277
|
var exportUserData = (options) => (options?.client ?? client).get({
|
|
1228
1278
|
security: [{
|
|
1229
1279
|
in: "cookie",
|
|
@@ -1242,6 +1292,24 @@ var listUserLabs = (options) => (options?.client ?? client).get({
|
|
|
1242
1292
|
url: "/v1/user/labs",
|
|
1243
1293
|
...options
|
|
1244
1294
|
});
|
|
1295
|
+
var unenrollUserLab = (options) => (options.client ?? client).delete({
|
|
1296
|
+
security: [{
|
|
1297
|
+
in: "cookie",
|
|
1298
|
+
name: "nadeshiko.session_token",
|
|
1299
|
+
type: "apiKey"
|
|
1300
|
+
}],
|
|
1301
|
+
url: "/v1/user/labs/{key}",
|
|
1302
|
+
...options
|
|
1303
|
+
});
|
|
1304
|
+
var enrollUserLab = (options) => (options.client ?? client).post({
|
|
1305
|
+
security: [{
|
|
1306
|
+
in: "cookie",
|
|
1307
|
+
name: "nadeshiko.session_token",
|
|
1308
|
+
type: "apiKey"
|
|
1309
|
+
}],
|
|
1310
|
+
url: "/v1/user/labs/{key}",
|
|
1311
|
+
...options
|
|
1312
|
+
});
|
|
1245
1313
|
var listCollections = (options) => (options?.client ?? client).get({
|
|
1246
1314
|
security: [{
|
|
1247
1315
|
in: "cookie",
|
|
@@ -1330,18 +1398,48 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
|
1330
1398
|
...options.headers
|
|
1331
1399
|
}
|
|
1332
1400
|
});
|
|
1401
|
+
var searchCollectionSegments = (options) => (options.client ?? client).get({
|
|
1402
|
+
security: [{
|
|
1403
|
+
in: "cookie",
|
|
1404
|
+
name: "nadeshiko.session_token",
|
|
1405
|
+
type: "apiKey"
|
|
1406
|
+
}],
|
|
1407
|
+
url: "/v1/collections/{id}/search",
|
|
1408
|
+
...options
|
|
1409
|
+
});
|
|
1410
|
+
var getCollectionStats = (options) => (options.client ?? client).get({
|
|
1411
|
+
security: [{
|
|
1412
|
+
in: "cookie",
|
|
1413
|
+
name: "nadeshiko.session_token",
|
|
1414
|
+
type: "apiKey"
|
|
1415
|
+
}],
|
|
1416
|
+
url: "/v1/collections/{id}/stats",
|
|
1417
|
+
...options
|
|
1418
|
+
});
|
|
1333
1419
|
var getAdminDashboard = (options) => (options?.client ?? client).get({
|
|
1334
|
-
security: [{
|
|
1420
|
+
security: [{
|
|
1421
|
+
in: "cookie",
|
|
1422
|
+
name: "nadeshiko.session_token",
|
|
1423
|
+
type: "apiKey"
|
|
1424
|
+
}],
|
|
1335
1425
|
url: "/v1/admin/dashboard",
|
|
1336
1426
|
...options
|
|
1337
1427
|
});
|
|
1338
1428
|
var getAdminHealth = (options) => (options?.client ?? client).get({
|
|
1339
|
-
security: [{
|
|
1429
|
+
security: [{
|
|
1430
|
+
in: "cookie",
|
|
1431
|
+
name: "nadeshiko.session_token",
|
|
1432
|
+
type: "apiKey"
|
|
1433
|
+
}],
|
|
1340
1434
|
url: "/v1/admin/health",
|
|
1341
1435
|
...options
|
|
1342
1436
|
});
|
|
1343
1437
|
var triggerReindex = (options) => (options?.client ?? client).post({
|
|
1344
|
-
security: [{
|
|
1438
|
+
security: [{
|
|
1439
|
+
in: "cookie",
|
|
1440
|
+
name: "nadeshiko.session_token",
|
|
1441
|
+
type: "apiKey"
|
|
1442
|
+
}],
|
|
1345
1443
|
url: "/v1/admin/reindex",
|
|
1346
1444
|
...options,
|
|
1347
1445
|
headers: {
|
|
@@ -1350,37 +1448,74 @@ var triggerReindex = (options) => (options?.client ?? client).post({
|
|
|
1350
1448
|
}
|
|
1351
1449
|
});
|
|
1352
1450
|
var listAdminQueueStats = (options) => (options?.client ?? client).get({
|
|
1353
|
-
security: [{
|
|
1451
|
+
security: [{
|
|
1452
|
+
in: "cookie",
|
|
1453
|
+
name: "nadeshiko.session_token",
|
|
1454
|
+
type: "apiKey"
|
|
1455
|
+
}],
|
|
1354
1456
|
url: "/v1/admin/queues/stats",
|
|
1355
1457
|
...options
|
|
1356
1458
|
});
|
|
1357
1459
|
var getAdminQueue = (options) => (options.client ?? client).get({
|
|
1358
|
-
security: [{
|
|
1460
|
+
security: [{
|
|
1461
|
+
in: "cookie",
|
|
1462
|
+
name: "nadeshiko.session_token",
|
|
1463
|
+
type: "apiKey"
|
|
1464
|
+
}],
|
|
1359
1465
|
url: "/v1/admin/queues/{queueName}",
|
|
1360
1466
|
...options
|
|
1361
1467
|
});
|
|
1362
1468
|
var listAdminQueueFailed = (options) => (options.client ?? client).get({
|
|
1363
|
-
security: [{
|
|
1469
|
+
security: [{
|
|
1470
|
+
in: "cookie",
|
|
1471
|
+
name: "nadeshiko.session_token",
|
|
1472
|
+
type: "apiKey"
|
|
1473
|
+
}],
|
|
1364
1474
|
url: "/v1/admin/queues/{queueName}/failed",
|
|
1365
1475
|
...options
|
|
1366
1476
|
});
|
|
1367
1477
|
var retryAdminQueueFailed = (options) => (options.client ?? client).post({
|
|
1368
|
-
security: [{
|
|
1478
|
+
security: [{
|
|
1479
|
+
in: "cookie",
|
|
1480
|
+
name: "nadeshiko.session_token",
|
|
1481
|
+
type: "apiKey"
|
|
1482
|
+
}],
|
|
1369
1483
|
url: "/v1/admin/queues/{queueName}/retry",
|
|
1370
1484
|
...options
|
|
1371
1485
|
});
|
|
1372
1486
|
var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
|
|
1373
|
-
security: [{
|
|
1487
|
+
security: [{
|
|
1488
|
+
in: "cookie",
|
|
1489
|
+
name: "nadeshiko.session_token",
|
|
1490
|
+
type: "apiKey"
|
|
1491
|
+
}],
|
|
1374
1492
|
url: "/v1/admin/queues/{queueName}/purge",
|
|
1375
1493
|
...options
|
|
1376
1494
|
});
|
|
1495
|
+
var clearAdminImpersonation = (options) => (options?.client ?? client).delete({ url: "/v1/admin/impersonation", ...options });
|
|
1496
|
+
var impersonateAdminUser = (options) => (options.client ?? client).post({
|
|
1497
|
+
url: "/v1/admin/impersonation",
|
|
1498
|
+
...options,
|
|
1499
|
+
headers: {
|
|
1500
|
+
"Content-Type": "application/json",
|
|
1501
|
+
...options.headers
|
|
1502
|
+
}
|
|
1503
|
+
});
|
|
1377
1504
|
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1378
|
-
security: [{
|
|
1505
|
+
security: [{
|
|
1506
|
+
in: "cookie",
|
|
1507
|
+
name: "nadeshiko.session_token",
|
|
1508
|
+
type: "apiKey"
|
|
1509
|
+
}],
|
|
1379
1510
|
url: "/v1/admin/reports",
|
|
1380
1511
|
...options
|
|
1381
1512
|
});
|
|
1382
1513
|
var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
1383
|
-
security: [{
|
|
1514
|
+
security: [{
|
|
1515
|
+
in: "cookie",
|
|
1516
|
+
name: "nadeshiko.session_token",
|
|
1517
|
+
type: "apiKey"
|
|
1518
|
+
}],
|
|
1384
1519
|
url: "/v1/admin/reports/{id}",
|
|
1385
1520
|
...options,
|
|
1386
1521
|
headers: {
|
|
@@ -1388,52 +1523,53 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
|
1388
1523
|
...options.headers
|
|
1389
1524
|
}
|
|
1390
1525
|
});
|
|
1391
|
-
var
|
|
1392
|
-
security: [{
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
url: "/v1/admin/review/checks",
|
|
1526
|
+
var listAdminMediaAudits = (options) => (options?.client ?? client).get({
|
|
1527
|
+
security: [{
|
|
1528
|
+
in: "cookie",
|
|
1529
|
+
name: "nadeshiko.session_token",
|
|
1530
|
+
type: "apiKey"
|
|
1531
|
+
}],
|
|
1532
|
+
url: "/v1/admin/media/audits",
|
|
1399
1533
|
...options
|
|
1400
1534
|
});
|
|
1401
|
-
var
|
|
1402
|
-
security: [{
|
|
1403
|
-
|
|
1535
|
+
var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
1536
|
+
security: [{
|
|
1537
|
+
in: "cookie",
|
|
1538
|
+
name: "nadeshiko.session_token",
|
|
1539
|
+
type: "apiKey"
|
|
1540
|
+
}],
|
|
1541
|
+
url: "/v1/admin/media/audits/{name}",
|
|
1404
1542
|
...options,
|
|
1405
1543
|
headers: {
|
|
1406
1544
|
"Content-Type": "application/json",
|
|
1407
1545
|
...options.headers
|
|
1408
1546
|
}
|
|
1409
1547
|
});
|
|
1410
|
-
var
|
|
1411
|
-
security: [{
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
url: "/v1/admin/review/runs/{id}",
|
|
1548
|
+
var runAdminMediaAudit = (options) => (options.client ?? client).post({
|
|
1549
|
+
security: [{
|
|
1550
|
+
in: "cookie",
|
|
1551
|
+
name: "nadeshiko.session_token",
|
|
1552
|
+
type: "apiKey"
|
|
1553
|
+
}],
|
|
1554
|
+
url: "/v1/admin/media/audits/{name}/run",
|
|
1418
1555
|
...options
|
|
1419
1556
|
});
|
|
1420
|
-
var
|
|
1421
|
-
security: [{
|
|
1422
|
-
|
|
1557
|
+
var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
|
|
1558
|
+
security: [{
|
|
1559
|
+
in: "cookie",
|
|
1560
|
+
name: "nadeshiko.session_token",
|
|
1561
|
+
type: "apiKey"
|
|
1562
|
+
}],
|
|
1563
|
+
url: "/v1/admin/media/audits/runs",
|
|
1423
1564
|
...options
|
|
1424
1565
|
});
|
|
1425
|
-
var
|
|
1426
|
-
security: [{
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
}
|
|
1433
|
-
});
|
|
1434
|
-
var deleteAdminReviewAllowlistEntry = (options) => (options.client ?? client).delete({
|
|
1435
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1436
|
-
url: "/v1/admin/review/allowlist/{id}",
|
|
1566
|
+
var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
1567
|
+
security: [{
|
|
1568
|
+
in: "cookie",
|
|
1569
|
+
name: "nadeshiko.session_token",
|
|
1570
|
+
type: "apiKey"
|
|
1571
|
+
}],
|
|
1572
|
+
url: "/v1/admin/media/audits/runs/{id}",
|
|
1437
1573
|
...options
|
|
1438
1574
|
});
|
|
1439
1575
|
// generated/dev/nadeshiko.gen.ts
|
|
@@ -1449,7 +1585,13 @@ var defaultSessionTokenGetter = () => {
|
|
|
1449
1585
|
return match ? decodeURIComponent(match[1]) : undefined;
|
|
1450
1586
|
};
|
|
1451
1587
|
function createNadeshikoClient(config) {
|
|
1452
|
-
const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl
|
|
1588
|
+
const baseUrl = config.baseUrl === undefined ? environments.PRODUCTION : (config.baseUrl in environments) ? environments[config.baseUrl] : config.baseUrl;
|
|
1589
|
+
const getApiKey = async () => {
|
|
1590
|
+
if (typeof config.apiKey === "function") {
|
|
1591
|
+
return await config.apiKey();
|
|
1592
|
+
}
|
|
1593
|
+
return config.apiKey;
|
|
1594
|
+
};
|
|
1453
1595
|
const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
|
|
1454
1596
|
const clientInstance = createClient(createConfig({
|
|
1455
1597
|
baseUrl,
|
|
@@ -1457,7 +1599,7 @@ function createNadeshikoClient(config) {
|
|
|
1457
1599
|
if (auth.in === "cookie") {
|
|
1458
1600
|
return getSessionToken();
|
|
1459
1601
|
}
|
|
1460
|
-
return
|
|
1602
|
+
return getApiKey();
|
|
1461
1603
|
}
|
|
1462
1604
|
}));
|
|
1463
1605
|
return {
|
|
@@ -1466,43 +1608,25 @@ function createNadeshikoClient(config) {
|
|
|
1466
1608
|
getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
|
|
1467
1609
|
searchWords: (options) => searchWords({ ...options, client: clientInstance }),
|
|
1468
1610
|
listMedia: (options) => listMedia({ ...options, client: clientInstance }),
|
|
1469
|
-
getMedia: (options) => getMedia({ ...options, client: clientInstance }),
|
|
1470
|
-
listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
|
|
1471
|
-
getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
|
|
1472
|
-
getSegment: (options) => getSegment({ ...options, client: clientInstance }),
|
|
1473
1611
|
getSegmentByUuid: (options) => getSegmentByUuid({ ...options, client: clientInstance }),
|
|
1474
1612
|
getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
|
|
1475
1613
|
listSeries: (options) => listSeries({ ...options, client: clientInstance }),
|
|
1476
1614
|
getSeries: (options) => getSeries({ ...options, client: clientInstance }),
|
|
1477
1615
|
getCharacter: (options) => getCharacter({ ...options, client: clientInstance }),
|
|
1478
1616
|
getSeiyuu: (options) => getSeiyuu({ ...options, client: clientInstance }),
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
updateCollection: (options) => updateCollection({ ...options, client: clientInstance }),
|
|
1484
|
-
deleteCollection: (options) => deleteCollection({ ...options, client: clientInstance }),
|
|
1485
|
-
addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
|
|
1486
|
-
updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
|
|
1487
|
-
removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
|
|
1488
|
-
triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
|
|
1489
|
-
listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
|
|
1490
|
-
getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
|
|
1491
|
-
listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1492
|
-
retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1493
|
-
purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1494
|
-
listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
|
|
1495
|
-
updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
|
|
1496
|
-
runAdminReview: (options) => runAdminReview({ ...options, client: clientInstance }),
|
|
1497
|
-
listAdminReviewChecks: (options) => listAdminReviewChecks({ ...options, client: clientInstance }),
|
|
1498
|
-
updateAdminReviewCheck: (options) => updateAdminReviewCheck({ ...options, client: clientInstance }),
|
|
1499
|
-
listAdminReviewRuns: (options) => listAdminReviewRuns({ ...options, client: clientInstance }),
|
|
1500
|
-
getAdminReviewRun: (options) => getAdminReviewRun({ ...options, client: clientInstance }),
|
|
1501
|
-
listAdminReviewAllowlist: (options) => listAdminReviewAllowlist({ ...options, client: clientInstance }),
|
|
1502
|
-
createAdminReviewAllowlistEntry: (options) => createAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
|
|
1503
|
-
deleteAdminReviewAllowlistEntry: (options) => deleteAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
|
|
1617
|
+
getMedia: (options) => getMedia({ ...options, client: clientInstance }),
|
|
1618
|
+
listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
|
|
1619
|
+
getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
|
|
1620
|
+
getSegment: (options) => getSegment({ ...options, client: clientInstance }),
|
|
1504
1621
|
createMedia: (options) => createMedia({ ...options, client: clientInstance }),
|
|
1505
1622
|
autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
|
|
1623
|
+
updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
|
|
1624
|
+
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1625
|
+
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1626
|
+
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
1627
|
+
addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
|
|
1628
|
+
updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
|
|
1629
|
+
removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
|
|
1506
1630
|
updateMedia: (options) => updateMedia({ ...options, client: clientInstance }),
|
|
1507
1631
|
deleteMedia: (options) => deleteMedia({ ...options, client: clientInstance }),
|
|
1508
1632
|
createEpisode: (options) => createEpisode({ ...options, client: clientInstance }),
|
|
@@ -1510,26 +1634,51 @@ function createNadeshikoClient(config) {
|
|
|
1510
1634
|
deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
|
|
1511
1635
|
listSegments: (options) => listSegments({ ...options, client: clientInstance }),
|
|
1512
1636
|
createSegment: (options) => createSegment({ ...options, client: clientInstance }),
|
|
1637
|
+
createSegmentsBatch: (options) => createSegmentsBatch({ ...options, client: clientInstance }),
|
|
1513
1638
|
updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
|
|
1514
1639
|
deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
|
|
1515
|
-
|
|
1516
|
-
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1517
|
-
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
1518
|
-
addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
|
|
1519
|
-
updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
|
|
1520
|
-
removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
|
|
1640
|
+
getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
|
|
1521
1641
|
createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
|
|
1522
|
-
listUserReports: (options) => listUserReports({ ...options, client: clientInstance }),
|
|
1523
1642
|
getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
|
|
1524
1643
|
updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
|
|
1525
1644
|
listUserActivity: (options) => listUserActivity({ ...options, client: clientInstance }),
|
|
1645
|
+
trackUserActivity: (options) => trackUserActivity({ ...options, client: clientInstance }),
|
|
1526
1646
|
deleteUserActivity: (options) => deleteUserActivity({ ...options, client: clientInstance }),
|
|
1527
1647
|
getUserActivityHeatmap: (options) => getUserActivityHeatmap({ ...options, client: clientInstance }),
|
|
1528
1648
|
getUserActivityStats: (options) => getUserActivityStats({ ...options, client: clientInstance }),
|
|
1649
|
+
deleteUserActivityByDate: (options) => deleteUserActivityByDate({ ...options, client: clientInstance }),
|
|
1650
|
+
deleteUserActivityById: (options) => deleteUserActivityById({ ...options, client: clientInstance }),
|
|
1529
1651
|
exportUserData: (options) => exportUserData({ ...options, client: clientInstance }),
|
|
1530
1652
|
listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
|
|
1653
|
+
enrollUserLab: (options) => enrollUserLab({ ...options, client: clientInstance }),
|
|
1654
|
+
unenrollUserLab: (options) => unenrollUserLab({ ...options, client: clientInstance }),
|
|
1655
|
+
listCollections: (options) => listCollections({ ...options, client: clientInstance }),
|
|
1656
|
+
createCollection: (options) => createCollection({ ...options, client: clientInstance }),
|
|
1657
|
+
getCollection: (options) => getCollection({ ...options, client: clientInstance }),
|
|
1658
|
+
updateCollection: (options) => updateCollection({ ...options, client: clientInstance }),
|
|
1659
|
+
deleteCollection: (options) => deleteCollection({ ...options, client: clientInstance }),
|
|
1660
|
+
addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
|
|
1661
|
+
updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
|
|
1662
|
+
removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
|
|
1663
|
+
searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
|
|
1664
|
+
getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
|
|
1531
1665
|
getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
|
|
1532
|
-
getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance })
|
|
1666
|
+
getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance }),
|
|
1667
|
+
triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
|
|
1668
|
+
listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
|
|
1669
|
+
getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
|
|
1670
|
+
listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1671
|
+
retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1672
|
+
purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1673
|
+
impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
|
|
1674
|
+
clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance }),
|
|
1675
|
+
listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
|
|
1676
|
+
updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
|
|
1677
|
+
listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
|
|
1678
|
+
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1679
|
+
runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1680
|
+
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
|
|
1681
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
|
|
1533
1682
|
};
|
|
1534
1683
|
}
|
|
1535
1684
|
// generated/dev/internal/media.gen.ts
|
|
@@ -1537,6 +1686,7 @@ var exports_media_gen = {};
|
|
|
1537
1686
|
__export(exports_media_gen, {
|
|
1538
1687
|
updateSeriesMedia: () => updateSeriesMedia,
|
|
1539
1688
|
updateSeries: () => updateSeries,
|
|
1689
|
+
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
1540
1690
|
updateSegment: () => updateSegment,
|
|
1541
1691
|
updateMedia: () => updateMedia,
|
|
1542
1692
|
updateEpisode: () => updateEpisode,
|
|
@@ -1547,6 +1697,7 @@ __export(exports_media_gen, {
|
|
|
1547
1697
|
deleteMedia: () => deleteMedia,
|
|
1548
1698
|
deleteEpisode: () => deleteEpisode,
|
|
1549
1699
|
createSeries: () => createSeries,
|
|
1700
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
1550
1701
|
createSegment: () => createSegment,
|
|
1551
1702
|
createMedia: () => createMedia,
|
|
1552
1703
|
createEpisode: () => createEpisode,
|
|
@@ -1557,22 +1708,56 @@ __export(exports_media_gen, {
|
|
|
1557
1708
|
var exports_user_gen = {};
|
|
1558
1709
|
__export(exports_user_gen, {
|
|
1559
1710
|
updateUserPreferences: () => updateUserPreferences,
|
|
1560
|
-
|
|
1711
|
+
unenrollUserLab: () => unenrollUserLab,
|
|
1712
|
+
trackUserActivity: () => trackUserActivity,
|
|
1561
1713
|
listUserLabs: () => listUserLabs,
|
|
1562
1714
|
listUserActivity: () => listUserActivity,
|
|
1715
|
+
getUserQuota: () => getUserQuota,
|
|
1563
1716
|
getUserPreferences: () => getUserPreferences,
|
|
1564
1717
|
getUserActivityStats: () => getUserActivityStats,
|
|
1565
1718
|
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
1566
1719
|
exportUserData: () => exportUserData,
|
|
1720
|
+
enrollUserLab: () => enrollUserLab,
|
|
1721
|
+
deleteUserActivityById: () => deleteUserActivityById,
|
|
1722
|
+
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
1567
1723
|
deleteUserActivity: () => deleteUserActivity,
|
|
1568
1724
|
createUserReport: () => createUserReport
|
|
1569
1725
|
});
|
|
1726
|
+
// generated/dev/internal/collections.gen.ts
|
|
1727
|
+
var exports_collections_gen = {};
|
|
1728
|
+
__export(exports_collections_gen, {
|
|
1729
|
+
updateCollectionSegment: () => updateCollectionSegment,
|
|
1730
|
+
updateCollection: () => updateCollection,
|
|
1731
|
+
searchCollectionSegments: () => searchCollectionSegments,
|
|
1732
|
+
removeSegmentFromCollection: () => removeSegmentFromCollection,
|
|
1733
|
+
listCollections: () => listCollections,
|
|
1734
|
+
getCollectionStats: () => getCollectionStats,
|
|
1735
|
+
getCollection: () => getCollection,
|
|
1736
|
+
deleteCollection: () => deleteCollection,
|
|
1737
|
+
createCollection: () => createCollection,
|
|
1738
|
+
addSegmentToCollection: () => addSegmentToCollection
|
|
1739
|
+
});
|
|
1570
1740
|
// generated/dev/internal/admin.gen.ts
|
|
1571
1741
|
var exports_admin_gen = {};
|
|
1572
1742
|
__export(exports_admin_gen, {
|
|
1743
|
+
updateAdminReport: () => updateAdminReport,
|
|
1744
|
+
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
1745
|
+
triggerReindex: () => triggerReindex,
|
|
1746
|
+
runAdminMediaAudit: () => runAdminMediaAudit,
|
|
1747
|
+
retryAdminQueueFailed: () => retryAdminQueueFailed,
|
|
1748
|
+
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
1749
|
+
listAdminReports: () => listAdminReports,
|
|
1750
|
+
listAdminQueueStats: () => listAdminQueueStats,
|
|
1751
|
+
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
1752
|
+
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
1753
|
+
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
1754
|
+
impersonateAdminUser: () => impersonateAdminUser,
|
|
1755
|
+
getAdminQueue: () => getAdminQueue,
|
|
1756
|
+
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
1573
1757
|
getAdminHealth: () => getAdminHealth,
|
|
1574
|
-
getAdminDashboard: () => getAdminDashboard
|
|
1758
|
+
getAdminDashboard: () => getAdminDashboard,
|
|
1759
|
+
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1575
1760
|
});
|
|
1576
1761
|
|
|
1577
|
-
//# debugId=
|
|
1762
|
+
//# debugId=92162C85AB02E9DD64756E2164756E21
|
|
1578
1763
|
//# sourceMappingURL=index.js.map
|