@brigadasos/nadeshiko-sdk 1.4.3-dev.0ffbf39 → 1.4.3-dev.2ba18e0
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 +34 -10
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/index.cjs +286 -176
- package/dist/index.cjs.map +5 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +273 -169
- 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/media.gen.d.ts +1 -1
- package/dist/internal/media.gen.d.ts.map +1 -1
- package/dist/internal/user.gen.d.ts +1 -1
- package/dist/internal/user.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +39 -33
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +219 -141
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +1528 -1292
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2,27 +2,37 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
|
|
5
|
+
function __accessProp(key) {
|
|
6
|
+
return this[key];
|
|
7
|
+
}
|
|
6
8
|
var __toCommonJS = (from) => {
|
|
7
|
-
var entry = __moduleCache.get(from), desc;
|
|
9
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
8
10
|
if (entry)
|
|
9
11
|
return entry;
|
|
10
12
|
entry = __defProp({}, "__esModule", { value: true });
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (var key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(entry, key))
|
|
16
|
+
__defProp(entry, key, {
|
|
17
|
+
get: __accessProp.bind(from, key),
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
16
21
|
__moduleCache.set(from, entry);
|
|
17
22
|
return entry;
|
|
18
23
|
};
|
|
24
|
+
var __moduleCache;
|
|
25
|
+
var __returnValue = (v) => v;
|
|
26
|
+
function __exportSetter(name, newValue) {
|
|
27
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
28
|
+
}
|
|
19
29
|
var __export = (target, all) => {
|
|
20
30
|
for (var name in all)
|
|
21
31
|
__defProp(target, name, {
|
|
22
32
|
get: all[name],
|
|
23
33
|
enumerable: true,
|
|
24
34
|
configurable: true,
|
|
25
|
-
set: (
|
|
35
|
+
set: __exportSetter.bind(all, name)
|
|
26
36
|
});
|
|
27
37
|
};
|
|
28
38
|
|
|
@@ -33,23 +43,26 @@ __export(exports_dev, {
|
|
|
33
43
|
updateUserPreferences: () => updateUserPreferences,
|
|
34
44
|
updateSeriesMedia: () => updateSeriesMedia,
|
|
35
45
|
updateSeries: () => updateSeries,
|
|
46
|
+
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
36
47
|
updateSegment: () => updateSegment,
|
|
37
48
|
updateMedia: () => updateMedia,
|
|
38
49
|
updateEpisode: () => updateEpisode,
|
|
39
50
|
updateCollectionSegment: () => updateCollectionSegment,
|
|
40
51
|
updateCollection: () => updateCollection,
|
|
41
|
-
updateAdminReviewCheck: () => updateAdminReviewCheck,
|
|
42
52
|
updateAdminReport: () => updateAdminReport,
|
|
53
|
+
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
54
|
+
unenrollUserLab: () => unenrollUserLab,
|
|
43
55
|
triggerReindex: () => triggerReindex,
|
|
56
|
+
trackUserActivity: () => trackUserActivity,
|
|
44
57
|
searchWords: () => searchWords,
|
|
58
|
+
searchCollectionSegments: () => searchCollectionSegments,
|
|
45
59
|
search: () => search,
|
|
46
|
-
|
|
60
|
+
runAdminMediaAudit: () => runAdminMediaAudit,
|
|
47
61
|
retryAdminQueueFailed: () => retryAdminQueueFailed,
|
|
48
62
|
removeSegmentFromCollection: () => removeSegmentFromCollection,
|
|
49
63
|
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
50
64
|
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
51
65
|
media: () => exports_media_gen,
|
|
52
|
-
listUserReports: () => listUserReports,
|
|
53
66
|
listUserLabs: () => listUserLabs,
|
|
54
67
|
listUserActivity: () => listUserActivity,
|
|
55
68
|
listSeries: () => listSeries,
|
|
@@ -57,12 +70,12 @@ __export(exports_dev, {
|
|
|
57
70
|
listMedia: () => listMedia,
|
|
58
71
|
listEpisodes: () => listEpisodes,
|
|
59
72
|
listCollections: () => listCollections,
|
|
60
|
-
listAdminReviewRuns: () => listAdminReviewRuns,
|
|
61
|
-
listAdminReviewChecks: () => listAdminReviewChecks,
|
|
62
|
-
listAdminReviewAllowlist: () => listAdminReviewAllowlist,
|
|
63
73
|
listAdminReports: () => listAdminReports,
|
|
64
74
|
listAdminQueueStats: () => listAdminQueueStats,
|
|
65
75
|
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
76
|
+
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
77
|
+
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
78
|
+
impersonateAdminUser: () => impersonateAdminUser,
|
|
66
79
|
getUserQuota: () => getUserQuota,
|
|
67
80
|
getUserPreferences: () => getUserPreferences,
|
|
68
81
|
getUserActivityStats: () => getUserActivityStats,
|
|
@@ -75,20 +88,23 @@ __export(exports_dev, {
|
|
|
75
88
|
getSearchStats: () => getSearchStats,
|
|
76
89
|
getMedia: () => getMedia,
|
|
77
90
|
getEpisode: () => getEpisode,
|
|
91
|
+
getCollectionStats: () => getCollectionStats,
|
|
78
92
|
getCollection: () => getCollection,
|
|
79
93
|
getCharacter: () => getCharacter,
|
|
80
|
-
getAdminReviewRun: () => getAdminReviewRun,
|
|
81
94
|
getAdminQueue: () => getAdminQueue,
|
|
95
|
+
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
82
96
|
getAdminHealth: () => getAdminHealth,
|
|
83
97
|
getAdminDashboard: () => getAdminDashboard,
|
|
84
98
|
exportUserData: () => exportUserData,
|
|
99
|
+
enrollUserLab: () => enrollUserLab,
|
|
100
|
+
deleteUserActivityById: () => deleteUserActivityById,
|
|
101
|
+
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
85
102
|
deleteUserActivity: () => deleteUserActivity,
|
|
86
103
|
deleteSeries: () => deleteSeries,
|
|
87
104
|
deleteSegment: () => deleteSegment,
|
|
88
105
|
deleteMedia: () => deleteMedia,
|
|
89
106
|
deleteEpisode: () => deleteEpisode,
|
|
90
107
|
deleteCollection: () => deleteCollection,
|
|
91
|
-
deleteAdminReviewAllowlistEntry: () => deleteAdminReviewAllowlistEntry,
|
|
92
108
|
createUserReport: () => createUserReport,
|
|
93
109
|
createSeries: () => createSeries,
|
|
94
110
|
createSegment: () => createSegment,
|
|
@@ -96,9 +112,9 @@ __export(exports_dev, {
|
|
|
96
112
|
createMedia: () => createMedia,
|
|
97
113
|
createEpisode: () => createEpisode,
|
|
98
114
|
createCollection: () => createCollection,
|
|
99
|
-
createClient: () => createClient2,
|
|
100
|
-
createAdminReviewAllowlistEntry: () => createAdminReviewAllowlistEntry,
|
|
101
115
|
client: () => client,
|
|
116
|
+
clearAdminImpersonation: () => clearAdminImpersonation,
|
|
117
|
+
autocompleteMedia: () => autocompleteMedia,
|
|
102
118
|
admin: () => exports_admin_gen,
|
|
103
119
|
addSegmentToCollection: () => addSegmentToCollection,
|
|
104
120
|
addMediaToSeries: () => addMediaToSeries
|
|
@@ -905,15 +921,11 @@ var createClient = (config = {}) => {
|
|
|
905
921
|
};
|
|
906
922
|
};
|
|
907
923
|
// generated/dev/client.gen.ts
|
|
908
|
-
var client = createClient(createConfig({ baseUrl: "
|
|
924
|
+
var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
|
|
909
925
|
|
|
910
926
|
// generated/dev/sdk.gen.ts
|
|
911
927
|
var search = (options) => (options?.client ?? client).post({
|
|
912
|
-
security: [{ scheme: "bearer", type: "http" },
|
|
913
|
-
in: "cookie",
|
|
914
|
-
name: "nadeshiko.session_token",
|
|
915
|
-
type: "apiKey"
|
|
916
|
-
}],
|
|
928
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
917
929
|
url: "/v1/search",
|
|
918
930
|
...options,
|
|
919
931
|
headers: {
|
|
@@ -922,11 +934,7 @@ var search = (options) => (options?.client ?? client).post({
|
|
|
922
934
|
}
|
|
923
935
|
});
|
|
924
936
|
var getSearchStats = (options) => (options?.client ?? client).post({
|
|
925
|
-
security: [{ scheme: "bearer", type: "http" },
|
|
926
|
-
in: "cookie",
|
|
927
|
-
name: "nadeshiko.session_token",
|
|
928
|
-
type: "apiKey"
|
|
929
|
-
}],
|
|
937
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
930
938
|
url: "/v1/search/stats",
|
|
931
939
|
...options,
|
|
932
940
|
headers: {
|
|
@@ -935,11 +943,7 @@ var getSearchStats = (options) => (options?.client ?? client).post({
|
|
|
935
943
|
}
|
|
936
944
|
});
|
|
937
945
|
var searchWords = (options) => (options.client ?? client).post({
|
|
938
|
-
security: [{ scheme: "bearer", type: "http" },
|
|
939
|
-
in: "cookie",
|
|
940
|
-
name: "nadeshiko.session_token",
|
|
941
|
-
type: "apiKey"
|
|
942
|
-
}],
|
|
946
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
943
947
|
url: "/v1/search/words",
|
|
944
948
|
...options,
|
|
945
949
|
headers: {
|
|
@@ -961,191 +965,192 @@ var createMedia = (options) => (options.client ?? client).post({
|
|
|
961
965
|
...options.headers
|
|
962
966
|
}
|
|
963
967
|
});
|
|
964
|
-
var
|
|
968
|
+
var autocompleteMedia = (options) => (options.client ?? client).get({
|
|
965
969
|
security: [{ scheme: "bearer", type: "http" }],
|
|
966
|
-
url: "/v1/media/
|
|
970
|
+
url: "/v1/media/autocomplete",
|
|
967
971
|
...options
|
|
968
972
|
});
|
|
969
|
-
var
|
|
973
|
+
var getSegmentByUuid = (options) => (options.client ?? client).get({
|
|
970
974
|
security: [{ scheme: "bearer", type: "http" }],
|
|
971
|
-
url: "/v1/media/{
|
|
975
|
+
url: "/v1/media/segments/{uuid}",
|
|
972
976
|
...options
|
|
973
977
|
});
|
|
974
|
-
var
|
|
975
|
-
security: [{ scheme: "bearer", type: "http" }
|
|
976
|
-
|
|
978
|
+
var updateSegmentByUuid = (options) => (options.client ?? client).patch({
|
|
979
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
980
|
+
in: "cookie",
|
|
981
|
+
name: "nadeshiko.session_token",
|
|
982
|
+
type: "apiKey"
|
|
983
|
+
}],
|
|
984
|
+
url: "/v1/media/segments/{uuid}",
|
|
977
985
|
...options,
|
|
978
986
|
headers: {
|
|
979
987
|
"Content-Type": "application/json",
|
|
980
988
|
...options.headers
|
|
981
989
|
}
|
|
982
990
|
});
|
|
983
|
-
var
|
|
991
|
+
var getSegmentContext = (options) => (options.client ?? client).get({
|
|
984
992
|
security: [{ scheme: "bearer", type: "http" }],
|
|
985
|
-
url: "/v1/media/{
|
|
993
|
+
url: "/v1/media/segments/{uuid}/context",
|
|
986
994
|
...options
|
|
987
995
|
});
|
|
988
|
-
var
|
|
996
|
+
var listSeries = (options) => (options?.client ?? client).get({
|
|
989
997
|
security: [{ scheme: "bearer", type: "http" }],
|
|
990
|
-
url: "/v1/media/
|
|
998
|
+
url: "/v1/media/series",
|
|
999
|
+
...options
|
|
1000
|
+
});
|
|
1001
|
+
var createSeries = (options) => (options.client ?? client).post({
|
|
1002
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1003
|
+
url: "/v1/media/series",
|
|
991
1004
|
...options,
|
|
992
1005
|
headers: {
|
|
993
1006
|
"Content-Type": "application/json",
|
|
994
1007
|
...options.headers
|
|
995
1008
|
}
|
|
996
1009
|
});
|
|
997
|
-
var
|
|
1010
|
+
var deleteSeries = (options) => (options.client ?? client).delete({
|
|
998
1011
|
security: [{ scheme: "bearer", type: "http" }],
|
|
999
|
-
url: "/v1/media/
|
|
1012
|
+
url: "/v1/media/series/{id}",
|
|
1000
1013
|
...options
|
|
1001
1014
|
});
|
|
1002
|
-
var
|
|
1015
|
+
var getSeries = (options) => (options.client ?? client).get({
|
|
1003
1016
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1004
|
-
url: "/v1/media/
|
|
1017
|
+
url: "/v1/media/series/{id}",
|
|
1005
1018
|
...options
|
|
1006
1019
|
});
|
|
1007
|
-
var
|
|
1020
|
+
var updateSeries = (options) => (options.client ?? client).patch({
|
|
1008
1021
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1009
|
-
url: "/v1/media/
|
|
1022
|
+
url: "/v1/media/series/{id}",
|
|
1010
1023
|
...options,
|
|
1011
1024
|
headers: {
|
|
1012
1025
|
"Content-Type": "application/json",
|
|
1013
1026
|
...options.headers
|
|
1014
1027
|
}
|
|
1015
1028
|
});
|
|
1016
|
-
var
|
|
1017
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1018
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1019
|
-
...options
|
|
1020
|
-
});
|
|
1021
|
-
var createSegment = (options) => (options.client ?? client).post({
|
|
1029
|
+
var addMediaToSeries = (options) => (options.client ?? client).post({
|
|
1022
1030
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1023
|
-
url: "/v1/media/
|
|
1031
|
+
url: "/v1/media/series/{id}/media",
|
|
1024
1032
|
...options,
|
|
1025
1033
|
headers: {
|
|
1026
1034
|
"Content-Type": "application/json",
|
|
1027
1035
|
...options.headers
|
|
1028
1036
|
}
|
|
1029
1037
|
});
|
|
1030
|
-
var
|
|
1031
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1032
|
-
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1033
|
-
...options
|
|
1034
|
-
});
|
|
1035
|
-
var getSegment = (options) => (options.client ?? client).get({
|
|
1038
|
+
var removeMediaFromSeries = (options) => (options.client ?? client).delete({
|
|
1036
1039
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1037
|
-
url: "/v1/media/
|
|
1040
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1038
1041
|
...options
|
|
1039
1042
|
});
|
|
1040
|
-
var
|
|
1043
|
+
var updateSeriesMedia = (options) => (options.client ?? client).patch({
|
|
1041
1044
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1042
|
-
url: "/v1/media/
|
|
1045
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1043
1046
|
...options,
|
|
1044
1047
|
headers: {
|
|
1045
1048
|
"Content-Type": "application/json",
|
|
1046
1049
|
...options.headers
|
|
1047
1050
|
}
|
|
1048
1051
|
});
|
|
1049
|
-
var
|
|
1052
|
+
var getCharacter = (options) => (options.client ?? client).get({
|
|
1050
1053
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1051
|
-
url: "/v1/media/
|
|
1054
|
+
url: "/v1/media/characters/{id}",
|
|
1052
1055
|
...options
|
|
1053
1056
|
});
|
|
1054
|
-
var
|
|
1057
|
+
var getSeiyuu = (options) => (options.client ?? client).get({
|
|
1055
1058
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1056
|
-
url: "/v1/media/
|
|
1059
|
+
url: "/v1/media/seiyuu/{id}",
|
|
1057
1060
|
...options
|
|
1058
1061
|
});
|
|
1059
|
-
var
|
|
1060
|
-
security: [{ scheme: "bearer", type: "http" },
|
|
1061
|
-
|
|
1062
|
-
name: "nadeshiko.session_token",
|
|
1063
|
-
type: "apiKey"
|
|
1064
|
-
}],
|
|
1065
|
-
url: "/v1/media/series",
|
|
1062
|
+
var deleteMedia = (options) => (options.client ?? client).delete({
|
|
1063
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1064
|
+
url: "/v1/media/{id}",
|
|
1066
1065
|
...options
|
|
1067
1066
|
});
|
|
1068
|
-
var
|
|
1067
|
+
var getMedia = (options) => (options.client ?? client).get({
|
|
1069
1068
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1070
|
-
url: "/v1/media/
|
|
1069
|
+
url: "/v1/media/{id}",
|
|
1070
|
+
...options
|
|
1071
|
+
});
|
|
1072
|
+
var updateMedia = (options) => (options.client ?? client).patch({
|
|
1073
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1074
|
+
url: "/v1/media/{id}",
|
|
1071
1075
|
...options,
|
|
1072
1076
|
headers: {
|
|
1073
1077
|
"Content-Type": "application/json",
|
|
1074
1078
|
...options.headers
|
|
1075
1079
|
}
|
|
1076
1080
|
});
|
|
1077
|
-
var
|
|
1081
|
+
var listEpisodes = (options) => (options.client ?? client).get({
|
|
1078
1082
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1079
|
-
url: "/v1/media/
|
|
1080
|
-
...options
|
|
1081
|
-
});
|
|
1082
|
-
var getSeries = (options) => (options.client ?? client).get({
|
|
1083
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1084
|
-
in: "cookie",
|
|
1085
|
-
name: "nadeshiko.session_token",
|
|
1086
|
-
type: "apiKey"
|
|
1087
|
-
}],
|
|
1088
|
-
url: "/v1/media/series/{id}",
|
|
1083
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
1089
1084
|
...options
|
|
1090
1085
|
});
|
|
1091
|
-
var
|
|
1086
|
+
var createEpisode = (options) => (options.client ?? client).post({
|
|
1092
1087
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1093
|
-
url: "/v1/media/
|
|
1088
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
1094
1089
|
...options,
|
|
1095
1090
|
headers: {
|
|
1096
1091
|
"Content-Type": "application/json",
|
|
1097
1092
|
...options.headers
|
|
1098
1093
|
}
|
|
1099
1094
|
});
|
|
1100
|
-
var
|
|
1095
|
+
var deleteEpisode = (options) => (options.client ?? client).delete({
|
|
1101
1096
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1102
|
-
url: "/v1/media/
|
|
1097
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1098
|
+
...options
|
|
1099
|
+
});
|
|
1100
|
+
var getEpisode = (options) => (options.client ?? client).get({
|
|
1101
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1102
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1103
|
+
...options
|
|
1104
|
+
});
|
|
1105
|
+
var updateEpisode = (options) => (options.client ?? client).patch({
|
|
1106
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1107
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
1103
1108
|
...options,
|
|
1104
1109
|
headers: {
|
|
1105
1110
|
"Content-Type": "application/json",
|
|
1106
1111
|
...options.headers
|
|
1107
1112
|
}
|
|
1108
1113
|
});
|
|
1109
|
-
var
|
|
1114
|
+
var listSegments = (options) => (options.client ?? client).get({
|
|
1110
1115
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1111
|
-
url: "/v1/media/
|
|
1116
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1112
1117
|
...options
|
|
1113
1118
|
});
|
|
1114
|
-
var
|
|
1119
|
+
var createSegment = (options) => (options.client ?? client).post({
|
|
1115
1120
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1116
|
-
url: "/v1/media/
|
|
1121
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
1117
1122
|
...options,
|
|
1118
1123
|
headers: {
|
|
1119
1124
|
"Content-Type": "application/json",
|
|
1120
1125
|
...options.headers
|
|
1121
1126
|
}
|
|
1122
1127
|
});
|
|
1123
|
-
var
|
|
1128
|
+
var deleteSegment = (options) => (options.client ?? client).delete({
|
|
1124
1129
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1125
|
-
url: "/v1/media/
|
|
1130
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1126
1131
|
...options
|
|
1127
1132
|
});
|
|
1128
|
-
var
|
|
1133
|
+
var getSegment = (options) => (options.client ?? client).get({
|
|
1129
1134
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1130
|
-
url: "/v1/media/
|
|
1135
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1131
1136
|
...options
|
|
1132
1137
|
});
|
|
1133
|
-
var
|
|
1134
|
-
security: [{
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1138
|
+
var updateSegment = (options) => (options.client ?? client).patch({
|
|
1139
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1140
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
1141
|
+
...options,
|
|
1142
|
+
headers: {
|
|
1143
|
+
"Content-Type": "application/json",
|
|
1144
|
+
...options.headers
|
|
1145
|
+
}
|
|
1141
1146
|
});
|
|
1142
|
-
var
|
|
1147
|
+
var getUserQuota = (options) => (options?.client ?? client).get({
|
|
1143
1148
|
security: [{
|
|
1144
1149
|
in: "cookie",
|
|
1145
1150
|
name: "nadeshiko.session_token",
|
|
1146
1151
|
type: "apiKey"
|
|
1147
1152
|
}],
|
|
1148
|
-
url: "/v1/user/
|
|
1153
|
+
url: "/v1/user/quota",
|
|
1149
1154
|
...options
|
|
1150
1155
|
});
|
|
1151
1156
|
var createUserReport = (options) => (options.client ?? client).post({
|
|
@@ -1201,6 +1206,19 @@ var listUserActivity = (options) => (options?.client ?? client).get({
|
|
|
1201
1206
|
url: "/v1/user/activity",
|
|
1202
1207
|
...options
|
|
1203
1208
|
});
|
|
1209
|
+
var trackUserActivity = (options) => (options.client ?? client).post({
|
|
1210
|
+
security: [{
|
|
1211
|
+
in: "cookie",
|
|
1212
|
+
name: "nadeshiko.session_token",
|
|
1213
|
+
type: "apiKey"
|
|
1214
|
+
}],
|
|
1215
|
+
url: "/v1/user/activity",
|
|
1216
|
+
...options,
|
|
1217
|
+
headers: {
|
|
1218
|
+
"Content-Type": "application/json",
|
|
1219
|
+
...options.headers
|
|
1220
|
+
}
|
|
1221
|
+
});
|
|
1204
1222
|
var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
|
|
1205
1223
|
security: [{
|
|
1206
1224
|
in: "cookie",
|
|
@@ -1219,6 +1237,24 @@ var getUserActivityStats = (options) => (options?.client ?? client).get({
|
|
|
1219
1237
|
url: "/v1/user/activity/stats",
|
|
1220
1238
|
...options
|
|
1221
1239
|
});
|
|
1240
|
+
var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
|
|
1241
|
+
security: [{
|
|
1242
|
+
in: "cookie",
|
|
1243
|
+
name: "nadeshiko.session_token",
|
|
1244
|
+
type: "apiKey"
|
|
1245
|
+
}],
|
|
1246
|
+
url: "/v1/user/activity/date/{date}",
|
|
1247
|
+
...options
|
|
1248
|
+
});
|
|
1249
|
+
var deleteUserActivityById = (options) => (options.client ?? client).delete({
|
|
1250
|
+
security: [{
|
|
1251
|
+
in: "cookie",
|
|
1252
|
+
name: "nadeshiko.session_token",
|
|
1253
|
+
type: "apiKey"
|
|
1254
|
+
}],
|
|
1255
|
+
url: "/v1/user/activity/{id}",
|
|
1256
|
+
...options
|
|
1257
|
+
});
|
|
1222
1258
|
var exportUserData = (options) => (options?.client ?? client).get({
|
|
1223
1259
|
security: [{
|
|
1224
1260
|
in: "cookie",
|
|
@@ -1237,6 +1273,24 @@ var listUserLabs = (options) => (options?.client ?? client).get({
|
|
|
1237
1273
|
url: "/v1/user/labs",
|
|
1238
1274
|
...options
|
|
1239
1275
|
});
|
|
1276
|
+
var unenrollUserLab = (options) => (options.client ?? client).delete({
|
|
1277
|
+
security: [{
|
|
1278
|
+
in: "cookie",
|
|
1279
|
+
name: "nadeshiko.session_token",
|
|
1280
|
+
type: "apiKey"
|
|
1281
|
+
}],
|
|
1282
|
+
url: "/v1/user/labs/{key}",
|
|
1283
|
+
...options
|
|
1284
|
+
});
|
|
1285
|
+
var enrollUserLab = (options) => (options.client ?? client).post({
|
|
1286
|
+
security: [{
|
|
1287
|
+
in: "cookie",
|
|
1288
|
+
name: "nadeshiko.session_token",
|
|
1289
|
+
type: "apiKey"
|
|
1290
|
+
}],
|
|
1291
|
+
url: "/v1/user/labs/{key}",
|
|
1292
|
+
...options
|
|
1293
|
+
});
|
|
1240
1294
|
var listCollections = (options) => (options?.client ?? client).get({
|
|
1241
1295
|
security: [{
|
|
1242
1296
|
in: "cookie",
|
|
@@ -1325,6 +1379,24 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
|
1325
1379
|
...options.headers
|
|
1326
1380
|
}
|
|
1327
1381
|
});
|
|
1382
|
+
var searchCollectionSegments = (options) => (options.client ?? client).get({
|
|
1383
|
+
security: [{
|
|
1384
|
+
in: "cookie",
|
|
1385
|
+
name: "nadeshiko.session_token",
|
|
1386
|
+
type: "apiKey"
|
|
1387
|
+
}],
|
|
1388
|
+
url: "/v1/collections/{id}/search",
|
|
1389
|
+
...options
|
|
1390
|
+
});
|
|
1391
|
+
var getCollectionStats = (options) => (options.client ?? client).get({
|
|
1392
|
+
security: [{
|
|
1393
|
+
in: "cookie",
|
|
1394
|
+
name: "nadeshiko.session_token",
|
|
1395
|
+
type: "apiKey"
|
|
1396
|
+
}],
|
|
1397
|
+
url: "/v1/collections/{id}/stats",
|
|
1398
|
+
...options
|
|
1399
|
+
});
|
|
1328
1400
|
var getAdminDashboard = (options) => (options?.client ?? client).get({
|
|
1329
1401
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1330
1402
|
url: "/v1/admin/dashboard",
|
|
@@ -1369,6 +1441,28 @@ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
|
|
|
1369
1441
|
url: "/v1/admin/queues/{queueName}/purge",
|
|
1370
1442
|
...options
|
|
1371
1443
|
});
|
|
1444
|
+
var clearAdminImpersonation = (options) => (options?.client ?? client).delete({
|
|
1445
|
+
security: [{
|
|
1446
|
+
in: "cookie",
|
|
1447
|
+
name: "nadeshiko.session_token",
|
|
1448
|
+
type: "apiKey"
|
|
1449
|
+
}],
|
|
1450
|
+
url: "/v1/admin/impersonation",
|
|
1451
|
+
...options
|
|
1452
|
+
});
|
|
1453
|
+
var impersonateAdminUser = (options) => (options.client ?? client).post({
|
|
1454
|
+
security: [{
|
|
1455
|
+
in: "cookie",
|
|
1456
|
+
name: "nadeshiko.session_token",
|
|
1457
|
+
type: "apiKey"
|
|
1458
|
+
}],
|
|
1459
|
+
url: "/v1/admin/impersonation",
|
|
1460
|
+
...options,
|
|
1461
|
+
headers: {
|
|
1462
|
+
"Content-Type": "application/json",
|
|
1463
|
+
...options.headers
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1372
1466
|
var listAdminReports = (options) => (options?.client ?? client).get({
|
|
1373
1467
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1374
1468
|
url: "/v1/admin/reports",
|
|
@@ -1383,52 +1477,33 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
|
|
|
1383
1477
|
...options.headers
|
|
1384
1478
|
}
|
|
1385
1479
|
});
|
|
1386
|
-
var
|
|
1387
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1388
|
-
url: "/v1/admin/review/run",
|
|
1389
|
-
...options
|
|
1390
|
-
});
|
|
1391
|
-
var listAdminReviewChecks = (options) => (options?.client ?? client).get({
|
|
1480
|
+
var listAdminMediaAudits = (options) => (options?.client ?? client).get({
|
|
1392
1481
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1393
|
-
url: "/v1/admin/
|
|
1482
|
+
url: "/v1/admin/media/audits",
|
|
1394
1483
|
...options
|
|
1395
1484
|
});
|
|
1396
|
-
var
|
|
1485
|
+
var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
|
|
1397
1486
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1398
|
-
url: "/v1/admin/
|
|
1487
|
+
url: "/v1/admin/media/audits/{name}",
|
|
1399
1488
|
...options,
|
|
1400
1489
|
headers: {
|
|
1401
1490
|
"Content-Type": "application/json",
|
|
1402
1491
|
...options.headers
|
|
1403
1492
|
}
|
|
1404
1493
|
});
|
|
1405
|
-
var
|
|
1494
|
+
var runAdminMediaAudit = (options) => (options.client ?? client).post({
|
|
1406
1495
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1407
|
-
url: "/v1/admin/
|
|
1496
|
+
url: "/v1/admin/media/audits/{name}/run",
|
|
1408
1497
|
...options
|
|
1409
1498
|
});
|
|
1410
|
-
var
|
|
1499
|
+
var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
|
|
1411
1500
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1412
|
-
url: "/v1/admin/
|
|
1501
|
+
url: "/v1/admin/media/audits/runs",
|
|
1413
1502
|
...options
|
|
1414
1503
|
});
|
|
1415
|
-
var
|
|
1504
|
+
var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
1416
1505
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1417
|
-
url: "/v1/admin/
|
|
1418
|
-
...options
|
|
1419
|
-
});
|
|
1420
|
-
var createAdminReviewAllowlistEntry = (options) => (options.client ?? client).post({
|
|
1421
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1422
|
-
url: "/v1/admin/review/allowlist",
|
|
1423
|
-
...options,
|
|
1424
|
-
headers: {
|
|
1425
|
-
"Content-Type": "application/json",
|
|
1426
|
-
...options.headers
|
|
1427
|
-
}
|
|
1428
|
-
});
|
|
1429
|
-
var deleteAdminReviewAllowlistEntry = (options) => (options.client ?? client).delete({
|
|
1430
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1431
|
-
url: "/v1/admin/review/allowlist/{id}",
|
|
1506
|
+
url: "/v1/admin/media/audits/runs/{id}",
|
|
1432
1507
|
...options
|
|
1433
1508
|
});
|
|
1434
1509
|
// generated/dev/nadeshiko.gen.ts
|
|
@@ -1437,13 +1512,20 @@ var environments = {
|
|
|
1437
1512
|
DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
|
|
1438
1513
|
PRODUCTION: "https://api.brigadasos.xyz/api"
|
|
1439
1514
|
};
|
|
1515
|
+
var defaultSessionTokenGetter = () => {
|
|
1516
|
+
if (typeof document === "undefined")
|
|
1517
|
+
return;
|
|
1518
|
+
const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
|
|
1519
|
+
return match ? decodeURIComponent(match[1]) : undefined;
|
|
1520
|
+
};
|
|
1440
1521
|
function createNadeshikoClient(config) {
|
|
1441
1522
|
const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl : environments.PRODUCTION;
|
|
1523
|
+
const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
|
|
1442
1524
|
const clientInstance = createClient(createConfig({
|
|
1443
1525
|
baseUrl,
|
|
1444
1526
|
auth: (auth) => {
|
|
1445
1527
|
if (auth.in === "cookie") {
|
|
1446
|
-
return
|
|
1528
|
+
return getSessionToken();
|
|
1447
1529
|
}
|
|
1448
1530
|
return config.apiKey;
|
|
1449
1531
|
}
|
|
@@ -1454,17 +1536,16 @@ function createNadeshikoClient(config) {
|
|
|
1454
1536
|
getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
|
|
1455
1537
|
searchWords: (options) => searchWords({ ...options, client: clientInstance }),
|
|
1456
1538
|
listMedia: (options) => listMedia({ ...options, client: clientInstance }),
|
|
1457
|
-
getMedia: (options) => getMedia({ ...options, client: clientInstance }),
|
|
1458
|
-
listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
|
|
1459
|
-
getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
|
|
1460
|
-
getSegment: (options) => getSegment({ ...options, client: clientInstance }),
|
|
1461
1539
|
getSegmentByUuid: (options) => getSegmentByUuid({ ...options, client: clientInstance }),
|
|
1462
1540
|
getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
|
|
1463
1541
|
listSeries: (options) => listSeries({ ...options, client: clientInstance }),
|
|
1464
1542
|
getSeries: (options) => getSeries({ ...options, client: clientInstance }),
|
|
1465
1543
|
getCharacter: (options) => getCharacter({ ...options, client: clientInstance }),
|
|
1466
1544
|
getSeiyuu: (options) => getSeiyuu({ ...options, client: clientInstance }),
|
|
1467
|
-
|
|
1545
|
+
getMedia: (options) => getMedia({ ...options, client: clientInstance }),
|
|
1546
|
+
listEpisodes: (options) => listEpisodes({ ...options, client: clientInstance }),
|
|
1547
|
+
getEpisode: (options) => getEpisode({ ...options, client: clientInstance }),
|
|
1548
|
+
getSegment: (options) => getSegment({ ...options, client: clientInstance }),
|
|
1468
1549
|
listCollections: (options) => listCollections({ ...options, client: clientInstance }),
|
|
1469
1550
|
createCollection: (options) => createCollection({ ...options, client: clientInstance }),
|
|
1470
1551
|
getCollection: (options) => getCollection({ ...options, client: clientInstance }),
|
|
@@ -1473,23 +1554,17 @@ function createNadeshikoClient(config) {
|
|
|
1473
1554
|
addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
|
|
1474
1555
|
updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
|
|
1475
1556
|
removeSegmentFromCollection: (options) => removeSegmentFromCollection({ ...options, client: clientInstance }),
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
|
|
1479
|
-
listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1480
|
-
retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1481
|
-
purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1482
|
-
listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
|
|
1483
|
-
updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
|
|
1484
|
-
runAdminReview: (options) => runAdminReview({ ...options, client: clientInstance }),
|
|
1485
|
-
listAdminReviewChecks: (options) => listAdminReviewChecks({ ...options, client: clientInstance }),
|
|
1486
|
-
updateAdminReviewCheck: (options) => updateAdminReviewCheck({ ...options, client: clientInstance }),
|
|
1487
|
-
listAdminReviewRuns: (options) => listAdminReviewRuns({ ...options, client: clientInstance }),
|
|
1488
|
-
getAdminReviewRun: (options) => getAdminReviewRun({ ...options, client: clientInstance }),
|
|
1489
|
-
listAdminReviewAllowlist: (options) => listAdminReviewAllowlist({ ...options, client: clientInstance }),
|
|
1490
|
-
createAdminReviewAllowlistEntry: (options) => createAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
|
|
1491
|
-
deleteAdminReviewAllowlistEntry: (options) => deleteAdminReviewAllowlistEntry({ ...options, client: clientInstance }),
|
|
1557
|
+
searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
|
|
1558
|
+
getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
|
|
1492
1559
|
createMedia: (options) => createMedia({ ...options, client: clientInstance }),
|
|
1560
|
+
autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
|
|
1561
|
+
updateSegmentByUuid: (options) => updateSegmentByUuid({ ...options, client: clientInstance }),
|
|
1562
|
+
createSeries: (options) => createSeries({ ...options, client: clientInstance }),
|
|
1563
|
+
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1564
|
+
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
1565
|
+
addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
|
|
1566
|
+
updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
|
|
1567
|
+
removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
|
|
1493
1568
|
updateMedia: (options) => updateMedia({ ...options, client: clientInstance }),
|
|
1494
1569
|
deleteMedia: (options) => deleteMedia({ ...options, client: clientInstance }),
|
|
1495
1570
|
createEpisode: (options) => createEpisode({ ...options, client: clientInstance }),
|
|
@@ -1499,32 +1574,46 @@ function createNadeshikoClient(config) {
|
|
|
1499
1574
|
createSegment: (options) => createSegment({ ...options, client: clientInstance }),
|
|
1500
1575
|
updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
|
|
1501
1576
|
deleteSegment: (options) => deleteSegment({ ...options, client: clientInstance }),
|
|
1502
|
-
|
|
1503
|
-
updateSeries: (options) => updateSeries({ ...options, client: clientInstance }),
|
|
1504
|
-
deleteSeries: (options) => deleteSeries({ ...options, client: clientInstance }),
|
|
1505
|
-
addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
|
|
1506
|
-
updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
|
|
1507
|
-
removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
|
|
1577
|
+
getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
|
|
1508
1578
|
createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
|
|
1509
|
-
listUserReports: (options) => listUserReports({ ...options, client: clientInstance }),
|
|
1510
1579
|
getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
|
|
1511
1580
|
updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
|
|
1512
1581
|
listUserActivity: (options) => listUserActivity({ ...options, client: clientInstance }),
|
|
1582
|
+
trackUserActivity: (options) => trackUserActivity({ ...options, client: clientInstance }),
|
|
1513
1583
|
deleteUserActivity: (options) => deleteUserActivity({ ...options, client: clientInstance }),
|
|
1514
1584
|
getUserActivityHeatmap: (options) => getUserActivityHeatmap({ ...options, client: clientInstance }),
|
|
1515
1585
|
getUserActivityStats: (options) => getUserActivityStats({ ...options, client: clientInstance }),
|
|
1586
|
+
deleteUserActivityByDate: (options) => deleteUserActivityByDate({ ...options, client: clientInstance }),
|
|
1587
|
+
deleteUserActivityById: (options) => deleteUserActivityById({ ...options, client: clientInstance }),
|
|
1516
1588
|
exportUserData: (options) => exportUserData({ ...options, client: clientInstance }),
|
|
1517
1589
|
listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
|
|
1590
|
+
enrollUserLab: (options) => enrollUserLab({ ...options, client: clientInstance }),
|
|
1591
|
+
unenrollUserLab: (options) => unenrollUserLab({ ...options, client: clientInstance }),
|
|
1518
1592
|
getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
|
|
1519
|
-
getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance })
|
|
1593
|
+
getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance }),
|
|
1594
|
+
triggerReindex: (options) => triggerReindex({ ...options, client: clientInstance }),
|
|
1595
|
+
listAdminQueueStats: (options) => listAdminQueueStats({ ...options, client: clientInstance }),
|
|
1596
|
+
getAdminQueue: (options) => getAdminQueue({ ...options, client: clientInstance }),
|
|
1597
|
+
listAdminQueueFailed: (options) => listAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1598
|
+
retryAdminQueueFailed: (options) => retryAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1599
|
+
purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ ...options, client: clientInstance }),
|
|
1600
|
+
impersonateAdminUser: (options) => impersonateAdminUser({ ...options, client: clientInstance }),
|
|
1601
|
+
clearAdminImpersonation: (options) => clearAdminImpersonation({ ...options, client: clientInstance }),
|
|
1602
|
+
listAdminReports: (options) => listAdminReports({ ...options, client: clientInstance }),
|
|
1603
|
+
updateAdminReport: (options) => updateAdminReport({ ...options, client: clientInstance }),
|
|
1604
|
+
listAdminMediaAudits: (options) => listAdminMediaAudits({ ...options, client: clientInstance }),
|
|
1605
|
+
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1606
|
+
runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1607
|
+
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
|
|
1608
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
|
|
1520
1609
|
};
|
|
1521
1610
|
}
|
|
1522
|
-
var createClient2 = createNadeshikoClient;
|
|
1523
1611
|
// generated/dev/internal/media.gen.ts
|
|
1524
1612
|
var exports_media_gen = {};
|
|
1525
1613
|
__export(exports_media_gen, {
|
|
1526
1614
|
updateSeriesMedia: () => updateSeriesMedia,
|
|
1527
1615
|
updateSeries: () => updateSeries,
|
|
1616
|
+
updateSegmentByUuid: () => updateSegmentByUuid,
|
|
1528
1617
|
updateSegment: () => updateSegment,
|
|
1529
1618
|
updateMedia: () => updateMedia,
|
|
1530
1619
|
updateEpisode: () => updateEpisode,
|
|
@@ -1538,28 +1627,49 @@ __export(exports_media_gen, {
|
|
|
1538
1627
|
createSegment: () => createSegment,
|
|
1539
1628
|
createMedia: () => createMedia,
|
|
1540
1629
|
createEpisode: () => createEpisode,
|
|
1630
|
+
autocompleteMedia: () => autocompleteMedia,
|
|
1541
1631
|
addMediaToSeries: () => addMediaToSeries
|
|
1542
1632
|
});
|
|
1543
1633
|
// generated/dev/internal/user.gen.ts
|
|
1544
1634
|
var exports_user_gen = {};
|
|
1545
1635
|
__export(exports_user_gen, {
|
|
1546
1636
|
updateUserPreferences: () => updateUserPreferences,
|
|
1547
|
-
|
|
1637
|
+
unenrollUserLab: () => unenrollUserLab,
|
|
1638
|
+
trackUserActivity: () => trackUserActivity,
|
|
1548
1639
|
listUserLabs: () => listUserLabs,
|
|
1549
1640
|
listUserActivity: () => listUserActivity,
|
|
1641
|
+
getUserQuota: () => getUserQuota,
|
|
1550
1642
|
getUserPreferences: () => getUserPreferences,
|
|
1551
1643
|
getUserActivityStats: () => getUserActivityStats,
|
|
1552
1644
|
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
1553
1645
|
exportUserData: () => exportUserData,
|
|
1646
|
+
enrollUserLab: () => enrollUserLab,
|
|
1647
|
+
deleteUserActivityById: () => deleteUserActivityById,
|
|
1648
|
+
deleteUserActivityByDate: () => deleteUserActivityByDate,
|
|
1554
1649
|
deleteUserActivity: () => deleteUserActivity,
|
|
1555
1650
|
createUserReport: () => createUserReport
|
|
1556
1651
|
});
|
|
1557
1652
|
// generated/dev/internal/admin.gen.ts
|
|
1558
1653
|
var exports_admin_gen = {};
|
|
1559
1654
|
__export(exports_admin_gen, {
|
|
1655
|
+
updateAdminReport: () => updateAdminReport,
|
|
1656
|
+
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
1657
|
+
triggerReindex: () => triggerReindex,
|
|
1658
|
+
runAdminMediaAudit: () => runAdminMediaAudit,
|
|
1659
|
+
retryAdminQueueFailed: () => retryAdminQueueFailed,
|
|
1660
|
+
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
1661
|
+
listAdminReports: () => listAdminReports,
|
|
1662
|
+
listAdminQueueStats: () => listAdminQueueStats,
|
|
1663
|
+
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
1664
|
+
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
1665
|
+
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
1666
|
+
impersonateAdminUser: () => impersonateAdminUser,
|
|
1667
|
+
getAdminQueue: () => getAdminQueue,
|
|
1668
|
+
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
1560
1669
|
getAdminHealth: () => getAdminHealth,
|
|
1561
|
-
getAdminDashboard: () => getAdminDashboard
|
|
1670
|
+
getAdminDashboard: () => getAdminDashboard,
|
|
1671
|
+
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1562
1672
|
});
|
|
1563
1673
|
|
|
1564
|
-
//# debugId=
|
|
1674
|
+
//# debugId=DEC19559A3C9871964756E2164756E21
|
|
1565
1675
|
//# sourceMappingURL=index.js.map
|