@brigadasos/nadeshiko-sdk 1.4.3-dev.9520494 → 1.4.3-dev.d3424ba
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +254 -151
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +241 -144
- package/dist/index.js.map +4 -4
- package/dist/internal/admin.gen.d.ts +1 -1
- package/dist/internal/admin.gen.d.ts.map +1 -1
- package/dist/internal/media.gen.d.ts +1 -1
- package/dist/internal/media.gen.d.ts.map +1 -1
- package/dist/internal/user.gen.d.ts +1 -1
- package/dist/internal/user.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +26 -20
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +199 -147
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +1312 -1127
- 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,20 +88,23 @@ __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,
|
|
94
110
|
createSegment: () => createSegment,
|
|
@@ -96,8 +112,8 @@ __export(exports_dev, {
|
|
|
96
112
|
createMedia: () => createMedia,
|
|
97
113
|
createEpisode: () => createEpisode,
|
|
98
114
|
createCollection: () => createCollection,
|
|
99
|
-
createAdminReviewAllowlistEntry: () => createAdminReviewAllowlistEntry,
|
|
100
115
|
client: () => client,
|
|
116
|
+
clearAdminImpersonation: () => clearAdminImpersonation,
|
|
101
117
|
autocompleteMedia: () => autocompleteMedia,
|
|
102
118
|
admin: () => exports_admin_gen,
|
|
103
119
|
addSegmentToCollection: () => addSegmentToCollection,
|
|
@@ -966,175 +982,188 @@ var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
|
966
982
|
url: "/v1/media/autocomplete",
|
|
967
983
|
...options
|
|
968
984
|
});
|
|
969
|
-
var
|
|
970
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
971
|
-
url: "/v1/media/{id}",
|
|
972
|
-
...options
|
|
973
|
-
});
|
|
974
|
-
var getMedia = (options) => (options.client ?? client).get({
|
|
985
|
+
var getSegmentByUuid = (options) => (options.client ?? client).get({
|
|
975
986
|
security: [{ scheme: "bearer", type: "http" }],
|
|
976
|
-
url: "/v1/media/{
|
|
987
|
+
url: "/v1/media/segments/{uuid}",
|
|
977
988
|
...options
|
|
978
989
|
});
|
|
979
|
-
var
|
|
980
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
981
|
-
|
|
990
|
+
var updateSegmentByUuid = (options) => (options.client ?? client).patch({
|
|
991
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
992
|
+
in: "cookie",
|
|
993
|
+
name: "nadeshiko.session_token",
|
|
994
|
+
type: "apiKey"
|
|
995
|
+
}],
|
|
996
|
+
url: "/v1/media/segments/{uuid}",
|
|
982
997
|
...options,
|
|
983
998
|
headers: {
|
|
984
999
|
"Content-Type": "application/json",
|
|
985
1000
|
...options.headers
|
|
986
1001
|
}
|
|
987
1002
|
});
|
|
988
|
-
var
|
|
1003
|
+
var getSegmentContext = (options) => (options.client ?? client).get({
|
|
989
1004
|
security: [{ scheme: "bearer", type: "http" }],
|
|
990
|
-
url: "/v1/media/{
|
|
1005
|
+
url: "/v1/media/segments/{uuid}/context",
|
|
991
1006
|
...options
|
|
992
1007
|
});
|
|
993
|
-
var
|
|
1008
|
+
var listSeries = (options) => (options?.client ?? client).get({
|
|
1009
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1010
|
+
in: "cookie",
|
|
1011
|
+
name: "nadeshiko.session_token",
|
|
1012
|
+
type: "apiKey"
|
|
1013
|
+
}],
|
|
1014
|
+
url: "/v1/media/series",
|
|
1015
|
+
...options
|
|
1016
|
+
});
|
|
1017
|
+
var createSeries = (options) => (options.client ?? client).post({
|
|
994
1018
|
security: [{ scheme: "bearer", type: "http" }],
|
|
995
|
-
url: "/v1/media/
|
|
1019
|
+
url: "/v1/media/series",
|
|
996
1020
|
...options,
|
|
997
1021
|
headers: {
|
|
998
1022
|
"Content-Type": "application/json",
|
|
999
1023
|
...options.headers
|
|
1000
1024
|
}
|
|
1001
1025
|
});
|
|
1002
|
-
var
|
|
1026
|
+
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
1003
1027
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1004
|
-
url: "/v1/media/
|
|
1028
|
+
url: "/v1/media/series/{id}",
|
|
1005
1029
|
...options
|
|
1006
1030
|
});
|
|
1007
|
-
var
|
|
1008
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1009
|
-
|
|
1031
|
+
var getSeries = (options) => (options.client ?? client).get({
|
|
1032
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1033
|
+
in: "cookie",
|
|
1034
|
+
name: "nadeshiko.session_token",
|
|
1035
|
+
type: "apiKey"
|
|
1036
|
+
}],
|
|
1037
|
+
url: "/v1/media/series/{id}",
|
|
1010
1038
|
...options
|
|
1011
1039
|
});
|
|
1012
|
-
var
|
|
1040
|
+
var updateSeries = (options) => (options.client ?? client).patch({
|
|
1013
1041
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1014
|
-
url: "/v1/media/
|
|
1042
|
+
url: "/v1/media/series/{id}",
|
|
1015
1043
|
...options,
|
|
1016
1044
|
headers: {
|
|
1017
1045
|
"Content-Type": "application/json",
|
|
1018
1046
|
...options.headers
|
|
1019
1047
|
}
|
|
1020
1048
|
});
|
|
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({
|
|
1049
|
+
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
1027
1050
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1028
|
-
url: "/v1/media/
|
|
1051
|
+
url: "/v1/media/series/{id}/media",
|
|
1029
1052
|
...options,
|
|
1030
1053
|
headers: {
|
|
1031
1054
|
"Content-Type": "application/json",
|
|
1032
1055
|
...options.headers
|
|
1033
1056
|
}
|
|
1034
1057
|
});
|
|
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({
|
|
1058
|
+
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
1041
1059
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1042
|
-
url: "/v1/media/
|
|
1060
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1043
1061
|
...options
|
|
1044
1062
|
});
|
|
1045
|
-
var
|
|
1063
|
+
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
1046
1064
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1047
|
-
url: "/v1/media/
|
|
1065
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1048
1066
|
...options,
|
|
1049
1067
|
headers: {
|
|
1050
1068
|
"Content-Type": "application/json",
|
|
1051
1069
|
...options.headers
|
|
1052
1070
|
}
|
|
1053
1071
|
});
|
|
1054
|
-
var
|
|
1072
|
+
var getCharacter = (options) => (options.client ?? client).get({
|
|
1055
1073
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1056
|
-
url: "/v1/media/
|
|
1074
|
+
url: "/v1/media/characters/{id}",
|
|
1057
1075
|
...options
|
|
1058
1076
|
});
|
|
1059
|
-
var
|
|
1077
|
+
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
1060
1078
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1061
|
-
url: "/v1/media/
|
|
1079
|
+
url: "/v1/media/seiyuu/{id}",
|
|
1062
1080
|
...options
|
|
1063
1081
|
});
|
|
1064
|
-
var
|
|
1065
|
-
security: [{ scheme: "bearer", type: "http" },
|
|
1066
|
-
|
|
1067
|
-
name: "nadeshiko.session_token",
|
|
1068
|
-
type: "apiKey"
|
|
1069
|
-
}],
|
|
1070
|
-
url: "/v1/media/series",
|
|
1082
|
+
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
1083
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1084
|
+
url: "/v1/media/{id}",
|
|
1071
1085
|
...options
|
|
1072
1086
|
});
|
|
1073
|
-
var
|
|
1087
|
+
var getMedia = (options) => (options.client ?? client).get({
|
|
1074
1088
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1075
|
-
url: "/v1/media/
|
|
1089
|
+
url: "/v1/media/{id}",
|
|
1090
|
+
...options
|
|
1091
|
+
});
|
|
1092
|
+
var updateMedia = (options) => (options.client ?? client).patch({
|
|
1093
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1094
|
+
url: "/v1/media/{id}",
|
|
1076
1095
|
...options,
|
|
1077
1096
|
headers: {
|
|
1078
1097
|
"Content-Type": "application/json",
|
|
1079
1098
|
...options.headers
|
|
1080
1099
|
}
|
|
1081
1100
|
});
|
|
1082
|
-
var
|
|
1101
|
+
var listEpisodes = (options) => (options.client ?? client).get({
|
|
1083
1102
|
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}",
|
|
1103
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
1094
1104
|
...options
|
|
1095
1105
|
});
|
|
1096
|
-
var
|
|
1106
|
+
var createEpisode = (options) => (options.client ?? client).post({
|
|
1097
1107
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1098
|
-
url: "/v1/media/
|
|
1108
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
1099
1109
|
...options,
|
|
1100
1110
|
headers: {
|
|
1101
1111
|
"Content-Type": "application/json",
|
|
1102
1112
|
...options.headers
|
|
1103
1113
|
}
|
|
1104
1114
|
});
|
|
1105
|
-
var
|
|
1115
|
+
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1106
1116
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1107
|
-
url: "/v1/media/
|
|
1117
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1118
|
+
...options
|
|
1119
|
+
});
|
|
1120
|
+
var getEpisode = (options) => (options.client ?? client).get({
|
|
1121
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1122
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1123
|
+
...options
|
|
1124
|
+
});
|
|
1125
|
+
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1126
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1127
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1108
1128
|
...options,
|
|
1109
1129
|
headers: {
|
|
1110
1130
|
"Content-Type": "application/json",
|
|
1111
1131
|
...options.headers
|
|
1112
1132
|
}
|
|
1113
1133
|
});
|
|
1114
|
-
var
|
|
1134
|
+
var listSegments = (options) => (options.client ?? client).get({
|
|
1115
1135
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1116
|
-
url: "/v1/media/
|
|
1136
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1117
1137
|
...options
|
|
1118
1138
|
});
|
|
1119
|
-
var
|
|
1139
|
+
var createSegment = (options) => (options.client ?? client).post({
|
|
1120
1140
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1121
|
-
url: "/v1/media/
|
|
1141
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1122
1142
|
...options,
|
|
1123
1143
|
headers: {
|
|
1124
1144
|
"Content-Type": "application/json",
|
|
1125
1145
|
...options.headers
|
|
1126
1146
|
}
|
|
1127
1147
|
});
|
|
1128
|
-
var
|
|
1148
|
+
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1129
1149
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1130
|
-
url: "/v1/media/
|
|
1150
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1131
1151
|
...options
|
|
1132
1152
|
});
|
|
1133
|
-
var
|
|
1153
|
+
var getSegment = (options) => (options.client ?? client).get({
|
|
1134
1154
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1135
|
-
url: "/v1/media/
|
|
1155
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1136
1156
|
...options
|
|
1137
1157
|
});
|
|
1158
|
+
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1159
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1160
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1161
|
+
...options,
|
|
1162
|
+
headers: {
|
|
1163
|
+
"Content-Type": "application/json",
|
|
1164
|
+
...options.headers
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1138
1167
|
var getUserQuota = (options) => (options?.client ?? client).get({
|
|
1139
1168
|
security: [{
|
|
1140
1169
|
in: "cookie",
|
|
@@ -1144,15 +1173,6 @@ var getUserQuota = (options) => (options?.client ?? client).get({
|
|
|
1144
1173
|
url: "/v1/user/quota",
|
|
1145
1174
|
...options
|
|
1146
1175
|
});
|
|
1147
|
-
var listUserReports = (options) => (options?.client ?? client).get({
|
|
1148
|
-
security: [{
|
|
1149
|
-
in: "cookie",
|
|
1150
|
-
name: "nadeshiko.session_token",
|
|
1151
|
-
type: "apiKey"
|
|
1152
|
-
}],
|
|
1153
|
-
url: "/v1/user/reports",
|
|
1154
|
-
...options
|
|
1155
|
-
});
|
|
1156
1176
|
var createUserReport = (options) => (options.client ?? client).post({
|
|
1157
1177
|
security: [{
|
|
1158
1178
|
in: "cookie",
|
|
@@ -1206,6 +1226,19 @@ var listUserActivity = (options) => (options?.client ?? client).get({
|
|
|
1206
1226
|
url: "/v1/user/activity",
|
|
1207
1227
|
...options
|
|
1208
1228
|
});
|
|
1229
|
+
var trackUserActivity = (options) => (options.client ?? client).post({
|
|
1230
|
+
security: [{
|
|
1231
|
+
in: "cookie",
|
|
1232
|
+
name: "nadeshiko.session_token",
|
|
1233
|
+
type: "apiKey"
|
|
1234
|
+
}],
|
|
1235
|
+
url: "/v1/user/activity",
|
|
1236
|
+
...options,
|
|
1237
|
+
headers: {
|
|
1238
|
+
"Content-Type": "application/json",
|
|
1239
|
+
...options.headers
|
|
1240
|
+
}
|
|
1241
|
+
});
|
|
1209
1242
|
var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
|
|
1210
1243
|
security: [{
|
|
1211
1244
|
in: "cookie",
|
|
@@ -1224,6 +1257,24 @@ var getUserActivityStats = (options) => (options?.client ?? client).get({
|
|
|
1224
1257
|
url: "/v1/user/activity/stats",
|
|
1225
1258
|
...options
|
|
1226
1259
|
});
|
|
1260
|
+
var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
|
|
1261
|
+
security: [{
|
|
1262
|
+
in: "cookie",
|
|
1263
|
+
name: "nadeshiko.session_token",
|
|
1264
|
+
type: "apiKey"
|
|
1265
|
+
}],
|
|
1266
|
+
url: "/v1/user/activity/date/{date}",
|
|
1267
|
+
...options
|
|
1268
|
+
});
|
|
1269
|
+
var deleteUserActivityById = (options) => (options.client ?? client).delete({
|
|
1270
|
+
security: [{
|
|
1271
|
+
in: "cookie",
|
|
1272
|
+
name: "nadeshiko.session_token",
|
|
1273
|
+
type: "apiKey"
|
|
1274
|
+
}],
|
|
1275
|
+
url: "/v1/user/activity/{id}",
|
|
1276
|
+
...options
|
|
1277
|
+
});
|
|
1227
1278
|
var exportUserData = (options) => (options?.client ?? client).get({
|
|
1228
1279
|
security: [{
|
|
1229
1280
|
in: "cookie",
|
|
@@ -1242,6 +1293,24 @@ var listUserLabs = (options) => (options?.client ?? client).get({
|
|
|
1242
1293
|
url: "/v1/user/labs",
|
|
1243
1294
|
...options
|
|
1244
1295
|
});
|
|
1296
|
+
var unenrollUserLab = (options) => (options.client ?? client).delete({
|
|
1297
|
+
security: [{
|
|
1298
|
+
in: "cookie",
|
|
1299
|
+
name: "nadeshiko.session_token",
|
|
1300
|
+
type: "apiKey"
|
|
1301
|
+
}],
|
|
1302
|
+
url: "/v1/user/labs/{key}",
|
|
1303
|
+
...options
|
|
1304
|
+
});
|
|
1305
|
+
var enrollUserLab = (options) => (options.client ?? client).post({
|
|
1306
|
+
security: [{
|
|
1307
|
+
in: "cookie",
|
|
1308
|
+
name: "nadeshiko.session_token",
|
|
1309
|
+
type: "apiKey"
|
|
1310
|
+
}],
|
|
1311
|
+
url: "/v1/user/labs/{key}",
|
|
1312
|
+
...options
|
|
1313
|
+
});
|
|
1245
1314
|
var listCollections = (options) => (options?.client ?? client).get({
|
|
1246
1315
|
security: [{
|
|
1247
1316
|
in: "cookie",
|
|
@@ -1330,6 +1399,24 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
|
1330
1399
|
...options.headers
|
|
1331
1400
|
}
|
|
1332
1401
|
});
|
|
1402
|
+
var searchCollectionSegments = (options) => (options.client ?? client).get({
|
|
1403
|
+
security: [{
|
|
1404
|
+
in: "cookie",
|
|
1405
|
+
name: "nadeshiko.session_token",
|
|
1406
|
+
type: "apiKey"
|
|
1407
|
+
}],
|
|
1408
|
+
url: "/v1/collections/{id}/search",
|
|
1409
|
+
...options
|
|
1410
|
+
});
|
|
1411
|
+
var getCollectionStats = (options) => (options.client ?? client).get({
|
|
1412
|
+
security: [{
|
|
1413
|
+
in: "cookie",
|
|
1414
|
+
name: "nadeshiko.session_token",
|
|
1415
|
+
type: "apiKey"
|
|
1416
|
+
}],
|
|
1417
|
+
url: "/v1/collections/{id}/stats",
|
|
1418
|
+
...options
|
|
1419
|
+
});
|
|
1333
1420
|
var getAdminDashboard = (options) => (options?.client ?? client).get({
|
|
1334
1421
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1335
1422
|
url: "/v1/admin/dashboard",
|
|
@@ -1374,6 +1461,28 @@ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
|
|
|
1374
1461
|
url: "/v1/admin/queues/{queueName}/purge",
|
|
1375
1462
|
...options
|
|
1376
1463
|
});
|
|
1464
|
+
var clearAdminImpersonation = (options) => (options?.client ?? client).delete({
|
|
1465
|
+
security: [{
|
|
1466
|
+
in: "cookie",
|
|
1467
|
+
name: "nadeshiko.session_token",
|
|
1468
|
+
type: "apiKey"
|
|
1469
|
+
}],
|
|
1470
|
+
url: "/v1/admin/impersonation",
|
|
1471
|
+
...options
|
|
1472
|
+
});
|
|
1473
|
+
var impersonateAdminUser = (options) => (options.client ?? client).post({
|
|
1474
|
+
security: [{
|
|
1475
|
+
in: "cookie",
|
|
1476
|
+
name: "nadeshiko.session_token",
|
|
1477
|
+
type: "apiKey"
|
|
1478
|
+
}],
|
|
1479
|
+
url: "/v1/admin/impersonation",
|
|
1480
|
+
...options,
|
|
1481
|
+
headers: {
|
|
1482
|
+
"Content-Type": "application/json",
|
|
1483
|
+
...options.headers
|
|
1484
|
+
}
|
|
1485
|
+
});
|
|
1377
1486
|
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1378
1487
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1379
1488
|
url: "/v1/admin/reports",
|
|
@@ -1388,52 +1497,33 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
|
1388
1497
|
...options.headers
|
|
1389
1498
|
}
|
|
1390
1499
|
});
|
|
1391
|
-
var
|
|
1500
|
+
var listAdminMediaAudits = (options) => (options?.client ?? client).get({
|
|
1392
1501
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1393
|
-
url: "/v1/admin/
|
|
1502
|
+
url: "/v1/admin/media/audits",
|
|
1394
1503
|
...options
|
|
1395
1504
|
});
|
|
1396
|
-
var
|
|
1505
|
+
var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
1397
1506
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1398
|
-
url: "/v1/admin/
|
|
1399
|
-
...options
|
|
1400
|
-
});
|
|
1401
|
-
var updateAdminReviewCheck = (options) => (options.client ?? client).patch({
|
|
1402
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1403
|
-
url: "/v1/admin/review/checks/{name}",
|
|
1507
|
+
url: "/v1/admin/media/audits/{name}",
|
|
1404
1508
|
...options,
|
|
1405
1509
|
headers: {
|
|
1406
1510
|
"Content-Type": "application/json",
|
|
1407
1511
|
...options.headers
|
|
1408
1512
|
}
|
|
1409
1513
|
});
|
|
1410
|
-
var
|
|
1514
|
+
var runAdminMediaAudit = (options) => (options.client ?? client).post({
|
|
1411
1515
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1412
|
-
url: "/v1/admin/
|
|
1516
|
+
url: "/v1/admin/media/audits/{name}/run",
|
|
1413
1517
|
...options
|
|
1414
1518
|
});
|
|
1415
|
-
var
|
|
1519
|
+
var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
|
|
1416
1520
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1417
|
-
url: "/v1/admin/
|
|
1521
|
+
url: "/v1/admin/media/audits/runs",
|
|
1418
1522
|
...options
|
|
1419
1523
|
});
|
|
1420
|
-
var
|
|
1524
|
+
var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
1421
1525
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1422
|
-
url: "/v1/admin/
|
|
1423
|
-
...options
|
|
1424
|
-
});
|
|
1425
|
-
var createAdminReviewAllowlistEntry = (options) => (options.client ?? client).post({
|
|
1426
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1427
|
-
url: "/v1/admin/review/allowlist",
|
|
1428
|
-
...options,
|
|
1429
|
-
headers: {
|
|
1430
|
-
"Content-Type": "application/json",
|
|
1431
|
-
...options.headers
|
|
1432
|
-
}
|
|
1433
|
-
});
|
|
1434
|
-
var deleteAdminReviewAllowlistEntry = (options) => (options.client ?? client).delete({
|
|
1435
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1436
|
-
url: "/v1/admin/review/allowlist/{id}",
|
|
1526
|
+
url: "/v1/admin/media/audits/runs/{id}",
|
|
1437
1527
|
...options
|
|
1438
1528
|
});
|
|
1439
1529
|
// generated/dev/nadeshiko.gen.ts
|
|
@@ -1466,16 +1556,16 @@ function createNadeshikoClient(config) {
|
|
|
1466
1556
|
getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
|
|
1467
1557
|
searchWords: (options) => searchWords({ ...options, client: clientInstance }),
|
|
1468
1558
|
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
1559
|
getSegmentByUuid: (options) => getSegmentByUuid({ ...options, client: clientInstance }),
|
|
1474
1560
|
getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
|
|
1475
1561
|
listSeries: (options) => listSeries({ ...options, client: clientInstance }),
|
|
1476
1562
|
getSeries: (options) => getSeries({ ...options, client: clientInstance }),
|
|
1477
1563
|
getCharacter: (options) => getCharacter({ ...options, client: clientInstance }),
|
|
1478
1564
|
getSeiyuu: (options) => getSeiyuu({ ...options, client: clientInstance }),
|
|
1565
|
+
getMedia: (options) => getMedia({ ...options, client: clientInstance }),
|
|
1566
|
+
listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
|
|
1567
|
+
getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
|
|
1568
|
+
getSegment: (options) => getSegment({ ...options, client: clientInstance }),
|
|
1479
1569
|
getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
|
|
1480
1570
|
listCollections: (options) => listCollections({ ...options, client: clientInstance }),
|
|
1481
1571
|
createCollection: (options) => createCollection({ ...options, client: clientInstance }),
|
|
@@ -1485,6 +1575,8 @@ function createNadeshikoClient(config) {
|
|
|
1485
1575
|
addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
|
|
1486
1576
|
updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
|
|
1487
1577
|
removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
|
|
1578
|
+
searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
|
|
1579
|
+
getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
|
|
1488
1580
|
triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
|
|
1489
1581
|
listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
|
|
1490
1582
|
getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
|
|
@@ -1493,16 +1585,20 @@ function createNadeshikoClient(config) {
|
|
|
1493
1585
|
purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1494
1586
|
listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
|
|
1495
1587
|
updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
listAdminReviewAllowlist: (options) => listAdminReviewAllowlist({ ...options, client: clientInstance }),
|
|
1502
|
-
createAdminReviewAllowlistEntry: (options) => createAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
|
|
1503
|
-
deleteAdminReviewAllowlistEntry: (options) => deleteAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
|
|
1588
|
+
listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
|
|
1589
|
+
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1590
|
+
runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1591
|
+
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
|
|
1592
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
|
|
1504
1593
|
createMedia: (options) => createMedia({ ...options, client: clientInstance }),
|
|
1505
1594
|
autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
|
|
1595
|
+
updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
|
|
1596
|
+
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1597
|
+
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1598
|
+
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
1599
|
+
addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
|
|
1600
|
+
updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
|
|
1601
|
+
removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
|
|
1506
1602
|
updateMedia: (options) => updateMedia({ ...options, client: clientInstance }),
|
|
1507
1603
|
deleteMedia: (options) => deleteMedia({ ...options, client: clientInstance }),
|
|
1508
1604
|
createEpisode: (options) => createEpisode({ ...options, client: clientInstance }),
|
|
@@ -1512,24 +1608,24 @@ function createNadeshikoClient(config) {
|
|
|
1512
1608
|
createSegment: (options) => createSegment({ ...options, client: clientInstance }),
|
|
1513
1609
|
updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
|
|
1514
1610
|
deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
|
|
1515
|
-
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
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 }),
|
|
1521
1611
|
createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
|
|
1522
|
-
listUserReports: (options) => listUserReports({ ...options, client: clientInstance }),
|
|
1523
1612
|
getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
|
|
1524
1613
|
updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
|
|
1525
1614
|
listUserActivity: (options) => listUserActivity({ ...options, client: clientInstance }),
|
|
1615
|
+
trackUserActivity: (options) => trackUserActivity({ ...options, client: clientInstance }),
|
|
1526
1616
|
deleteUserActivity: (options) => deleteUserActivity({ ...options, client: clientInstance }),
|
|
1527
1617
|
getUserActivityHeatmap: (options) => getUserActivityHeatmap({ ...options, client: clientInstance }),
|
|
1528
1618
|
getUserActivityStats: (options) => getUserActivityStats({ ...options, client: clientInstance }),
|
|
1619
|
+
deleteUserActivityByDate: (options) => deleteUserActivityByDate({ ...options, client: clientInstance }),
|
|
1620
|
+
deleteUserActivityById: (options) => deleteUserActivityById({ ...options, client: clientInstance }),
|
|
1529
1621
|
exportUserData: (options) => exportUserData({ ...options, client: clientInstance }),
|
|
1530
1622
|
listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
|
|
1623
|
+
enrollUserLab: (options) => enrollUserLab({ ...options, client: clientInstance }),
|
|
1624
|
+
unenrollUserLab: (options) => unenrollUserLab({ ...options, client: clientInstance }),
|
|
1531
1625
|
getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
|
|
1532
|
-
getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance })
|
|
1626
|
+
getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance }),
|
|
1627
|
+
impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
|
|
1628
|
+
clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance })
|
|
1533
1629
|
};
|
|
1534
1630
|
}
|
|
1535
1631
|
// generated/dev/internal/media.gen.ts
|
|
@@ -1537,6 +1633,7 @@ var exports_media_gen = {};
|
|
|
1537
1633
|
__export(exports_media_gen, {
|
|
1538
1634
|
updateSeriesMedia: () => updateSeriesMedia,
|
|
1539
1635
|
updateSeries: () => updateSeries,
|
|
1636
|
+
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
1540
1637
|
updateSegment: () => updateSegment,
|
|
1541
1638
|
updateMedia: () => updateMedia,
|
|
1542
1639
|
updateEpisode: () => updateEpisode,
|
|
@@ -1557,22 +1654,28 @@ __export(exports_media_gen, {
|
|
|
1557
1654
|
var exports_user_gen = {};
|
|
1558
1655
|
__export(exports_user_gen, {
|
|
1559
1656
|
updateUserPreferences: () => updateUserPreferences,
|
|
1560
|
-
|
|
1657
|
+
unenrollUserLab: () => unenrollUserLab,
|
|
1658
|
+
trackUserActivity: () => trackUserActivity,
|
|
1561
1659
|
listUserLabs: () => listUserLabs,
|
|
1562
1660
|
listUserActivity: () => listUserActivity,
|
|
1563
1661
|
getUserPreferences: () => getUserPreferences,
|
|
1564
1662
|
getUserActivityStats: () => getUserActivityStats,
|
|
1565
1663
|
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
1566
1664
|
exportUserData: () => exportUserData,
|
|
1665
|
+
enrollUserLab: () => enrollUserLab,
|
|
1666
|
+
deleteUserActivityById: () => deleteUserActivityById,
|
|
1667
|
+
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
1567
1668
|
deleteUserActivity: () => deleteUserActivity,
|
|
1568
1669
|
createUserReport: () => createUserReport
|
|
1569
1670
|
});
|
|
1570
1671
|
// generated/dev/internal/admin.gen.ts
|
|
1571
1672
|
var exports_admin_gen = {};
|
|
1572
1673
|
__export(exports_admin_gen, {
|
|
1674
|
+
impersonateAdminUser: () => impersonateAdminUser,
|
|
1573
1675
|
getAdminHealth: () => getAdminHealth,
|
|
1574
|
-
getAdminDashboard: () => getAdminDashboard
|
|
1676
|
+
getAdminDashboard: () => getAdminDashboard,
|
|
1677
|
+
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1575
1678
|
});
|
|
1576
1679
|
|
|
1577
|
-
//# debugId=
|
|
1680
|
+
//# debugId=10181376237E504064756E2164756E21
|
|
1578
1681
|
//# sourceMappingURL=index.js.map
|