@brigadasos/nadeshiko-sdk 1.4.3-dev.e5c01f0 → 1.5.0-dev.411cb7c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -14
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/index.cjs +512 -195
- package/dist/index.cjs.map +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +499 -188
- package/dist/index.js.map +5 -5
- package/dist/internal/admin.gen.d.ts +1 -1
- package/dist/internal/admin.gen.d.ts.map +1 -1
- package/dist/internal/collections.gen.d.ts +2 -0
- package/dist/internal/collections.gen.d.ts.map +1 -0
- package/dist/internal/media.gen.d.ts +1 -1
- package/dist/internal/media.gen.d.ts.map +1 -1
- package/dist/internal/user.gen.d.ts +1 -1
- package/dist/internal/user.gen.d.ts.map +1 -1
- package/dist/internal.gen.d.ts +1 -0
- package/dist/internal.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +50 -40
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +231 -143
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +1663 -1305
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2,27 +2,37 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
|
|
5
|
+
function __accessProp(key) {
|
|
6
|
+
return this[key];
|
|
7
|
+
}
|
|
6
8
|
var __toCommonJS = (from) => {
|
|
7
|
-
var entry = __moduleCache.get(from), desc;
|
|
9
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
8
10
|
if (entry)
|
|
9
11
|
return entry;
|
|
10
12
|
entry = __defProp({}, "__esModule", { value: true });
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (var key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(entry, key))
|
|
16
|
+
__defProp(entry, key, {
|
|
17
|
+
get: __accessProp.bind(from, key),
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
16
21
|
__moduleCache.set(from, entry);
|
|
17
22
|
return entry;
|
|
18
23
|
};
|
|
24
|
+
var __moduleCache;
|
|
25
|
+
var __returnValue = (v) => v;
|
|
26
|
+
function __exportSetter(name, newValue) {
|
|
27
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
28
|
+
}
|
|
19
29
|
var __export = (target, all) => {
|
|
20
30
|
for (var name in all)
|
|
21
31
|
__defProp(target, name, {
|
|
22
32
|
get: all[name],
|
|
23
33
|
enumerable: true,
|
|
24
34
|
configurable: true,
|
|
25
|
-
set: (
|
|
35
|
+
set: __exportSetter.bind(all, name)
|
|
26
36
|
});
|
|
27
37
|
};
|
|
28
38
|
|
|
@@ -33,36 +43,40 @@ __export(exports_dev, {
|
|
|
33
43
|
updateUserPreferences: () => updateUserPreferences,
|
|
34
44
|
updateSeriesMedia: () => updateSeriesMedia,
|
|
35
45
|
updateSeries: () => updateSeries,
|
|
46
|
+
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
36
47
|
updateSegment: () => updateSegment,
|
|
37
48
|
updateMedia: () => updateMedia,
|
|
38
49
|
updateEpisode: () => updateEpisode,
|
|
39
50
|
updateCollectionSegment: () => updateCollectionSegment,
|
|
40
51
|
updateCollection: () => updateCollection,
|
|
41
|
-
updateAdminReviewCheck: () => updateAdminReviewCheck,
|
|
42
52
|
updateAdminReport: () => updateAdminReport,
|
|
53
|
+
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
54
|
+
unenrollUserLab: () => unenrollUserLab,
|
|
43
55
|
triggerReindex: () => triggerReindex,
|
|
56
|
+
trackUserActivity: () => trackUserActivity,
|
|
44
57
|
searchWords: () => searchWords,
|
|
58
|
+
searchCollectionSegments: () => searchCollectionSegments,
|
|
45
59
|
search: () => search,
|
|
46
|
-
|
|
60
|
+
runAdminMediaAudit: () => runAdminMediaAudit,
|
|
47
61
|
retryAdminQueueFailed: () => retryAdminQueueFailed,
|
|
48
62
|
removeSegmentFromCollection: () => removeSegmentFromCollection,
|
|
49
63
|
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
50
64
|
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
51
65
|
media: () => exports_media_gen,
|
|
52
|
-
listUserReports: () => listUserReports,
|
|
53
66
|
listUserLabs: () => listUserLabs,
|
|
54
67
|
listUserActivity: () => listUserActivity,
|
|
55
68
|
listSeries: () => listSeries,
|
|
56
69
|
listSegments: () => listSegments,
|
|
70
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
57
71
|
listMedia: () => listMedia,
|
|
58
72
|
listEpisodes: () => listEpisodes,
|
|
59
73
|
listCollections: () => listCollections,
|
|
60
|
-
listAdminReviewRuns: () => listAdminReviewRuns,
|
|
61
|
-
listAdminReviewChecks: () => listAdminReviewChecks,
|
|
62
|
-
listAdminReviewAllowlist: () => listAdminReviewAllowlist,
|
|
63
74
|
listAdminReports: () => listAdminReports,
|
|
64
75
|
listAdminQueueStats: () => listAdminQueueStats,
|
|
65
76
|
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
77
|
+
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
78
|
+
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
79
|
+
impersonateAdminUser: () => impersonateAdminUser,
|
|
66
80
|
getUserQuota: () => getUserQuota,
|
|
67
81
|
getUserPreferences: () => getUserPreferences,
|
|
68
82
|
getUserActivityStats: () => getUserActivityStats,
|
|
@@ -75,29 +89,34 @@ __export(exports_dev, {
|
|
|
75
89
|
getSearchStats: () => getSearchStats,
|
|
76
90
|
getMedia: () => getMedia,
|
|
77
91
|
getEpisode: () => getEpisode,
|
|
92
|
+
getCollectionStats: () => getCollectionStats,
|
|
78
93
|
getCollection: () => getCollection,
|
|
79
94
|
getCharacter: () => getCharacter,
|
|
80
|
-
getAdminReviewRun: () => getAdminReviewRun,
|
|
81
95
|
getAdminQueue: () => getAdminQueue,
|
|
96
|
+
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
82
97
|
getAdminHealth: () => getAdminHealth,
|
|
83
98
|
getAdminDashboard: () => getAdminDashboard,
|
|
84
99
|
exportUserData: () => exportUserData,
|
|
100
|
+
enrollUserLab: () => enrollUserLab,
|
|
101
|
+
deleteUserActivityById: () => deleteUserActivityById,
|
|
102
|
+
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
85
103
|
deleteUserActivity: () => deleteUserActivity,
|
|
86
104
|
deleteSeries: () => deleteSeries,
|
|
87
105
|
deleteSegment: () => deleteSegment,
|
|
88
106
|
deleteMedia: () => deleteMedia,
|
|
89
107
|
deleteEpisode: () => deleteEpisode,
|
|
90
108
|
deleteCollection: () => deleteCollection,
|
|
91
|
-
deleteAdminReviewAllowlistEntry: () => deleteAdminReviewAllowlistEntry,
|
|
92
109
|
createUserReport: () => createUserReport,
|
|
93
110
|
createSeries: () => createSeries,
|
|
111
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
94
112
|
createSegment: () => createSegment,
|
|
95
113
|
createNadeshikoClient: () => createNadeshikoClient,
|
|
96
114
|
createMedia: () => createMedia,
|
|
97
115
|
createEpisode: () => createEpisode,
|
|
98
116
|
createCollection: () => createCollection,
|
|
99
|
-
|
|
117
|
+
collections: () => exports_collections_gen,
|
|
100
118
|
client: () => client,
|
|
119
|
+
clearAdminImpersonation: () => clearAdminImpersonation,
|
|
101
120
|
autocompleteMedia: () => autocompleteMedia,
|
|
102
121
|
admin: () => exports_admin_gen,
|
|
103
122
|
addSegmentToCollection: () => addSegmentToCollection,
|
|
@@ -905,7 +924,7 @@ var createClient = (config = {}) => {
|
|
|
905
924
|
};
|
|
906
925
|
};
|
|
907
926
|
// generated/dev/client.gen.ts
|
|
908
|
-
var client = createClient(createConfig({ baseUrl: "
|
|
927
|
+
var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
|
|
909
928
|
|
|
910
929
|
// generated/dev/sdk.gen.ts
|
|
911
930
|
var search = (options) => (options?.client ?? client).post({
|
|
@@ -948,12 +967,20 @@ var searchWords = (options) => (options.client ?? client).post({
|
|
|
948
967
|
}
|
|
949
968
|
});
|
|
950
969
|
var listMedia = (options) => (options?.client ?? client).get({
|
|
951
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
970
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
971
|
+
in: "cookie",
|
|
972
|
+
name: "nadeshiko.session_token",
|
|
973
|
+
type: "apiKey"
|
|
974
|
+
}],
|
|
952
975
|
url: "/v1/media",
|
|
953
976
|
...options
|
|
954
977
|
});
|
|
955
978
|
var createMedia = (options) => (options.client ?? client).post({
|
|
956
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
979
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
980
|
+
in: "cookie",
|
|
981
|
+
name: "nadeshiko.session_token",
|
|
982
|
+
type: "apiKey"
|
|
983
|
+
}],
|
|
957
984
|
url: "/v1/media",
|
|
958
985
|
...options,
|
|
959
986
|
headers: {
|
|
@@ -962,195 +989,317 @@ var createMedia = (options) => (options.client ?? client).post({
|
|
|
962
989
|
}
|
|
963
990
|
});
|
|
964
991
|
var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
965
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
992
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
993
|
+
in: "cookie",
|
|
994
|
+
name: "nadeshiko.session_token",
|
|
995
|
+
type: "apiKey"
|
|
996
|
+
}],
|
|
966
997
|
url: "/v1/media/autocomplete",
|
|
967
998
|
...options
|
|
968
999
|
});
|
|
969
|
-
var
|
|
970
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
url: "/v1/media/{id}",
|
|
1000
|
+
var getSegmentByUuid = (options) => (options.client ?? client).get({
|
|
1001
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1002
|
+
in: "cookie",
|
|
1003
|
+
name: "nadeshiko.session_token",
|
|
1004
|
+
type: "apiKey"
|
|
1005
|
+
}],
|
|
1006
|
+
url: "/v1/media/segments/{uuid}",
|
|
977
1007
|
...options
|
|
978
1008
|
});
|
|
979
|
-
var
|
|
980
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
981
|
-
|
|
1009
|
+
var updateSegmentByUuid = (options) => (options.client ?? client).patch({
|
|
1010
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1011
|
+
in: "cookie",
|
|
1012
|
+
name: "nadeshiko.session_token",
|
|
1013
|
+
type: "apiKey"
|
|
1014
|
+
}],
|
|
1015
|
+
url: "/v1/media/segments/{uuid}",
|
|
982
1016
|
...options,
|
|
983
1017
|
headers: {
|
|
984
1018
|
"Content-Type": "application/json",
|
|
985
1019
|
...options.headers
|
|
986
1020
|
}
|
|
987
1021
|
});
|
|
988
|
-
var
|
|
989
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
990
|
-
|
|
1022
|
+
var getSegmentContext = (options) => (options.client ?? client).get({
|
|
1023
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1024
|
+
in: "cookie",
|
|
1025
|
+
name: "nadeshiko.session_token",
|
|
1026
|
+
type: "apiKey"
|
|
1027
|
+
}],
|
|
1028
|
+
url: "/v1/media/segments/{uuid}/context",
|
|
991
1029
|
...options
|
|
992
1030
|
});
|
|
993
|
-
var
|
|
994
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
995
|
-
|
|
1031
|
+
var listSegmentRevisions = (options) => (options.client ?? client).get({
|
|
1032
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1033
|
+
in: "cookie",
|
|
1034
|
+
name: "nadeshiko.session_token",
|
|
1035
|
+
type: "apiKey"
|
|
1036
|
+
}],
|
|
1037
|
+
url: "/v1/media/segments/{uuid}/revisions",
|
|
1038
|
+
...options
|
|
1039
|
+
});
|
|
1040
|
+
var listSeries = (options) => (options?.client ?? client).get({
|
|
1041
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1042
|
+
in: "cookie",
|
|
1043
|
+
name: "nadeshiko.session_token",
|
|
1044
|
+
type: "apiKey"
|
|
1045
|
+
}],
|
|
1046
|
+
url: "/v1/media/series",
|
|
1047
|
+
...options
|
|
1048
|
+
});
|
|
1049
|
+
var createSeries = (options) => (options.client ?? client).post({
|
|
1050
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1051
|
+
in: "cookie",
|
|
1052
|
+
name: "nadeshiko.session_token",
|
|
1053
|
+
type: "apiKey"
|
|
1054
|
+
}],
|
|
1055
|
+
url: "/v1/media/series",
|
|
996
1056
|
...options,
|
|
997
1057
|
headers: {
|
|
998
1058
|
"Content-Type": "application/json",
|
|
999
1059
|
...options.headers
|
|
1000
1060
|
}
|
|
1001
1061
|
});
|
|
1002
|
-
var
|
|
1003
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1004
|
-
|
|
1062
|
+
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
1063
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1064
|
+
in: "cookie",
|
|
1065
|
+
name: "nadeshiko.session_token",
|
|
1066
|
+
type: "apiKey"
|
|
1067
|
+
}],
|
|
1068
|
+
url: "/v1/media/series/{id}",
|
|
1005
1069
|
...options
|
|
1006
1070
|
});
|
|
1007
|
-
var
|
|
1008
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1009
|
-
|
|
1071
|
+
var getSeries = (options) => (options.client ?? client).get({
|
|
1072
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1073
|
+
in: "cookie",
|
|
1074
|
+
name: "nadeshiko.session_token",
|
|
1075
|
+
type: "apiKey"
|
|
1076
|
+
}],
|
|
1077
|
+
url: "/v1/media/series/{id}",
|
|
1010
1078
|
...options
|
|
1011
1079
|
});
|
|
1012
|
-
var
|
|
1013
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1014
|
-
|
|
1080
|
+
var updateSeries = (options) => (options.client ?? client).patch({
|
|
1081
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1082
|
+
in: "cookie",
|
|
1083
|
+
name: "nadeshiko.session_token",
|
|
1084
|
+
type: "apiKey"
|
|
1085
|
+
}],
|
|
1086
|
+
url: "/v1/media/series/{id}",
|
|
1015
1087
|
...options,
|
|
1016
1088
|
headers: {
|
|
1017
1089
|
"Content-Type": "application/json",
|
|
1018
1090
|
...options.headers
|
|
1019
1091
|
}
|
|
1020
1092
|
});
|
|
1021
|
-
var
|
|
1022
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1093
|
+
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
1094
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1095
|
+
in: "cookie",
|
|
1096
|
+
name: "nadeshiko.session_token",
|
|
1097
|
+
type: "apiKey"
|
|
1098
|
+
}],
|
|
1099
|
+
url: "/v1/media/series/{id}/media",
|
|
1029
1100
|
...options,
|
|
1030
1101
|
headers: {
|
|
1031
1102
|
"Content-Type": "application/json",
|
|
1032
1103
|
...options.headers
|
|
1033
1104
|
}
|
|
1034
1105
|
});
|
|
1035
|
-
var
|
|
1036
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1106
|
+
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
1107
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1108
|
+
in: "cookie",
|
|
1109
|
+
name: "nadeshiko.session_token",
|
|
1110
|
+
type: "apiKey"
|
|
1111
|
+
}],
|
|
1112
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1043
1113
|
...options
|
|
1044
1114
|
});
|
|
1045
|
-
var
|
|
1046
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1047
|
-
|
|
1115
|
+
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
1116
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1117
|
+
in: "cookie",
|
|
1118
|
+
name: "nadeshiko.session_token",
|
|
1119
|
+
type: "apiKey"
|
|
1120
|
+
}],
|
|
1121
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1048
1122
|
...options,
|
|
1049
1123
|
headers: {
|
|
1050
1124
|
"Content-Type": "application/json",
|
|
1051
1125
|
...options.headers
|
|
1052
1126
|
}
|
|
1053
1127
|
});
|
|
1054
|
-
var
|
|
1055
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1056
|
-
|
|
1128
|
+
var getCharacter = (options) => (options.client ?? client).get({
|
|
1129
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1130
|
+
in: "cookie",
|
|
1131
|
+
name: "nadeshiko.session_token",
|
|
1132
|
+
type: "apiKey"
|
|
1133
|
+
}],
|
|
1134
|
+
url: "/v1/media/characters/{id}",
|
|
1057
1135
|
...options
|
|
1058
1136
|
});
|
|
1059
|
-
var
|
|
1060
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1061
|
-
|
|
1137
|
+
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
1138
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1139
|
+
in: "cookie",
|
|
1140
|
+
name: "nadeshiko.session_token",
|
|
1141
|
+
type: "apiKey"
|
|
1142
|
+
}],
|
|
1143
|
+
url: "/v1/media/seiyuu/{id}",
|
|
1062
1144
|
...options
|
|
1063
1145
|
});
|
|
1064
|
-
var
|
|
1146
|
+
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
1065
1147
|
security: [{ scheme: "bearer", type: "http" }, {
|
|
1066
1148
|
in: "cookie",
|
|
1067
1149
|
name: "nadeshiko.session_token",
|
|
1068
1150
|
type: "apiKey"
|
|
1069
1151
|
}],
|
|
1070
|
-
url: "/v1/media/
|
|
1152
|
+
url: "/v1/media/{id}",
|
|
1071
1153
|
...options
|
|
1072
1154
|
});
|
|
1073
|
-
var
|
|
1074
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1075
|
-
|
|
1155
|
+
var getMedia = (options) => (options.client ?? client).get({
|
|
1156
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1157
|
+
in: "cookie",
|
|
1158
|
+
name: "nadeshiko.session_token",
|
|
1159
|
+
type: "apiKey"
|
|
1160
|
+
}],
|
|
1161
|
+
url: "/v1/media/{id}",
|
|
1162
|
+
...options
|
|
1163
|
+
});
|
|
1164
|
+
var updateMedia = (options) => (options.client ?? client).patch({
|
|
1165
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1166
|
+
in: "cookie",
|
|
1167
|
+
name: "nadeshiko.session_token",
|
|
1168
|
+
type: "apiKey"
|
|
1169
|
+
}],
|
|
1170
|
+
url: "/v1/media/{id}",
|
|
1076
1171
|
...options,
|
|
1077
1172
|
headers: {
|
|
1078
1173
|
"Content-Type": "application/json",
|
|
1079
1174
|
...options.headers
|
|
1080
1175
|
}
|
|
1081
1176
|
});
|
|
1082
|
-
var
|
|
1083
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1084
|
-
url: "/v1/media/series/{id}",
|
|
1085
|
-
...options
|
|
1086
|
-
});
|
|
1087
|
-
var getSeries = (options) => (options.client ?? client).get({
|
|
1177
|
+
var listEpisodes = (options) => (options.client ?? client).get({
|
|
1088
1178
|
security: [{ scheme: "bearer", type: "http" }, {
|
|
1089
1179
|
in: "cookie",
|
|
1090
1180
|
name: "nadeshiko.session_token",
|
|
1091
1181
|
type: "apiKey"
|
|
1092
1182
|
}],
|
|
1093
|
-
url: "/v1/media/
|
|
1183
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
1094
1184
|
...options
|
|
1095
1185
|
});
|
|
1096
|
-
var
|
|
1097
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1098
|
-
|
|
1186
|
+
var createEpisode = (options) => (options.client ?? client).post({
|
|
1187
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1188
|
+
in: "cookie",
|
|
1189
|
+
name: "nadeshiko.session_token",
|
|
1190
|
+
type: "apiKey"
|
|
1191
|
+
}],
|
|
1192
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
1099
1193
|
...options,
|
|
1100
1194
|
headers: {
|
|
1101
1195
|
"Content-Type": "application/json",
|
|
1102
1196
|
...options.headers
|
|
1103
1197
|
}
|
|
1104
1198
|
});
|
|
1105
|
-
var
|
|
1106
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1107
|
-
|
|
1199
|
+
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1200
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1201
|
+
in: "cookie",
|
|
1202
|
+
name: "nadeshiko.session_token",
|
|
1203
|
+
type: "apiKey"
|
|
1204
|
+
}],
|
|
1205
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1206
|
+
...options
|
|
1207
|
+
});
|
|
1208
|
+
var getEpisode = (options) => (options.client ?? client).get({
|
|
1209
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1210
|
+
in: "cookie",
|
|
1211
|
+
name: "nadeshiko.session_token",
|
|
1212
|
+
type: "apiKey"
|
|
1213
|
+
}],
|
|
1214
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1215
|
+
...options
|
|
1216
|
+
});
|
|
1217
|
+
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1218
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1219
|
+
in: "cookie",
|
|
1220
|
+
name: "nadeshiko.session_token",
|
|
1221
|
+
type: "apiKey"
|
|
1222
|
+
}],
|
|
1223
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1108
1224
|
...options,
|
|
1109
1225
|
headers: {
|
|
1110
1226
|
"Content-Type": "application/json",
|
|
1111
1227
|
...options.headers
|
|
1112
1228
|
}
|
|
1113
1229
|
});
|
|
1114
|
-
var
|
|
1115
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1116
|
-
|
|
1230
|
+
var listSegments = (options) => (options.client ?? client).get({
|
|
1231
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1232
|
+
in: "cookie",
|
|
1233
|
+
name: "nadeshiko.session_token",
|
|
1234
|
+
type: "apiKey"
|
|
1235
|
+
}],
|
|
1236
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1117
1237
|
...options
|
|
1118
1238
|
});
|
|
1119
|
-
var
|
|
1120
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1121
|
-
|
|
1239
|
+
var createSegment = (options) => (options.client ?? client).post({
|
|
1240
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1241
|
+
in: "cookie",
|
|
1242
|
+
name: "nadeshiko.session_token",
|
|
1243
|
+
type: "apiKey"
|
|
1244
|
+
}],
|
|
1245
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1122
1246
|
...options,
|
|
1123
1247
|
headers: {
|
|
1124
1248
|
"Content-Type": "application/json",
|
|
1125
1249
|
...options.headers
|
|
1126
1250
|
}
|
|
1127
1251
|
});
|
|
1128
|
-
var
|
|
1129
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1130
|
-
|
|
1131
|
-
|
|
1252
|
+
var createSegmentsBatch = (options) => (options.client ?? client).post({
|
|
1253
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1254
|
+
in: "cookie",
|
|
1255
|
+
name: "nadeshiko.session_token",
|
|
1256
|
+
type: "apiKey"
|
|
1257
|
+
}],
|
|
1258
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
|
|
1259
|
+
...options,
|
|
1260
|
+
headers: {
|
|
1261
|
+
"Content-Type": "application/json",
|
|
1262
|
+
...options.headers
|
|
1263
|
+
}
|
|
1132
1264
|
});
|
|
1133
|
-
var
|
|
1134
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
1135
|
-
|
|
1265
|
+
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1266
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1267
|
+
in: "cookie",
|
|
1268
|
+
name: "nadeshiko.session_token",
|
|
1269
|
+
type: "apiKey"
|
|
1270
|
+
}],
|
|
1271
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1136
1272
|
...options
|
|
1137
1273
|
});
|
|
1138
|
-
var
|
|
1139
|
-
security: [{
|
|
1274
|
+
var getSegment = (options) => (options.client ?? client).get({
|
|
1275
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1140
1276
|
in: "cookie",
|
|
1141
1277
|
name: "nadeshiko.session_token",
|
|
1142
1278
|
type: "apiKey"
|
|
1143
|
-
}
|
|
1144
|
-
url: "/v1/
|
|
1279
|
+
}],
|
|
1280
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1145
1281
|
...options
|
|
1146
1282
|
});
|
|
1147
|
-
var
|
|
1283
|
+
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1284
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1285
|
+
in: "cookie",
|
|
1286
|
+
name: "nadeshiko.session_token",
|
|
1287
|
+
type: "apiKey"
|
|
1288
|
+
}],
|
|
1289
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1290
|
+
...options,
|
|
1291
|
+
headers: {
|
|
1292
|
+
"Content-Type": "application/json",
|
|
1293
|
+
...options.headers
|
|
1294
|
+
}
|
|
1295
|
+
});
|
|
1296
|
+
var getUserQuota = (options) => (options?.client ?? client).get({
|
|
1148
1297
|
security: [{
|
|
1149
1298
|
in: "cookie",
|
|
1150
1299
|
name: "nadeshiko.session_token",
|
|
1151
1300
|
type: "apiKey"
|
|
1152
1301
|
}],
|
|
1153
|
-
url: "/v1/user/
|
|
1302
|
+
url: "/v1/user/quota",
|
|
1154
1303
|
...options
|
|
1155
1304
|
});
|
|
1156
1305
|
var createUserReport = (options) => (options.client ?? client).post({
|
|
@@ -1206,6 +1355,19 @@ var listUserActivity = (options) => (options?.client ?? client).get({
|
|
|
1206
1355
|
url: "/v1/user/activity",
|
|
1207
1356
|
...options
|
|
1208
1357
|
});
|
|
1358
|
+
var trackUserActivity = (options) => (options.client ?? client).post({
|
|
1359
|
+
security: [{
|
|
1360
|
+
in: "cookie",
|
|
1361
|
+
name: "nadeshiko.session_token",
|
|
1362
|
+
type: "apiKey"
|
|
1363
|
+
}],
|
|
1364
|
+
url: "/v1/user/activity",
|
|
1365
|
+
...options,
|
|
1366
|
+
headers: {
|
|
1367
|
+
"Content-Type": "application/json",
|
|
1368
|
+
...options.headers
|
|
1369
|
+
}
|
|
1370
|
+
});
|
|
1209
1371
|
var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
|
|
1210
1372
|
security: [{
|
|
1211
1373
|
in: "cookie",
|
|
@@ -1224,6 +1386,24 @@ var getUserActivityStats = (options) => (options?.client ?? client).get({
|
|
|
1224
1386
|
url: "/v1/user/activity/stats",
|
|
1225
1387
|
...options
|
|
1226
1388
|
});
|
|
1389
|
+
var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
|
|
1390
|
+
security: [{
|
|
1391
|
+
in: "cookie",
|
|
1392
|
+
name: "nadeshiko.session_token",
|
|
1393
|
+
type: "apiKey"
|
|
1394
|
+
}],
|
|
1395
|
+
url: "/v1/user/activity/date/{date}",
|
|
1396
|
+
...options
|
|
1397
|
+
});
|
|
1398
|
+
var deleteUserActivityById = (options) => (options.client ?? client).delete({
|
|
1399
|
+
security: [{
|
|
1400
|
+
in: "cookie",
|
|
1401
|
+
name: "nadeshiko.session_token",
|
|
1402
|
+
type: "apiKey"
|
|
1403
|
+
}],
|
|
1404
|
+
url: "/v1/user/activity/{id}",
|
|
1405
|
+
...options
|
|
1406
|
+
});
|
|
1227
1407
|
var exportUserData = (options) => (options?.client ?? client).get({
|
|
1228
1408
|
security: [{
|
|
1229
1409
|
in: "cookie",
|
|
@@ -1242,6 +1422,24 @@ var listUserLabs = (options) => (options?.client ?? client).get({
|
|
|
1242
1422
|
url: "/v1/user/labs",
|
|
1243
1423
|
...options
|
|
1244
1424
|
});
|
|
1425
|
+
var unenrollUserLab = (options) => (options.client ?? client).delete({
|
|
1426
|
+
security: [{
|
|
1427
|
+
in: "cookie",
|
|
1428
|
+
name: "nadeshiko.session_token",
|
|
1429
|
+
type: "apiKey"
|
|
1430
|
+
}],
|
|
1431
|
+
url: "/v1/user/labs/{key}",
|
|
1432
|
+
...options
|
|
1433
|
+
});
|
|
1434
|
+
var enrollUserLab = (options) => (options.client ?? client).post({
|
|
1435
|
+
security: [{
|
|
1436
|
+
in: "cookie",
|
|
1437
|
+
name: "nadeshiko.session_token",
|
|
1438
|
+
type: "apiKey"
|
|
1439
|
+
}],
|
|
1440
|
+
url: "/v1/user/labs/{key}",
|
|
1441
|
+
...options
|
|
1442
|
+
});
|
|
1245
1443
|
var listCollections = (options) => (options?.client ?? client).get({
|
|
1246
1444
|
security: [{
|
|
1247
1445
|
in: "cookie",
|
|
@@ -1330,18 +1528,48 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
|
1330
1528
|
...options.headers
|
|
1331
1529
|
}
|
|
1332
1530
|
});
|
|
1531
|
+
var searchCollectionSegments = (options) => (options.client ?? client).get({
|
|
1532
|
+
security: [{
|
|
1533
|
+
in: "cookie",
|
|
1534
|
+
name: "nadeshiko.session_token",
|
|
1535
|
+
type: "apiKey"
|
|
1536
|
+
}],
|
|
1537
|
+
url: "/v1/collections/{id}/search",
|
|
1538
|
+
...options
|
|
1539
|
+
});
|
|
1540
|
+
var getCollectionStats = (options) => (options.client ?? client).get({
|
|
1541
|
+
security: [{
|
|
1542
|
+
in: "cookie",
|
|
1543
|
+
name: "nadeshiko.session_token",
|
|
1544
|
+
type: "apiKey"
|
|
1545
|
+
}],
|
|
1546
|
+
url: "/v1/collections/{id}/stats",
|
|
1547
|
+
...options
|
|
1548
|
+
});
|
|
1333
1549
|
var getAdminDashboard = (options) => (options?.client ?? client).get({
|
|
1334
|
-
security: [{
|
|
1550
|
+
security: [{
|
|
1551
|
+
in: "cookie",
|
|
1552
|
+
name: "nadeshiko.session_token",
|
|
1553
|
+
type: "apiKey"
|
|
1554
|
+
}],
|
|
1335
1555
|
url: "/v1/admin/dashboard",
|
|
1336
1556
|
...options
|
|
1337
1557
|
});
|
|
1338
1558
|
var getAdminHealth = (options) => (options?.client ?? client).get({
|
|
1339
|
-
security: [{
|
|
1559
|
+
security: [{
|
|
1560
|
+
in: "cookie",
|
|
1561
|
+
name: "nadeshiko.session_token",
|
|
1562
|
+
type: "apiKey"
|
|
1563
|
+
}],
|
|
1340
1564
|
url: "/v1/admin/health",
|
|
1341
1565
|
...options
|
|
1342
1566
|
});
|
|
1343
1567
|
var triggerReindex = (options) => (options?.client ?? client).post({
|
|
1344
|
-
security: [{
|
|
1568
|
+
security: [{
|
|
1569
|
+
in: "cookie",
|
|
1570
|
+
name: "nadeshiko.session_token",
|
|
1571
|
+
type: "apiKey"
|
|
1572
|
+
}],
|
|
1345
1573
|
url: "/v1/admin/reindex",
|
|
1346
1574
|
...options,
|
|
1347
1575
|
headers: {
|
|
@@ -1350,37 +1578,74 @@ var triggerReindex = (options) => (options?.client ?? client).post({
|
|
|
1350
1578
|
}
|
|
1351
1579
|
});
|
|
1352
1580
|
var listAdminQueueStats = (options) => (options?.client ?? client).get({
|
|
1353
|
-
security: [{
|
|
1581
|
+
security: [{
|
|
1582
|
+
in: "cookie",
|
|
1583
|
+
name: "nadeshiko.session_token",
|
|
1584
|
+
type: "apiKey"
|
|
1585
|
+
}],
|
|
1354
1586
|
url: "/v1/admin/queues/stats",
|
|
1355
1587
|
...options
|
|
1356
1588
|
});
|
|
1357
1589
|
var getAdminQueue = (options) => (options.client ?? client).get({
|
|
1358
|
-
security: [{
|
|
1590
|
+
security: [{
|
|
1591
|
+
in: "cookie",
|
|
1592
|
+
name: "nadeshiko.session_token",
|
|
1593
|
+
type: "apiKey"
|
|
1594
|
+
}],
|
|
1359
1595
|
url: "/v1/admin/queues/{queueName}",
|
|
1360
1596
|
...options
|
|
1361
1597
|
});
|
|
1362
1598
|
var listAdminQueueFailed = (options) => (options.client ?? client).get({
|
|
1363
|
-
security: [{
|
|
1599
|
+
security: [{
|
|
1600
|
+
in: "cookie",
|
|
1601
|
+
name: "nadeshiko.session_token",
|
|
1602
|
+
type: "apiKey"
|
|
1603
|
+
}],
|
|
1364
1604
|
url: "/v1/admin/queues/{queueName}/failed",
|
|
1365
1605
|
...options
|
|
1366
1606
|
});
|
|
1367
1607
|
var retryAdminQueueFailed = (options) => (options.client ?? client).post({
|
|
1368
|
-
security: [{
|
|
1608
|
+
security: [{
|
|
1609
|
+
in: "cookie",
|
|
1610
|
+
name: "nadeshiko.session_token",
|
|
1611
|
+
type: "apiKey"
|
|
1612
|
+
}],
|
|
1369
1613
|
url: "/v1/admin/queues/{queueName}/retry",
|
|
1370
1614
|
...options
|
|
1371
1615
|
});
|
|
1372
1616
|
var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
|
|
1373
|
-
security: [{
|
|
1617
|
+
security: [{
|
|
1618
|
+
in: "cookie",
|
|
1619
|
+
name: "nadeshiko.session_token",
|
|
1620
|
+
type: "apiKey"
|
|
1621
|
+
}],
|
|
1374
1622
|
url: "/v1/admin/queues/{queueName}/purge",
|
|
1375
1623
|
...options
|
|
1376
1624
|
});
|
|
1625
|
+
var clearAdminImpersonation = (options) => (options?.client ?? client).delete({ url: "/v1/admin/impersonation", ...options });
|
|
1626
|
+
var impersonateAdminUser = (options) => (options.client ?? client).post({
|
|
1627
|
+
url: "/v1/admin/impersonation",
|
|
1628
|
+
...options,
|
|
1629
|
+
headers: {
|
|
1630
|
+
"Content-Type": "application/json",
|
|
1631
|
+
...options.headers
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1377
1634
|
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1378
|
-
security: [{
|
|
1635
|
+
security: [{
|
|
1636
|
+
in: "cookie",
|
|
1637
|
+
name: "nadeshiko.session_token",
|
|
1638
|
+
type: "apiKey"
|
|
1639
|
+
}],
|
|
1379
1640
|
url: "/v1/admin/reports",
|
|
1380
1641
|
...options
|
|
1381
1642
|
});
|
|
1382
1643
|
var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
1383
|
-
security: [{
|
|
1644
|
+
security: [{
|
|
1645
|
+
in: "cookie",
|
|
1646
|
+
name: "nadeshiko.session_token",
|
|
1647
|
+
type: "apiKey"
|
|
1648
|
+
}],
|
|
1384
1649
|
url: "/v1/admin/reports/{id}",
|
|
1385
1650
|
...options,
|
|
1386
1651
|
headers: {
|
|
@@ -1388,52 +1653,53 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
|
1388
1653
|
...options.headers
|
|
1389
1654
|
}
|
|
1390
1655
|
});
|
|
1391
|
-
var
|
|
1392
|
-
security: [{
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
url: "/v1/admin/review/checks",
|
|
1656
|
+
var listAdminMediaAudits = (options) => (options?.client ?? client).get({
|
|
1657
|
+
security: [{
|
|
1658
|
+
in: "cookie",
|
|
1659
|
+
name: "nadeshiko.session_token",
|
|
1660
|
+
type: "apiKey"
|
|
1661
|
+
}],
|
|
1662
|
+
url: "/v1/admin/media/audits",
|
|
1399
1663
|
...options
|
|
1400
1664
|
});
|
|
1401
|
-
var
|
|
1402
|
-
security: [{
|
|
1403
|
-
|
|
1665
|
+
var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
1666
|
+
security: [{
|
|
1667
|
+
in: "cookie",
|
|
1668
|
+
name: "nadeshiko.session_token",
|
|
1669
|
+
type: "apiKey"
|
|
1670
|
+
}],
|
|
1671
|
+
url: "/v1/admin/media/audits/{name}",
|
|
1404
1672
|
...options,
|
|
1405
1673
|
headers: {
|
|
1406
1674
|
"Content-Type": "application/json",
|
|
1407
1675
|
...options.headers
|
|
1408
1676
|
}
|
|
1409
1677
|
});
|
|
1410
|
-
var
|
|
1411
|
-
security: [{
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
url: "/v1/admin/review/runs/{id}",
|
|
1678
|
+
var runAdminMediaAudit = (options) => (options.client ?? client).post({
|
|
1679
|
+
security: [{
|
|
1680
|
+
in: "cookie",
|
|
1681
|
+
name: "nadeshiko.session_token",
|
|
1682
|
+
type: "apiKey"
|
|
1683
|
+
}],
|
|
1684
|
+
url: "/v1/admin/media/audits/{name}/run",
|
|
1418
1685
|
...options
|
|
1419
1686
|
});
|
|
1420
|
-
var
|
|
1421
|
-
security: [{
|
|
1422
|
-
|
|
1687
|
+
var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
|
|
1688
|
+
security: [{
|
|
1689
|
+
in: "cookie",
|
|
1690
|
+
name: "nadeshiko.session_token",
|
|
1691
|
+
type: "apiKey"
|
|
1692
|
+
}],
|
|
1693
|
+
url: "/v1/admin/media/audits/runs",
|
|
1423
1694
|
...options
|
|
1424
1695
|
});
|
|
1425
|
-
var
|
|
1426
|
-
security: [{
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
}
|
|
1433
|
-
});
|
|
1434
|
-
var deleteAdminReviewAllowlistEntry = (options) => (options.client ?? client).delete({
|
|
1435
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1436
|
-
url: "/v1/admin/review/allowlist/{id}",
|
|
1696
|
+
var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
1697
|
+
security: [{
|
|
1698
|
+
in: "cookie",
|
|
1699
|
+
name: "nadeshiko.session_token",
|
|
1700
|
+
type: "apiKey"
|
|
1701
|
+
}],
|
|
1702
|
+
url: "/v1/admin/media/audits/runs/{id}",
|
|
1437
1703
|
...options
|
|
1438
1704
|
});
|
|
1439
1705
|
// generated/dev/nadeshiko.gen.ts
|
|
@@ -1449,7 +1715,13 @@ var defaultSessionTokenGetter = () => {
|
|
|
1449
1715
|
return match ? decodeURIComponent(match[1]) : undefined;
|
|
1450
1716
|
};
|
|
1451
1717
|
function createNadeshikoClient(config) {
|
|
1452
|
-
const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl
|
|
1718
|
+
const baseUrl = config.baseUrl === undefined ? environments.PRODUCTION : (config.baseUrl in environments) ? environments[config.baseUrl] : config.baseUrl;
|
|
1719
|
+
const getApiKey = async () => {
|
|
1720
|
+
if (typeof config.apiKey === "function") {
|
|
1721
|
+
return await config.apiKey();
|
|
1722
|
+
}
|
|
1723
|
+
return config.apiKey;
|
|
1724
|
+
};
|
|
1453
1725
|
const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
|
|
1454
1726
|
const clientInstance = createClient(createConfig({
|
|
1455
1727
|
baseUrl,
|
|
@@ -1457,7 +1729,7 @@ function createNadeshikoClient(config) {
|
|
|
1457
1729
|
if (auth.in === "cookie") {
|
|
1458
1730
|
return getSessionToken();
|
|
1459
1731
|
}
|
|
1460
|
-
return
|
|
1732
|
+
return getApiKey();
|
|
1461
1733
|
}
|
|
1462
1734
|
}));
|
|
1463
1735
|
return {
|
|
@@ -1466,43 +1738,26 @@ function createNadeshikoClient(config) {
|
|
|
1466
1738
|
getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
|
|
1467
1739
|
searchWords: (options) => searchWords({ ...options, client: clientInstance }),
|
|
1468
1740
|
listMedia: (options) => listMedia({ ...options, client: clientInstance }),
|
|
1469
|
-
getMedia: (options) => getMedia({ ...options, client: clientInstance }),
|
|
1470
|
-
listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
|
|
1471
|
-
getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
|
|
1472
|
-
getSegment: (options) => getSegment({ ...options, client: clientInstance }),
|
|
1473
1741
|
getSegmentByUuid: (options) => getSegmentByUuid({ ...options, client: clientInstance }),
|
|
1474
1742
|
getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
|
|
1475
1743
|
listSeries: (options) => listSeries({ ...options, client: clientInstance }),
|
|
1476
1744
|
getSeries: (options) => getSeries({ ...options, client: clientInstance }),
|
|
1477
1745
|
getCharacter: (options) => getCharacter({ ...options, client: clientInstance }),
|
|
1478
1746
|
getSeiyuu: (options) => getSeiyuu({ ...options, client: clientInstance }),
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
updateCollection: (options) => updateCollection({ ...options, client: clientInstance }),
|
|
1484
|
-
deleteCollection: (options) => deleteCollection({ ...options, client: clientInstance }),
|
|
1485
|
-
addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
|
|
1486
|
-
updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
|
|
1487
|
-
removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
|
|
1488
|
-
triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
|
|
1489
|
-
listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
|
|
1490
|
-
getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
|
|
1491
|
-
listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1492
|
-
retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1493
|
-
purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1494
|
-
listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
|
|
1495
|
-
updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
|
|
1496
|
-
runAdminReview: (options) => runAdminReview({ ...options, client: clientInstance }),
|
|
1497
|
-
listAdminReviewChecks: (options) => listAdminReviewChecks({ ...options, client: clientInstance }),
|
|
1498
|
-
updateAdminReviewCheck: (options) => updateAdminReviewCheck({ ...options, client: clientInstance }),
|
|
1499
|
-
listAdminReviewRuns: (options) => listAdminReviewRuns({ ...options, client: clientInstance }),
|
|
1500
|
-
getAdminReviewRun: (options) => getAdminReviewRun({ ...options, client: clientInstance }),
|
|
1501
|
-
listAdminReviewAllowlist: (options) => listAdminReviewAllowlist({ ...options, client: clientInstance }),
|
|
1502
|
-
createAdminReviewAllowlistEntry: (options) => createAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
|
|
1503
|
-
deleteAdminReviewAllowlistEntry: (options) => deleteAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
|
|
1747
|
+
getMedia: (options) => getMedia({ ...options, client: clientInstance }),
|
|
1748
|
+
listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
|
|
1749
|
+
getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
|
|
1750
|
+
getSegment: (options) => getSegment({ ...options, client: clientInstance }),
|
|
1504
1751
|
createMedia: (options) => createMedia({ ...options, client: clientInstance }),
|
|
1505
1752
|
autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
|
|
1753
|
+
updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
|
|
1754
|
+
listSegmentRevisions: (options) => listSegmentRevisions({ ...options, client: clientInstance }),
|
|
1755
|
+
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1756
|
+
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1757
|
+
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
1758
|
+
addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
|
|
1759
|
+
updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
|
|
1760
|
+
removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
|
|
1506
1761
|
updateMedia: (options) => updateMedia({ ...options, client: clientInstance }),
|
|
1507
1762
|
deleteMedia: (options) => deleteMedia({ ...options, client: clientInstance }),
|
|
1508
1763
|
createEpisode: (options) => createEpisode({ ...options, client: clientInstance }),
|
|
@@ -1510,26 +1765,51 @@ function createNadeshikoClient(config) {
|
|
|
1510
1765
|
deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
|
|
1511
1766
|
listSegments: (options) => listSegments({ ...options, client: clientInstance }),
|
|
1512
1767
|
createSegment: (options) => createSegment({ ...options, client: clientInstance }),
|
|
1768
|
+
createSegmentsBatch: (options) => createSegmentsBatch({ ...options, client: clientInstance }),
|
|
1513
1769
|
updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
|
|
1514
1770
|
deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
|
|
1515
|
-
|
|
1516
|
-
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1517
|
-
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
1518
|
-
addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
|
|
1519
|
-
updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
|
|
1520
|
-
removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
|
|
1771
|
+
getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
|
|
1521
1772
|
createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
|
|
1522
|
-
listUserReports: (options) => listUserReports({ ...options, client: clientInstance }),
|
|
1523
1773
|
getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
|
|
1524
1774
|
updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
|
|
1525
1775
|
listUserActivity: (options) => listUserActivity({ ...options, client: clientInstance }),
|
|
1776
|
+
trackUserActivity: (options) => trackUserActivity({ ...options, client: clientInstance }),
|
|
1526
1777
|
deleteUserActivity: (options) => deleteUserActivity({ ...options, client: clientInstance }),
|
|
1527
1778
|
getUserActivityHeatmap: (options) => getUserActivityHeatmap({ ...options, client: clientInstance }),
|
|
1528
1779
|
getUserActivityStats: (options) => getUserActivityStats({ ...options, client: clientInstance }),
|
|
1780
|
+
deleteUserActivityByDate: (options) => deleteUserActivityByDate({ ...options, client: clientInstance }),
|
|
1781
|
+
deleteUserActivityById: (options) => deleteUserActivityById({ ...options, client: clientInstance }),
|
|
1529
1782
|
exportUserData: (options) => exportUserData({ ...options, client: clientInstance }),
|
|
1530
1783
|
listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
|
|
1784
|
+
enrollUserLab: (options) => enrollUserLab({ ...options, client: clientInstance }),
|
|
1785
|
+
unenrollUserLab: (options) => unenrollUserLab({ ...options, client: clientInstance }),
|
|
1786
|
+
listCollections: (options) => listCollections({ ...options, client: clientInstance }),
|
|
1787
|
+
createCollection: (options) => createCollection({ ...options, client: clientInstance }),
|
|
1788
|
+
getCollection: (options) => getCollection({ ...options, client: clientInstance }),
|
|
1789
|
+
updateCollection: (options) => updateCollection({ ...options, client: clientInstance }),
|
|
1790
|
+
deleteCollection: (options) => deleteCollection({ ...options, client: clientInstance }),
|
|
1791
|
+
addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
|
|
1792
|
+
updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
|
|
1793
|
+
removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
|
|
1794
|
+
searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
|
|
1795
|
+
getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
|
|
1531
1796
|
getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
|
|
1532
|
-
getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance })
|
|
1797
|
+
getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance }),
|
|
1798
|
+
triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
|
|
1799
|
+
listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
|
|
1800
|
+
getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
|
|
1801
|
+
listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1802
|
+
retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1803
|
+
purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1804
|
+
impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
|
|
1805
|
+
clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance }),
|
|
1806
|
+
listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
|
|
1807
|
+
updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
|
|
1808
|
+
listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
|
|
1809
|
+
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1810
|
+
runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1811
|
+
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
|
|
1812
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
|
|
1533
1813
|
};
|
|
1534
1814
|
}
|
|
1535
1815
|
// generated/dev/internal/media.gen.ts
|
|
@@ -1537,16 +1817,19 @@ var exports_media_gen = {};
|
|
|
1537
1817
|
__export(exports_media_gen, {
|
|
1538
1818
|
updateSeriesMedia: () => updateSeriesMedia,
|
|
1539
1819
|
updateSeries: () => updateSeries,
|
|
1820
|
+
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
1540
1821
|
updateSegment: () => updateSegment,
|
|
1541
1822
|
updateMedia: () => updateMedia,
|
|
1542
1823
|
updateEpisode: () => updateEpisode,
|
|
1543
1824
|
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
1544
1825
|
listSegments: () => listSegments,
|
|
1826
|
+
listSegmentRevisions: () => listSegmentRevisions,
|
|
1545
1827
|
deleteSeries: () => deleteSeries,
|
|
1546
1828
|
deleteSegment: () => deleteSegment,
|
|
1547
1829
|
deleteMedia: () => deleteMedia,
|
|
1548
1830
|
deleteEpisode: () => deleteEpisode,
|
|
1549
1831
|
createSeries: () => createSeries,
|
|
1832
|
+
createSegmentsBatch: () => createSegmentsBatch,
|
|
1550
1833
|
createSegment: () => createSegment,
|
|
1551
1834
|
createMedia: () => createMedia,
|
|
1552
1835
|
createEpisode: () => createEpisode,
|
|
@@ -1557,22 +1840,56 @@ __export(exports_media_gen, {
|
|
|
1557
1840
|
var exports_user_gen = {};
|
|
1558
1841
|
__export(exports_user_gen, {
|
|
1559
1842
|
updateUserPreferences: () => updateUserPreferences,
|
|
1560
|
-
|
|
1843
|
+
unenrollUserLab: () => unenrollUserLab,
|
|
1844
|
+
trackUserActivity: () => trackUserActivity,
|
|
1561
1845
|
listUserLabs: () => listUserLabs,
|
|
1562
1846
|
listUserActivity: () => listUserActivity,
|
|
1847
|
+
getUserQuota: () => getUserQuota,
|
|
1563
1848
|
getUserPreferences: () => getUserPreferences,
|
|
1564
1849
|
getUserActivityStats: () => getUserActivityStats,
|
|
1565
1850
|
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
1566
1851
|
exportUserData: () => exportUserData,
|
|
1852
|
+
enrollUserLab: () => enrollUserLab,
|
|
1853
|
+
deleteUserActivityById: () => deleteUserActivityById,
|
|
1854
|
+
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
1567
1855
|
deleteUserActivity: () => deleteUserActivity,
|
|
1568
1856
|
createUserReport: () => createUserReport
|
|
1569
1857
|
});
|
|
1858
|
+
// generated/dev/internal/collections.gen.ts
|
|
1859
|
+
var exports_collections_gen = {};
|
|
1860
|
+
__export(exports_collections_gen, {
|
|
1861
|
+
updateCollectionSegment: () => updateCollectionSegment,
|
|
1862
|
+
updateCollection: () => updateCollection,
|
|
1863
|
+
searchCollectionSegments: () => searchCollectionSegments,
|
|
1864
|
+
removeSegmentFromCollection: () => removeSegmentFromCollection,
|
|
1865
|
+
listCollections: () => listCollections,
|
|
1866
|
+
getCollectionStats: () => getCollectionStats,
|
|
1867
|
+
getCollection: () => getCollection,
|
|
1868
|
+
deleteCollection: () => deleteCollection,
|
|
1869
|
+
createCollection: () => createCollection,
|
|
1870
|
+
addSegmentToCollection: () => addSegmentToCollection
|
|
1871
|
+
});
|
|
1570
1872
|
// generated/dev/internal/admin.gen.ts
|
|
1571
1873
|
var exports_admin_gen = {};
|
|
1572
1874
|
__export(exports_admin_gen, {
|
|
1875
|
+
updateAdminReport: () => updateAdminReport,
|
|
1876
|
+
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
1877
|
+
triggerReindex: () => triggerReindex,
|
|
1878
|
+
runAdminMediaAudit: () => runAdminMediaAudit,
|
|
1879
|
+
retryAdminQueueFailed: () => retryAdminQueueFailed,
|
|
1880
|
+
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
1881
|
+
listAdminReports: () => listAdminReports,
|
|
1882
|
+
listAdminQueueStats: () => listAdminQueueStats,
|
|
1883
|
+
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
1884
|
+
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
1885
|
+
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
1886
|
+
impersonateAdminUser: () => impersonateAdminUser,
|
|
1887
|
+
getAdminQueue: () => getAdminQueue,
|
|
1888
|
+
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
1573
1889
|
getAdminHealth: () => getAdminHealth,
|
|
1574
|
-
getAdminDashboard: () => getAdminDashboard
|
|
1890
|
+
getAdminDashboard: () => getAdminDashboard,
|
|
1891
|
+
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1575
1892
|
});
|
|
1576
1893
|
|
|
1577
|
-
//# debugId=
|
|
1894
|
+
//# debugId=9EF9244B69357AA664756E2164756E21
|
|
1578
1895
|
//# sourceMappingURL=index.js.map
|