@brigadasos/nadeshiko-sdk 1.4.3-dev.e5c01f0 → 1.5.0-dev.220bc0b

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