@brigadasos/nadeshiko-sdk 1.4.3-dev.e5c01f0 → 1.5.0-dev.9402be1

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