@brigadasos/nadeshiko-sdk 1.4.3-dev.09dcbc3 → 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/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,8 @@ __export(exports_dev, {
96
112
  createMedia: () => createMedia,
97
113
  createEpisode: () => createEpisode,
98
114
  createCollection: () => createCollection,
99
- createAdminReviewAllowlistEntry: () => createAdminReviewAllowlistEntry,
100
115
  client: () => client,
116
+ clearAdminImpersonation: () => clearAdminImpersonation,
101
117
  autocompleteMedia: () => autocompleteMedia,
102
118
  admin: () => exports_admin_gen,
103
119
  addSegmentToCollection: () => addSegmentToCollection,
@@ -905,15 +921,11 @@ var createClient = (config = {}) => {
905
921
  };
906
922
  };
907
923
  // generated/dev/client.gen.ts
908
- var client = createClient(createConfig({ baseUrl: "http://localhost:5000" }));
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: {
@@ -966,191 +970,187 @@ var autocompleteMedia = (options) => (options.client ?? client).get({
966
970
  url: "/v1/media/autocomplete",
967
971
  ...options
968
972
  });
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({
973
+ var getSegmentByUuid = (options) => (options.client ?? client).get({
975
974
  security: [{ scheme: "bearer", type: "http" }],
976
- url: "/v1/media/{id}",
975
+ url: "/v1/media/segments/{uuid}",
977
976
  ...options
978
977
  });
979
- var updateMedia = (options) => (options.client ?? client).patch({
980
- security: [{ scheme: "bearer", type: "http" }],
981
- url: "/v1/media/{id}",
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}",
982
985
  ...options,
983
986
  headers: {
984
987
  "Content-Type": "application/json",
985
988
  ...options.headers
986
989
  }
987
990
  });
988
- var listEpisodes = (options) => (options.client ?? client).get({
991
+ var getSegmentContext = (options) => (options.client ?? client).get({
989
992
  security: [{ scheme: "bearer", type: "http" }],
990
- url: "/v1/media/{mediaId}/episodes",
993
+ url: "/v1/media/segments/{uuid}/context",
991
994
  ...options
992
995
  });
993
- var createEpisode = (options) => (options.client ?? client).post({
996
+ var listSeries = (options) => (options?.client ?? client).get({
994
997
  security: [{ scheme: "bearer", type: "http" }],
995
- url: "/v1/media/{mediaId}/episodes",
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",
996
1004
  ...options,
997
1005
  headers: {
998
1006
  "Content-Type": "application/json",
999
1007
  ...options.headers
1000
1008
  }
1001
1009
  });
1002
- var deleteEpisode = (options) => (options.client ?? client).delete({
1010
+ var deleteSeries = (options) => (options.client ?? client).delete({
1003
1011
  security: [{ scheme: "bearer", type: "http" }],
1004
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1012
+ url: "/v1/media/series/{id}",
1005
1013
  ...options
1006
1014
  });
1007
- var getEpisode = (options) => (options.client ?? client).get({
1015
+ var getSeries = (options) => (options.client ?? client).get({
1008
1016
  security: [{ scheme: "bearer", type: "http" }],
1009
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1017
+ url: "/v1/media/series/{id}",
1010
1018
  ...options
1011
1019
  });
1012
- var updateEpisode = (options) => (options.client ?? client).patch({
1020
+ var updateSeries = (options) => (options.client ?? client).patch({
1013
1021
  security: [{ scheme: "bearer", type: "http" }],
1014
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1022
+ url: "/v1/media/series/{id}",
1015
1023
  ...options,
1016
1024
  headers: {
1017
1025
  "Content-Type": "application/json",
1018
1026
  ...options.headers
1019
1027
  }
1020
1028
  });
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({
1029
+ var addMediaToSeries = (options) => (options.client ?? client).post({
1027
1030
  security: [{ scheme: "bearer", type: "http" }],
1028
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1031
+ url: "/v1/media/series/{id}/media",
1029
1032
  ...options,
1030
1033
  headers: {
1031
1034
  "Content-Type": "application/json",
1032
1035
  ...options.headers
1033
1036
  }
1034
1037
  });
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({
1038
+ var removeMediaFromSeries = (options) => (options.client ?? client).delete({
1041
1039
  security: [{ scheme: "bearer", type: "http" }],
1042
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1040
+ url: "/v1/media/series/{id}/media/{mediaId}",
1043
1041
  ...options
1044
1042
  });
1045
- var updateSegment = (options) => (options.client ?? client).patch({
1043
+ var updateSeriesMedia = (options) => (options.client ?? client).patch({
1046
1044
  security: [{ scheme: "bearer", type: "http" }],
1047
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1045
+ url: "/v1/media/series/{id}/media/{mediaId}",
1048
1046
  ...options,
1049
1047
  headers: {
1050
1048
  "Content-Type": "application/json",
1051
1049
  ...options.headers
1052
1050
  }
1053
1051
  });
1054
- var getSegmentByUuid = (options) => (options.client ?? client).get({
1052
+ var getCharacter = (options) => (options.client ?? client).get({
1055
1053
  security: [{ scheme: "bearer", type: "http" }],
1056
- url: "/v1/media/segments/{uuid}",
1054
+ url: "/v1/media/characters/{id}",
1057
1055
  ...options
1058
1056
  });
1059
- var getSegmentContext = (options) => (options.client ?? client).get({
1057
+ var getSeiyuu = (options) => (options.client ?? client).get({
1060
1058
  security: [{ scheme: "bearer", type: "http" }],
1061
- url: "/v1/media/segments/{uuid}/context",
1059
+ url: "/v1/media/seiyuu/{id}",
1062
1060
  ...options
1063
1061
  });
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",
1062
+ var deleteMedia = (options) => (options.client ?? client).delete({
1063
+ security: [{ scheme: "bearer", type: "http" }],
1064
+ url: "/v1/media/{id}",
1071
1065
  ...options
1072
1066
  });
1073
- var createSeries = (options) => (options.client ?? client).post({
1067
+ var getMedia = (options) => (options.client ?? client).get({
1074
1068
  security: [{ scheme: "bearer", type: "http" }],
1075
- url: "/v1/media/series",
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}",
1076
1075
  ...options,
1077
1076
  headers: {
1078
1077
  "Content-Type": "application/json",
1079
1078
  ...options.headers
1080
1079
  }
1081
1080
  });
1082
- var deleteSeries = (options) => (options.client ?? client).delete({
1081
+ var listEpisodes = (options) => (options.client ?? client).get({
1083
1082
  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}",
1083
+ url: "/v1/media/{mediaId}/episodes",
1094
1084
  ...options
1095
1085
  });
1096
- var updateSeries = (options) => (options.client ?? client).patch({
1086
+ var createEpisode = (options) => (options.client ?? client).post({
1097
1087
  security: [{ scheme: "bearer", type: "http" }],
1098
- url: "/v1/media/series/{id}",
1088
+ url: "/v1/media/{mediaId}/episodes",
1099
1089
  ...options,
1100
1090
  headers: {
1101
1091
  "Content-Type": "application/json",
1102
1092
  ...options.headers
1103
1093
  }
1104
1094
  });
1105
- var addMediaToSeries = (options) => (options.client ?? client).post({
1095
+ var deleteEpisode = (options) => (options.client ?? client).delete({
1106
1096
  security: [{ scheme: "bearer", type: "http" }],
1107
- url: "/v1/media/series/{id}/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}",
1108
1108
  ...options,
1109
1109
  headers: {
1110
1110
  "Content-Type": "application/json",
1111
1111
  ...options.headers
1112
1112
  }
1113
1113
  });
1114
- var removeMediaFromSeries = (options) => (options.client ?? client).delete({
1114
+ var listSegments = (options) => (options.client ?? client).get({
1115
1115
  security: [{ scheme: "bearer", type: "http" }],
1116
- url: "/v1/media/series/{id}/media/{mediaId}",
1116
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1117
1117
  ...options
1118
1118
  });
1119
- var updateSeriesMedia = (options) => (options.client ?? client).patch({
1119
+ var createSegment = (options) => (options.client ?? client).post({
1120
1120
  security: [{ scheme: "bearer", type: "http" }],
1121
- url: "/v1/media/series/{id}/media/{mediaId}",
1121
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1122
1122
  ...options,
1123
1123
  headers: {
1124
1124
  "Content-Type": "application/json",
1125
1125
  ...options.headers
1126
1126
  }
1127
1127
  });
1128
- var getCharacter = (options) => (options.client ?? client).get({
1128
+ var deleteSegment = (options) => (options.client ?? client).delete({
1129
1129
  security: [{ scheme: "bearer", type: "http" }],
1130
- url: "/v1/media/characters/{id}",
1130
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1131
1131
  ...options
1132
1132
  });
1133
- var getSeiyuu = (options) => (options.client ?? client).get({
1133
+ var getSegment = (options) => (options.client ?? client).get({
1134
1134
  security: [{ scheme: "bearer", type: "http" }],
1135
- url: "/v1/media/seiyuu/{id}",
1135
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1136
1136
  ...options
1137
1137
  });
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
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
+ }
1146
1146
  });
1147
- var listUserReports = (options) => (options?.client ?? client).get({
1147
+ var getUserQuota = (options) => (options?.client ?? client).get({
1148
1148
  security: [{
1149
1149
  in: "cookie",
1150
1150
  name: "nadeshiko.session_token",
1151
1151
  type: "apiKey"
1152
1152
  }],
1153
- url: "/v1/user/reports",
1153
+ url: "/v1/user/quota",
1154
1154
  ...options
1155
1155
  });
1156
1156
  var createUserReport = (options) => (options.client ?? client).post({
@@ -1206,6 +1206,19 @@ var listUserActivity = (options) => (options?.client ?? client).get({
1206
1206
  url: "/v1/user/activity",
1207
1207
  ...options
1208
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
+ });
1209
1222
  var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
1210
1223
  security: [{
1211
1224
  in: "cookie",
@@ -1224,6 +1237,24 @@ var getUserActivityStats = (options) => (options?.client ?? client).get({
1224
1237
  url: "/v1/user/activity/stats",
1225
1238
  ...options
1226
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
+ });
1227
1258
  var exportUserData = (options) => (options?.client ?? client).get({
1228
1259
  security: [{
1229
1260
  in: "cookie",
@@ -1242,6 +1273,24 @@ var listUserLabs = (options) => (options?.client ?? client).get({
1242
1273
  url: "/v1/user/labs",
1243
1274
  ...options
1244
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
+ });
1245
1294
  var listCollections = (options) => (options?.client ?? client).get({
1246
1295
  security: [{
1247
1296
  in: "cookie",
@@ -1330,6 +1379,24 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1330
1379
  ...options.headers
1331
1380
  }
1332
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
+ });
1333
1400
  var getAdminDashboard = (options) => (options?.client ?? client).get({
1334
1401
  security: [{ scheme: "bearer", type: "http" }],
1335
1402
  url: "/v1/admin/dashboard",
@@ -1374,6 +1441,28 @@ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1374
1441
  url: "/v1/admin/queues/{queueName}/purge",
1375
1442
  ...options
1376
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
+ });
1377
1466
  var listAdminReports = (options) => (options?.client ?? client).get({
1378
1467
  security: [{ scheme: "bearer", type: "http" }],
1379
1468
  url: "/v1/admin/reports",
@@ -1388,52 +1477,33 @@ var updateAdminReport = (options) => (options.client ?? client).patch({
1388
1477
  ...options.headers
1389
1478
  }
1390
1479
  });
1391
- var runAdminReview = (options) => (options?.client ?? client).post({
1480
+ var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1392
1481
  security: [{ scheme: "bearer", type: "http" }],
1393
- url: "/v1/admin/review/run",
1482
+ url: "/v1/admin/media/audits",
1394
1483
  ...options
1395
1484
  });
1396
- var listAdminReviewChecks = (options) => (options?.client ?? client).get({
1485
+ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1397
1486
  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}",
1487
+ url: "/v1/admin/media/audits/{name}",
1404
1488
  ...options,
1405
1489
  headers: {
1406
1490
  "Content-Type": "application/json",
1407
1491
  ...options.headers
1408
1492
  }
1409
1493
  });
1410
- var listAdminReviewRuns = (options) => (options?.client ?? client).get({
1494
+ var runAdminMediaAudit = (options) => (options.client ?? client).post({
1411
1495
  security: [{ scheme: "bearer", type: "http" }],
1412
- url: "/v1/admin/review/runs",
1496
+ url: "/v1/admin/media/audits/{name}/run",
1413
1497
  ...options
1414
1498
  });
1415
- var getAdminReviewRun = (options) => (options.client ?? client).get({
1499
+ var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1416
1500
  security: [{ scheme: "bearer", type: "http" }],
1417
- url: "/v1/admin/review/runs/{id}",
1501
+ url: "/v1/admin/media/audits/runs",
1418
1502
  ...options
1419
1503
  });
1420
- var listAdminReviewAllowlist = (options) => (options?.client ?? client).get({
1504
+ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1421
1505
  security: [{ scheme: "bearer", type: "http" }],
1422
- url: "/v1/admin/review/allowlist",
1423
- ...options
1424
- });
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({
1435
- security: [{ scheme: "bearer", type: "http" }],
1436
- url: "/v1/admin/review/allowlist/{id}",
1506
+ url: "/v1/admin/media/audits/runs/{id}",
1437
1507
  ...options
1438
1508
  });
1439
1509
  // generated/dev/nadeshiko.gen.ts
@@ -1466,17 +1536,16 @@ function createNadeshikoClient(config) {
1466
1536
  getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
1467
1537
  searchWords: (options) => searchWords({ ...options, client: clientInstance }),
1468
1538
  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
1539
  getSegmentByUuid: (options) => getSegmentByUuid({ ...options, client: clientInstance }),
1474
1540
  getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
1475
1541
  listSeries: (options) => listSeries({ ...options, client: clientInstance }),
1476
1542
  getSeries: (options) => getSeries({ ...options, client: clientInstance }),
1477
1543
  getCharacter: (options) => getCharacter({ ...options, client: clientInstance }),
1478
1544
  getSeiyuu: (options) => getSeiyuu({ ...options, client: clientInstance }),
1479
- getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
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 }),
1480
1549
  listCollections: (options) => listCollections({ ...options, client: clientInstance }),
1481
1550
  createCollection: (options) => createCollection({ ...options, client: clientInstance }),
1482
1551
  getCollection: (options) => getCollection({ ...options, client: clientInstance }),
@@ -1485,24 +1554,17 @@ function createNadeshikoClient(config) {
1485
1554
  addSegmentToCollection: (options) => addSegmentToCollection({ ...options, client: clientInstance }),
1486
1555
  updateCollectionSegment: (options) => updateCollectionSegment({ ...options, client: clientInstance }),
1487
1556
  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 }),
1557
+ searchCollectionSegments: (options) => searchCollectionSegments({ ...options, client: clientInstance }),
1558
+ getCollectionStats: (options) => getCollectionStats({ ...options, client: clientInstance }),
1504
1559
  createMedia: (options) => createMedia({ ...options, client: clientInstance }),
1505
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 }),
1506
1568
  updateMedia: (options) => updateMedia({ ...options, client: clientInstance }),
1507
1569
  deleteMedia: (options) => deleteMedia({ ...options, client: clientInstance }),
1508
1570
  createEpisode: (options) => createEpisode({ ...options, client: clientInstance }),
@@ -1512,24 +1574,38 @@ function createNadeshikoClient(config) {
1512
1574
  createSegment: (options) => createSegment({ ...options, client: clientInstance }),
1513
1575
  updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
1514
1576
  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 }),
1577
+ getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
1521
1578
  createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
1522
- listUserReports: (options) => listUserReports({ ...options, client: clientInstance }),
1523
1579
  getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
1524
1580
  updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
1525
1581
  listUserActivity: (options) => listUserActivity({ ...options, client: clientInstance }),
1582
+ trackUserActivity: (options) => trackUserActivity({ ...options, client: clientInstance }),
1526
1583
  deleteUserActivity: (options) => deleteUserActivity({ ...options, client: clientInstance }),
1527
1584
  getUserActivityHeatmap: (options) => getUserActivityHeatmap({ ...options, client: clientInstance }),
1528
1585
  getUserActivityStats: (options) => getUserActivityStats({ ...options, client: clientInstance }),
1586
+ deleteUserActivityByDate: (options) => deleteUserActivityByDate({ ...options, client: clientInstance }),
1587
+ deleteUserActivityById: (options) => deleteUserActivityById({ ...options, client: clientInstance }),
1529
1588
  exportUserData: (options) => exportUserData({ ...options, client: clientInstance }),
1530
1589
  listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
1590
+ enrollUserLab: (options) => enrollUserLab({ ...options, client: clientInstance }),
1591
+ unenrollUserLab: (options) => unenrollUserLab({ ...options, client: clientInstance }),
1531
1592
  getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
1532
- 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 })
1533
1609
  };
1534
1610
  }
1535
1611
  // generated/dev/internal/media.gen.ts
@@ -1537,6 +1613,7 @@ var exports_media_gen = {};
1537
1613
  __export(exports_media_gen, {
1538
1614
  updateSeriesMedia: () => updateSeriesMedia,
1539
1615
  updateSeries: () => updateSeries,
1616
+ updateSegmentByUuid: () => updateSegmentByUuid,
1540
1617
  updateSegment: () => updateSegment,
1541
1618
  updateMedia: () => updateMedia,
1542
1619
  updateEpisode: () => updateEpisode,
@@ -1557,22 +1634,42 @@ __export(exports_media_gen, {
1557
1634
  var exports_user_gen = {};
1558
1635
  __export(exports_user_gen, {
1559
1636
  updateUserPreferences: () => updateUserPreferences,
1560
- listUserReports: () => listUserReports,
1637
+ unenrollUserLab: () => unenrollUserLab,
1638
+ trackUserActivity: () => trackUserActivity,
1561
1639
  listUserLabs: () => listUserLabs,
1562
1640
  listUserActivity: () => listUserActivity,
1641
+ getUserQuota: () => getUserQuota,
1563
1642
  getUserPreferences: () => getUserPreferences,
1564
1643
  getUserActivityStats: () => getUserActivityStats,
1565
1644
  getUserActivityHeatmap: () => getUserActivityHeatmap,
1566
1645
  exportUserData: () => exportUserData,
1646
+ enrollUserLab: () => enrollUserLab,
1647
+ deleteUserActivityById: () => deleteUserActivityById,
1648
+ deleteUserActivityByDate: () => deleteUserActivityByDate,
1567
1649
  deleteUserActivity: () => deleteUserActivity,
1568
1650
  createUserReport: () => createUserReport
1569
1651
  });
1570
1652
  // generated/dev/internal/admin.gen.ts
1571
1653
  var exports_admin_gen = {};
1572
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,
1573
1669
  getAdminHealth: () => getAdminHealth,
1574
- getAdminDashboard: () => getAdminDashboard
1670
+ getAdminDashboard: () => getAdminDashboard,
1671
+ clearAdminImpersonation: () => clearAdminImpersonation
1575
1672
  });
1576
1673
 
1577
- //# debugId=4B0EFE7CA1477FC664756E2164756E21
1674
+ //# debugId=DEC19559A3C9871964756E2164756E21
1578
1675
  //# sourceMappingURL=index.js.map