@brigadasos/nadeshiko-sdk 2.0.6 → 2.0.7-internal
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/core/auth.gen.d.ts.map +1 -1
- package/dist/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/core/params.gen.d.ts.map +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -1
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/core/types.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.d.ts.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.cjs +934 -21
- package/dist/index.cjs.map +5 -5
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +945 -17
- package/dist/index.js.map +5 -5
- package/dist/internal/admin.gen.d.ts +2 -0
- package/dist/internal/admin.gen.d.ts.map +1 -0
- package/dist/internal/collections.gen.d.ts +2 -0
- package/dist/internal/collections.gen.d.ts.map +1 -0
- package/dist/internal/media.gen.d.ts +2 -0
- package/dist/internal/media.gen.d.ts.map +1 -0
- package/dist/internal/user.gen.d.ts +2 -0
- package/dist/internal/user.gen.d.ts.map +1 -0
- package/dist/internal.gen.d.ts +5 -0
- package/dist/internal.gen.d.ts.map +1 -0
- package/dist/nadeshiko.gen.d.ts +1339 -1
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/paginate.d.ts.map +1 -1
- package/dist/retry.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -36,34 +36,112 @@ var __export = (target, all) => {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
// generated/
|
|
40
|
-
var
|
|
41
|
-
__export(
|
|
39
|
+
// generated/internal/index.ts
|
|
40
|
+
var exports_internal = {};
|
|
41
|
+
__export(exports_internal, {
|
|
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
|
+
triggerCoveredWordsUpdate: () => triggerCoveredWordsUpdate,
|
|
59
|
+
trackUserActivity: () => trackUserActivity,
|
|
43
60
|
searchWords: () => searchWords,
|
|
61
|
+
searchCollectionSegments: () => searchCollectionSegments,
|
|
44
62
|
search: () => search,
|
|
63
|
+
runAdminMediaAudit: () => runAdminMediaAudit,
|
|
64
|
+
retryAdminQueueFailed: () => retryAdminQueueFailed,
|
|
65
|
+
removeSegmentFromCollection: () => removeSegmentFromCollection,
|
|
66
|
+
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
67
|
+
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
45
68
|
paginate: () => paginate,
|
|
69
|
+
media: () => exports_media_gen,
|
|
70
|
+
listUserLabs: () => listUserLabs,
|
|
71
|
+
listUserActivity: () => listUserActivity,
|
|
46
72
|
listSeries: () => listSeries,
|
|
73
|
+
listSegments: () => listSegments,
|
|
74
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
47
75
|
listMedia: () => listMedia,
|
|
48
76
|
listEpisodes: () => listEpisodes,
|
|
77
|
+
listCollections: () => listCollections,
|
|
78
|
+
listAdminReports: () => listAdminReports,
|
|
79
|
+
listAdminQueueStats: () => listAdminQueueStats,
|
|
80
|
+
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
81
|
+
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
82
|
+
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
83
|
+
getUserQuota: () => getUserQuota,
|
|
84
|
+
getUserPreferences: () => getUserPreferences,
|
|
85
|
+
getUserActivityStats: () => getUserActivityStats,
|
|
86
|
+
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
87
|
+
getStatsOverview: () => getStatsOverview,
|
|
49
88
|
getSeries: () => getSeries,
|
|
89
|
+
getSeiyuu: () => getSeiyuu,
|
|
50
90
|
getSegmentContext: () => getSegmentContext,
|
|
51
91
|
getSegmentByUuid: () => getSegmentByUuid,
|
|
52
92
|
getSegment: () => getSegment,
|
|
53
93
|
getSearchStats: () => getSearchStats,
|
|
54
94
|
getMedia: () => getMedia,
|
|
55
95
|
getEpisode: () => getEpisode,
|
|
96
|
+
getCoveredWords: () => getCoveredWords,
|
|
97
|
+
getCollectionStats: () => getCollectionStats,
|
|
98
|
+
getCollection: () => getCollection,
|
|
99
|
+
getCharacter: () => getCharacter,
|
|
100
|
+
getAnnouncement: () => getAnnouncement,
|
|
101
|
+
getAdminQueue: () => getAdminQueue,
|
|
102
|
+
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
103
|
+
getAdminHealth: () => getAdminHealth,
|
|
104
|
+
getAdminDashboardSystem: () => getAdminDashboardSystem,
|
|
105
|
+
getAdminDashboardOverview: () => getAdminDashboardOverview,
|
|
106
|
+
getAdminDashboardMedia: () => getAdminDashboardMedia,
|
|
107
|
+
getAdminDashboardCollections: () => getAdminDashboardCollections,
|
|
108
|
+
getAdminDashboardApiKeys: () => getAdminDashboardApiKeys,
|
|
109
|
+
getAdminDashboardActivity: () => getAdminDashboardActivity,
|
|
110
|
+
getAdminDashboard: () => getAdminDashboard,
|
|
111
|
+
exportUserData: () => exportUserData,
|
|
112
|
+
enrollUserLab: () => enrollUserLab,
|
|
113
|
+
deleteUserActivityById: () => deleteUserActivityById,
|
|
114
|
+
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
115
|
+
deleteUserActivity: () => deleteUserActivity,
|
|
116
|
+
deleteSeries: () => deleteSeries,
|
|
117
|
+
deleteSegment: () => deleteSegment,
|
|
118
|
+
deleteMedia: () => deleteMedia,
|
|
119
|
+
deleteEpisode: () => deleteEpisode,
|
|
120
|
+
deleteCollection: () => deleteCollection,
|
|
121
|
+
createUserReport: () => createUserReport,
|
|
122
|
+
createSeries: () => createSeries,
|
|
123
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
124
|
+
createSegment: () => createSegment,
|
|
56
125
|
createNadeshikoClient: () => createNadeshikoClient,
|
|
126
|
+
createMedia: () => createMedia,
|
|
127
|
+
createEpisode: () => createEpisode,
|
|
128
|
+
createCollection: () => createCollection,
|
|
129
|
+
collections: () => exports_collections_gen,
|
|
57
130
|
client: () => client,
|
|
131
|
+
batchUpdateAdminReports: () => batchUpdateAdminReports,
|
|
132
|
+
autocompleteMedia: () => autocompleteMedia,
|
|
133
|
+
admin: () => exports_admin_gen,
|
|
134
|
+
addSegmentToCollection: () => addSegmentToCollection,
|
|
135
|
+
addMediaToSeries: () => addMediaToSeries,
|
|
58
136
|
NadeshikoError: () => NadeshikoError
|
|
59
137
|
});
|
|
60
|
-
module.exports = __toCommonJS(
|
|
138
|
+
module.exports = __toCommonJS(exports_internal);
|
|
61
139
|
|
|
62
|
-
// generated/
|
|
140
|
+
// generated/internal/core/bodySerializer.gen.ts
|
|
63
141
|
var jsonBodySerializer = {
|
|
64
142
|
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
65
143
|
};
|
|
66
|
-
// generated/
|
|
144
|
+
// generated/internal/core/params.gen.ts
|
|
67
145
|
var extraPrefixesMap = {
|
|
68
146
|
$body_: "body",
|
|
69
147
|
$headers_: "headers",
|
|
@@ -71,7 +149,7 @@ var extraPrefixesMap = {
|
|
|
71
149
|
$query_: "query"
|
|
72
150
|
};
|
|
73
151
|
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
74
|
-
// generated/
|
|
152
|
+
// generated/internal/core/serverSentEvents.gen.ts
|
|
75
153
|
var createSseClient = ({
|
|
76
154
|
onRequest,
|
|
77
155
|
onSseError,
|
|
@@ -207,7 +285,7 @@ var createSseClient = ({
|
|
|
207
285
|
return { stream };
|
|
208
286
|
};
|
|
209
287
|
|
|
210
|
-
// generated/
|
|
288
|
+
// generated/internal/core/pathSerializer.gen.ts
|
|
211
289
|
var separatorArrayExplode = (style) => {
|
|
212
290
|
switch (style) {
|
|
213
291
|
case "label":
|
|
@@ -331,7 +409,7 @@ var serializeObjectParam = ({
|
|
|
331
409
|
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
332
410
|
};
|
|
333
411
|
|
|
334
|
-
// generated/
|
|
412
|
+
// generated/internal/core/utils.gen.ts
|
|
335
413
|
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
336
414
|
var defaultPathSerializer = ({ path, url: _url }) => {
|
|
337
415
|
let url = _url;
|
|
@@ -420,7 +498,7 @@ function getValidRequestBody(options) {
|
|
|
420
498
|
return;
|
|
421
499
|
}
|
|
422
500
|
|
|
423
|
-
// generated/
|
|
501
|
+
// generated/internal/core/auth.gen.ts
|
|
424
502
|
var getAuthToken = async (auth, callback) => {
|
|
425
503
|
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
426
504
|
if (!token) {
|
|
@@ -435,7 +513,7 @@ var getAuthToken = async (auth, callback) => {
|
|
|
435
513
|
return token;
|
|
436
514
|
};
|
|
437
515
|
|
|
438
|
-
// generated/
|
|
516
|
+
// generated/internal/client/utils.gen.ts
|
|
439
517
|
var createQuerySerializer = ({
|
|
440
518
|
parameters = {},
|
|
441
519
|
...args
|
|
@@ -652,7 +730,7 @@ var createConfig = (override = {}) => ({
|
|
|
652
730
|
...override
|
|
653
731
|
});
|
|
654
732
|
|
|
655
|
-
// generated/
|
|
733
|
+
// generated/internal/client/client.gen.ts
|
|
656
734
|
var createClient = (config = {}) => {
|
|
657
735
|
let _config = mergeConfigs(createConfig(), config);
|
|
658
736
|
const getConfig = () => ({ ..._config });
|
|
@@ -858,10 +936,10 @@ var createClient = (config = {}) => {
|
|
|
858
936
|
trace: makeMethodFn("TRACE")
|
|
859
937
|
};
|
|
860
938
|
};
|
|
861
|
-
// generated/
|
|
939
|
+
// generated/internal/client.gen.ts
|
|
862
940
|
var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
|
|
863
941
|
|
|
864
|
-
// generated/
|
|
942
|
+
// generated/internal/sdk.gen.ts
|
|
865
943
|
var search = (options) => (options?.client ?? client).post({
|
|
866
944
|
security: [{ scheme: "bearer", type: "http" }],
|
|
867
945
|
url: "/v1/search",
|
|
@@ -889,52 +967,714 @@ var searchWords = (options) => (options.client ?? client).post({
|
|
|
889
967
|
...options.headers
|
|
890
968
|
}
|
|
891
969
|
});
|
|
970
|
+
var getStatsOverview = (options) => (options?.client ?? client).get({
|
|
971
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
972
|
+
url: "/v1/stats/overview",
|
|
973
|
+
...options
|
|
974
|
+
});
|
|
975
|
+
var getCoveredWords = (options) => (options.client ?? client).get({
|
|
976
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
977
|
+
url: "/v1/stats/covered-words",
|
|
978
|
+
...options
|
|
979
|
+
});
|
|
980
|
+
var triggerCoveredWordsUpdate = (options) => (options?.client ?? client).post({
|
|
981
|
+
security: [{
|
|
982
|
+
in: "cookie",
|
|
983
|
+
name: "nadeshiko.session_token",
|
|
984
|
+
type: "apiKey"
|
|
985
|
+
}],
|
|
986
|
+
url: "/v1/stats/covered-words/update",
|
|
987
|
+
...options,
|
|
988
|
+
headers: {
|
|
989
|
+
"Content-Type": "application/json",
|
|
990
|
+
...options?.headers
|
|
991
|
+
}
|
|
992
|
+
});
|
|
892
993
|
var listMedia = (options) => (options?.client ?? client).get({
|
|
893
994
|
security: [{ scheme: "bearer", type: "http" }],
|
|
894
995
|
url: "/v1/media",
|
|
895
996
|
...options
|
|
896
997
|
});
|
|
998
|
+
var createMedia = (options) => (options.client ?? client).post({
|
|
999
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1000
|
+
url: "/v1/media",
|
|
1001
|
+
...options,
|
|
1002
|
+
headers: {
|
|
1003
|
+
"Content-Type": "application/json",
|
|
1004
|
+
...options.headers
|
|
1005
|
+
}
|
|
1006
|
+
});
|
|
1007
|
+
var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
1008
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1009
|
+
url: "/v1/media/autocomplete",
|
|
1010
|
+
...options
|
|
1011
|
+
});
|
|
897
1012
|
var getSegmentByUuid = (options) => (options.client ?? client).get({
|
|
898
1013
|
security: [{ scheme: "bearer", type: "http" }],
|
|
899
1014
|
url: "/v1/media/segments/{uuid}",
|
|
900
1015
|
...options
|
|
901
1016
|
});
|
|
1017
|
+
var updateSegmentByUuid = (options) => (options.client ?? client).patch({
|
|
1018
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1019
|
+
url: "/v1/media/segments/{uuid}",
|
|
1020
|
+
...options,
|
|
1021
|
+
headers: {
|
|
1022
|
+
"Content-Type": "application/json",
|
|
1023
|
+
...options.headers
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
902
1026
|
var getSegmentContext = (options) => (options.client ?? client).get({
|
|
903
1027
|
security: [{ scheme: "bearer", type: "http" }],
|
|
904
1028
|
url: "/v1/media/segments/{uuid}/context",
|
|
905
1029
|
...options
|
|
906
1030
|
});
|
|
1031
|
+
var listSegmentRevisions = (options) => (options.client ?? client).get({
|
|
1032
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1033
|
+
url: "/v1/media/segments/{uuid}/revisions",
|
|
1034
|
+
...options
|
|
1035
|
+
});
|
|
907
1036
|
var listSeries = (options) => (options?.client ?? client).get({
|
|
908
1037
|
security: [{ scheme: "bearer", type: "http" }],
|
|
909
1038
|
url: "/v1/media/series",
|
|
910
1039
|
...options
|
|
911
1040
|
});
|
|
1041
|
+
var createSeries = (options) => (options.client ?? client).post({
|
|
1042
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1043
|
+
url: "/v1/media/series",
|
|
1044
|
+
...options,
|
|
1045
|
+
headers: {
|
|
1046
|
+
"Content-Type": "application/json",
|
|
1047
|
+
...options.headers
|
|
1048
|
+
}
|
|
1049
|
+
});
|
|
1050
|
+
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
1051
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1052
|
+
url: "/v1/media/series/{id}",
|
|
1053
|
+
...options
|
|
1054
|
+
});
|
|
912
1055
|
var getSeries = (options) => (options.client ?? client).get({
|
|
913
1056
|
security: [{ scheme: "bearer", type: "http" }],
|
|
914
1057
|
url: "/v1/media/series/{id}",
|
|
915
1058
|
...options
|
|
916
1059
|
});
|
|
1060
|
+
var updateSeries = (options) => (options.client ?? client).patch({
|
|
1061
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1062
|
+
url: "/v1/media/series/{id}",
|
|
1063
|
+
...options,
|
|
1064
|
+
headers: {
|
|
1065
|
+
"Content-Type": "application/json",
|
|
1066
|
+
...options.headers
|
|
1067
|
+
}
|
|
1068
|
+
});
|
|
1069
|
+
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
1070
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1071
|
+
url: "/v1/media/series/{id}/media",
|
|
1072
|
+
...options,
|
|
1073
|
+
headers: {
|
|
1074
|
+
"Content-Type": "application/json",
|
|
1075
|
+
...options.headers
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
1078
|
+
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
1079
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1080
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1081
|
+
...options
|
|
1082
|
+
});
|
|
1083
|
+
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
1084
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1085
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1086
|
+
...options,
|
|
1087
|
+
headers: {
|
|
1088
|
+
"Content-Type": "application/json",
|
|
1089
|
+
...options.headers
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
var getCharacter = (options) => (options.client ?? client).get({
|
|
1093
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1094
|
+
url: "/v1/media/characters/{id}",
|
|
1095
|
+
...options
|
|
1096
|
+
});
|
|
1097
|
+
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
1098
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1099
|
+
url: "/v1/media/seiyuu/{id}",
|
|
1100
|
+
...options
|
|
1101
|
+
});
|
|
1102
|
+
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
1103
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1104
|
+
url: "/v1/media/{id}",
|
|
1105
|
+
...options
|
|
1106
|
+
});
|
|
917
1107
|
var getMedia = (options) => (options.client ?? client).get({
|
|
918
1108
|
security: [{ scheme: "bearer", type: "http" }],
|
|
919
1109
|
url: "/v1/media/{id}",
|
|
920
1110
|
...options
|
|
921
1111
|
});
|
|
1112
|
+
var updateMedia = (options) => (options.client ?? client).patch({
|
|
1113
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1114
|
+
url: "/v1/media/{id}",
|
|
1115
|
+
...options,
|
|
1116
|
+
headers: {
|
|
1117
|
+
"Content-Type": "application/json",
|
|
1118
|
+
...options.headers
|
|
1119
|
+
}
|
|
1120
|
+
});
|
|
922
1121
|
var listEpisodes = (options) => (options.client ?? client).get({
|
|
923
1122
|
security: [{ scheme: "bearer", type: "http" }],
|
|
924
1123
|
url: "/v1/media/{mediaId}/episodes",
|
|
925
1124
|
...options
|
|
926
1125
|
});
|
|
1126
|
+
var createEpisode = (options) => (options.client ?? client).post({
|
|
1127
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1128
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
1129
|
+
...options,
|
|
1130
|
+
headers: {
|
|
1131
|
+
"Content-Type": "application/json",
|
|
1132
|
+
...options.headers
|
|
1133
|
+
}
|
|
1134
|
+
});
|
|
1135
|
+
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1136
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1137
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1138
|
+
...options
|
|
1139
|
+
});
|
|
927
1140
|
var getEpisode = (options) => (options.client ?? client).get({
|
|
928
1141
|
security: [{ scheme: "bearer", type: "http" }],
|
|
929
1142
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
930
1143
|
...options
|
|
931
1144
|
});
|
|
1145
|
+
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1146
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1147
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1148
|
+
...options,
|
|
1149
|
+
headers: {
|
|
1150
|
+
"Content-Type": "application/json",
|
|
1151
|
+
...options.headers
|
|
1152
|
+
}
|
|
1153
|
+
});
|
|
1154
|
+
var listSegments = (options) => (options.client ?? client).get({
|
|
1155
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1156
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1157
|
+
...options
|
|
1158
|
+
});
|
|
1159
|
+
var createSegment = (options) => (options.client ?? client).post({
|
|
1160
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1161
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1162
|
+
...options,
|
|
1163
|
+
headers: {
|
|
1164
|
+
"Content-Type": "application/json",
|
|
1165
|
+
...options.headers
|
|
1166
|
+
}
|
|
1167
|
+
});
|
|
1168
|
+
var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
1169
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1170
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
|
|
1171
|
+
...options,
|
|
1172
|
+
headers: {
|
|
1173
|
+
"Content-Type": "application/json",
|
|
1174
|
+
...options.headers
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1178
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1179
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1180
|
+
...options
|
|
1181
|
+
});
|
|
932
1182
|
var getSegment = (options) => (options.client ?? client).get({
|
|
933
1183
|
security: [{ scheme: "bearer", type: "http" }],
|
|
934
1184
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
935
1185
|
...options
|
|
936
1186
|
});
|
|
937
|
-
|
|
1187
|
+
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1188
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1189
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1190
|
+
...options,
|
|
1191
|
+
headers: {
|
|
1192
|
+
"Content-Type": "application/json",
|
|
1193
|
+
...options.headers
|
|
1194
|
+
}
|
|
1195
|
+
});
|
|
1196
|
+
var getUserQuota = (options) => (options?.client ?? client).get({
|
|
1197
|
+
security: [{
|
|
1198
|
+
in: "cookie",
|
|
1199
|
+
name: "nadeshiko.session_token",
|
|
1200
|
+
type: "apiKey"
|
|
1201
|
+
}],
|
|
1202
|
+
url: "/v1/user/quota",
|
|
1203
|
+
...options
|
|
1204
|
+
});
|
|
1205
|
+
var createUserReport = (options) => (options.client ?? client).post({
|
|
1206
|
+
security: [{
|
|
1207
|
+
in: "cookie",
|
|
1208
|
+
name: "nadeshiko.session_token",
|
|
1209
|
+
type: "apiKey"
|
|
1210
|
+
}],
|
|
1211
|
+
url: "/v1/user/reports",
|
|
1212
|
+
...options,
|
|
1213
|
+
headers: {
|
|
1214
|
+
"Content-Type": "application/json",
|
|
1215
|
+
...options.headers
|
|
1216
|
+
}
|
|
1217
|
+
});
|
|
1218
|
+
var getUserPreferences = (options) => (options?.client ?? client).get({
|
|
1219
|
+
security: [{
|
|
1220
|
+
in: "cookie",
|
|
1221
|
+
name: "nadeshiko.session_token",
|
|
1222
|
+
type: "apiKey"
|
|
1223
|
+
}],
|
|
1224
|
+
url: "/v1/user/preferences",
|
|
1225
|
+
...options
|
|
1226
|
+
});
|
|
1227
|
+
var updateUserPreferences = (options) => (options.client ?? client).patch({
|
|
1228
|
+
security: [{
|
|
1229
|
+
in: "cookie",
|
|
1230
|
+
name: "nadeshiko.session_token",
|
|
1231
|
+
type: "apiKey"
|
|
1232
|
+
}],
|
|
1233
|
+
url: "/v1/user/preferences",
|
|
1234
|
+
...options,
|
|
1235
|
+
headers: {
|
|
1236
|
+
"Content-Type": "application/json",
|
|
1237
|
+
...options.headers
|
|
1238
|
+
}
|
|
1239
|
+
});
|
|
1240
|
+
var deleteUserActivity = (options) => (options?.client ?? client).delete({
|
|
1241
|
+
security: [{
|
|
1242
|
+
in: "cookie",
|
|
1243
|
+
name: "nadeshiko.session_token",
|
|
1244
|
+
type: "apiKey"
|
|
1245
|
+
}],
|
|
1246
|
+
url: "/v1/user/activity",
|
|
1247
|
+
...options
|
|
1248
|
+
});
|
|
1249
|
+
var listUserActivity = (options) => (options?.client ?? client).get({
|
|
1250
|
+
security: [{
|
|
1251
|
+
in: "cookie",
|
|
1252
|
+
name: "nadeshiko.session_token",
|
|
1253
|
+
type: "apiKey"
|
|
1254
|
+
}],
|
|
1255
|
+
url: "/v1/user/activity",
|
|
1256
|
+
...options
|
|
1257
|
+
});
|
|
1258
|
+
var trackUserActivity = (options) => (options.client ?? client).post({
|
|
1259
|
+
security: [{
|
|
1260
|
+
in: "cookie",
|
|
1261
|
+
name: "nadeshiko.session_token",
|
|
1262
|
+
type: "apiKey"
|
|
1263
|
+
}],
|
|
1264
|
+
url: "/v1/user/activity",
|
|
1265
|
+
...options,
|
|
1266
|
+
headers: {
|
|
1267
|
+
"Content-Type": "application/json",
|
|
1268
|
+
...options.headers
|
|
1269
|
+
}
|
|
1270
|
+
});
|
|
1271
|
+
var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
|
|
1272
|
+
security: [{
|
|
1273
|
+
in: "cookie",
|
|
1274
|
+
name: "nadeshiko.session_token",
|
|
1275
|
+
type: "apiKey"
|
|
1276
|
+
}],
|
|
1277
|
+
url: "/v1/user/activity/heatmap",
|
|
1278
|
+
...options
|
|
1279
|
+
});
|
|
1280
|
+
var getUserActivityStats = (options) => (options?.client ?? client).get({
|
|
1281
|
+
security: [{
|
|
1282
|
+
in: "cookie",
|
|
1283
|
+
name: "nadeshiko.session_token",
|
|
1284
|
+
type: "apiKey"
|
|
1285
|
+
}],
|
|
1286
|
+
url: "/v1/user/activity/stats",
|
|
1287
|
+
...options
|
|
1288
|
+
});
|
|
1289
|
+
var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
|
|
1290
|
+
security: [{
|
|
1291
|
+
in: "cookie",
|
|
1292
|
+
name: "nadeshiko.session_token",
|
|
1293
|
+
type: "apiKey"
|
|
1294
|
+
}],
|
|
1295
|
+
url: "/v1/user/activity/date/{date}",
|
|
1296
|
+
...options
|
|
1297
|
+
});
|
|
1298
|
+
var deleteUserActivityById = (options) => (options.client ?? client).delete({
|
|
1299
|
+
security: [{
|
|
1300
|
+
in: "cookie",
|
|
1301
|
+
name: "nadeshiko.session_token",
|
|
1302
|
+
type: "apiKey"
|
|
1303
|
+
}],
|
|
1304
|
+
url: "/v1/user/activity/{id}",
|
|
1305
|
+
...options
|
|
1306
|
+
});
|
|
1307
|
+
var exportUserData = (options) => (options?.client ?? client).get({
|
|
1308
|
+
security: [{
|
|
1309
|
+
in: "cookie",
|
|
1310
|
+
name: "nadeshiko.session_token",
|
|
1311
|
+
type: "apiKey"
|
|
1312
|
+
}],
|
|
1313
|
+
url: "/v1/user/export",
|
|
1314
|
+
...options
|
|
1315
|
+
});
|
|
1316
|
+
var listUserLabs = (options) => (options?.client ?? client).get({
|
|
1317
|
+
security: [{
|
|
1318
|
+
in: "cookie",
|
|
1319
|
+
name: "nadeshiko.session_token",
|
|
1320
|
+
type: "apiKey"
|
|
1321
|
+
}],
|
|
1322
|
+
url: "/v1/user/labs",
|
|
1323
|
+
...options
|
|
1324
|
+
});
|
|
1325
|
+
var unenrollUserLab = (options) => (options.client ?? client).delete({
|
|
1326
|
+
security: [{
|
|
1327
|
+
in: "cookie",
|
|
1328
|
+
name: "nadeshiko.session_token",
|
|
1329
|
+
type: "apiKey"
|
|
1330
|
+
}],
|
|
1331
|
+
url: "/v1/user/labs/{key}",
|
|
1332
|
+
...options
|
|
1333
|
+
});
|
|
1334
|
+
var enrollUserLab = (options) => (options.client ?? client).post({
|
|
1335
|
+
security: [{
|
|
1336
|
+
in: "cookie",
|
|
1337
|
+
name: "nadeshiko.session_token",
|
|
1338
|
+
type: "apiKey"
|
|
1339
|
+
}],
|
|
1340
|
+
url: "/v1/user/labs/{key}",
|
|
1341
|
+
...options
|
|
1342
|
+
});
|
|
1343
|
+
var listCollections = (options) => (options?.client ?? client).get({
|
|
1344
|
+
security: [{
|
|
1345
|
+
in: "cookie",
|
|
1346
|
+
name: "nadeshiko.session_token",
|
|
1347
|
+
type: "apiKey"
|
|
1348
|
+
}],
|
|
1349
|
+
url: "/v1/collections",
|
|
1350
|
+
...options
|
|
1351
|
+
});
|
|
1352
|
+
var createCollection = (options) => (options.client ?? client).post({
|
|
1353
|
+
security: [{
|
|
1354
|
+
in: "cookie",
|
|
1355
|
+
name: "nadeshiko.session_token",
|
|
1356
|
+
type: "apiKey"
|
|
1357
|
+
}],
|
|
1358
|
+
url: "/v1/collections",
|
|
1359
|
+
...options,
|
|
1360
|
+
headers: {
|
|
1361
|
+
"Content-Type": "application/json",
|
|
1362
|
+
...options.headers
|
|
1363
|
+
}
|
|
1364
|
+
});
|
|
1365
|
+
var deleteCollection = (options) => (options.client ?? client).delete({
|
|
1366
|
+
security: [{
|
|
1367
|
+
in: "cookie",
|
|
1368
|
+
name: "nadeshiko.session_token",
|
|
1369
|
+
type: "apiKey"
|
|
1370
|
+
}],
|
|
1371
|
+
url: "/v1/collections/{id}",
|
|
1372
|
+
...options
|
|
1373
|
+
});
|
|
1374
|
+
var getCollection = (options) => (options.client ?? client).get({
|
|
1375
|
+
security: [{
|
|
1376
|
+
in: "cookie",
|
|
1377
|
+
name: "nadeshiko.session_token",
|
|
1378
|
+
type: "apiKey"
|
|
1379
|
+
}],
|
|
1380
|
+
url: "/v1/collections/{id}",
|
|
1381
|
+
...options
|
|
1382
|
+
});
|
|
1383
|
+
var updateCollection = (options) => (options.client ?? client).patch({
|
|
1384
|
+
security: [{
|
|
1385
|
+
in: "cookie",
|
|
1386
|
+
name: "nadeshiko.session_token",
|
|
1387
|
+
type: "apiKey"
|
|
1388
|
+
}],
|
|
1389
|
+
url: "/v1/collections/{id}",
|
|
1390
|
+
...options,
|
|
1391
|
+
headers: {
|
|
1392
|
+
"Content-Type": "application/json",
|
|
1393
|
+
...options.headers
|
|
1394
|
+
}
|
|
1395
|
+
});
|
|
1396
|
+
var addSegmentToCollection = (options) => (options.client ?? client).post({
|
|
1397
|
+
security: [{
|
|
1398
|
+
in: "cookie",
|
|
1399
|
+
name: "nadeshiko.session_token",
|
|
1400
|
+
type: "apiKey"
|
|
1401
|
+
}],
|
|
1402
|
+
url: "/v1/collections/{id}/segments",
|
|
1403
|
+
...options,
|
|
1404
|
+
headers: {
|
|
1405
|
+
"Content-Type": "application/json",
|
|
1406
|
+
...options.headers
|
|
1407
|
+
}
|
|
1408
|
+
});
|
|
1409
|
+
var removeSegmentFromCollection = (options) => (options.client ?? client).delete({
|
|
1410
|
+
security: [{
|
|
1411
|
+
in: "cookie",
|
|
1412
|
+
name: "nadeshiko.session_token",
|
|
1413
|
+
type: "apiKey"
|
|
1414
|
+
}],
|
|
1415
|
+
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1416
|
+
...options
|
|
1417
|
+
});
|
|
1418
|
+
var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
1419
|
+
security: [{
|
|
1420
|
+
in: "cookie",
|
|
1421
|
+
name: "nadeshiko.session_token",
|
|
1422
|
+
type: "apiKey"
|
|
1423
|
+
}],
|
|
1424
|
+
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1425
|
+
...options,
|
|
1426
|
+
headers: {
|
|
1427
|
+
"Content-Type": "application/json",
|
|
1428
|
+
...options.headers
|
|
1429
|
+
}
|
|
1430
|
+
});
|
|
1431
|
+
var searchCollectionSegments = (options) => (options.client ?? client).get({
|
|
1432
|
+
security: [{
|
|
1433
|
+
in: "cookie",
|
|
1434
|
+
name: "nadeshiko.session_token",
|
|
1435
|
+
type: "apiKey"
|
|
1436
|
+
}],
|
|
1437
|
+
url: "/v1/collections/{id}/search",
|
|
1438
|
+
...options
|
|
1439
|
+
});
|
|
1440
|
+
var getCollectionStats = (options) => (options.client ?? client).get({
|
|
1441
|
+
security: [{
|
|
1442
|
+
in: "cookie",
|
|
1443
|
+
name: "nadeshiko.session_token",
|
|
1444
|
+
type: "apiKey"
|
|
1445
|
+
}],
|
|
1446
|
+
url: "/v1/collections/{id}/stats",
|
|
1447
|
+
...options
|
|
1448
|
+
});
|
|
1449
|
+
var getAdminDashboard = (options) => (options?.client ?? client).get({
|
|
1450
|
+
security: [{
|
|
1451
|
+
in: "cookie",
|
|
1452
|
+
name: "nadeshiko.session_token",
|
|
1453
|
+
type: "apiKey"
|
|
1454
|
+
}],
|
|
1455
|
+
url: "/v1/admin/dashboard",
|
|
1456
|
+
...options
|
|
1457
|
+
});
|
|
1458
|
+
var getAdminDashboardOverview = (options) => (options?.client ?? client).get({
|
|
1459
|
+
security: [{
|
|
1460
|
+
in: "cookie",
|
|
1461
|
+
name: "nadeshiko.session_token",
|
|
1462
|
+
type: "apiKey"
|
|
1463
|
+
}],
|
|
1464
|
+
url: "/v1/admin/dashboard/overview",
|
|
1465
|
+
...options
|
|
1466
|
+
});
|
|
1467
|
+
var getAdminDashboardMedia = (options) => (options?.client ?? client).get({
|
|
1468
|
+
security: [{
|
|
1469
|
+
in: "cookie",
|
|
1470
|
+
name: "nadeshiko.session_token",
|
|
1471
|
+
type: "apiKey"
|
|
1472
|
+
}],
|
|
1473
|
+
url: "/v1/admin/dashboard/media",
|
|
1474
|
+
...options
|
|
1475
|
+
});
|
|
1476
|
+
var getAdminDashboardActivity = (options) => (options?.client ?? client).get({
|
|
1477
|
+
security: [{
|
|
1478
|
+
in: "cookie",
|
|
1479
|
+
name: "nadeshiko.session_token",
|
|
1480
|
+
type: "apiKey"
|
|
1481
|
+
}],
|
|
1482
|
+
url: "/v1/admin/dashboard/activity",
|
|
1483
|
+
...options
|
|
1484
|
+
});
|
|
1485
|
+
var getAdminDashboardCollections = (options) => (options?.client ?? client).get({
|
|
1486
|
+
security: [{
|
|
1487
|
+
in: "cookie",
|
|
1488
|
+
name: "nadeshiko.session_token",
|
|
1489
|
+
type: "apiKey"
|
|
1490
|
+
}],
|
|
1491
|
+
url: "/v1/admin/dashboard/collections",
|
|
1492
|
+
...options
|
|
1493
|
+
});
|
|
1494
|
+
var getAdminDashboardApiKeys = (options) => (options?.client ?? client).get({
|
|
1495
|
+
security: [{
|
|
1496
|
+
in: "cookie",
|
|
1497
|
+
name: "nadeshiko.session_token",
|
|
1498
|
+
type: "apiKey"
|
|
1499
|
+
}],
|
|
1500
|
+
url: "/v1/admin/dashboard/api-keys",
|
|
1501
|
+
...options
|
|
1502
|
+
});
|
|
1503
|
+
var getAdminDashboardSystem = (options) => (options?.client ?? client).get({
|
|
1504
|
+
security: [{
|
|
1505
|
+
in: "cookie",
|
|
1506
|
+
name: "nadeshiko.session_token",
|
|
1507
|
+
type: "apiKey"
|
|
1508
|
+
}],
|
|
1509
|
+
url: "/v1/admin/dashboard/system",
|
|
1510
|
+
...options
|
|
1511
|
+
});
|
|
1512
|
+
var getAdminHealth = (options) => (options?.client ?? client).get({
|
|
1513
|
+
security: [{
|
|
1514
|
+
in: "cookie",
|
|
1515
|
+
name: "nadeshiko.session_token",
|
|
1516
|
+
type: "apiKey"
|
|
1517
|
+
}],
|
|
1518
|
+
url: "/v1/admin/health",
|
|
1519
|
+
...options
|
|
1520
|
+
});
|
|
1521
|
+
var triggerReindex = (options) => (options?.client ?? client).post({
|
|
1522
|
+
security: [{
|
|
1523
|
+
in: "cookie",
|
|
1524
|
+
name: "nadeshiko.session_token",
|
|
1525
|
+
type: "apiKey"
|
|
1526
|
+
}],
|
|
1527
|
+
url: "/v1/admin/reindex",
|
|
1528
|
+
...options,
|
|
1529
|
+
headers: {
|
|
1530
|
+
"Content-Type": "application/json",
|
|
1531
|
+
...options?.headers
|
|
1532
|
+
}
|
|
1533
|
+
});
|
|
1534
|
+
var listAdminQueueStats = (options) => (options?.client ?? client).get({
|
|
1535
|
+
security: [{
|
|
1536
|
+
in: "cookie",
|
|
1537
|
+
name: "nadeshiko.session_token",
|
|
1538
|
+
type: "apiKey"
|
|
1539
|
+
}],
|
|
1540
|
+
url: "/v1/admin/queues/stats",
|
|
1541
|
+
...options
|
|
1542
|
+
});
|
|
1543
|
+
var getAdminQueue = (options) => (options.client ?? client).get({
|
|
1544
|
+
security: [{
|
|
1545
|
+
in: "cookie",
|
|
1546
|
+
name: "nadeshiko.session_token",
|
|
1547
|
+
type: "apiKey"
|
|
1548
|
+
}],
|
|
1549
|
+
url: "/v1/admin/queues/{queueName}",
|
|
1550
|
+
...options
|
|
1551
|
+
});
|
|
1552
|
+
var listAdminQueueFailed = (options) => (options.client ?? client).get({
|
|
1553
|
+
security: [{
|
|
1554
|
+
in: "cookie",
|
|
1555
|
+
name: "nadeshiko.session_token",
|
|
1556
|
+
type: "apiKey"
|
|
1557
|
+
}],
|
|
1558
|
+
url: "/v1/admin/queues/{queueName}/failed",
|
|
1559
|
+
...options
|
|
1560
|
+
});
|
|
1561
|
+
var retryAdminQueueFailed = (options) => (options.client ?? client).post({
|
|
1562
|
+
security: [{
|
|
1563
|
+
in: "cookie",
|
|
1564
|
+
name: "nadeshiko.session_token",
|
|
1565
|
+
type: "apiKey"
|
|
1566
|
+
}],
|
|
1567
|
+
url: "/v1/admin/queues/{queueName}/retry",
|
|
1568
|
+
...options
|
|
1569
|
+
});
|
|
1570
|
+
var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
|
|
1571
|
+
security: [{
|
|
1572
|
+
in: "cookie",
|
|
1573
|
+
name: "nadeshiko.session_token",
|
|
1574
|
+
type: "apiKey"
|
|
1575
|
+
}],
|
|
1576
|
+
url: "/v1/admin/queues/{queueName}/purge",
|
|
1577
|
+
...options
|
|
1578
|
+
});
|
|
1579
|
+
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1580
|
+
security: [{
|
|
1581
|
+
in: "cookie",
|
|
1582
|
+
name: "nadeshiko.session_token",
|
|
1583
|
+
type: "apiKey"
|
|
1584
|
+
}],
|
|
1585
|
+
url: "/v1/admin/reports",
|
|
1586
|
+
...options
|
|
1587
|
+
});
|
|
1588
|
+
var batchUpdateAdminReports = (options) => (options.client ?? client).patch({
|
|
1589
|
+
security: [{
|
|
1590
|
+
in: "cookie",
|
|
1591
|
+
name: "nadeshiko.session_token",
|
|
1592
|
+
type: "apiKey"
|
|
1593
|
+
}],
|
|
1594
|
+
url: "/v1/admin/reports/batch",
|
|
1595
|
+
...options,
|
|
1596
|
+
headers: {
|
|
1597
|
+
"Content-Type": "application/json",
|
|
1598
|
+
...options.headers
|
|
1599
|
+
}
|
|
1600
|
+
});
|
|
1601
|
+
var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
1602
|
+
security: [{
|
|
1603
|
+
in: "cookie",
|
|
1604
|
+
name: "nadeshiko.session_token",
|
|
1605
|
+
type: "apiKey"
|
|
1606
|
+
}],
|
|
1607
|
+
url: "/v1/admin/reports/{id}",
|
|
1608
|
+
...options,
|
|
1609
|
+
headers: {
|
|
1610
|
+
"Content-Type": "application/json",
|
|
1611
|
+
...options.headers
|
|
1612
|
+
}
|
|
1613
|
+
});
|
|
1614
|
+
var listAdminMediaAudits = (options) => (options?.client ?? client).get({
|
|
1615
|
+
security: [{
|
|
1616
|
+
in: "cookie",
|
|
1617
|
+
name: "nadeshiko.session_token",
|
|
1618
|
+
type: "apiKey"
|
|
1619
|
+
}],
|
|
1620
|
+
url: "/v1/admin/media/audits",
|
|
1621
|
+
...options
|
|
1622
|
+
});
|
|
1623
|
+
var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
1624
|
+
security: [{
|
|
1625
|
+
in: "cookie",
|
|
1626
|
+
name: "nadeshiko.session_token",
|
|
1627
|
+
type: "apiKey"
|
|
1628
|
+
}],
|
|
1629
|
+
url: "/v1/admin/media/audits/{name}",
|
|
1630
|
+
...options,
|
|
1631
|
+
headers: {
|
|
1632
|
+
"Content-Type": "application/json",
|
|
1633
|
+
...options.headers
|
|
1634
|
+
}
|
|
1635
|
+
});
|
|
1636
|
+
var runAdminMediaAudit = (options) => (options.client ?? client).post({
|
|
1637
|
+
security: [{
|
|
1638
|
+
in: "cookie",
|
|
1639
|
+
name: "nadeshiko.session_token",
|
|
1640
|
+
type: "apiKey"
|
|
1641
|
+
}],
|
|
1642
|
+
url: "/v1/admin/media/audits/{name}/run",
|
|
1643
|
+
...options
|
|
1644
|
+
});
|
|
1645
|
+
var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
|
|
1646
|
+
security: [{
|
|
1647
|
+
in: "cookie",
|
|
1648
|
+
name: "nadeshiko.session_token",
|
|
1649
|
+
type: "apiKey"
|
|
1650
|
+
}],
|
|
1651
|
+
url: "/v1/admin/media/audits/runs",
|
|
1652
|
+
...options
|
|
1653
|
+
});
|
|
1654
|
+
var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
1655
|
+
security: [{
|
|
1656
|
+
in: "cookie",
|
|
1657
|
+
name: "nadeshiko.session_token",
|
|
1658
|
+
type: "apiKey"
|
|
1659
|
+
}],
|
|
1660
|
+
url: "/v1/admin/media/audits/runs/{id}",
|
|
1661
|
+
...options
|
|
1662
|
+
});
|
|
1663
|
+
var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
|
|
1664
|
+
var updateAnnouncement = (options) => (options.client ?? client).put({
|
|
1665
|
+
security: [{
|
|
1666
|
+
in: "cookie",
|
|
1667
|
+
name: "nadeshiko.session_token",
|
|
1668
|
+
type: "apiKey"
|
|
1669
|
+
}],
|
|
1670
|
+
url: "/v1/admin/announcement",
|
|
1671
|
+
...options,
|
|
1672
|
+
headers: {
|
|
1673
|
+
"Content-Type": "application/json",
|
|
1674
|
+
...options.headers
|
|
1675
|
+
}
|
|
1676
|
+
});
|
|
1677
|
+
// generated/internal/retry.ts
|
|
938
1678
|
var RETRYABLE_STATUS = new Set([408, 429, 500, 502, 503, 504]);
|
|
939
1679
|
function parseRetryAfter(value) {
|
|
940
1680
|
const seconds = Number(value);
|
|
@@ -1004,7 +1744,7 @@ function withRetry(fetchImpl = globalThis.fetch, options = {}) {
|
|
|
1004
1744
|
};
|
|
1005
1745
|
}
|
|
1006
1746
|
|
|
1007
|
-
// generated/
|
|
1747
|
+
// generated/internal/errors.ts
|
|
1008
1748
|
class NadeshikoError extends Error {
|
|
1009
1749
|
code;
|
|
1010
1750
|
title;
|
|
@@ -1026,13 +1766,19 @@ class NadeshikoError extends Error {
|
|
|
1026
1766
|
}
|
|
1027
1767
|
}
|
|
1028
1768
|
|
|
1029
|
-
// generated/
|
|
1769
|
+
// generated/internal/nadeshiko.gen.ts
|
|
1030
1770
|
var environments = {
|
|
1031
1771
|
LOCAL: "http://localhost:5000/api",
|
|
1032
1772
|
DEVELOPMENT: "https://api-dev.nadeshiko.co",
|
|
1033
1773
|
PRODUCTION: "https://api.nadeshiko.co",
|
|
1034
1774
|
PROXY: ""
|
|
1035
1775
|
};
|
|
1776
|
+
var defaultSessionTokenGetter = () => {
|
|
1777
|
+
if (typeof document === "undefined")
|
|
1778
|
+
return;
|
|
1779
|
+
const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
|
|
1780
|
+
return match ? decodeURIComponent(match[1]) : undefined;
|
|
1781
|
+
};
|
|
1036
1782
|
function createNadeshikoClient(config) {
|
|
1037
1783
|
const rawBaseUrl = config.baseURL ?? config.baseUrl;
|
|
1038
1784
|
const baseUrl = rawBaseUrl === undefined ? environments.PRODUCTION : (rawBaseUrl in environments) ? environments[rawBaseUrl] : rawBaseUrl;
|
|
@@ -1042,10 +1788,16 @@ function createNadeshikoClient(config) {
|
|
|
1042
1788
|
}
|
|
1043
1789
|
return config.apiKey;
|
|
1044
1790
|
};
|
|
1791
|
+
const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
|
|
1045
1792
|
const clientInstance = createClient(createConfig({
|
|
1046
1793
|
baseUrl,
|
|
1047
1794
|
fetch: withRetry(globalThis.fetch, config.retryOptions),
|
|
1048
|
-
auth: () =>
|
|
1795
|
+
auth: (auth) => {
|
|
1796
|
+
if (auth.in === "cookie") {
|
|
1797
|
+
return getSessionToken();
|
|
1798
|
+
}
|
|
1799
|
+
return getApiKey();
|
|
1800
|
+
}
|
|
1049
1801
|
}));
|
|
1050
1802
|
clientInstance.interceptors.error.use((error) => {
|
|
1051
1803
|
if (error && typeof error === "object" && "code" in error && typeof error.code === "string") {
|
|
@@ -1058,6 +1810,9 @@ function createNadeshikoClient(config) {
|
|
|
1058
1810
|
search: (options) => search({ throwOnError: true, ...options, client: clientInstance }),
|
|
1059
1811
|
getSearchStats: (options) => getSearchStats({ throwOnError: true, ...options, client: clientInstance }),
|
|
1060
1812
|
searchWords: (options) => searchWords({ throwOnError: true, ...options, client: clientInstance }),
|
|
1813
|
+
getStatsOverview: (options) => getStatsOverview({ throwOnError: true, ...options, client: clientInstance }),
|
|
1814
|
+
getCoveredWords: (options) => getCoveredWords({ throwOnError: true, ...options, client: clientInstance }),
|
|
1815
|
+
triggerCoveredWordsUpdate: (options) => triggerCoveredWordsUpdate({ throwOnError: true, ...options, client: clientInstance }),
|
|
1061
1816
|
listMedia: (options) => listMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1062
1817
|
getSegmentByUuid: (options) => getSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
|
|
1063
1818
|
getSegmentContext: (options) => getSegmentContext({ throwOnError: true, ...options, client: clientInstance }),
|
|
@@ -1066,10 +1821,168 @@ function createNadeshikoClient(config) {
|
|
|
1066
1821
|
getMedia: (options) => getMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1067
1822
|
listEpisodes: (options) => listEpisodes({ throwOnError: true, ...options, client: clientInstance }),
|
|
1068
1823
|
getEpisode: (options) => getEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1069
|
-
getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance })
|
|
1824
|
+
getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1825
|
+
createMedia: (options) => createMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1826
|
+
autocompleteMedia: (options) => autocompleteMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1827
|
+
updateSegmentByUuid: (options) => updateSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
|
|
1828
|
+
listSegmentRevisions: (options) => listSegmentRevisions({ throwOnError: true, ...options, client: clientInstance }),
|
|
1829
|
+
createSeries: (options) => createSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1830
|
+
updateSeries: (options) => updateSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1831
|
+
deleteSeries: (options) => deleteSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1832
|
+
addMediaToSeries: (options) => addMediaToSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1833
|
+
updateSeriesMedia: (options) => updateSeriesMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1834
|
+
removeMediaFromSeries: (options) => removeMediaFromSeries({ throwOnError: true, ...options, client: clientInstance }),
|
|
1835
|
+
getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
|
|
1836
|
+
getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
|
|
1837
|
+
updateMedia: (options) => updateMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1838
|
+
deleteMedia: (options) => deleteMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1839
|
+
createEpisode: (options) => createEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1840
|
+
updateEpisode: (options) => updateEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1841
|
+
deleteEpisode: (options) => deleteEpisode({ throwOnError: true, ...options, client: clientInstance }),
|
|
1842
|
+
listSegments: (options) => listSegments({ throwOnError: true, ...options, client: clientInstance }),
|
|
1843
|
+
createSegment: (options) => createSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1844
|
+
createSegmentsBatch: (options) => createSegmentsBatch({ throwOnError: true, ...options, client: clientInstance }),
|
|
1845
|
+
updateSegment: (options) => updateSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1846
|
+
deleteSegment: (options) => deleteSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1847
|
+
getUserQuota: (options) => getUserQuota({ throwOnError: true, ...options, client: clientInstance }),
|
|
1848
|
+
createUserReport: (options) => createUserReport({ throwOnError: true, ...options, client: clientInstance }),
|
|
1849
|
+
getUserPreferences: (options) => getUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
|
|
1850
|
+
updateUserPreferences: (options) => updateUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
|
|
1851
|
+
listUserActivity: (options) => listUserActivity({ throwOnError: true, ...options, client: clientInstance }),
|
|
1852
|
+
trackUserActivity: (options) => trackUserActivity({ throwOnError: true, ...options, client: clientInstance }),
|
|
1853
|
+
deleteUserActivity: (options) => deleteUserActivity({ throwOnError: true, ...options, client: clientInstance }),
|
|
1854
|
+
getUserActivityHeatmap: (options) => getUserActivityHeatmap({ throwOnError: true, ...options, client: clientInstance }),
|
|
1855
|
+
getUserActivityStats: (options) => getUserActivityStats({ throwOnError: true, ...options, client: clientInstance }),
|
|
1856
|
+
deleteUserActivityByDate: (options) => deleteUserActivityByDate({ throwOnError: true, ...options, client: clientInstance }),
|
|
1857
|
+
deleteUserActivityById: (options) => deleteUserActivityById({ throwOnError: true, ...options, client: clientInstance }),
|
|
1858
|
+
exportUserData: (options) => exportUserData({ throwOnError: true, ...options, client: clientInstance }),
|
|
1859
|
+
listUserLabs: (options) => listUserLabs({ throwOnError: true, ...options, client: clientInstance }),
|
|
1860
|
+
enrollUserLab: (options) => enrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
|
|
1861
|
+
unenrollUserLab: (options) => unenrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
|
|
1862
|
+
listCollections: (options) => listCollections({ throwOnError: true, ...options, client: clientInstance }),
|
|
1863
|
+
createCollection: (options) => createCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1864
|
+
getCollection: (options) => getCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1865
|
+
updateCollection: (options) => updateCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1866
|
+
deleteCollection: (options) => deleteCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1867
|
+
addSegmentToCollection: (options) => addSegmentToCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1868
|
+
updateCollectionSegment: (options) => updateCollectionSegment({ throwOnError: true, ...options, client: clientInstance }),
|
|
1869
|
+
removeSegmentFromCollection: (options) => removeSegmentFromCollection({ throwOnError: true, ...options, client: clientInstance }),
|
|
1870
|
+
searchCollectionSegments: (options) => searchCollectionSegments({ throwOnError: true, ...options, client: clientInstance }),
|
|
1871
|
+
getCollectionStats: (options) => getCollectionStats({ throwOnError: true, ...options, client: clientInstance }),
|
|
1872
|
+
getAdminDashboard: (options) => getAdminDashboard({ throwOnError: true, ...options, client: clientInstance }),
|
|
1873
|
+
getAdminDashboardOverview: (options) => getAdminDashboardOverview({ throwOnError: true, ...options, client: clientInstance }),
|
|
1874
|
+
getAdminDashboardMedia: (options) => getAdminDashboardMedia({ throwOnError: true, ...options, client: clientInstance }),
|
|
1875
|
+
getAdminDashboardActivity: (options) => getAdminDashboardActivity({ throwOnError: true, ...options, client: clientInstance }),
|
|
1876
|
+
getAdminDashboardCollections: (options) => getAdminDashboardCollections({ throwOnError: true, ...options, client: clientInstance }),
|
|
1877
|
+
getAdminDashboardApiKeys: (options) => getAdminDashboardApiKeys({ throwOnError: true, ...options, client: clientInstance }),
|
|
1878
|
+
getAdminDashboardSystem: (options) => getAdminDashboardSystem({ throwOnError: true, ...options, client: clientInstance }),
|
|
1879
|
+
getAdminHealth: (options) => getAdminHealth({ throwOnError: true, ...options, client: clientInstance }),
|
|
1880
|
+
triggerReindex: (options) => triggerReindex({ throwOnError: true, ...options, client: clientInstance }),
|
|
1881
|
+
listAdminQueueStats: (options) => listAdminQueueStats({ throwOnError: true, ...options, client: clientInstance }),
|
|
1882
|
+
getAdminQueue: (options) => getAdminQueue({ throwOnError: true, ...options, client: clientInstance }),
|
|
1883
|
+
listAdminQueueFailed: (options) => listAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
|
|
1884
|
+
retryAdminQueueFailed: (options) => retryAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
|
|
1885
|
+
purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
|
|
1886
|
+
listAdminReports: (options) => listAdminReports({ throwOnError: true, ...options, client: clientInstance }),
|
|
1887
|
+
batchUpdateAdminReports: (options) => batchUpdateAdminReports({ throwOnError: true, ...options, client: clientInstance }),
|
|
1888
|
+
updateAdminReport: (options) => updateAdminReport({ throwOnError: true, ...options, client: clientInstance }),
|
|
1889
|
+
listAdminMediaAudits: (options) => listAdminMediaAudits({ throwOnError: true, ...options, client: clientInstance }),
|
|
1890
|
+
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
|
|
1891
|
+
runAdminMediaAudit: (options) => runAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
|
|
1892
|
+
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ throwOnError: true, ...options, client: clientInstance }),
|
|
1893
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ throwOnError: true, ...options, client: clientInstance }),
|
|
1894
|
+
getAnnouncement: (options) => getAnnouncement({ throwOnError: true, ...options, client: clientInstance }),
|
|
1895
|
+
updateAnnouncement: (options) => updateAnnouncement({ throwOnError: true, ...options, client: clientInstance })
|
|
1070
1896
|
};
|
|
1071
1897
|
}
|
|
1072
|
-
// generated/
|
|
1898
|
+
// generated/internal/internal/media.gen.ts
|
|
1899
|
+
var exports_media_gen = {};
|
|
1900
|
+
__export(exports_media_gen, {
|
|
1901
|
+
updateSeriesMedia: () => updateSeriesMedia,
|
|
1902
|
+
updateSeries: () => updateSeries,
|
|
1903
|
+
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
1904
|
+
updateSegment: () => updateSegment,
|
|
1905
|
+
updateMedia: () => updateMedia,
|
|
1906
|
+
updateEpisode: () => updateEpisode,
|
|
1907
|
+
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
1908
|
+
listSegments: () => listSegments,
|
|
1909
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
1910
|
+
getSeiyuu: () => getSeiyuu,
|
|
1911
|
+
getCharacter: () => getCharacter,
|
|
1912
|
+
deleteSeries: () => deleteSeries,
|
|
1913
|
+
deleteSegment: () => deleteSegment,
|
|
1914
|
+
deleteMedia: () => deleteMedia,
|
|
1915
|
+
deleteEpisode: () => deleteEpisode,
|
|
1916
|
+
createSeries: () => createSeries,
|
|
1917
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
1918
|
+
createSegment: () => createSegment,
|
|
1919
|
+
createMedia: () => createMedia,
|
|
1920
|
+
createEpisode: () => createEpisode,
|
|
1921
|
+
autocompleteMedia: () => autocompleteMedia,
|
|
1922
|
+
addMediaToSeries: () => addMediaToSeries
|
|
1923
|
+
});
|
|
1924
|
+
// generated/internal/internal/user.gen.ts
|
|
1925
|
+
var exports_user_gen = {};
|
|
1926
|
+
__export(exports_user_gen, {
|
|
1927
|
+
updateUserPreferences: () => updateUserPreferences,
|
|
1928
|
+
unenrollUserLab: () => unenrollUserLab,
|
|
1929
|
+
trackUserActivity: () => trackUserActivity,
|
|
1930
|
+
listUserLabs: () => listUserLabs,
|
|
1931
|
+
listUserActivity: () => listUserActivity,
|
|
1932
|
+
getUserQuota: () => getUserQuota,
|
|
1933
|
+
getUserPreferences: () => getUserPreferences,
|
|
1934
|
+
getUserActivityStats: () => getUserActivityStats,
|
|
1935
|
+
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
1936
|
+
exportUserData: () => exportUserData,
|
|
1937
|
+
enrollUserLab: () => enrollUserLab,
|
|
1938
|
+
deleteUserActivityById: () => deleteUserActivityById,
|
|
1939
|
+
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
1940
|
+
deleteUserActivity: () => deleteUserActivity,
|
|
1941
|
+
createUserReport: () => createUserReport
|
|
1942
|
+
});
|
|
1943
|
+
// generated/internal/internal/collections.gen.ts
|
|
1944
|
+
var exports_collections_gen = {};
|
|
1945
|
+
__export(exports_collections_gen, {
|
|
1946
|
+
updateCollectionSegment: () => updateCollectionSegment,
|
|
1947
|
+
updateCollection: () => updateCollection,
|
|
1948
|
+
searchCollectionSegments: () => searchCollectionSegments,
|
|
1949
|
+
removeSegmentFromCollection: () => removeSegmentFromCollection,
|
|
1950
|
+
listCollections: () => listCollections,
|
|
1951
|
+
getCollectionStats: () => getCollectionStats,
|
|
1952
|
+
getCollection: () => getCollection,
|
|
1953
|
+
deleteCollection: () => deleteCollection,
|
|
1954
|
+
createCollection: () => createCollection,
|
|
1955
|
+
addSegmentToCollection: () => addSegmentToCollection
|
|
1956
|
+
});
|
|
1957
|
+
// generated/internal/internal/admin.gen.ts
|
|
1958
|
+
var exports_admin_gen = {};
|
|
1959
|
+
__export(exports_admin_gen, {
|
|
1960
|
+
updateAnnouncement: () => updateAnnouncement,
|
|
1961
|
+
updateAdminReport: () => updateAdminReport,
|
|
1962
|
+
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
1963
|
+
triggerReindex: () => triggerReindex,
|
|
1964
|
+
runAdminMediaAudit: () => runAdminMediaAudit,
|
|
1965
|
+
retryAdminQueueFailed: () => retryAdminQueueFailed,
|
|
1966
|
+
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
1967
|
+
listAdminReports: () => listAdminReports,
|
|
1968
|
+
listAdminQueueStats: () => listAdminQueueStats,
|
|
1969
|
+
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
1970
|
+
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
1971
|
+
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
1972
|
+
getAnnouncement: () => getAnnouncement,
|
|
1973
|
+
getAdminQueue: () => getAdminQueue,
|
|
1974
|
+
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
1975
|
+
getAdminHealth: () => getAdminHealth,
|
|
1976
|
+
getAdminDashboardSystem: () => getAdminDashboardSystem,
|
|
1977
|
+
getAdminDashboardOverview: () => getAdminDashboardOverview,
|
|
1978
|
+
getAdminDashboardMedia: () => getAdminDashboardMedia,
|
|
1979
|
+
getAdminDashboardCollections: () => getAdminDashboardCollections,
|
|
1980
|
+
getAdminDashboardApiKeys: () => getAdminDashboardApiKeys,
|
|
1981
|
+
getAdminDashboardActivity: () => getAdminDashboardActivity,
|
|
1982
|
+
getAdminDashboard: () => getAdminDashboard,
|
|
1983
|
+
batchUpdateAdminReports: () => batchUpdateAdminReports
|
|
1984
|
+
});
|
|
1985
|
+
// generated/internal/paginate.ts
|
|
1073
1986
|
async function* paginate(fn, options, extract) {
|
|
1074
1987
|
let cursor = null;
|
|
1075
1988
|
let first = true;
|
|
@@ -1099,5 +2012,5 @@ function patchCursor(options, cursor) {
|
|
|
1099
2012
|
return { ...options, body: { cursor } };
|
|
1100
2013
|
}
|
|
1101
2014
|
|
|
1102
|
-
//# debugId=
|
|
2015
|
+
//# debugId=1F3074A4474A644864756E2164756E21
|
|
1103
2016
|
//# sourceMappingURL=index.js.map
|