@brigadasos/nadeshiko-sdk 2.0.0-dev.dd1d7b0 → 2.0.0
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 +51 -942
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -923
- package/dist/index.js.map +4 -4
- package/dist/nadeshiko.gen.d.ts +1 -1177
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/paginate.d.ts.map +1 -1
- package/dist/retry.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +3 -4
- package/dist/internal/admin.gen.d.ts +0 -2
- package/dist/internal/admin.gen.d.ts.map +0 -1
- package/dist/internal/collections.gen.d.ts +0 -2
- package/dist/internal/collections.gen.d.ts.map +0 -1
- package/dist/internal/media.gen.d.ts +0 -2
- package/dist/internal/media.gen.d.ts.map +0 -1
- package/dist/internal/user.gen.d.ts +0 -2
- package/dist/internal/user.gen.d.ts.map +0 -1
- package/dist/internal.gen.d.ts +0 -5
- package/dist/internal.gen.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -36,54 +36,16 @@ var __export = (target, all) => {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
// generated/
|
|
40
|
-
var
|
|
41
|
-
__export(
|
|
39
|
+
// generated/public/index.ts
|
|
40
|
+
var exports_public = {};
|
|
41
|
+
__export(exports_public, {
|
|
42
42
|
withRetry: () => withRetry,
|
|
43
|
-
user: () => exports_user_gen,
|
|
44
|
-
updateUserPreferences: () => updateUserPreferences,
|
|
45
|
-
updateSeriesMedia: () => updateSeriesMedia,
|
|
46
|
-
updateSeries: () => updateSeries,
|
|
47
|
-
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
48
|
-
updateSegment: () => updateSegment,
|
|
49
|
-
updateMedia: () => updateMedia,
|
|
50
|
-
updateEpisode: () => updateEpisode,
|
|
51
|
-
updateCollectionSegment: () => updateCollectionSegment,
|
|
52
|
-
updateCollection: () => updateCollection,
|
|
53
|
-
updateAnnouncement: () => updateAnnouncement,
|
|
54
|
-
updateAdminReport: () => updateAdminReport,
|
|
55
|
-
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
56
|
-
unenrollUserLab: () => unenrollUserLab,
|
|
57
|
-
triggerReindex: () => triggerReindex,
|
|
58
|
-
trackUserActivity: () => trackUserActivity,
|
|
59
43
|
searchWords: () => searchWords,
|
|
60
|
-
searchCollectionSegments: () => searchCollectionSegments,
|
|
61
44
|
search: () => search,
|
|
62
|
-
runAdminMediaAudit: () => runAdminMediaAudit,
|
|
63
|
-
retryAdminQueueFailed: () => retryAdminQueueFailed,
|
|
64
|
-
removeSegmentFromCollection: () => removeSegmentFromCollection,
|
|
65
|
-
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
66
|
-
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
67
45
|
paginate: () => paginate,
|
|
68
|
-
media: () => exports_media_gen,
|
|
69
|
-
listUserLabs: () => listUserLabs,
|
|
70
|
-
listUserActivity: () => listUserActivity,
|
|
71
46
|
listSeries: () => listSeries,
|
|
72
|
-
listSegments: () => listSegments,
|
|
73
|
-
listSegmentRevisions: () => listSegmentRevisions,
|
|
74
47
|
listMedia: () => listMedia,
|
|
75
48
|
listEpisodes: () => listEpisodes,
|
|
76
|
-
listCollections: () => listCollections,
|
|
77
|
-
listAdminReports: () => listAdminReports,
|
|
78
|
-
listAdminQueueStats: () => listAdminQueueStats,
|
|
79
|
-
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
80
|
-
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
81
|
-
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
82
|
-
impersonateAdminUser: () => impersonateAdminUser,
|
|
83
|
-
getUserQuota: () => getUserQuota,
|
|
84
|
-
getUserPreferences: () => getUserPreferences,
|
|
85
|
-
getUserActivityStats: () => getUserActivityStats,
|
|
86
|
-
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
87
49
|
getSeries: () => getSeries,
|
|
88
50
|
getSeiyuu: () => getSeiyuu,
|
|
89
51
|
getSegmentContext: () => getSegmentContext,
|
|
@@ -92,49 +54,18 @@ __export(exports_dev, {
|
|
|
92
54
|
getSearchStats: () => getSearchStats,
|
|
93
55
|
getMedia: () => getMedia,
|
|
94
56
|
getEpisode: () => getEpisode,
|
|
95
|
-
getCollectionStats: () => getCollectionStats,
|
|
96
|
-
getCollection: () => getCollection,
|
|
97
57
|
getCharacter: () => getCharacter,
|
|
98
|
-
getAnnouncement: () => getAnnouncement,
|
|
99
|
-
getAdminQueue: () => getAdminQueue,
|
|
100
|
-
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
101
|
-
getAdminHealth: () => getAdminHealth,
|
|
102
|
-
getAdminDashboard: () => getAdminDashboard,
|
|
103
|
-
exportUserData: () => exportUserData,
|
|
104
|
-
enrollUserLab: () => enrollUserLab,
|
|
105
|
-
deleteUserActivityById: () => deleteUserActivityById,
|
|
106
|
-
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
107
|
-
deleteUserActivity: () => deleteUserActivity,
|
|
108
|
-
deleteSeries: () => deleteSeries,
|
|
109
|
-
deleteSegment: () => deleteSegment,
|
|
110
|
-
deleteMedia: () => deleteMedia,
|
|
111
|
-
deleteEpisode: () => deleteEpisode,
|
|
112
|
-
deleteCollection: () => deleteCollection,
|
|
113
|
-
createUserReport: () => createUserReport,
|
|
114
|
-
createSeries: () => createSeries,
|
|
115
|
-
createSegmentsBatch: () => createSegmentsBatch,
|
|
116
|
-
createSegment: () => createSegment,
|
|
117
58
|
createNadeshikoClient: () => createNadeshikoClient,
|
|
118
|
-
createMedia: () => createMedia,
|
|
119
|
-
createEpisode: () => createEpisode,
|
|
120
|
-
createCollection: () => createCollection,
|
|
121
|
-
collections: () => exports_collections_gen,
|
|
122
59
|
client: () => client,
|
|
123
|
-
clearAdminImpersonation: () => clearAdminImpersonation,
|
|
124
|
-
batchUpdateAdminReports: () => batchUpdateAdminReports,
|
|
125
|
-
autocompleteMedia: () => autocompleteMedia,
|
|
126
|
-
admin: () => exports_admin_gen,
|
|
127
|
-
addSegmentToCollection: () => addSegmentToCollection,
|
|
128
|
-
addMediaToSeries: () => addMediaToSeries,
|
|
129
60
|
NadeshikoError: () => NadeshikoError
|
|
130
61
|
});
|
|
131
|
-
module.exports = __toCommonJS(
|
|
62
|
+
module.exports = __toCommonJS(exports_public);
|
|
132
63
|
|
|
133
|
-
// generated/
|
|
64
|
+
// generated/public/core/bodySerializer.gen.ts
|
|
134
65
|
var jsonBodySerializer = {
|
|
135
66
|
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
136
67
|
};
|
|
137
|
-
// generated/
|
|
68
|
+
// generated/public/core/params.gen.ts
|
|
138
69
|
var extraPrefixesMap = {
|
|
139
70
|
$body_: "body",
|
|
140
71
|
$headers_: "headers",
|
|
@@ -142,7 +73,7 @@ var extraPrefixesMap = {
|
|
|
142
73
|
$query_: "query"
|
|
143
74
|
};
|
|
144
75
|
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
145
|
-
// generated/
|
|
76
|
+
// generated/public/core/serverSentEvents.gen.ts
|
|
146
77
|
var createSseClient = ({
|
|
147
78
|
onRequest,
|
|
148
79
|
onSseError,
|
|
@@ -278,7 +209,7 @@ var createSseClient = ({
|
|
|
278
209
|
return { stream };
|
|
279
210
|
};
|
|
280
211
|
|
|
281
|
-
// generated/
|
|
212
|
+
// generated/public/core/pathSerializer.gen.ts
|
|
282
213
|
var separatorArrayExplode = (style) => {
|
|
283
214
|
switch (style) {
|
|
284
215
|
case "label":
|
|
@@ -402,7 +333,7 @@ var serializeObjectParam = ({
|
|
|
402
333
|
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
403
334
|
};
|
|
404
335
|
|
|
405
|
-
// generated/
|
|
336
|
+
// generated/public/core/utils.gen.ts
|
|
406
337
|
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
407
338
|
var defaultPathSerializer = ({ path, url: _url }) => {
|
|
408
339
|
let url = _url;
|
|
@@ -491,7 +422,7 @@ function getValidRequestBody(options) {
|
|
|
491
422
|
return;
|
|
492
423
|
}
|
|
493
424
|
|
|
494
|
-
// generated/
|
|
425
|
+
// generated/public/core/auth.gen.ts
|
|
495
426
|
var getAuthToken = async (auth, callback) => {
|
|
496
427
|
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
497
428
|
if (!token) {
|
|
@@ -506,7 +437,7 @@ var getAuthToken = async (auth, callback) => {
|
|
|
506
437
|
return token;
|
|
507
438
|
};
|
|
508
439
|
|
|
509
|
-
// generated/
|
|
440
|
+
// generated/public/client/utils.gen.ts
|
|
510
441
|
var createQuerySerializer = ({
|
|
511
442
|
parameters = {},
|
|
512
443
|
...args
|
|
@@ -723,7 +654,7 @@ var createConfig = (override = {}) => ({
|
|
|
723
654
|
...override
|
|
724
655
|
});
|
|
725
656
|
|
|
726
|
-
// generated/
|
|
657
|
+
// generated/public/client/client.gen.ts
|
|
727
658
|
var createClient = (config = {}) => {
|
|
728
659
|
let _config = mergeConfigs(createConfig(), config);
|
|
729
660
|
const getConfig = () => ({ ..._config });
|
|
@@ -929,10 +860,10 @@ var createClient = (config = {}) => {
|
|
|
929
860
|
trace: makeMethodFn("TRACE")
|
|
930
861
|
};
|
|
931
862
|
};
|
|
932
|
-
// generated/
|
|
863
|
+
// generated/public/client.gen.ts
|
|
933
864
|
var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
|
|
934
865
|
|
|
935
|
-
// generated/
|
|
866
|
+
// generated/public/sdk.gen.ts
|
|
936
867
|
var search = (options) => (options?.client ?? client).post({
|
|
937
868
|
security: [{ scheme: "bearer", type: "http" }, {
|
|
938
869
|
in: "cookie",
|
|
@@ -981,761 +912,97 @@ var listMedia = (options) => (options?.client ?? client).get({
|
|
|
981
912
|
url: "/v1/media",
|
|
982
913
|
...options
|
|
983
914
|
});
|
|
984
|
-
var
|
|
985
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
986
|
-
in: "cookie",
|
|
987
|
-
name: "nadeshiko.session_token",
|
|
988
|
-
type: "apiKey"
|
|
989
|
-
}],
|
|
990
|
-
url: "/v1/media",
|
|
991
|
-
...options,
|
|
992
|
-
headers: {
|
|
993
|
-
"Content-Type": "application/json",
|
|
994
|
-
...options.headers
|
|
995
|
-
}
|
|
996
|
-
});
|
|
997
|
-
var autocompleteMedia = (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/autocomplete",
|
|
1004
|
-
...options
|
|
1005
|
-
});
|
|
1006
|
-
var getSegmentByUuid = (options) => (options.client ?? client).get({
|
|
1007
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1008
|
-
in: "cookie",
|
|
1009
|
-
name: "nadeshiko.session_token",
|
|
1010
|
-
type: "apiKey"
|
|
1011
|
-
}],
|
|
1012
|
-
url: "/v1/media/segments/{uuid}",
|
|
1013
|
-
...options
|
|
1014
|
-
});
|
|
1015
|
-
var updateSegmentByUuid = (options) => (options.client ?? client).patch({
|
|
1016
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1017
|
-
in: "cookie",
|
|
1018
|
-
name: "nadeshiko.session_token",
|
|
1019
|
-
type: "apiKey"
|
|
1020
|
-
}],
|
|
1021
|
-
url: "/v1/media/segments/{uuid}",
|
|
1022
|
-
...options,
|
|
1023
|
-
headers: {
|
|
1024
|
-
"Content-Type": "application/json",
|
|
1025
|
-
...options.headers
|
|
1026
|
-
}
|
|
1027
|
-
});
|
|
1028
|
-
var getSegmentContext = (options) => (options.client ?? client).get({
|
|
1029
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1030
|
-
in: "cookie",
|
|
1031
|
-
name: "nadeshiko.session_token",
|
|
1032
|
-
type: "apiKey"
|
|
1033
|
-
}],
|
|
1034
|
-
url: "/v1/media/segments/{uuid}/context",
|
|
1035
|
-
...options
|
|
1036
|
-
});
|
|
1037
|
-
var listSegmentRevisions = (options) => (options.client ?? client).get({
|
|
1038
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1039
|
-
in: "cookie",
|
|
1040
|
-
name: "nadeshiko.session_token",
|
|
1041
|
-
type: "apiKey"
|
|
1042
|
-
}],
|
|
1043
|
-
url: "/v1/media/segments/{uuid}/revisions",
|
|
1044
|
-
...options
|
|
1045
|
-
});
|
|
1046
|
-
var listSeries = (options) => (options?.client ?? client).get({
|
|
1047
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1048
|
-
in: "cookie",
|
|
1049
|
-
name: "nadeshiko.session_token",
|
|
1050
|
-
type: "apiKey"
|
|
1051
|
-
}],
|
|
1052
|
-
url: "/v1/media/series",
|
|
1053
|
-
...options
|
|
1054
|
-
});
|
|
1055
|
-
var createSeries = (options) => (options.client ?? client).post({
|
|
1056
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1057
|
-
in: "cookie",
|
|
1058
|
-
name: "nadeshiko.session_token",
|
|
1059
|
-
type: "apiKey"
|
|
1060
|
-
}],
|
|
1061
|
-
url: "/v1/media/series",
|
|
1062
|
-
...options,
|
|
1063
|
-
headers: {
|
|
1064
|
-
"Content-Type": "application/json",
|
|
1065
|
-
...options.headers
|
|
1066
|
-
}
|
|
1067
|
-
});
|
|
1068
|
-
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
1069
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1070
|
-
in: "cookie",
|
|
1071
|
-
name: "nadeshiko.session_token",
|
|
1072
|
-
type: "apiKey"
|
|
1073
|
-
}],
|
|
1074
|
-
url: "/v1/media/series/{id}",
|
|
1075
|
-
...options
|
|
1076
|
-
});
|
|
1077
|
-
var getSeries = (options) => (options.client ?? client).get({
|
|
1078
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1079
|
-
in: "cookie",
|
|
1080
|
-
name: "nadeshiko.session_token",
|
|
1081
|
-
type: "apiKey"
|
|
1082
|
-
}],
|
|
1083
|
-
url: "/v1/media/series/{id}",
|
|
1084
|
-
...options
|
|
1085
|
-
});
|
|
1086
|
-
var updateSeries = (options) => (options.client ?? client).patch({
|
|
1087
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1088
|
-
in: "cookie",
|
|
1089
|
-
name: "nadeshiko.session_token",
|
|
1090
|
-
type: "apiKey"
|
|
1091
|
-
}],
|
|
1092
|
-
url: "/v1/media/series/{id}",
|
|
1093
|
-
...options,
|
|
1094
|
-
headers: {
|
|
1095
|
-
"Content-Type": "application/json",
|
|
1096
|
-
...options.headers
|
|
1097
|
-
}
|
|
1098
|
-
});
|
|
1099
|
-
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
1100
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1101
|
-
in: "cookie",
|
|
1102
|
-
name: "nadeshiko.session_token",
|
|
1103
|
-
type: "apiKey"
|
|
1104
|
-
}],
|
|
1105
|
-
url: "/v1/media/series/{id}/media",
|
|
1106
|
-
...options,
|
|
1107
|
-
headers: {
|
|
1108
|
-
"Content-Type": "application/json",
|
|
1109
|
-
...options.headers
|
|
1110
|
-
}
|
|
1111
|
-
});
|
|
1112
|
-
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
1113
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1114
|
-
in: "cookie",
|
|
1115
|
-
name: "nadeshiko.session_token",
|
|
1116
|
-
type: "apiKey"
|
|
1117
|
-
}],
|
|
1118
|
-
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1119
|
-
...options
|
|
1120
|
-
});
|
|
1121
|
-
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
1122
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1123
|
-
in: "cookie",
|
|
1124
|
-
name: "nadeshiko.session_token",
|
|
1125
|
-
type: "apiKey"
|
|
1126
|
-
}],
|
|
1127
|
-
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1128
|
-
...options,
|
|
1129
|
-
headers: {
|
|
1130
|
-
"Content-Type": "application/json",
|
|
1131
|
-
...options.headers
|
|
1132
|
-
}
|
|
1133
|
-
});
|
|
1134
|
-
var getCharacter = (options) => (options.client ?? client).get({
|
|
1135
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1136
|
-
in: "cookie",
|
|
1137
|
-
name: "nadeshiko.session_token",
|
|
1138
|
-
type: "apiKey"
|
|
1139
|
-
}],
|
|
1140
|
-
url: "/v1/media/characters/{id}",
|
|
1141
|
-
...options
|
|
1142
|
-
});
|
|
1143
|
-
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
1144
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1145
|
-
in: "cookie",
|
|
1146
|
-
name: "nadeshiko.session_token",
|
|
1147
|
-
type: "apiKey"
|
|
1148
|
-
}],
|
|
1149
|
-
url: "/v1/media/seiyuu/{id}",
|
|
1150
|
-
...options
|
|
1151
|
-
});
|
|
1152
|
-
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
1153
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1154
|
-
in: "cookie",
|
|
1155
|
-
name: "nadeshiko.session_token",
|
|
1156
|
-
type: "apiKey"
|
|
1157
|
-
}],
|
|
1158
|
-
url: "/v1/media/{id}",
|
|
1159
|
-
...options
|
|
1160
|
-
});
|
|
1161
|
-
var getMedia = (options) => (options.client ?? client).get({
|
|
1162
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1163
|
-
in: "cookie",
|
|
1164
|
-
name: "nadeshiko.session_token",
|
|
1165
|
-
type: "apiKey"
|
|
1166
|
-
}],
|
|
1167
|
-
url: "/v1/media/{id}",
|
|
1168
|
-
...options
|
|
1169
|
-
});
|
|
1170
|
-
var updateMedia = (options) => (options.client ?? client).patch({
|
|
1171
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1172
|
-
in: "cookie",
|
|
1173
|
-
name: "nadeshiko.session_token",
|
|
1174
|
-
type: "apiKey"
|
|
1175
|
-
}],
|
|
1176
|
-
url: "/v1/media/{id}",
|
|
1177
|
-
...options,
|
|
1178
|
-
headers: {
|
|
1179
|
-
"Content-Type": "application/json",
|
|
1180
|
-
...options.headers
|
|
1181
|
-
}
|
|
1182
|
-
});
|
|
1183
|
-
var listEpisodes = (options) => (options.client ?? client).get({
|
|
1184
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1185
|
-
in: "cookie",
|
|
1186
|
-
name: "nadeshiko.session_token",
|
|
1187
|
-
type: "apiKey"
|
|
1188
|
-
}],
|
|
1189
|
-
url: "/v1/media/{mediaId}/episodes",
|
|
1190
|
-
...options
|
|
1191
|
-
});
|
|
1192
|
-
var createEpisode = (options) => (options.client ?? client).post({
|
|
1193
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1194
|
-
in: "cookie",
|
|
1195
|
-
name: "nadeshiko.session_token",
|
|
1196
|
-
type: "apiKey"
|
|
1197
|
-
}],
|
|
1198
|
-
url: "/v1/media/{mediaId}/episodes",
|
|
1199
|
-
...options,
|
|
1200
|
-
headers: {
|
|
1201
|
-
"Content-Type": "application/json",
|
|
1202
|
-
...options.headers
|
|
1203
|
-
}
|
|
1204
|
-
});
|
|
1205
|
-
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1206
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1207
|
-
in: "cookie",
|
|
1208
|
-
name: "nadeshiko.session_token",
|
|
1209
|
-
type: "apiKey"
|
|
1210
|
-
}],
|
|
1211
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1212
|
-
...options
|
|
1213
|
-
});
|
|
1214
|
-
var getEpisode = (options) => (options.client ?? client).get({
|
|
1215
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1216
|
-
in: "cookie",
|
|
1217
|
-
name: "nadeshiko.session_token",
|
|
1218
|
-
type: "apiKey"
|
|
1219
|
-
}],
|
|
1220
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1221
|
-
...options
|
|
1222
|
-
});
|
|
1223
|
-
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1224
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1225
|
-
in: "cookie",
|
|
1226
|
-
name: "nadeshiko.session_token",
|
|
1227
|
-
type: "apiKey"
|
|
1228
|
-
}],
|
|
1229
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1230
|
-
...options,
|
|
1231
|
-
headers: {
|
|
1232
|
-
"Content-Type": "application/json",
|
|
1233
|
-
...options.headers
|
|
1234
|
-
}
|
|
1235
|
-
});
|
|
1236
|
-
var listSegments = (options) => (options.client ?? client).get({
|
|
1237
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1238
|
-
in: "cookie",
|
|
1239
|
-
name: "nadeshiko.session_token",
|
|
1240
|
-
type: "apiKey"
|
|
1241
|
-
}],
|
|
1242
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1243
|
-
...options
|
|
1244
|
-
});
|
|
1245
|
-
var createSegment = (options) => (options.client ?? client).post({
|
|
1246
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1247
|
-
in: "cookie",
|
|
1248
|
-
name: "nadeshiko.session_token",
|
|
1249
|
-
type: "apiKey"
|
|
1250
|
-
}],
|
|
1251
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1252
|
-
...options,
|
|
1253
|
-
headers: {
|
|
1254
|
-
"Content-Type": "application/json",
|
|
1255
|
-
...options.headers
|
|
1256
|
-
}
|
|
1257
|
-
});
|
|
1258
|
-
var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
1259
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1260
|
-
in: "cookie",
|
|
1261
|
-
name: "nadeshiko.session_token",
|
|
1262
|
-
type: "apiKey"
|
|
1263
|
-
}],
|
|
1264
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
|
|
1265
|
-
...options,
|
|
1266
|
-
headers: {
|
|
1267
|
-
"Content-Type": "application/json",
|
|
1268
|
-
...options.headers
|
|
1269
|
-
}
|
|
1270
|
-
});
|
|
1271
|
-
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1272
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1273
|
-
in: "cookie",
|
|
1274
|
-
name: "nadeshiko.session_token",
|
|
1275
|
-
type: "apiKey"
|
|
1276
|
-
}],
|
|
1277
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1278
|
-
...options
|
|
1279
|
-
});
|
|
1280
|
-
var getSegment = (options) => (options.client ?? client).get({
|
|
1281
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1282
|
-
in: "cookie",
|
|
1283
|
-
name: "nadeshiko.session_token",
|
|
1284
|
-
type: "apiKey"
|
|
1285
|
-
}],
|
|
1286
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1287
|
-
...options
|
|
1288
|
-
});
|
|
1289
|
-
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1290
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1291
|
-
in: "cookie",
|
|
1292
|
-
name: "nadeshiko.session_token",
|
|
1293
|
-
type: "apiKey"
|
|
1294
|
-
}],
|
|
1295
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1296
|
-
...options,
|
|
1297
|
-
headers: {
|
|
1298
|
-
"Content-Type": "application/json",
|
|
1299
|
-
...options.headers
|
|
1300
|
-
}
|
|
1301
|
-
});
|
|
1302
|
-
var getUserQuota = (options) => (options?.client ?? client).get({
|
|
1303
|
-
security: [{
|
|
1304
|
-
in: "cookie",
|
|
1305
|
-
name: "nadeshiko.session_token",
|
|
1306
|
-
type: "apiKey"
|
|
1307
|
-
}],
|
|
1308
|
-
url: "/v1/user/quota",
|
|
1309
|
-
...options
|
|
1310
|
-
});
|
|
1311
|
-
var createUserReport = (options) => (options.client ?? client).post({
|
|
1312
|
-
security: [{
|
|
1313
|
-
in: "cookie",
|
|
1314
|
-
name: "nadeshiko.session_token",
|
|
1315
|
-
type: "apiKey"
|
|
1316
|
-
}],
|
|
1317
|
-
url: "/v1/user/reports",
|
|
1318
|
-
...options,
|
|
1319
|
-
headers: {
|
|
1320
|
-
"Content-Type": "application/json",
|
|
1321
|
-
...options.headers
|
|
1322
|
-
}
|
|
1323
|
-
});
|
|
1324
|
-
var getUserPreferences = (options) => (options?.client ?? client).get({
|
|
1325
|
-
security: [{
|
|
1326
|
-
in: "cookie",
|
|
1327
|
-
name: "nadeshiko.session_token",
|
|
1328
|
-
type: "apiKey"
|
|
1329
|
-
}],
|
|
1330
|
-
url: "/v1/user/preferences",
|
|
1331
|
-
...options
|
|
1332
|
-
});
|
|
1333
|
-
var updateUserPreferences = (options) => (options.client ?? client).patch({
|
|
1334
|
-
security: [{
|
|
1335
|
-
in: "cookie",
|
|
1336
|
-
name: "nadeshiko.session_token",
|
|
1337
|
-
type: "apiKey"
|
|
1338
|
-
}],
|
|
1339
|
-
url: "/v1/user/preferences",
|
|
1340
|
-
...options,
|
|
1341
|
-
headers: {
|
|
1342
|
-
"Content-Type": "application/json",
|
|
1343
|
-
...options.headers
|
|
1344
|
-
}
|
|
1345
|
-
});
|
|
1346
|
-
var deleteUserActivity = (options) => (options?.client ?? client).delete({
|
|
1347
|
-
security: [{
|
|
1348
|
-
in: "cookie",
|
|
1349
|
-
name: "nadeshiko.session_token",
|
|
1350
|
-
type: "apiKey"
|
|
1351
|
-
}],
|
|
1352
|
-
url: "/v1/user/activity",
|
|
1353
|
-
...options
|
|
1354
|
-
});
|
|
1355
|
-
var listUserActivity = (options) => (options?.client ?? client).get({
|
|
1356
|
-
security: [{
|
|
1357
|
-
in: "cookie",
|
|
1358
|
-
name: "nadeshiko.session_token",
|
|
1359
|
-
type: "apiKey"
|
|
1360
|
-
}],
|
|
1361
|
-
url: "/v1/user/activity",
|
|
1362
|
-
...options
|
|
1363
|
-
});
|
|
1364
|
-
var trackUserActivity = (options) => (options.client ?? client).post({
|
|
1365
|
-
security: [{
|
|
1366
|
-
in: "cookie",
|
|
1367
|
-
name: "nadeshiko.session_token",
|
|
1368
|
-
type: "apiKey"
|
|
1369
|
-
}],
|
|
1370
|
-
url: "/v1/user/activity",
|
|
1371
|
-
...options,
|
|
1372
|
-
headers: {
|
|
1373
|
-
"Content-Type": "application/json",
|
|
1374
|
-
...options.headers
|
|
1375
|
-
}
|
|
1376
|
-
});
|
|
1377
|
-
var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
|
|
1378
|
-
security: [{
|
|
1379
|
-
in: "cookie",
|
|
1380
|
-
name: "nadeshiko.session_token",
|
|
1381
|
-
type: "apiKey"
|
|
1382
|
-
}],
|
|
1383
|
-
url: "/v1/user/activity/heatmap",
|
|
1384
|
-
...options
|
|
1385
|
-
});
|
|
1386
|
-
var getUserActivityStats = (options) => (options?.client ?? client).get({
|
|
1387
|
-
security: [{
|
|
1388
|
-
in: "cookie",
|
|
1389
|
-
name: "nadeshiko.session_token",
|
|
1390
|
-
type: "apiKey"
|
|
1391
|
-
}],
|
|
1392
|
-
url: "/v1/user/activity/stats",
|
|
1393
|
-
...options
|
|
1394
|
-
});
|
|
1395
|
-
var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
|
|
1396
|
-
security: [{
|
|
1397
|
-
in: "cookie",
|
|
1398
|
-
name: "nadeshiko.session_token",
|
|
1399
|
-
type: "apiKey"
|
|
1400
|
-
}],
|
|
1401
|
-
url: "/v1/user/activity/date/{date}",
|
|
1402
|
-
...options
|
|
1403
|
-
});
|
|
1404
|
-
var deleteUserActivityById = (options) => (options.client ?? client).delete({
|
|
1405
|
-
security: [{
|
|
1406
|
-
in: "cookie",
|
|
1407
|
-
name: "nadeshiko.session_token",
|
|
1408
|
-
type: "apiKey"
|
|
1409
|
-
}],
|
|
1410
|
-
url: "/v1/user/activity/{id}",
|
|
1411
|
-
...options
|
|
1412
|
-
});
|
|
1413
|
-
var exportUserData = (options) => (options?.client ?? client).get({
|
|
1414
|
-
security: [{
|
|
1415
|
-
in: "cookie",
|
|
1416
|
-
name: "nadeshiko.session_token",
|
|
1417
|
-
type: "apiKey"
|
|
1418
|
-
}],
|
|
1419
|
-
url: "/v1/user/export",
|
|
1420
|
-
...options
|
|
1421
|
-
});
|
|
1422
|
-
var listUserLabs = (options) => (options?.client ?? client).get({
|
|
1423
|
-
security: [{
|
|
1424
|
-
in: "cookie",
|
|
1425
|
-
name: "nadeshiko.session_token",
|
|
1426
|
-
type: "apiKey"
|
|
1427
|
-
}],
|
|
1428
|
-
url: "/v1/user/labs",
|
|
1429
|
-
...options
|
|
1430
|
-
});
|
|
1431
|
-
var unenrollUserLab = (options) => (options.client ?? client).delete({
|
|
1432
|
-
security: [{
|
|
1433
|
-
in: "cookie",
|
|
1434
|
-
name: "nadeshiko.session_token",
|
|
1435
|
-
type: "apiKey"
|
|
1436
|
-
}],
|
|
1437
|
-
url: "/v1/user/labs/{key}",
|
|
1438
|
-
...options
|
|
1439
|
-
});
|
|
1440
|
-
var enrollUserLab = (options) => (options.client ?? client).post({
|
|
1441
|
-
security: [{
|
|
1442
|
-
in: "cookie",
|
|
1443
|
-
name: "nadeshiko.session_token",
|
|
1444
|
-
type: "apiKey"
|
|
1445
|
-
}],
|
|
1446
|
-
url: "/v1/user/labs/{key}",
|
|
1447
|
-
...options
|
|
1448
|
-
});
|
|
1449
|
-
var listCollections = (options) => (options?.client ?? client).get({
|
|
1450
|
-
security: [{
|
|
1451
|
-
in: "cookie",
|
|
1452
|
-
name: "nadeshiko.session_token",
|
|
1453
|
-
type: "apiKey"
|
|
1454
|
-
}],
|
|
1455
|
-
url: "/v1/collections",
|
|
1456
|
-
...options
|
|
1457
|
-
});
|
|
1458
|
-
var createCollection = (options) => (options.client ?? client).post({
|
|
1459
|
-
security: [{
|
|
1460
|
-
in: "cookie",
|
|
1461
|
-
name: "nadeshiko.session_token",
|
|
1462
|
-
type: "apiKey"
|
|
1463
|
-
}],
|
|
1464
|
-
url: "/v1/collections",
|
|
1465
|
-
...options,
|
|
1466
|
-
headers: {
|
|
1467
|
-
"Content-Type": "application/json",
|
|
1468
|
-
...options.headers
|
|
1469
|
-
}
|
|
1470
|
-
});
|
|
1471
|
-
var deleteCollection = (options) => (options.client ?? client).delete({
|
|
1472
|
-
security: [{
|
|
1473
|
-
in: "cookie",
|
|
1474
|
-
name: "nadeshiko.session_token",
|
|
1475
|
-
type: "apiKey"
|
|
1476
|
-
}],
|
|
1477
|
-
url: "/v1/collections/{id}",
|
|
1478
|
-
...options
|
|
1479
|
-
});
|
|
1480
|
-
var getCollection = (options) => (options.client ?? client).get({
|
|
1481
|
-
security: [{
|
|
1482
|
-
in: "cookie",
|
|
1483
|
-
name: "nadeshiko.session_token",
|
|
1484
|
-
type: "apiKey"
|
|
1485
|
-
}],
|
|
1486
|
-
url: "/v1/collections/{id}",
|
|
1487
|
-
...options
|
|
1488
|
-
});
|
|
1489
|
-
var updateCollection = (options) => (options.client ?? client).patch({
|
|
1490
|
-
security: [{
|
|
1491
|
-
in: "cookie",
|
|
1492
|
-
name: "nadeshiko.session_token",
|
|
1493
|
-
type: "apiKey"
|
|
1494
|
-
}],
|
|
1495
|
-
url: "/v1/collections/{id}",
|
|
1496
|
-
...options,
|
|
1497
|
-
headers: {
|
|
1498
|
-
"Content-Type": "application/json",
|
|
1499
|
-
...options.headers
|
|
1500
|
-
}
|
|
1501
|
-
});
|
|
1502
|
-
var addSegmentToCollection = (options) => (options.client ?? client).post({
|
|
1503
|
-
security: [{
|
|
1504
|
-
in: "cookie",
|
|
1505
|
-
name: "nadeshiko.session_token",
|
|
1506
|
-
type: "apiKey"
|
|
1507
|
-
}],
|
|
1508
|
-
url: "/v1/collections/{id}/segments",
|
|
1509
|
-
...options,
|
|
1510
|
-
headers: {
|
|
1511
|
-
"Content-Type": "application/json",
|
|
1512
|
-
...options.headers
|
|
1513
|
-
}
|
|
1514
|
-
});
|
|
1515
|
-
var removeSegmentFromCollection = (options) => (options.client ?? client).delete({
|
|
1516
|
-
security: [{
|
|
1517
|
-
in: "cookie",
|
|
1518
|
-
name: "nadeshiko.session_token",
|
|
1519
|
-
type: "apiKey"
|
|
1520
|
-
}],
|
|
1521
|
-
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1522
|
-
...options
|
|
1523
|
-
});
|
|
1524
|
-
var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
1525
|
-
security: [{
|
|
1526
|
-
in: "cookie",
|
|
1527
|
-
name: "nadeshiko.session_token",
|
|
1528
|
-
type: "apiKey"
|
|
1529
|
-
}],
|
|
1530
|
-
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1531
|
-
...options,
|
|
1532
|
-
headers: {
|
|
1533
|
-
"Content-Type": "application/json",
|
|
1534
|
-
...options.headers
|
|
1535
|
-
}
|
|
1536
|
-
});
|
|
1537
|
-
var searchCollectionSegments = (options) => (options.client ?? client).get({
|
|
1538
|
-
security: [{
|
|
1539
|
-
in: "cookie",
|
|
1540
|
-
name: "nadeshiko.session_token",
|
|
1541
|
-
type: "apiKey"
|
|
1542
|
-
}],
|
|
1543
|
-
url: "/v1/collections/{id}/search",
|
|
1544
|
-
...options
|
|
1545
|
-
});
|
|
1546
|
-
var getCollectionStats = (options) => (options.client ?? client).get({
|
|
1547
|
-
security: [{
|
|
1548
|
-
in: "cookie",
|
|
1549
|
-
name: "nadeshiko.session_token",
|
|
1550
|
-
type: "apiKey"
|
|
1551
|
-
}],
|
|
1552
|
-
url: "/v1/collections/{id}/stats",
|
|
1553
|
-
...options
|
|
1554
|
-
});
|
|
1555
|
-
var getAdminDashboard = (options) => (options?.client ?? client).get({
|
|
1556
|
-
security: [{
|
|
1557
|
-
in: "cookie",
|
|
1558
|
-
name: "nadeshiko.session_token",
|
|
1559
|
-
type: "apiKey"
|
|
1560
|
-
}],
|
|
1561
|
-
url: "/v1/admin/dashboard",
|
|
1562
|
-
...options
|
|
1563
|
-
});
|
|
1564
|
-
var getAdminHealth = (options) => (options?.client ?? client).get({
|
|
1565
|
-
security: [{
|
|
1566
|
-
in: "cookie",
|
|
1567
|
-
name: "nadeshiko.session_token",
|
|
1568
|
-
type: "apiKey"
|
|
1569
|
-
}],
|
|
1570
|
-
url: "/v1/admin/health",
|
|
1571
|
-
...options
|
|
1572
|
-
});
|
|
1573
|
-
var triggerReindex = (options) => (options?.client ?? client).post({
|
|
1574
|
-
security: [{
|
|
1575
|
-
in: "cookie",
|
|
1576
|
-
name: "nadeshiko.session_token",
|
|
1577
|
-
type: "apiKey"
|
|
1578
|
-
}],
|
|
1579
|
-
url: "/v1/admin/reindex",
|
|
1580
|
-
...options,
|
|
1581
|
-
headers: {
|
|
1582
|
-
"Content-Type": "application/json",
|
|
1583
|
-
...options?.headers
|
|
1584
|
-
}
|
|
1585
|
-
});
|
|
1586
|
-
var listAdminQueueStats = (options) => (options?.client ?? client).get({
|
|
1587
|
-
security: [{
|
|
915
|
+
var getSegmentByUuid = (options) => (options.client ?? client).get({
|
|
916
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1588
917
|
in: "cookie",
|
|
1589
918
|
name: "nadeshiko.session_token",
|
|
1590
919
|
type: "apiKey"
|
|
1591
920
|
}],
|
|
1592
|
-
url: "/v1/
|
|
921
|
+
url: "/v1/media/segments/{uuid}",
|
|
1593
922
|
...options
|
|
1594
923
|
});
|
|
1595
|
-
var
|
|
1596
|
-
security: [{
|
|
924
|
+
var getSegmentContext = (options) => (options.client ?? client).get({
|
|
925
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1597
926
|
in: "cookie",
|
|
1598
927
|
name: "nadeshiko.session_token",
|
|
1599
928
|
type: "apiKey"
|
|
1600
929
|
}],
|
|
1601
|
-
url: "/v1/
|
|
930
|
+
url: "/v1/media/segments/{uuid}/context",
|
|
1602
931
|
...options
|
|
1603
932
|
});
|
|
1604
|
-
var
|
|
1605
|
-
security: [{
|
|
933
|
+
var listSeries = (options) => (options?.client ?? client).get({
|
|
934
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1606
935
|
in: "cookie",
|
|
1607
936
|
name: "nadeshiko.session_token",
|
|
1608
937
|
type: "apiKey"
|
|
1609
938
|
}],
|
|
1610
|
-
url: "/v1/
|
|
939
|
+
url: "/v1/media/series",
|
|
1611
940
|
...options
|
|
1612
941
|
});
|
|
1613
|
-
var
|
|
1614
|
-
security: [{
|
|
942
|
+
var getSeries = (options) => (options.client ?? client).get({
|
|
943
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1615
944
|
in: "cookie",
|
|
1616
945
|
name: "nadeshiko.session_token",
|
|
1617
946
|
type: "apiKey"
|
|
1618
947
|
}],
|
|
1619
|
-
url: "/v1/
|
|
948
|
+
url: "/v1/media/series/{id}",
|
|
1620
949
|
...options
|
|
1621
950
|
});
|
|
1622
|
-
var
|
|
1623
|
-
security: [{
|
|
951
|
+
var getCharacter = (options) => (options.client ?? client).get({
|
|
952
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1624
953
|
in: "cookie",
|
|
1625
954
|
name: "nadeshiko.session_token",
|
|
1626
955
|
type: "apiKey"
|
|
1627
956
|
}],
|
|
1628
|
-
url: "/v1/
|
|
957
|
+
url: "/v1/media/characters/{id}",
|
|
1629
958
|
...options
|
|
1630
959
|
});
|
|
1631
|
-
var
|
|
1632
|
-
|
|
1633
|
-
url: "/v1/admin/impersonation",
|
|
1634
|
-
...options,
|
|
1635
|
-
headers: {
|
|
1636
|
-
"Content-Type": "application/json",
|
|
1637
|
-
...options.headers
|
|
1638
|
-
}
|
|
1639
|
-
});
|
|
1640
|
-
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1641
|
-
security: [{
|
|
960
|
+
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
961
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1642
962
|
in: "cookie",
|
|
1643
963
|
name: "nadeshiko.session_token",
|
|
1644
964
|
type: "apiKey"
|
|
1645
965
|
}],
|
|
1646
|
-
url: "/v1/
|
|
966
|
+
url: "/v1/media/seiyuu/{id}",
|
|
1647
967
|
...options
|
|
1648
968
|
});
|
|
1649
|
-
var
|
|
1650
|
-
security: [{
|
|
1651
|
-
in: "cookie",
|
|
1652
|
-
name: "nadeshiko.session_token",
|
|
1653
|
-
type: "apiKey"
|
|
1654
|
-
}],
|
|
1655
|
-
url: "/v1/admin/reports/batch",
|
|
1656
|
-
...options,
|
|
1657
|
-
headers: {
|
|
1658
|
-
"Content-Type": "application/json",
|
|
1659
|
-
...options.headers
|
|
1660
|
-
}
|
|
1661
|
-
});
|
|
1662
|
-
var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
1663
|
-
security: [{
|
|
1664
|
-
in: "cookie",
|
|
1665
|
-
name: "nadeshiko.session_token",
|
|
1666
|
-
type: "apiKey"
|
|
1667
|
-
}],
|
|
1668
|
-
url: "/v1/admin/reports/{id}",
|
|
1669
|
-
...options,
|
|
1670
|
-
headers: {
|
|
1671
|
-
"Content-Type": "application/json",
|
|
1672
|
-
...options.headers
|
|
1673
|
-
}
|
|
1674
|
-
});
|
|
1675
|
-
var listAdminMediaAudits = (options) => (options?.client ?? client).get({
|
|
1676
|
-
security: [{
|
|
969
|
+
var getMedia = (options) => (options.client ?? client).get({
|
|
970
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1677
971
|
in: "cookie",
|
|
1678
972
|
name: "nadeshiko.session_token",
|
|
1679
973
|
type: "apiKey"
|
|
1680
974
|
}],
|
|
1681
|
-
url: "/v1/
|
|
975
|
+
url: "/v1/media/{id}",
|
|
1682
976
|
...options
|
|
1683
977
|
});
|
|
1684
|
-
var
|
|
1685
|
-
security: [{
|
|
1686
|
-
in: "cookie",
|
|
1687
|
-
name: "nadeshiko.session_token",
|
|
1688
|
-
type: "apiKey"
|
|
1689
|
-
}],
|
|
1690
|
-
url: "/v1/admin/media/audits/{name}",
|
|
1691
|
-
...options,
|
|
1692
|
-
headers: {
|
|
1693
|
-
"Content-Type": "application/json",
|
|
1694
|
-
...options.headers
|
|
1695
|
-
}
|
|
1696
|
-
});
|
|
1697
|
-
var runAdminMediaAudit = (options) => (options.client ?? client).post({
|
|
1698
|
-
security: [{
|
|
978
|
+
var listEpisodes = (options) => (options.client ?? client).get({
|
|
979
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1699
980
|
in: "cookie",
|
|
1700
981
|
name: "nadeshiko.session_token",
|
|
1701
982
|
type: "apiKey"
|
|
1702
983
|
}],
|
|
1703
|
-
url: "/v1/
|
|
984
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
1704
985
|
...options
|
|
1705
986
|
});
|
|
1706
|
-
var
|
|
1707
|
-
security: [{
|
|
987
|
+
var getEpisode = (options) => (options.client ?? client).get({
|
|
988
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1708
989
|
in: "cookie",
|
|
1709
990
|
name: "nadeshiko.session_token",
|
|
1710
991
|
type: "apiKey"
|
|
1711
992
|
}],
|
|
1712
|
-
url: "/v1/
|
|
993
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1713
994
|
...options
|
|
1714
995
|
});
|
|
1715
|
-
var
|
|
1716
|
-
security: [{
|
|
996
|
+
var getSegment = (options) => (options.client ?? client).get({
|
|
997
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1717
998
|
in: "cookie",
|
|
1718
999
|
name: "nadeshiko.session_token",
|
|
1719
1000
|
type: "apiKey"
|
|
1720
1001
|
}],
|
|
1721
|
-
url: "/v1/
|
|
1002
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1722
1003
|
...options
|
|
1723
1004
|
});
|
|
1724
|
-
|
|
1725
|
-
var updateAnnouncement = (options) => (options.client ?? client).put({
|
|
1726
|
-
security: [{
|
|
1727
|
-
in: "cookie",
|
|
1728
|
-
name: "nadeshiko.session_token",
|
|
1729
|
-
type: "apiKey"
|
|
1730
|
-
}],
|
|
1731
|
-
url: "/v1/admin/announcement",
|
|
1732
|
-
...options,
|
|
1733
|
-
headers: {
|
|
1734
|
-
"Content-Type": "application/json",
|
|
1735
|
-
...options.headers
|
|
1736
|
-
}
|
|
1737
|
-
});
|
|
1738
|
-
// generated/dev/retry.ts
|
|
1005
|
+
// generated/public/retry.ts
|
|
1739
1006
|
var RETRYABLE_STATUS = new Set([408, 429, 500, 502, 503, 504]);
|
|
1740
1007
|
function parseRetryAfter(value) {
|
|
1741
1008
|
const seconds = Number(value);
|
|
@@ -1805,7 +1072,7 @@ function withRetry(fetchImpl = globalThis.fetch, options = {}) {
|
|
|
1805
1072
|
};
|
|
1806
1073
|
}
|
|
1807
1074
|
|
|
1808
|
-
// generated/
|
|
1075
|
+
// generated/public/errors.ts
|
|
1809
1076
|
class NadeshikoError extends Error {
|
|
1810
1077
|
code;
|
|
1811
1078
|
title;
|
|
@@ -1827,19 +1094,13 @@ class NadeshikoError extends Error {
|
|
|
1827
1094
|
}
|
|
1828
1095
|
}
|
|
1829
1096
|
|
|
1830
|
-
// generated/
|
|
1097
|
+
// generated/public/nadeshiko.gen.ts
|
|
1831
1098
|
var environments = {
|
|
1832
1099
|
LOCAL: "http://localhost:5000/api",
|
|
1833
1100
|
DEVELOPMENT: "https://api-dev.nadeshiko.co",
|
|
1834
1101
|
PRODUCTION: "https://api.nadeshiko.co",
|
|
1835
1102
|
PROXY: ""
|
|
1836
1103
|
};
|
|
1837
|
-
var defaultSessionTokenGetter = () => {
|
|
1838
|
-
if (typeof document === "undefined")
|
|
1839
|
-
return;
|
|
1840
|
-
const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
|
|
1841
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
1842
|
-
};
|
|
1843
1104
|
function createNadeshikoClient(config) {
|
|
1844
1105
|
const rawBaseUrl = config.baseURL ?? config.baseUrl;
|
|
1845
1106
|
const baseUrl = rawBaseUrl === undefined ? environments.PRODUCTION : (rawBaseUrl in environments) ? environments[rawBaseUrl] : rawBaseUrl;
|
|
@@ -1849,16 +1110,10 @@ function createNadeshikoClient(config) {
|
|
|
1849
1110
|
}
|
|
1850
1111
|
return config.apiKey;
|
|
1851
1112
|
};
|
|
1852
|
-
const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
|
|
1853
1113
|
const clientInstance = createClient(createConfig({
|
|
1854
1114
|
baseUrl,
|
|
1855
1115
|
fetch: withRetry(globalThis.fetch, config.retryOptions),
|
|
1856
|
-
auth: (
|
|
1857
|
-
if (auth.in === "cookie") {
|
|
1858
|
-
return getSessionToken();
|
|
1859
|
-
}
|
|
1860
|
-
return getApiKey();
|
|
1861
|
-
}
|
|
1116
|
+
auth: () => getApiKey()
|
|
1862
1117
|
}));
|
|
1863
1118
|
clientInstance.interceptors.error.use((error) => {
|
|
1864
1119
|
if (error && typeof error === "object" && "code" in error && typeof error.code === "string") {
|
|
@@ -1881,156 +1136,10 @@ function createNadeshikoClient(config) {
|
|
|
1881
1136
|
getMedia: (options) => getMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1882
1137
|
listEpisodes: (options) => listEpisodes({ throwOnError: true, ...options, client: clientInstance }),
|
|
1883
1138
|
getEpisode: (options) => getEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1884
|
-
getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance })
|
|
1885
|
-
createMedia: (options) => createMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1886
|
-
autocompleteMedia: (options) => autocompleteMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1887
|
-
updateSegmentByUuid: (options) => updateSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
|
|
1888
|
-
listSegmentRevisions: (options) => listSegmentRevisions({ throwOnError: true, ...options, client: clientInstance }),
|
|
1889
|
-
createSeries: (options) => createSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1890
|
-
updateSeries: (options) => updateSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1891
|
-
deleteSeries: (options) => deleteSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1892
|
-
addMediaToSeries: (options) => addMediaToSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1893
|
-
updateSeriesMedia: (options) => updateSeriesMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1894
|
-
removeMediaFromSeries: (options) => removeMediaFromSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1895
|
-
updateMedia: (options) => updateMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1896
|
-
deleteMedia: (options) => deleteMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1897
|
-
createEpisode: (options) => createEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1898
|
-
updateEpisode: (options) => updateEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1899
|
-
deleteEpisode: (options) => deleteEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1900
|
-
listSegments: (options) => listSegments({ throwOnError: true, ...options, client: clientInstance }),
|
|
1901
|
-
createSegment: (options) => createSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1902
|
-
createSegmentsBatch: (options) => createSegmentsBatch({ throwOnError: true, ...options, client: clientInstance }),
|
|
1903
|
-
updateSegment: (options) => updateSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1904
|
-
deleteSegment: (options) => deleteSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1905
|
-
getUserQuota: (options) => getUserQuota({ throwOnError: true, ...options, client: clientInstance }),
|
|
1906
|
-
createUserReport: (options) => createUserReport({ throwOnError: true, ...options, client: clientInstance }),
|
|
1907
|
-
getUserPreferences: (options) => getUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
|
|
1908
|
-
updateUserPreferences: (options) => updateUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
|
|
1909
|
-
listUserActivity: (options) => listUserActivity({ throwOnError: true, ...options, client: clientInstance }),
|
|
1910
|
-
trackUserActivity: (options) => trackUserActivity({ throwOnError: true, ...options, client: clientInstance }),
|
|
1911
|
-
deleteUserActivity: (options) => deleteUserActivity({ throwOnError: true, ...options, client: clientInstance }),
|
|
1912
|
-
getUserActivityHeatmap: (options) => getUserActivityHeatmap({ throwOnError: true, ...options, client: clientInstance }),
|
|
1913
|
-
getUserActivityStats: (options) => getUserActivityStats({ throwOnError: true, ...options, client: clientInstance }),
|
|
1914
|
-
deleteUserActivityByDate: (options) => deleteUserActivityByDate({ throwOnError: true, ...options, client: clientInstance }),
|
|
1915
|
-
deleteUserActivityById: (options) => deleteUserActivityById({ throwOnError: true, ...options, client: clientInstance }),
|
|
1916
|
-
exportUserData: (options) => exportUserData({ throwOnError: true, ...options, client: clientInstance }),
|
|
1917
|
-
listUserLabs: (options) => listUserLabs({ throwOnError: true, ...options, client: clientInstance }),
|
|
1918
|
-
enrollUserLab: (options) => enrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
|
|
1919
|
-
unenrollUserLab: (options) => unenrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
|
|
1920
|
-
listCollections: (options) => listCollections({ throwOnError: true, ...options, client: clientInstance }),
|
|
1921
|
-
createCollection: (options) => createCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1922
|
-
getCollection: (options) => getCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1923
|
-
updateCollection: (options) => updateCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1924
|
-
deleteCollection: (options) => deleteCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1925
|
-
addSegmentToCollection: (options) => addSegmentToCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1926
|
-
updateCollectionSegment: (options) => updateCollectionSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1927
|
-
removeSegmentFromCollection: (options) => removeSegmentFromCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1928
|
-
searchCollectionSegments: (options) => searchCollectionSegments({ throwOnError: true, ...options, client: clientInstance }),
|
|
1929
|
-
getCollectionStats: (options) => getCollectionStats({ throwOnError: true, ...options, client: clientInstance }),
|
|
1930
|
-
getAdminDashboard: (options) => getAdminDashboard({ throwOnError: true, ...options, client: clientInstance }),
|
|
1931
|
-
getAdminHealth: (options) => getAdminHealth({ throwOnError: true, ...options, client: clientInstance }),
|
|
1932
|
-
triggerReindex: (options) => triggerReindex({ throwOnError: true, ...options, client: clientInstance }),
|
|
1933
|
-
listAdminQueueStats: (options) => listAdminQueueStats({ throwOnError: true, ...options, client: clientInstance }),
|
|
1934
|
-
getAdminQueue: (options) => getAdminQueue({ throwOnError: true, ...options, client: clientInstance }),
|
|
1935
|
-
listAdminQueueFailed: (options) => listAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
|
|
1936
|
-
retryAdminQueueFailed: (options) => retryAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
|
|
1937
|
-
purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
|
|
1938
|
-
impersonateAdminUser: (options) => impersonateAdminUser({ throwOnError: true, ...options, client: clientInstance }),
|
|
1939
|
-
clearAdminImpersonation: (options) => clearAdminImpersonation({ throwOnError: true, ...options, client: clientInstance }),
|
|
1940
|
-
listAdminReports: (options) => listAdminReports({ throwOnError: true, ...options, client: clientInstance }),
|
|
1941
|
-
batchUpdateAdminReports: (options) => batchUpdateAdminReports({ throwOnError: true, ...options, client: clientInstance }),
|
|
1942
|
-
updateAdminReport: (options) => updateAdminReport({ throwOnError: true, ...options, client: clientInstance }),
|
|
1943
|
-
listAdminMediaAudits: (options) => listAdminMediaAudits({ throwOnError: true, ...options, client: clientInstance }),
|
|
1944
|
-
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
|
|
1945
|
-
runAdminMediaAudit: (options) => runAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
|
|
1946
|
-
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ throwOnError: true, ...options, client: clientInstance }),
|
|
1947
|
-
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ throwOnError: true, ...options, client: clientInstance }),
|
|
1948
|
-
getAnnouncement: (options) => getAnnouncement({ throwOnError: true, ...options, client: clientInstance }),
|
|
1949
|
-
updateAnnouncement: (options) => updateAnnouncement({ throwOnError: true, ...options, client: clientInstance })
|
|
1139
|
+
getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance })
|
|
1950
1140
|
};
|
|
1951
1141
|
}
|
|
1952
|
-
// generated/
|
|
1953
|
-
var exports_media_gen = {};
|
|
1954
|
-
__export(exports_media_gen, {
|
|
1955
|
-
updateSeriesMedia: () => updateSeriesMedia,
|
|
1956
|
-
updateSeries: () => updateSeries,
|
|
1957
|
-
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
1958
|
-
updateSegment: () => updateSegment,
|
|
1959
|
-
updateMedia: () => updateMedia,
|
|
1960
|
-
updateEpisode: () => updateEpisode,
|
|
1961
|
-
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
1962
|
-
listSegments: () => listSegments,
|
|
1963
|
-
listSegmentRevisions: () => listSegmentRevisions,
|
|
1964
|
-
deleteSeries: () => deleteSeries,
|
|
1965
|
-
deleteSegment: () => deleteSegment,
|
|
1966
|
-
deleteMedia: () => deleteMedia,
|
|
1967
|
-
deleteEpisode: () => deleteEpisode,
|
|
1968
|
-
createSeries: () => createSeries,
|
|
1969
|
-
createSegmentsBatch: () => createSegmentsBatch,
|
|
1970
|
-
createSegment: () => createSegment,
|
|
1971
|
-
createMedia: () => createMedia,
|
|
1972
|
-
createEpisode: () => createEpisode,
|
|
1973
|
-
autocompleteMedia: () => autocompleteMedia,
|
|
1974
|
-
addMediaToSeries: () => addMediaToSeries
|
|
1975
|
-
});
|
|
1976
|
-
// generated/dev/internal/user.gen.ts
|
|
1977
|
-
var exports_user_gen = {};
|
|
1978
|
-
__export(exports_user_gen, {
|
|
1979
|
-
updateUserPreferences: () => updateUserPreferences,
|
|
1980
|
-
unenrollUserLab: () => unenrollUserLab,
|
|
1981
|
-
trackUserActivity: () => trackUserActivity,
|
|
1982
|
-
listUserLabs: () => listUserLabs,
|
|
1983
|
-
listUserActivity: () => listUserActivity,
|
|
1984
|
-
getUserQuota: () => getUserQuota,
|
|
1985
|
-
getUserPreferences: () => getUserPreferences,
|
|
1986
|
-
getUserActivityStats: () => getUserActivityStats,
|
|
1987
|
-
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
1988
|
-
exportUserData: () => exportUserData,
|
|
1989
|
-
enrollUserLab: () => enrollUserLab,
|
|
1990
|
-
deleteUserActivityById: () => deleteUserActivityById,
|
|
1991
|
-
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
1992
|
-
deleteUserActivity: () => deleteUserActivity,
|
|
1993
|
-
createUserReport: () => createUserReport
|
|
1994
|
-
});
|
|
1995
|
-
// generated/dev/internal/collections.gen.ts
|
|
1996
|
-
var exports_collections_gen = {};
|
|
1997
|
-
__export(exports_collections_gen, {
|
|
1998
|
-
updateCollectionSegment: () => updateCollectionSegment,
|
|
1999
|
-
updateCollection: () => updateCollection,
|
|
2000
|
-
searchCollectionSegments: () => searchCollectionSegments,
|
|
2001
|
-
removeSegmentFromCollection: () => removeSegmentFromCollection,
|
|
2002
|
-
listCollections: () => listCollections,
|
|
2003
|
-
getCollectionStats: () => getCollectionStats,
|
|
2004
|
-
getCollection: () => getCollection,
|
|
2005
|
-
deleteCollection: () => deleteCollection,
|
|
2006
|
-
createCollection: () => createCollection,
|
|
2007
|
-
addSegmentToCollection: () => addSegmentToCollection
|
|
2008
|
-
});
|
|
2009
|
-
// generated/dev/internal/admin.gen.ts
|
|
2010
|
-
var exports_admin_gen = {};
|
|
2011
|
-
__export(exports_admin_gen, {
|
|
2012
|
-
updateAnnouncement: () => updateAnnouncement,
|
|
2013
|
-
updateAdminReport: () => updateAdminReport,
|
|
2014
|
-
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
2015
|
-
triggerReindex: () => triggerReindex,
|
|
2016
|
-
runAdminMediaAudit: () => runAdminMediaAudit,
|
|
2017
|
-
retryAdminQueueFailed: () => retryAdminQueueFailed,
|
|
2018
|
-
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
2019
|
-
listAdminReports: () => listAdminReports,
|
|
2020
|
-
listAdminQueueStats: () => listAdminQueueStats,
|
|
2021
|
-
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
2022
|
-
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
2023
|
-
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
2024
|
-
impersonateAdminUser: () => impersonateAdminUser,
|
|
2025
|
-
getAnnouncement: () => getAnnouncement,
|
|
2026
|
-
getAdminQueue: () => getAdminQueue,
|
|
2027
|
-
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
2028
|
-
getAdminHealth: () => getAdminHealth,
|
|
2029
|
-
getAdminDashboard: () => getAdminDashboard,
|
|
2030
|
-
clearAdminImpersonation: () => clearAdminImpersonation,
|
|
2031
|
-
batchUpdateAdminReports: () => batchUpdateAdminReports
|
|
2032
|
-
});
|
|
2033
|
-
// generated/dev/paginate.ts
|
|
1142
|
+
// generated/public/paginate.ts
|
|
2034
1143
|
async function* paginate(fn, options, extract) {
|
|
2035
1144
|
let cursor = null;
|
|
2036
1145
|
let first = true;
|
|
@@ -2060,5 +1169,5 @@ function patchCursor(options, cursor) {
|
|
|
2060
1169
|
return { ...options, body: { cursor } };
|
|
2061
1170
|
}
|
|
2062
1171
|
|
|
2063
|
-
//# debugId=
|
|
1172
|
+
//# debugId=0CDF30D46DAD7A7B64756E2164756E21
|
|
2064
1173
|
//# sourceMappingURL=index.js.map
|