@brigadasos/nadeshiko-sdk 2.0.0 → 2.0.1-internal

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.
Files changed (39) hide show
  1. package/dist/client/client.gen.d.ts.map +1 -1
  2. package/dist/client/index.d.ts.map +1 -1
  3. package/dist/client/types.gen.d.ts.map +1 -1
  4. package/dist/client/utils.gen.d.ts.map +1 -1
  5. package/dist/client.gen.d.ts.map +1 -1
  6. package/dist/core/auth.gen.d.ts.map +1 -1
  7. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  8. package/dist/core/params.gen.d.ts.map +1 -1
  9. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  10. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
  11. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  12. package/dist/core/types.gen.d.ts.map +1 -1
  13. package/dist/core/utils.gen.d.ts.map +1 -1
  14. package/dist/errors.d.ts.map +1 -1
  15. package/dist/index.cjs +823 -66
  16. package/dist/index.cjs.map +5 -5
  17. package/dist/index.d.ts +3 -3
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +834 -62
  20. package/dist/index.js.map +5 -5
  21. package/dist/internal/admin.gen.d.ts +2 -0
  22. package/dist/internal/admin.gen.d.ts.map +1 -0
  23. package/dist/internal/collections.gen.d.ts +2 -0
  24. package/dist/internal/collections.gen.d.ts.map +1 -0
  25. package/dist/internal/media.gen.d.ts +2 -0
  26. package/dist/internal/media.gen.d.ts.map +1 -0
  27. package/dist/internal/user.gen.d.ts +2 -0
  28. package/dist/internal/user.gen.d.ts.map +1 -0
  29. package/dist/internal.gen.d.ts +5 -0
  30. package/dist/internal.gen.d.ts.map +1 -0
  31. package/dist/nadeshiko.gen.d.ts +1201 -25
  32. package/dist/nadeshiko.gen.d.ts.map +1 -1
  33. package/dist/paginate.d.ts.map +1 -1
  34. package/dist/retry.d.ts.map +1 -1
  35. package/dist/sdk.gen.d.ts +26 -180
  36. package/dist/sdk.gen.d.ts.map +1 -1
  37. package/dist/types.gen.d.ts +114 -114
  38. package/dist/types.gen.d.ts.map +1 -1
  39. package/package.json +4 -3
package/dist/index.js CHANGED
@@ -1,8 +1,23 @@
1
- // generated/public/core/bodySerializer.gen.ts
1
+ var __defProp = Object.defineProperty;
2
+ var __returnValue = (v) => v;
3
+ function __exportSetter(name, newValue) {
4
+ this[name] = __returnValue.bind(null, newValue);
5
+ }
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true,
11
+ configurable: true,
12
+ set: __exportSetter.bind(all, name)
13
+ });
14
+ };
15
+
16
+ // generated/internal/core/bodySerializer.gen.ts
2
17
  var jsonBodySerializer = {
3
18
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
4
19
  };
5
- // generated/public/core/params.gen.ts
20
+ // generated/internal/core/params.gen.ts
6
21
  var extraPrefixesMap = {
7
22
  $body_: "body",
8
23
  $headers_: "headers",
@@ -10,7 +25,7 @@ var extraPrefixesMap = {
10
25
  $query_: "query"
11
26
  };
12
27
  var extraPrefixes = Object.entries(extraPrefixesMap);
13
- // generated/public/core/serverSentEvents.gen.ts
28
+ // generated/internal/core/serverSentEvents.gen.ts
14
29
  var createSseClient = ({
15
30
  onRequest,
16
31
  onSseError,
@@ -146,7 +161,7 @@ var createSseClient = ({
146
161
  return { stream };
147
162
  };
148
163
 
149
- // generated/public/core/pathSerializer.gen.ts
164
+ // generated/internal/core/pathSerializer.gen.ts
150
165
  var separatorArrayExplode = (style) => {
151
166
  switch (style) {
152
167
  case "label":
@@ -270,7 +285,7 @@ var serializeObjectParam = ({
270
285
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
271
286
  };
272
287
 
273
- // generated/public/core/utils.gen.ts
288
+ // generated/internal/core/utils.gen.ts
274
289
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
275
290
  var defaultPathSerializer = ({ path, url: _url }) => {
276
291
  let url = _url;
@@ -359,7 +374,7 @@ function getValidRequestBody(options) {
359
374
  return;
360
375
  }
361
376
 
362
- // generated/public/core/auth.gen.ts
377
+ // generated/internal/core/auth.gen.ts
363
378
  var getAuthToken = async (auth, callback) => {
364
379
  const token = typeof callback === "function" ? await callback(auth) : callback;
365
380
  if (!token) {
@@ -374,7 +389,7 @@ var getAuthToken = async (auth, callback) => {
374
389
  return token;
375
390
  };
376
391
 
377
- // generated/public/client/utils.gen.ts
392
+ // generated/internal/client/utils.gen.ts
378
393
  var createQuerySerializer = ({
379
394
  parameters = {},
380
395
  ...args
@@ -591,7 +606,7 @@ var createConfig = (override = {}) => ({
591
606
  ...override
592
607
  });
593
608
 
594
- // generated/public/client/client.gen.ts
609
+ // generated/internal/client/client.gen.ts
595
610
  var createClient = (config = {}) => {
596
611
  let _config = mergeConfigs(createConfig(), config);
597
612
  const getConfig = () => ({ ..._config });
@@ -797,149 +812,677 @@ var createClient = (config = {}) => {
797
812
  trace: makeMethodFn("TRACE")
798
813
  };
799
814
  };
800
- // generated/public/client.gen.ts
815
+ // generated/internal/client.gen.ts
801
816
  var client = createClient(createConfig({ baseUrl: "https://api.nadeshiko.co" }));
802
817
 
803
- // generated/public/sdk.gen.ts
818
+ // generated/internal/sdk.gen.ts
804
819
  var search = (options) => (options?.client ?? client).post({
805
- security: [{ scheme: "bearer", type: "http" }, {
820
+ security: [{ scheme: "bearer", type: "http" }],
821
+ url: "/v1/search",
822
+ ...options,
823
+ headers: {
824
+ "Content-Type": "application/json",
825
+ ...options?.headers
826
+ }
827
+ });
828
+ var getSearchStats = (options) => (options?.client ?? client).post({
829
+ security: [{ scheme: "bearer", type: "http" }],
830
+ url: "/v1/search/stats",
831
+ ...options,
832
+ headers: {
833
+ "Content-Type": "application/json",
834
+ ...options?.headers
835
+ }
836
+ });
837
+ var searchWords = (options) => (options.client ?? client).post({
838
+ security: [{ scheme: "bearer", type: "http" }],
839
+ url: "/v1/search/words",
840
+ ...options,
841
+ headers: {
842
+ "Content-Type": "application/json",
843
+ ...options.headers
844
+ }
845
+ });
846
+ var listMedia = (options) => (options?.client ?? client).get({
847
+ security: [{ scheme: "bearer", type: "http" }],
848
+ url: "/v1/media",
849
+ ...options
850
+ });
851
+ var createMedia = (options) => (options.client ?? client).post({
852
+ security: [{ scheme: "bearer", type: "http" }],
853
+ url: "/v1/media",
854
+ ...options,
855
+ headers: {
856
+ "Content-Type": "application/json",
857
+ ...options.headers
858
+ }
859
+ });
860
+ var autocompleteMedia = (options) => (options.client ?? client).get({
861
+ security: [{ scheme: "bearer", type: "http" }],
862
+ url: "/v1/media/autocomplete",
863
+ ...options
864
+ });
865
+ var getSegmentByUuid = (options) => (options.client ?? client).get({
866
+ security: [{ scheme: "bearer", type: "http" }],
867
+ url: "/v1/media/segments/{uuid}",
868
+ ...options
869
+ });
870
+ var updateSegmentByUuid = (options) => (options.client ?? client).patch({
871
+ security: [{ scheme: "bearer", type: "http" }],
872
+ url: "/v1/media/segments/{uuid}",
873
+ ...options,
874
+ headers: {
875
+ "Content-Type": "application/json",
876
+ ...options.headers
877
+ }
878
+ });
879
+ var getSegmentContext = (options) => (options.client ?? client).get({
880
+ security: [{ scheme: "bearer", type: "http" }],
881
+ url: "/v1/media/segments/{uuid}/context",
882
+ ...options
883
+ });
884
+ var listSegmentRevisions = (options) => (options.client ?? client).get({
885
+ security: [{ scheme: "bearer", type: "http" }],
886
+ url: "/v1/media/segments/{uuid}/revisions",
887
+ ...options
888
+ });
889
+ var listSeries = (options) => (options?.client ?? client).get({
890
+ security: [{ scheme: "bearer", type: "http" }],
891
+ url: "/v1/media/series",
892
+ ...options
893
+ });
894
+ var createSeries = (options) => (options.client ?? client).post({
895
+ security: [{ scheme: "bearer", type: "http" }],
896
+ url: "/v1/media/series",
897
+ ...options,
898
+ headers: {
899
+ "Content-Type": "application/json",
900
+ ...options.headers
901
+ }
902
+ });
903
+ var deleteSeries = (options) => (options.client ?? client).delete({
904
+ security: [{ scheme: "bearer", type: "http" }],
905
+ url: "/v1/media/series/{id}",
906
+ ...options
907
+ });
908
+ var getSeries = (options) => (options.client ?? client).get({
909
+ security: [{ scheme: "bearer", type: "http" }],
910
+ url: "/v1/media/series/{id}",
911
+ ...options
912
+ });
913
+ var updateSeries = (options) => (options.client ?? client).patch({
914
+ security: [{ scheme: "bearer", type: "http" }],
915
+ url: "/v1/media/series/{id}",
916
+ ...options,
917
+ headers: {
918
+ "Content-Type": "application/json",
919
+ ...options.headers
920
+ }
921
+ });
922
+ var addMediaToSeries = (options) => (options.client ?? client).post({
923
+ security: [{ scheme: "bearer", type: "http" }],
924
+ url: "/v1/media/series/{id}/media",
925
+ ...options,
926
+ headers: {
927
+ "Content-Type": "application/json",
928
+ ...options.headers
929
+ }
930
+ });
931
+ var removeMediaFromSeries = (options) => (options.client ?? client).delete({
932
+ security: [{ scheme: "bearer", type: "http" }],
933
+ url: "/v1/media/series/{id}/media/{mediaId}",
934
+ ...options
935
+ });
936
+ var updateSeriesMedia = (options) => (options.client ?? client).patch({
937
+ security: [{ scheme: "bearer", type: "http" }],
938
+ url: "/v1/media/series/{id}/media/{mediaId}",
939
+ ...options,
940
+ headers: {
941
+ "Content-Type": "application/json",
942
+ ...options.headers
943
+ }
944
+ });
945
+ var getCharacter = (options) => (options.client ?? client).get({
946
+ security: [{ scheme: "bearer", type: "http" }],
947
+ url: "/v1/media/characters/{id}",
948
+ ...options
949
+ });
950
+ var getSeiyuu = (options) => (options.client ?? client).get({
951
+ security: [{ scheme: "bearer", type: "http" }],
952
+ url: "/v1/media/seiyuu/{id}",
953
+ ...options
954
+ });
955
+ var deleteMedia = (options) => (options.client ?? client).delete({
956
+ security: [{ scheme: "bearer", type: "http" }],
957
+ url: "/v1/media/{id}",
958
+ ...options
959
+ });
960
+ var getMedia = (options) => (options.client ?? client).get({
961
+ security: [{ scheme: "bearer", type: "http" }],
962
+ url: "/v1/media/{id}",
963
+ ...options
964
+ });
965
+ var updateMedia = (options) => (options.client ?? client).patch({
966
+ security: [{ scheme: "bearer", type: "http" }],
967
+ url: "/v1/media/{id}",
968
+ ...options,
969
+ headers: {
970
+ "Content-Type": "application/json",
971
+ ...options.headers
972
+ }
973
+ });
974
+ var listEpisodes = (options) => (options.client ?? client).get({
975
+ security: [{ scheme: "bearer", type: "http" }],
976
+ url: "/v1/media/{mediaId}/episodes",
977
+ ...options
978
+ });
979
+ var createEpisode = (options) => (options.client ?? client).post({
980
+ security: [{ scheme: "bearer", type: "http" }],
981
+ url: "/v1/media/{mediaId}/episodes",
982
+ ...options,
983
+ headers: {
984
+ "Content-Type": "application/json",
985
+ ...options.headers
986
+ }
987
+ });
988
+ var deleteEpisode = (options) => (options.client ?? client).delete({
989
+ security: [{ scheme: "bearer", type: "http" }],
990
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
991
+ ...options
992
+ });
993
+ var getEpisode = (options) => (options.client ?? client).get({
994
+ security: [{ scheme: "bearer", type: "http" }],
995
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
996
+ ...options
997
+ });
998
+ var updateEpisode = (options) => (options.client ?? client).patch({
999
+ security: [{ scheme: "bearer", type: "http" }],
1000
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1001
+ ...options,
1002
+ headers: {
1003
+ "Content-Type": "application/json",
1004
+ ...options.headers
1005
+ }
1006
+ });
1007
+ var listSegments = (options) => (options.client ?? client).get({
1008
+ security: [{ scheme: "bearer", type: "http" }],
1009
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1010
+ ...options
1011
+ });
1012
+ var createSegment = (options) => (options.client ?? client).post({
1013
+ security: [{ scheme: "bearer", type: "http" }],
1014
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1015
+ ...options,
1016
+ headers: {
1017
+ "Content-Type": "application/json",
1018
+ ...options.headers
1019
+ }
1020
+ });
1021
+ var createSegmentsBatch = (options) => (options.client ?? client).post({
1022
+ security: [{ scheme: "bearer", type: "http" }],
1023
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch",
1024
+ ...options,
1025
+ headers: {
1026
+ "Content-Type": "application/json",
1027
+ ...options.headers
1028
+ }
1029
+ });
1030
+ var deleteSegment = (options) => (options.client ?? client).delete({
1031
+ security: [{ scheme: "bearer", type: "http" }],
1032
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1033
+ ...options
1034
+ });
1035
+ var getSegment = (options) => (options.client ?? client).get({
1036
+ security: [{ scheme: "bearer", type: "http" }],
1037
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1038
+ ...options
1039
+ });
1040
+ var updateSegment = (options) => (options.client ?? client).patch({
1041
+ security: [{ scheme: "bearer", type: "http" }],
1042
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1043
+ ...options,
1044
+ headers: {
1045
+ "Content-Type": "application/json",
1046
+ ...options.headers
1047
+ }
1048
+ });
1049
+ var getUserQuota = (options) => (options?.client ?? client).get({
1050
+ security: [{
806
1051
  in: "cookie",
807
1052
  name: "nadeshiko.session_token",
808
1053
  type: "apiKey"
809
1054
  }],
810
- url: "/v1/search",
1055
+ url: "/v1/user/quota",
1056
+ ...options
1057
+ });
1058
+ var createUserReport = (options) => (options.client ?? client).post({
1059
+ security: [{
1060
+ in: "cookie",
1061
+ name: "nadeshiko.session_token",
1062
+ type: "apiKey"
1063
+ }],
1064
+ url: "/v1/user/reports",
811
1065
  ...options,
812
1066
  headers: {
813
1067
  "Content-Type": "application/json",
814
- ...options?.headers
1068
+ ...options.headers
815
1069
  }
816
1070
  });
817
- var getSearchStats = (options) => (options?.client ?? client).post({
818
- security: [{ scheme: "bearer", type: "http" }, {
1071
+ var getUserPreferences = (options) => (options?.client ?? client).get({
1072
+ security: [{
819
1073
  in: "cookie",
820
1074
  name: "nadeshiko.session_token",
821
1075
  type: "apiKey"
822
1076
  }],
823
- url: "/v1/search/stats",
1077
+ url: "/v1/user/preferences",
1078
+ ...options
1079
+ });
1080
+ var updateUserPreferences = (options) => (options.client ?? client).patch({
1081
+ security: [{
1082
+ in: "cookie",
1083
+ name: "nadeshiko.session_token",
1084
+ type: "apiKey"
1085
+ }],
1086
+ url: "/v1/user/preferences",
824
1087
  ...options,
825
1088
  headers: {
826
1089
  "Content-Type": "application/json",
827
- ...options?.headers
1090
+ ...options.headers
828
1091
  }
829
1092
  });
830
- var searchWords = (options) => (options.client ?? client).post({
831
- security: [{ scheme: "bearer", type: "http" }, {
1093
+ var deleteUserActivity = (options) => (options?.client ?? client).delete({
1094
+ security: [{
832
1095
  in: "cookie",
833
1096
  name: "nadeshiko.session_token",
834
1097
  type: "apiKey"
835
1098
  }],
836
- url: "/v1/search/words",
1099
+ url: "/v1/user/activity",
1100
+ ...options
1101
+ });
1102
+ var listUserActivity = (options) => (options?.client ?? client).get({
1103
+ security: [{
1104
+ in: "cookie",
1105
+ name: "nadeshiko.session_token",
1106
+ type: "apiKey"
1107
+ }],
1108
+ url: "/v1/user/activity",
1109
+ ...options
1110
+ });
1111
+ var trackUserActivity = (options) => (options.client ?? client).post({
1112
+ security: [{
1113
+ in: "cookie",
1114
+ name: "nadeshiko.session_token",
1115
+ type: "apiKey"
1116
+ }],
1117
+ url: "/v1/user/activity",
837
1118
  ...options,
838
1119
  headers: {
839
1120
  "Content-Type": "application/json",
840
1121
  ...options.headers
841
1122
  }
842
1123
  });
843
- var listMedia = (options) => (options?.client ?? client).get({
844
- security: [{ scheme: "bearer", type: "http" }, {
1124
+ var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
1125
+ security: [{
845
1126
  in: "cookie",
846
1127
  name: "nadeshiko.session_token",
847
1128
  type: "apiKey"
848
1129
  }],
849
- url: "/v1/media",
1130
+ url: "/v1/user/activity/heatmap",
850
1131
  ...options
851
1132
  });
852
- var getSegmentByUuid = (options) => (options.client ?? client).get({
853
- security: [{ scheme: "bearer", type: "http" }, {
1133
+ var getUserActivityStats = (options) => (options?.client ?? client).get({
1134
+ security: [{
854
1135
  in: "cookie",
855
1136
  name: "nadeshiko.session_token",
856
1137
  type: "apiKey"
857
1138
  }],
858
- url: "/v1/media/segments/{uuid}",
1139
+ url: "/v1/user/activity/stats",
859
1140
  ...options
860
1141
  });
861
- var getSegmentContext = (options) => (options.client ?? client).get({
862
- security: [{ scheme: "bearer", type: "http" }, {
1142
+ var deleteUserActivityByDate = (options) => (options.client ?? client).delete({
1143
+ security: [{
863
1144
  in: "cookie",
864
1145
  name: "nadeshiko.session_token",
865
1146
  type: "apiKey"
866
1147
  }],
867
- url: "/v1/media/segments/{uuid}/context",
1148
+ url: "/v1/user/activity/date/{date}",
868
1149
  ...options
869
1150
  });
870
- var listSeries = (options) => (options?.client ?? client).get({
871
- security: [{ scheme: "bearer", type: "http" }, {
1151
+ var deleteUserActivityById = (options) => (options.client ?? client).delete({
1152
+ security: [{
872
1153
  in: "cookie",
873
1154
  name: "nadeshiko.session_token",
874
1155
  type: "apiKey"
875
1156
  }],
876
- url: "/v1/media/series",
1157
+ url: "/v1/user/activity/{id}",
877
1158
  ...options
878
1159
  });
879
- var getSeries = (options) => (options.client ?? client).get({
880
- security: [{ scheme: "bearer", type: "http" }, {
1160
+ var exportUserData = (options) => (options?.client ?? client).get({
1161
+ security: [{
881
1162
  in: "cookie",
882
1163
  name: "nadeshiko.session_token",
883
1164
  type: "apiKey"
884
1165
  }],
885
- url: "/v1/media/series/{id}",
1166
+ url: "/v1/user/export",
886
1167
  ...options
887
1168
  });
888
- var getCharacter = (options) => (options.client ?? client).get({
889
- security: [{ scheme: "bearer", type: "http" }, {
1169
+ var listUserLabs = (options) => (options?.client ?? client).get({
1170
+ security: [{
890
1171
  in: "cookie",
891
1172
  name: "nadeshiko.session_token",
892
1173
  type: "apiKey"
893
1174
  }],
894
- url: "/v1/media/characters/{id}",
1175
+ url: "/v1/user/labs",
895
1176
  ...options
896
1177
  });
897
- var getSeiyuu = (options) => (options.client ?? client).get({
898
- security: [{ scheme: "bearer", type: "http" }, {
1178
+ var unenrollUserLab = (options) => (options.client ?? client).delete({
1179
+ security: [{
899
1180
  in: "cookie",
900
1181
  name: "nadeshiko.session_token",
901
1182
  type: "apiKey"
902
1183
  }],
903
- url: "/v1/media/seiyuu/{id}",
1184
+ url: "/v1/user/labs/{key}",
904
1185
  ...options
905
1186
  });
906
- var getMedia = (options) => (options.client ?? client).get({
907
- security: [{ scheme: "bearer", type: "http" }, {
1187
+ var enrollUserLab = (options) => (options.client ?? client).post({
1188
+ security: [{
908
1189
  in: "cookie",
909
1190
  name: "nadeshiko.session_token",
910
1191
  type: "apiKey"
911
1192
  }],
912
- url: "/v1/media/{id}",
1193
+ url: "/v1/user/labs/{key}",
913
1194
  ...options
914
1195
  });
915
- var listEpisodes = (options) => (options.client ?? client).get({
916
- security: [{ scheme: "bearer", type: "http" }, {
1196
+ var listCollections = (options) => (options?.client ?? client).get({
1197
+ security: [{
917
1198
  in: "cookie",
918
1199
  name: "nadeshiko.session_token",
919
1200
  type: "apiKey"
920
1201
  }],
921
- url: "/v1/media/{mediaId}/episodes",
1202
+ url: "/v1/collections",
922
1203
  ...options
923
1204
  });
924
- var getEpisode = (options) => (options.client ?? client).get({
925
- security: [{ scheme: "bearer", type: "http" }, {
1205
+ var createCollection = (options) => (options.client ?? client).post({
1206
+ security: [{
926
1207
  in: "cookie",
927
1208
  name: "nadeshiko.session_token",
928
1209
  type: "apiKey"
929
1210
  }],
930
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1211
+ url: "/v1/collections",
1212
+ ...options,
1213
+ headers: {
1214
+ "Content-Type": "application/json",
1215
+ ...options.headers
1216
+ }
1217
+ });
1218
+ var deleteCollection = (options) => (options.client ?? client).delete({
1219
+ security: [{
1220
+ in: "cookie",
1221
+ name: "nadeshiko.session_token",
1222
+ type: "apiKey"
1223
+ }],
1224
+ url: "/v1/collections/{id}",
931
1225
  ...options
932
1226
  });
933
- var getSegment = (options) => (options.client ?? client).get({
934
- security: [{ scheme: "bearer", type: "http" }, {
1227
+ var getCollection = (options) => (options.client ?? client).get({
1228
+ security: [{
935
1229
  in: "cookie",
936
1230
  name: "nadeshiko.session_token",
937
1231
  type: "apiKey"
938
1232
  }],
939
- url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1233
+ url: "/v1/collections/{id}",
1234
+ ...options
1235
+ });
1236
+ var updateCollection = (options) => (options.client ?? client).patch({
1237
+ security: [{
1238
+ in: "cookie",
1239
+ name: "nadeshiko.session_token",
1240
+ type: "apiKey"
1241
+ }],
1242
+ url: "/v1/collections/{id}",
1243
+ ...options,
1244
+ headers: {
1245
+ "Content-Type": "application/json",
1246
+ ...options.headers
1247
+ }
1248
+ });
1249
+ var addSegmentToCollection = (options) => (options.client ?? client).post({
1250
+ security: [{
1251
+ in: "cookie",
1252
+ name: "nadeshiko.session_token",
1253
+ type: "apiKey"
1254
+ }],
1255
+ url: "/v1/collections/{id}/segments",
1256
+ ...options,
1257
+ headers: {
1258
+ "Content-Type": "application/json",
1259
+ ...options.headers
1260
+ }
1261
+ });
1262
+ var removeSegmentFromCollection = (options) => (options.client ?? client).delete({
1263
+ security: [{
1264
+ in: "cookie",
1265
+ name: "nadeshiko.session_token",
1266
+ type: "apiKey"
1267
+ }],
1268
+ url: "/v1/collections/{id}/segments/{segmentId}",
1269
+ ...options
1270
+ });
1271
+ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1272
+ security: [{
1273
+ in: "cookie",
1274
+ name: "nadeshiko.session_token",
1275
+ type: "apiKey"
1276
+ }],
1277
+ url: "/v1/collections/{id}/segments/{segmentId}",
1278
+ ...options,
1279
+ headers: {
1280
+ "Content-Type": "application/json",
1281
+ ...options.headers
1282
+ }
1283
+ });
1284
+ var searchCollectionSegments = (options) => (options.client ?? client).get({
1285
+ security: [{
1286
+ in: "cookie",
1287
+ name: "nadeshiko.session_token",
1288
+ type: "apiKey"
1289
+ }],
1290
+ url: "/v1/collections/{id}/search",
1291
+ ...options
1292
+ });
1293
+ var getCollectionStats = (options) => (options.client ?? client).get({
1294
+ security: [{
1295
+ in: "cookie",
1296
+ name: "nadeshiko.session_token",
1297
+ type: "apiKey"
1298
+ }],
1299
+ url: "/v1/collections/{id}/stats",
1300
+ ...options
1301
+ });
1302
+ var getAdminDashboard = (options) => (options?.client ?? client).get({
1303
+ security: [{
1304
+ in: "cookie",
1305
+ name: "nadeshiko.session_token",
1306
+ type: "apiKey"
1307
+ }],
1308
+ url: "/v1/admin/dashboard",
1309
+ ...options
1310
+ });
1311
+ var getAdminHealth = (options) => (options?.client ?? client).get({
1312
+ security: [{
1313
+ in: "cookie",
1314
+ name: "nadeshiko.session_token",
1315
+ type: "apiKey"
1316
+ }],
1317
+ url: "/v1/admin/health",
1318
+ ...options
1319
+ });
1320
+ var triggerReindex = (options) => (options?.client ?? client).post({
1321
+ security: [{
1322
+ in: "cookie",
1323
+ name: "nadeshiko.session_token",
1324
+ type: "apiKey"
1325
+ }],
1326
+ url: "/v1/admin/reindex",
1327
+ ...options,
1328
+ headers: {
1329
+ "Content-Type": "application/json",
1330
+ ...options?.headers
1331
+ }
1332
+ });
1333
+ var listAdminQueueStats = (options) => (options?.client ?? client).get({
1334
+ security: [{
1335
+ in: "cookie",
1336
+ name: "nadeshiko.session_token",
1337
+ type: "apiKey"
1338
+ }],
1339
+ url: "/v1/admin/queues/stats",
1340
+ ...options
1341
+ });
1342
+ var getAdminQueue = (options) => (options.client ?? client).get({
1343
+ security: [{
1344
+ in: "cookie",
1345
+ name: "nadeshiko.session_token",
1346
+ type: "apiKey"
1347
+ }],
1348
+ url: "/v1/admin/queues/{queueName}",
940
1349
  ...options
941
1350
  });
942
- // generated/public/retry.ts
1351
+ var listAdminQueueFailed = (options) => (options.client ?? client).get({
1352
+ security: [{
1353
+ in: "cookie",
1354
+ name: "nadeshiko.session_token",
1355
+ type: "apiKey"
1356
+ }],
1357
+ url: "/v1/admin/queues/{queueName}/failed",
1358
+ ...options
1359
+ });
1360
+ var retryAdminQueueFailed = (options) => (options.client ?? client).post({
1361
+ security: [{
1362
+ in: "cookie",
1363
+ name: "nadeshiko.session_token",
1364
+ type: "apiKey"
1365
+ }],
1366
+ url: "/v1/admin/queues/{queueName}/retry",
1367
+ ...options
1368
+ });
1369
+ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1370
+ security: [{
1371
+ in: "cookie",
1372
+ name: "nadeshiko.session_token",
1373
+ type: "apiKey"
1374
+ }],
1375
+ url: "/v1/admin/queues/{queueName}/purge",
1376
+ ...options
1377
+ });
1378
+ var clearAdminImpersonation = (options) => (options?.client ?? client).delete({ url: "/v1/admin/impersonation", ...options });
1379
+ var impersonateAdminUser = (options) => (options.client ?? client).post({
1380
+ url: "/v1/admin/impersonation",
1381
+ ...options,
1382
+ headers: {
1383
+ "Content-Type": "application/json",
1384
+ ...options.headers
1385
+ }
1386
+ });
1387
+ var listAdminReports = (options) => (options?.client ?? client).get({
1388
+ security: [{
1389
+ in: "cookie",
1390
+ name: "nadeshiko.session_token",
1391
+ type: "apiKey"
1392
+ }],
1393
+ url: "/v1/admin/reports",
1394
+ ...options
1395
+ });
1396
+ var batchUpdateAdminReports = (options) => (options.client ?? client).patch({
1397
+ security: [{
1398
+ in: "cookie",
1399
+ name: "nadeshiko.session_token",
1400
+ type: "apiKey"
1401
+ }],
1402
+ url: "/v1/admin/reports/batch",
1403
+ ...options,
1404
+ headers: {
1405
+ "Content-Type": "application/json",
1406
+ ...options.headers
1407
+ }
1408
+ });
1409
+ var updateAdminReport = (options) => (options.client ?? client).patch({
1410
+ security: [{
1411
+ in: "cookie",
1412
+ name: "nadeshiko.session_token",
1413
+ type: "apiKey"
1414
+ }],
1415
+ url: "/v1/admin/reports/{id}",
1416
+ ...options,
1417
+ headers: {
1418
+ "Content-Type": "application/json",
1419
+ ...options.headers
1420
+ }
1421
+ });
1422
+ var listAdminMediaAudits = (options) => (options?.client ?? client).get({
1423
+ security: [{
1424
+ in: "cookie",
1425
+ name: "nadeshiko.session_token",
1426
+ type: "apiKey"
1427
+ }],
1428
+ url: "/v1/admin/media/audits",
1429
+ ...options
1430
+ });
1431
+ var updateAdminMediaAudit = (options) => (options.client ?? client).patch({
1432
+ security: [{
1433
+ in: "cookie",
1434
+ name: "nadeshiko.session_token",
1435
+ type: "apiKey"
1436
+ }],
1437
+ url: "/v1/admin/media/audits/{name}",
1438
+ ...options,
1439
+ headers: {
1440
+ "Content-Type": "application/json",
1441
+ ...options.headers
1442
+ }
1443
+ });
1444
+ var runAdminMediaAudit = (options) => (options.client ?? client).post({
1445
+ security: [{
1446
+ in: "cookie",
1447
+ name: "nadeshiko.session_token",
1448
+ type: "apiKey"
1449
+ }],
1450
+ url: "/v1/admin/media/audits/{name}/run",
1451
+ ...options
1452
+ });
1453
+ var listAdminMediaAuditRuns = (options) => (options?.client ?? client).get({
1454
+ security: [{
1455
+ in: "cookie",
1456
+ name: "nadeshiko.session_token",
1457
+ type: "apiKey"
1458
+ }],
1459
+ url: "/v1/admin/media/audits/runs",
1460
+ ...options
1461
+ });
1462
+ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
1463
+ security: [{
1464
+ in: "cookie",
1465
+ name: "nadeshiko.session_token",
1466
+ type: "apiKey"
1467
+ }],
1468
+ url: "/v1/admin/media/audits/runs/{id}",
1469
+ ...options
1470
+ });
1471
+ var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
1472
+ var updateAnnouncement = (options) => (options.client ?? client).put({
1473
+ security: [{
1474
+ in: "cookie",
1475
+ name: "nadeshiko.session_token",
1476
+ type: "apiKey"
1477
+ }],
1478
+ url: "/v1/admin/announcement",
1479
+ ...options,
1480
+ headers: {
1481
+ "Content-Type": "application/json",
1482
+ ...options.headers
1483
+ }
1484
+ });
1485
+ // generated/internal/retry.ts
943
1486
  var RETRYABLE_STATUS = new Set([408, 429, 500, 502, 503, 504]);
944
1487
  function parseRetryAfter(value) {
945
1488
  const seconds = Number(value);
@@ -1009,7 +1552,7 @@ function withRetry(fetchImpl = globalThis.fetch, options = {}) {
1009
1552
  };
1010
1553
  }
1011
1554
 
1012
- // generated/public/errors.ts
1555
+ // generated/internal/errors.ts
1013
1556
  class NadeshikoError extends Error {
1014
1557
  code;
1015
1558
  title;
@@ -1031,13 +1574,19 @@ class NadeshikoError extends Error {
1031
1574
  }
1032
1575
  }
1033
1576
 
1034
- // generated/public/nadeshiko.gen.ts
1577
+ // generated/internal/nadeshiko.gen.ts
1035
1578
  var environments = {
1036
1579
  LOCAL: "http://localhost:5000/api",
1037
1580
  DEVELOPMENT: "https://api-dev.nadeshiko.co",
1038
1581
  PRODUCTION: "https://api.nadeshiko.co",
1039
1582
  PROXY: ""
1040
1583
  };
1584
+ var defaultSessionTokenGetter = () => {
1585
+ if (typeof document === "undefined")
1586
+ return;
1587
+ const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
1588
+ return match ? decodeURIComponent(match[1]) : undefined;
1589
+ };
1041
1590
  function createNadeshikoClient(config) {
1042
1591
  const rawBaseUrl = config.baseURL ?? config.baseUrl;
1043
1592
  const baseUrl = rawBaseUrl === undefined ? environments.PRODUCTION : (rawBaseUrl in environments) ? environments[rawBaseUrl] : rawBaseUrl;
@@ -1047,10 +1596,16 @@ function createNadeshikoClient(config) {
1047
1596
  }
1048
1597
  return config.apiKey;
1049
1598
  };
1599
+ const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
1050
1600
  const clientInstance = createClient(createConfig({
1051
1601
  baseUrl,
1052
1602
  fetch: withRetry(globalThis.fetch, config.retryOptions),
1053
- auth: () => getApiKey()
1603
+ auth: (auth) => {
1604
+ if (auth.in === "cookie") {
1605
+ return getSessionToken();
1606
+ }
1607
+ return getApiKey();
1608
+ }
1054
1609
  }));
1055
1610
  clientInstance.interceptors.error.use((error) => {
1056
1611
  if (error && typeof error === "object" && "code" in error && typeof error.code === "string") {
@@ -1068,15 +1623,163 @@ function createNadeshikoClient(config) {
1068
1623
  getSegmentContext: (options) => getSegmentContext({ throwOnError: true, ...options, client: clientInstance }),
1069
1624
  listSeries: (options) => listSeries({ throwOnError: true, ...options, client: clientInstance }),
1070
1625
  getSeries: (options) => getSeries({ throwOnError: true, ...options, client: clientInstance }),
1071
- getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
1072
- getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
1073
1626
  getMedia: (options) => getMedia({ throwOnError: true, ...options, client: clientInstance }),
1074
1627
  listEpisodes: (options) => listEpisodes({ throwOnError: true, ...options, client: clientInstance }),
1075
1628
  getEpisode: (options) => getEpisode({ throwOnError: true, ...options, client: clientInstance }),
1076
- getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance })
1629
+ getSegment: (options) => getSegment({ throwOnError: true, ...options, client: clientInstance }),
1630
+ createMedia: (options) => createMedia({ throwOnError: true, ...options, client: clientInstance }),
1631
+ autocompleteMedia: (options) => autocompleteMedia({ throwOnError: true, ...options, client: clientInstance }),
1632
+ updateSegmentByUuid: (options) => updateSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
1633
+ listSegmentRevisions: (options) => listSegmentRevisions({ throwOnError: true, ...options, client: clientInstance }),
1634
+ createSeries: (options) => createSeries({ throwOnError: true, ...options, client: clientInstance }),
1635
+ updateSeries: (options) => updateSeries({ throwOnError: true, ...options, client: clientInstance }),
1636
+ deleteSeries: (options) => deleteSeries({ throwOnError: true, ...options, client: clientInstance }),
1637
+ addMediaToSeries: (options) => addMediaToSeries({ throwOnError: true, ...options, client: clientInstance }),
1638
+ updateSeriesMedia: (options) => updateSeriesMedia({ throwOnError: true, ...options, client: clientInstance }),
1639
+ removeMediaFromSeries: (options) => removeMediaFromSeries({ throwOnError: true, ...options, client: clientInstance }),
1640
+ getCharacter: (options) => getCharacter({ throwOnError: true, ...options, client: clientInstance }),
1641
+ getSeiyuu: (options) => getSeiyuu({ throwOnError: true, ...options, client: clientInstance }),
1642
+ updateMedia: (options) => updateMedia({ throwOnError: true, ...options, client: clientInstance }),
1643
+ deleteMedia: (options) => deleteMedia({ throwOnError: true, ...options, client: clientInstance }),
1644
+ createEpisode: (options) => createEpisode({ throwOnError: true, ...options, client: clientInstance }),
1645
+ updateEpisode: (options) => updateEpisode({ throwOnError: true, ...options, client: clientInstance }),
1646
+ deleteEpisode: (options) => deleteEpisode({ throwOnError: true, ...options, client: clientInstance }),
1647
+ listSegments: (options) => listSegments({ throwOnError: true, ...options, client: clientInstance }),
1648
+ createSegment: (options) => createSegment({ throwOnError: true, ...options, client: clientInstance }),
1649
+ createSegmentsBatch: (options) => createSegmentsBatch({ throwOnError: true, ...options, client: clientInstance }),
1650
+ updateSegment: (options) => updateSegment({ throwOnError: true, ...options, client: clientInstance }),
1651
+ deleteSegment: (options) => deleteSegment({ throwOnError: true, ...options, client: clientInstance }),
1652
+ getUserQuota: (options) => getUserQuota({ throwOnError: true, ...options, client: clientInstance }),
1653
+ createUserReport: (options) => createUserReport({ throwOnError: true, ...options, client: clientInstance }),
1654
+ getUserPreferences: (options) => getUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
1655
+ updateUserPreferences: (options) => updateUserPreferences({ throwOnError: true, ...options, client: clientInstance }),
1656
+ listUserActivity: (options) => listUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1657
+ trackUserActivity: (options) => trackUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1658
+ deleteUserActivity: (options) => deleteUserActivity({ throwOnError: true, ...options, client: clientInstance }),
1659
+ getUserActivityHeatmap: (options) => getUserActivityHeatmap({ throwOnError: true, ...options, client: clientInstance }),
1660
+ getUserActivityStats: (options) => getUserActivityStats({ throwOnError: true, ...options, client: clientInstance }),
1661
+ deleteUserActivityByDate: (options) => deleteUserActivityByDate({ throwOnError: true, ...options, client: clientInstance }),
1662
+ deleteUserActivityById: (options) => deleteUserActivityById({ throwOnError: true, ...options, client: clientInstance }),
1663
+ exportUserData: (options) => exportUserData({ throwOnError: true, ...options, client: clientInstance }),
1664
+ listUserLabs: (options) => listUserLabs({ throwOnError: true, ...options, client: clientInstance }),
1665
+ enrollUserLab: (options) => enrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
1666
+ unenrollUserLab: (options) => unenrollUserLab({ throwOnError: true, ...options, client: clientInstance }),
1667
+ listCollections: (options) => listCollections({ throwOnError: true, ...options, client: clientInstance }),
1668
+ createCollection: (options) => createCollection({ throwOnError: true, ...options, client: clientInstance }),
1669
+ getCollection: (options) => getCollection({ throwOnError: true, ...options, client: clientInstance }),
1670
+ updateCollection: (options) => updateCollection({ throwOnError: true, ...options, client: clientInstance }),
1671
+ deleteCollection: (options) => deleteCollection({ throwOnError: true, ...options, client: clientInstance }),
1672
+ addSegmentToCollection: (options) => addSegmentToCollection({ throwOnError: true, ...options, client: clientInstance }),
1673
+ updateCollectionSegment: (options) => updateCollectionSegment({ throwOnError: true, ...options, client: clientInstance }),
1674
+ removeSegmentFromCollection: (options) => removeSegmentFromCollection({ throwOnError: true, ...options, client: clientInstance }),
1675
+ searchCollectionSegments: (options) => searchCollectionSegments({ throwOnError: true, ...options, client: clientInstance }),
1676
+ getCollectionStats: (options) => getCollectionStats({ throwOnError: true, ...options, client: clientInstance }),
1677
+ getAdminDashboard: (options) => getAdminDashboard({ throwOnError: true, ...options, client: clientInstance }),
1678
+ getAdminHealth: (options) => getAdminHealth({ throwOnError: true, ...options, client: clientInstance }),
1679
+ triggerReindex: (options) => triggerReindex({ throwOnError: true, ...options, client: clientInstance }),
1680
+ listAdminQueueStats: (options) => listAdminQueueStats({ throwOnError: true, ...options, client: clientInstance }),
1681
+ getAdminQueue: (options) => getAdminQueue({ throwOnError: true, ...options, client: clientInstance }),
1682
+ listAdminQueueFailed: (options) => listAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1683
+ retryAdminQueueFailed: (options) => retryAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1684
+ purgeAdminQueueFailed: (options) => purgeAdminQueueFailed({ throwOnError: true, ...options, client: clientInstance }),
1685
+ impersonateAdminUser: (options) => impersonateAdminUser({ throwOnError: true, ...options, client: clientInstance }),
1686
+ clearAdminImpersonation: (options) => clearAdminImpersonation({ throwOnError: true, ...options, client: clientInstance }),
1687
+ listAdminReports: (options) => listAdminReports({ throwOnError: true, ...options, client: clientInstance }),
1688
+ batchUpdateAdminReports: (options) => batchUpdateAdminReports({ throwOnError: true, ...options, client: clientInstance }),
1689
+ updateAdminReport: (options) => updateAdminReport({ throwOnError: true, ...options, client: clientInstance }),
1690
+ listAdminMediaAudits: (options) => listAdminMediaAudits({ throwOnError: true, ...options, client: clientInstance }),
1691
+ updateAdminMediaAudit: (options) => updateAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
1692
+ runAdminMediaAudit: (options) => runAdminMediaAudit({ throwOnError: true, ...options, client: clientInstance }),
1693
+ listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ throwOnError: true, ...options, client: clientInstance }),
1694
+ getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ throwOnError: true, ...options, client: clientInstance }),
1695
+ getAnnouncement: (options) => getAnnouncement({ throwOnError: true, ...options, client: clientInstance }),
1696
+ updateAnnouncement: (options) => updateAnnouncement({ throwOnError: true, ...options, client: clientInstance })
1077
1697
  };
1078
1698
  }
1079
- // generated/public/paginate.ts
1699
+ // generated/internal/internal/media.gen.ts
1700
+ var exports_media_gen = {};
1701
+ __export(exports_media_gen, {
1702
+ updateSeriesMedia: () => updateSeriesMedia,
1703
+ updateSeries: () => updateSeries,
1704
+ updateSegmentByUuid: () => updateSegmentByUuid,
1705
+ updateSegment: () => updateSegment,
1706
+ updateMedia: () => updateMedia,
1707
+ updateEpisode: () => updateEpisode,
1708
+ removeMediaFromSeries: () => removeMediaFromSeries,
1709
+ listSegments: () => listSegments,
1710
+ listSegmentRevisions: () => listSegmentRevisions,
1711
+ getSeiyuu: () => getSeiyuu,
1712
+ getCharacter: () => getCharacter,
1713
+ deleteSeries: () => deleteSeries,
1714
+ deleteSegment: () => deleteSegment,
1715
+ deleteMedia: () => deleteMedia,
1716
+ deleteEpisode: () => deleteEpisode,
1717
+ createSeries: () => createSeries,
1718
+ createSegmentsBatch: () => createSegmentsBatch,
1719
+ createSegment: () => createSegment,
1720
+ createMedia: () => createMedia,
1721
+ createEpisode: () => createEpisode,
1722
+ autocompleteMedia: () => autocompleteMedia,
1723
+ addMediaToSeries: () => addMediaToSeries
1724
+ });
1725
+ // generated/internal/internal/user.gen.ts
1726
+ var exports_user_gen = {};
1727
+ __export(exports_user_gen, {
1728
+ updateUserPreferences: () => updateUserPreferences,
1729
+ unenrollUserLab: () => unenrollUserLab,
1730
+ trackUserActivity: () => trackUserActivity,
1731
+ listUserLabs: () => listUserLabs,
1732
+ listUserActivity: () => listUserActivity,
1733
+ getUserQuota: () => getUserQuota,
1734
+ getUserPreferences: () => getUserPreferences,
1735
+ getUserActivityStats: () => getUserActivityStats,
1736
+ getUserActivityHeatmap: () => getUserActivityHeatmap,
1737
+ exportUserData: () => exportUserData,
1738
+ enrollUserLab: () => enrollUserLab,
1739
+ deleteUserActivityById: () => deleteUserActivityById,
1740
+ deleteUserActivityByDate: () => deleteUserActivityByDate,
1741
+ deleteUserActivity: () => deleteUserActivity,
1742
+ createUserReport: () => createUserReport
1743
+ });
1744
+ // generated/internal/internal/collections.gen.ts
1745
+ var exports_collections_gen = {};
1746
+ __export(exports_collections_gen, {
1747
+ updateCollectionSegment: () => updateCollectionSegment,
1748
+ updateCollection: () => updateCollection,
1749
+ searchCollectionSegments: () => searchCollectionSegments,
1750
+ removeSegmentFromCollection: () => removeSegmentFromCollection,
1751
+ listCollections: () => listCollections,
1752
+ getCollectionStats: () => getCollectionStats,
1753
+ getCollection: () => getCollection,
1754
+ deleteCollection: () => deleteCollection,
1755
+ createCollection: () => createCollection,
1756
+ addSegmentToCollection: () => addSegmentToCollection
1757
+ });
1758
+ // generated/internal/internal/admin.gen.ts
1759
+ var exports_admin_gen = {};
1760
+ __export(exports_admin_gen, {
1761
+ updateAnnouncement: () => updateAnnouncement,
1762
+ updateAdminReport: () => updateAdminReport,
1763
+ updateAdminMediaAudit: () => updateAdminMediaAudit,
1764
+ triggerReindex: () => triggerReindex,
1765
+ runAdminMediaAudit: () => runAdminMediaAudit,
1766
+ retryAdminQueueFailed: () => retryAdminQueueFailed,
1767
+ purgeAdminQueueFailed: () => purgeAdminQueueFailed,
1768
+ listAdminReports: () => listAdminReports,
1769
+ listAdminQueueStats: () => listAdminQueueStats,
1770
+ listAdminQueueFailed: () => listAdminQueueFailed,
1771
+ listAdminMediaAudits: () => listAdminMediaAudits,
1772
+ listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
1773
+ impersonateAdminUser: () => impersonateAdminUser,
1774
+ getAnnouncement: () => getAnnouncement,
1775
+ getAdminQueue: () => getAdminQueue,
1776
+ getAdminMediaAuditRun: () => getAdminMediaAuditRun,
1777
+ getAdminHealth: () => getAdminHealth,
1778
+ getAdminDashboard: () => getAdminDashboard,
1779
+ clearAdminImpersonation: () => clearAdminImpersonation,
1780
+ batchUpdateAdminReports: () => batchUpdateAdminReports
1781
+ });
1782
+ // generated/internal/paginate.ts
1080
1783
  async function* paginate(fn, options, extract) {
1081
1784
  let cursor = null;
1082
1785
  let first = true;
@@ -1107,12 +1810,50 @@ function patchCursor(options, cursor) {
1107
1810
  }
1108
1811
  export {
1109
1812
  withRetry,
1813
+ exports_user_gen as user,
1814
+ updateUserPreferences,
1815
+ updateSeriesMedia,
1816
+ updateSeries,
1817
+ updateSegmentByUuid,
1818
+ updateSegment,
1819
+ updateMedia,
1820
+ updateEpisode,
1821
+ updateCollectionSegment,
1822
+ updateCollection,
1823
+ updateAnnouncement,
1824
+ updateAdminReport,
1825
+ updateAdminMediaAudit,
1826
+ unenrollUserLab,
1827
+ triggerReindex,
1828
+ trackUserActivity,
1110
1829
  searchWords,
1830
+ searchCollectionSegments,
1111
1831
  search,
1832
+ runAdminMediaAudit,
1833
+ retryAdminQueueFailed,
1834
+ removeSegmentFromCollection,
1835
+ removeMediaFromSeries,
1836
+ purgeAdminQueueFailed,
1112
1837
  paginate,
1838
+ exports_media_gen as media,
1839
+ listUserLabs,
1840
+ listUserActivity,
1113
1841
  listSeries,
1842
+ listSegments,
1843
+ listSegmentRevisions,
1114
1844
  listMedia,
1115
1845
  listEpisodes,
1846
+ listCollections,
1847
+ listAdminReports,
1848
+ listAdminQueueStats,
1849
+ listAdminQueueFailed,
1850
+ listAdminMediaAudits,
1851
+ listAdminMediaAuditRuns,
1852
+ impersonateAdminUser,
1853
+ getUserQuota,
1854
+ getUserPreferences,
1855
+ getUserActivityStats,
1856
+ getUserActivityHeatmap,
1116
1857
  getSeries,
1117
1858
  getSeiyuu,
1118
1859
  getSegmentContext,
@@ -1121,11 +1862,42 @@ export {
1121
1862
  getSearchStats,
1122
1863
  getMedia,
1123
1864
  getEpisode,
1865
+ getCollectionStats,
1866
+ getCollection,
1124
1867
  getCharacter,
1868
+ getAnnouncement,
1869
+ getAdminQueue,
1870
+ getAdminMediaAuditRun,
1871
+ getAdminHealth,
1872
+ getAdminDashboard,
1873
+ exportUserData,
1874
+ enrollUserLab,
1875
+ deleteUserActivityById,
1876
+ deleteUserActivityByDate,
1877
+ deleteUserActivity,
1878
+ deleteSeries,
1879
+ deleteSegment,
1880
+ deleteMedia,
1881
+ deleteEpisode,
1882
+ deleteCollection,
1883
+ createUserReport,
1884
+ createSeries,
1885
+ createSegmentsBatch,
1886
+ createSegment,
1125
1887
  createNadeshikoClient,
1888
+ createMedia,
1889
+ createEpisode,
1890
+ createCollection,
1891
+ exports_collections_gen as collections,
1126
1892
  client,
1893
+ clearAdminImpersonation,
1894
+ batchUpdateAdminReports,
1895
+ autocompleteMedia,
1896
+ exports_admin_gen as admin,
1897
+ addSegmentToCollection,
1898
+ addMediaToSeries,
1127
1899
  NadeshikoError
1128
1900
  };
1129
1901
 
1130
- //# debugId=650EA7E270CA4A6564756E2164756E21
1902
+ //# debugId=47EBC33E2FD55D2A64756E2164756E21
1131
1903
  //# sourceMappingURL=index.js.map