@brigadasos/nadeshiko-sdk 1.4.0-dev.c253525 → 1.4.3-dev.09dcbc3

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/README.md +129 -8
  2. package/dist/client/client.gen.d.ts.map +1 -1
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/types.gen.d.ts.map +1 -1
  5. package/dist/client/utils.gen.d.ts.map +1 -1
  6. package/dist/client.gen.d.ts.map +1 -1
  7. package/dist/core/auth.gen.d.ts.map +1 -1
  8. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  9. package/dist/core/params.gen.d.ts.map +1 -1
  10. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  11. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
  12. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  13. package/dist/core/types.gen.d.ts.map +1 -1
  14. package/dist/core/utils.gen.d.ts.map +1 -1
  15. package/dist/index.cjs +470 -248
  16. package/dist/index.cjs.map +5 -5
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +466 -244
  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/media.gen.d.ts +1 -1
  24. package/dist/internal/media.gen.d.ts.map +1 -1
  25. package/dist/internal/user.gen.d.ts +2 -0
  26. package/dist/internal/user.gen.d.ts.map +1 -0
  27. package/dist/internal.gen.d.ts +2 -2
  28. package/dist/internal.gen.d.ts.map +1 -1
  29. package/dist/nadeshiko.gen.d.ts +76 -47
  30. package/dist/nadeshiko.gen.d.ts.map +1 -1
  31. package/dist/sdk.gen.d.ts +369 -169
  32. package/dist/sdk.gen.d.ts.map +1 -1
  33. package/dist/types.gen.d.ts +2942 -1718
  34. package/dist/types.gen.d.ts.map +1 -1
  35. package/package.json +1 -1
  36. package/dist/internal/lists.gen.d.ts +0 -2
  37. package/dist/internal/lists.gen.d.ts.map +0 -1
  38. package/dist/internal/search.gen.d.ts +0 -2
  39. package/dist/internal/search.gen.d.ts.map +0 -1
package/dist/index.cjs CHANGED
@@ -26,71 +26,90 @@ var __export = (target, all) => {
26
26
  });
27
27
  };
28
28
 
29
- // generated/internal/index.ts
30
- var exports_internal = {};
31
- __export(exports_internal, {
32
- updateReport: () => updateReport,
33
- seiyuuShow: () => seiyuuShow,
34
- segmentUpdate: () => segmentUpdate,
35
- segmentShowByUuid: () => segmentShowByUuid,
36
- segmentShow: () => segmentShow,
37
- segmentIndex: () => segmentIndex,
38
- segmentDestroy: () => segmentDestroy,
39
- segmentCreate: () => segmentCreate,
29
+ // generated/dev/index.ts
30
+ var exports_dev = {};
31
+ __export(exports_dev, {
32
+ user: () => exports_user_gen,
33
+ updateUserPreferences: () => updateUserPreferences,
34
+ updateSeriesMedia: () => updateSeriesMedia,
35
+ updateSeries: () => updateSeries,
36
+ updateSegment: () => updateSegment,
37
+ updateMedia: () => updateMedia,
38
+ updateEpisode: () => updateEpisode,
39
+ updateCollectionSegment: () => updateCollectionSegment,
40
+ updateCollection: () => updateCollection,
41
+ updateAdminReviewCheck: () => updateAdminReviewCheck,
42
+ updateAdminReport: () => updateAdminReport,
43
+ triggerReindex: () => triggerReindex,
40
44
  searchWords: () => searchWords,
41
- searchSegments: () => searchSegments,
42
- search: () => exports_search_gen,
43
- retryQueueJobs: () => retryQueueJobs,
44
- reindexElasticsearch: () => reindexElasticsearch,
45
- purgeFailedJobs: () => purgeFailedJobs,
46
- morphemeBackfill: () => morphemeBackfill,
47
- mediaUpdate: () => mediaUpdate,
48
- mediaShow: () => mediaShow,
49
- mediaIndex: () => mediaIndex,
50
- mediaDestroy: () => mediaDestroy,
51
- mediaCreate: () => mediaCreate,
45
+ search: () => search,
46
+ runAdminReview: () => runAdminReview,
47
+ retryAdminQueueFailed: () => retryAdminQueueFailed,
48
+ removeSegmentFromCollection: () => removeSegmentFromCollection,
49
+ removeMediaFromSeries: () => removeMediaFromSeries,
50
+ purgeAdminQueueFailed: () => purgeAdminQueueFailed,
52
51
  media: () => exports_media_gen,
53
- lists: () => exports_lists_gen,
54
- listUpdateSegment: () => listUpdateSegment,
55
- listUpdateItem: () => listUpdateItem,
56
- listUpdate: () => listUpdate,
57
- listShow: () => listShow,
58
- listRemoveSegment: () => listRemoveSegment,
59
- listRemoveItem: () => listRemoveItem,
60
- listIndex: () => listIndex,
61
- listGetSegments: () => listGetSegments,
62
- listDestroy: () => listDestroy,
63
- listCreate: () => listCreate,
64
- listAddSegment: () => listAddSegment,
65
- listAddItem: () => listAddItem,
66
- healthCheck: () => healthCheck,
67
- getUserReports: () => getUserReports,
52
+ listUserReports: () => listUserReports,
53
+ listUserLabs: () => listUserLabs,
54
+ listUserActivity: () => listUserActivity,
55
+ listSeries: () => listSeries,
56
+ listSegments: () => listSegments,
57
+ listMedia: () => listMedia,
58
+ listEpisodes: () => listEpisodes,
59
+ listCollections: () => listCollections,
60
+ listAdminReviewRuns: () => listAdminReviewRuns,
61
+ listAdminReviewChecks: () => listAdminReviewChecks,
62
+ listAdminReviewAllowlist: () => listAdminReviewAllowlist,
63
+ listAdminReports: () => listAdminReports,
64
+ listAdminQueueStats: () => listAdminQueueStats,
65
+ listAdminQueueFailed: () => listAdminQueueFailed,
68
66
  getUserQuota: () => getUserQuota,
67
+ getUserPreferences: () => getUserPreferences,
68
+ getUserActivityStats: () => getUserActivityStats,
69
+ getUserActivityHeatmap: () => getUserActivityHeatmap,
70
+ getSeries: () => getSeries,
71
+ getSeiyuu: () => getSeiyuu,
69
72
  getSegmentContext: () => getSegmentContext,
73
+ getSegmentByUuid: () => getSegmentByUuid,
74
+ getSegment: () => getSegment,
70
75
  getSearchStats: () => getSearchStats,
71
- getQueueStats: () => getQueueStats,
72
- getQueueDetails: () => getQueueDetails,
73
- getFailedJobs: () => getFailedJobs,
74
- getAdminReports: () => getAdminReports,
75
- episodeUpdate: () => episodeUpdate,
76
- episodeShow: () => episodeShow,
77
- episodeIndex: () => episodeIndex,
78
- episodeDestroy: () => episodeDestroy,
79
- episodeCreate: () => episodeCreate,
80
- createReport: () => createReport,
76
+ getMedia: () => getMedia,
77
+ getEpisode: () => getEpisode,
78
+ getCollection: () => getCollection,
79
+ getCharacter: () => getCharacter,
80
+ getAdminReviewRun: () => getAdminReviewRun,
81
+ getAdminQueue: () => getAdminQueue,
82
+ getAdminHealth: () => getAdminHealth,
83
+ getAdminDashboard: () => getAdminDashboard,
84
+ exportUserData: () => exportUserData,
85
+ deleteUserActivity: () => deleteUserActivity,
86
+ deleteSeries: () => deleteSeries,
87
+ deleteSegment: () => deleteSegment,
88
+ deleteMedia: () => deleteMedia,
89
+ deleteEpisode: () => deleteEpisode,
90
+ deleteCollection: () => deleteCollection,
91
+ deleteAdminReviewAllowlistEntry: () => deleteAdminReviewAllowlistEntry,
92
+ createUserReport: () => createUserReport,
93
+ createSeries: () => createSeries,
94
+ createSegment: () => createSegment,
81
95
  createNadeshikoClient: () => createNadeshikoClient,
82
- createClient: () => createClient2,
96
+ createMedia: () => createMedia,
97
+ createEpisode: () => createEpisode,
98
+ createCollection: () => createCollection,
99
+ createAdminReviewAllowlistEntry: () => createAdminReviewAllowlistEntry,
83
100
  client: () => client,
84
- characterShow: () => characterShow,
85
- browseMedia: () => browseMedia
101
+ autocompleteMedia: () => autocompleteMedia,
102
+ admin: () => exports_admin_gen,
103
+ addSegmentToCollection: () => addSegmentToCollection,
104
+ addMediaToSeries: () => addMediaToSeries
86
105
  });
87
- module.exports = __toCommonJS(exports_internal);
106
+ module.exports = __toCommonJS(exports_dev);
88
107
 
89
- // generated/internal/core/bodySerializer.gen.ts
108
+ // generated/dev/core/bodySerializer.gen.ts
90
109
  var jsonBodySerializer = {
91
110
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
92
111
  };
93
- // generated/internal/core/params.gen.ts
112
+ // generated/dev/core/params.gen.ts
94
113
  var extraPrefixesMap = {
95
114
  $body_: "body",
96
115
  $headers_: "headers",
@@ -98,7 +117,7 @@ var extraPrefixesMap = {
98
117
  $query_: "query"
99
118
  };
100
119
  var extraPrefixes = Object.entries(extraPrefixesMap);
101
- // generated/internal/core/serverSentEvents.gen.ts
120
+ // generated/dev/core/serverSentEvents.gen.ts
102
121
  var createSseClient = ({
103
122
  onRequest,
104
123
  onSseError,
@@ -234,7 +253,7 @@ var createSseClient = ({
234
253
  return { stream };
235
254
  };
236
255
 
237
- // generated/internal/core/pathSerializer.gen.ts
256
+ // generated/dev/core/pathSerializer.gen.ts
238
257
  var separatorArrayExplode = (style) => {
239
258
  switch (style) {
240
259
  case "label":
@@ -358,7 +377,7 @@ var serializeObjectParam = ({
358
377
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
359
378
  };
360
379
 
361
- // generated/internal/core/utils.gen.ts
380
+ // generated/dev/core/utils.gen.ts
362
381
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
363
382
  var defaultPathSerializer = ({ path, url: _url }) => {
364
383
  let url = _url;
@@ -447,7 +466,7 @@ function getValidRequestBody(options) {
447
466
  return;
448
467
  }
449
468
 
450
- // generated/internal/core/auth.gen.ts
469
+ // generated/dev/core/auth.gen.ts
451
470
  var getAuthToken = async (auth, callback) => {
452
471
  const token = typeof callback === "function" ? await callback(auth) : callback;
453
472
  if (!token) {
@@ -462,7 +481,7 @@ var getAuthToken = async (auth, callback) => {
462
481
  return token;
463
482
  };
464
483
 
465
- // generated/internal/client/utils.gen.ts
484
+ // generated/dev/client/utils.gen.ts
466
485
  var createQuerySerializer = ({
467
486
  parameters = {},
468
487
  ...args
@@ -679,7 +698,7 @@ var createConfig = (override = {}) => ({
679
698
  ...override
680
699
  });
681
700
 
682
- // generated/internal/client/client.gen.ts
701
+ // generated/dev/client/client.gen.ts
683
702
  var createClient = (config = {}) => {
684
703
  let _config = mergeConfigs(createConfig(), config);
685
704
  const getConfig = () => ({ ..._config });
@@ -885,22 +904,17 @@ var createClient = (config = {}) => {
885
904
  trace: makeMethodFn("TRACE")
886
905
  };
887
906
  };
888
- // generated/internal/client.gen.ts
907
+ // generated/dev/client.gen.ts
889
908
  var client = createClient(createConfig({ baseUrl: "http://localhost:5000" }));
890
909
 
891
- // generated/internal/sdk.gen.ts
892
- var healthCheck = (options) => (options?.client ?? client).get({
893
- security: [{ scheme: "bearer", type: "http" }],
894
- url: "/v1/health",
895
- ...options
896
- });
897
- var searchSegments = (options) => (options?.client ?? client).post({
910
+ // generated/dev/sdk.gen.ts
911
+ var search = (options) => (options?.client ?? client).post({
898
912
  security: [{ scheme: "bearer", type: "http" }, {
899
913
  in: "cookie",
900
914
  name: "nadeshiko.session_token",
901
915
  type: "apiKey"
902
916
  }],
903
- url: "/v1/search/segments",
917
+ url: "/v1/search",
904
918
  ...options,
905
919
  headers: {
906
920
  "Content-Type": "application/json",
@@ -933,34 +947,12 @@ var searchWords = (options) => (options.client ?? client).post({
933
947
  ...options.headers
934
948
  }
935
949
  });
936
- var getSegmentContext = (options) => (options.client ?? client).post({
937
- security: [{ scheme: "bearer", type: "http" }, {
938
- in: "cookie",
939
- name: "nadeshiko.session_token",
940
- type: "apiKey"
941
- }],
942
- url: "/v1/search/context",
943
- ...options,
944
- headers: {
945
- "Content-Type": "application/json",
946
- ...options.headers
947
- }
948
- });
949
- var browseMedia = (options) => (options?.client ?? client).get({
950
- security: [{ scheme: "bearer", type: "http" }, {
951
- in: "cookie",
952
- name: "nadeshiko.session_token",
953
- type: "apiKey"
954
- }],
955
- url: "/v1/media/browse",
956
- ...options
957
- });
958
- var mediaIndex = (options) => (options?.client ?? client).get({
950
+ var listMedia = (options) => (options?.client ?? client).get({
959
951
  security: [{ scheme: "bearer", type: "http" }],
960
952
  url: "/v1/media",
961
953
  ...options
962
954
  });
963
- var mediaCreate = (options) => (options.client ?? client).post({
955
+ var createMedia = (options) => (options.client ?? client).post({
964
956
  security: [{ scheme: "bearer", type: "http" }],
965
957
  url: "/v1/media",
966
958
  ...options,
@@ -969,17 +961,22 @@ var mediaCreate = (options) => (options.client ?? client).post({
969
961
  ...options.headers
970
962
  }
971
963
  });
972
- var mediaDestroy = (options) => (options.client ?? client).delete({
964
+ var autocompleteMedia = (options) => (options.client ?? client).get({
965
+ security: [{ scheme: "bearer", type: "http" }],
966
+ url: "/v1/media/autocomplete",
967
+ ...options
968
+ });
969
+ var deleteMedia = (options) => (options.client ?? client).delete({
973
970
  security: [{ scheme: "bearer", type: "http" }],
974
971
  url: "/v1/media/{id}",
975
972
  ...options
976
973
  });
977
- var mediaShow = (options) => (options.client ?? client).get({
974
+ var getMedia = (options) => (options.client ?? client).get({
978
975
  security: [{ scheme: "bearer", type: "http" }],
979
976
  url: "/v1/media/{id}",
980
977
  ...options
981
978
  });
982
- var mediaUpdate = (options) => (options.client ?? client).patch({
979
+ var updateMedia = (options) => (options.client ?? client).patch({
983
980
  security: [{ scheme: "bearer", type: "http" }],
984
981
  url: "/v1/media/{id}",
985
982
  ...options,
@@ -988,12 +985,12 @@ var mediaUpdate = (options) => (options.client ?? client).patch({
988
985
  ...options.headers
989
986
  }
990
987
  });
991
- var episodeIndex = (options) => (options.client ?? client).get({
988
+ var listEpisodes = (options) => (options.client ?? client).get({
992
989
  security: [{ scheme: "bearer", type: "http" }],
993
990
  url: "/v1/media/{mediaId}/episodes",
994
991
  ...options
995
992
  });
996
- var episodeCreate = (options) => (options.client ?? client).post({
993
+ var createEpisode = (options) => (options.client ?? client).post({
997
994
  security: [{ scheme: "bearer", type: "http" }],
998
995
  url: "/v1/media/{mediaId}/episodes",
999
996
  ...options,
@@ -1002,17 +999,17 @@ var episodeCreate = (options) => (options.client ?? client).post({
1002
999
  ...options.headers
1003
1000
  }
1004
1001
  });
1005
- var episodeDestroy = (options) => (options.client ?? client).delete({
1002
+ var deleteEpisode = (options) => (options.client ?? client).delete({
1006
1003
  security: [{ scheme: "bearer", type: "http" }],
1007
1004
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1008
1005
  ...options
1009
1006
  });
1010
- var episodeShow = (options) => (options.client ?? client).get({
1007
+ var getEpisode = (options) => (options.client ?? client).get({
1011
1008
  security: [{ scheme: "bearer", type: "http" }],
1012
1009
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1013
1010
  ...options
1014
1011
  });
1015
- var episodeUpdate = (options) => (options.client ?? client).patch({
1012
+ var updateEpisode = (options) => (options.client ?? client).patch({
1016
1013
  security: [{ scheme: "bearer", type: "http" }],
1017
1014
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1018
1015
  ...options,
@@ -1021,12 +1018,12 @@ var episodeUpdate = (options) => (options.client ?? client).patch({
1021
1018
  ...options.headers
1022
1019
  }
1023
1020
  });
1024
- var segmentIndex = (options) => (options.client ?? client).get({
1021
+ var listSegments = (options) => (options.client ?? client).get({
1025
1022
  security: [{ scheme: "bearer", type: "http" }],
1026
1023
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1027
1024
  ...options
1028
1025
  });
1029
- var segmentCreate = (options) => (options.client ?? client).post({
1026
+ var createSegment = (options) => (options.client ?? client).post({
1030
1027
  security: [{ scheme: "bearer", type: "http" }],
1031
1028
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1032
1029
  ...options,
@@ -1035,17 +1032,17 @@ var segmentCreate = (options) => (options.client ?? client).post({
1035
1032
  ...options.headers
1036
1033
  }
1037
1034
  });
1038
- var segmentDestroy = (options) => (options.client ?? client).delete({
1035
+ var deleteSegment = (options) => (options.client ?? client).delete({
1039
1036
  security: [{ scheme: "bearer", type: "http" }],
1040
1037
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1041
1038
  ...options
1042
1039
  });
1043
- var segmentShow = (options) => (options.client ?? client).get({
1040
+ var getSegment = (options) => (options.client ?? client).get({
1044
1041
  security: [{ scheme: "bearer", type: "http" }],
1045
1042
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1046
1043
  ...options
1047
1044
  });
1048
- var segmentUpdate = (options) => (options.client ?? client).patch({
1045
+ var updateSegment = (options) => (options.client ?? client).patch({
1049
1046
  security: [{ scheme: "bearer", type: "http" }],
1050
1047
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1051
1048
  ...options,
@@ -1054,17 +1051,86 @@ var segmentUpdate = (options) => (options.client ?? client).patch({
1054
1051
  ...options.headers
1055
1052
  }
1056
1053
  });
1057
- var segmentShowByUuid = (options) => (options.client ?? client).get({
1054
+ var getSegmentByUuid = (options) => (options.client ?? client).get({
1058
1055
  security: [{ scheme: "bearer", type: "http" }],
1059
1056
  url: "/v1/media/segments/{uuid}",
1060
1057
  ...options
1061
1058
  });
1062
- var characterShow = (options) => (options.client ?? client).get({
1059
+ var getSegmentContext = (options) => (options.client ?? client).get({
1060
+ security: [{ scheme: "bearer", type: "http" }],
1061
+ url: "/v1/media/segments/{uuid}/context",
1062
+ ...options
1063
+ });
1064
+ var listSeries = (options) => (options?.client ?? client).get({
1065
+ security: [{ scheme: "bearer", type: "http" }, {
1066
+ in: "cookie",
1067
+ name: "nadeshiko.session_token",
1068
+ type: "apiKey"
1069
+ }],
1070
+ url: "/v1/media/series",
1071
+ ...options
1072
+ });
1073
+ var createSeries = (options) => (options.client ?? client).post({
1074
+ security: [{ scheme: "bearer", type: "http" }],
1075
+ url: "/v1/media/series",
1076
+ ...options,
1077
+ headers: {
1078
+ "Content-Type": "application/json",
1079
+ ...options.headers
1080
+ }
1081
+ });
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({
1088
+ security: [{ scheme: "bearer", type: "http" }, {
1089
+ in: "cookie",
1090
+ name: "nadeshiko.session_token",
1091
+ type: "apiKey"
1092
+ }],
1093
+ url: "/v1/media/series/{id}",
1094
+ ...options
1095
+ });
1096
+ var updateSeries = (options) => (options.client ?? client).patch({
1097
+ security: [{ scheme: "bearer", type: "http" }],
1098
+ url: "/v1/media/series/{id}",
1099
+ ...options,
1100
+ headers: {
1101
+ "Content-Type": "application/json",
1102
+ ...options.headers
1103
+ }
1104
+ });
1105
+ var addMediaToSeries = (options) => (options.client ?? client).post({
1106
+ security: [{ scheme: "bearer", type: "http" }],
1107
+ url: "/v1/media/series/{id}/media",
1108
+ ...options,
1109
+ headers: {
1110
+ "Content-Type": "application/json",
1111
+ ...options.headers
1112
+ }
1113
+ });
1114
+ var removeMediaFromSeries = (options) => (options.client ?? client).delete({
1115
+ security: [{ scheme: "bearer", type: "http" }],
1116
+ url: "/v1/media/series/{id}/media/{mediaId}",
1117
+ ...options
1118
+ });
1119
+ var updateSeriesMedia = (options) => (options.client ?? client).patch({
1120
+ security: [{ scheme: "bearer", type: "http" }],
1121
+ url: "/v1/media/series/{id}/media/{mediaId}",
1122
+ ...options,
1123
+ headers: {
1124
+ "Content-Type": "application/json",
1125
+ ...options.headers
1126
+ }
1127
+ });
1128
+ var getCharacter = (options) => (options.client ?? client).get({
1063
1129
  security: [{ scheme: "bearer", type: "http" }],
1064
1130
  url: "/v1/media/characters/{id}",
1065
1131
  ...options
1066
1132
  });
1067
- var seiyuuShow = (options) => (options.client ?? client).get({
1133
+ var getSeiyuu = (options) => (options.client ?? client).get({
1068
1134
  security: [{ scheme: "bearer", type: "http" }],
1069
1135
  url: "/v1/media/seiyuu/{id}",
1070
1136
  ...options
@@ -1074,11 +1140,11 @@ var getUserQuota = (options) => (options?.client ?? client).get({
1074
1140
  in: "cookie",
1075
1141
  name: "nadeshiko.session_token",
1076
1142
  type: "apiKey"
1077
- }],
1143
+ }, { scheme: "bearer", type: "http" }],
1078
1144
  url: "/v1/user/quota",
1079
1145
  ...options
1080
1146
  });
1081
- var getUserReports = (options) => (options?.client ?? client).get({
1147
+ var listUserReports = (options) => (options?.client ?? client).get({
1082
1148
  security: [{
1083
1149
  in: "cookie",
1084
1150
  name: "nadeshiko.session_token",
@@ -1087,7 +1153,7 @@ var getUserReports = (options) => (options?.client ?? client).get({
1087
1153
  url: "/v1/user/reports",
1088
1154
  ...options
1089
1155
  });
1090
- var createReport = (options) => (options.client ?? client).post({
1156
+ var createUserReport = (options) => (options.client ?? client).post({
1091
1157
  security: [{
1092
1158
  in: "cookie",
1093
1159
  name: "nadeshiko.session_token",
@@ -1100,107 +1166,181 @@ var createReport = (options) => (options.client ?? client).post({
1100
1166
  ...options.headers
1101
1167
  }
1102
1168
  });
1103
- var listIndex = (options) => (options?.client ?? client).get({
1104
- security: [{ scheme: "bearer", type: "http" }],
1105
- url: "/v1/lists",
1169
+ var getUserPreferences = (options) => (options?.client ?? client).get({
1170
+ security: [{
1171
+ in: "cookie",
1172
+ name: "nadeshiko.session_token",
1173
+ type: "apiKey"
1174
+ }],
1175
+ url: "/v1/user/preferences",
1106
1176
  ...options
1107
1177
  });
1108
- var listCreate = (options) => (options.client ?? client).post({
1109
- security: [{ scheme: "bearer", type: "http" }],
1110
- url: "/v1/lists",
1178
+ var updateUserPreferences = (options) => (options.client ?? client).patch({
1179
+ security: [{
1180
+ in: "cookie",
1181
+ name: "nadeshiko.session_token",
1182
+ type: "apiKey"
1183
+ }],
1184
+ url: "/v1/user/preferences",
1111
1185
  ...options,
1112
1186
  headers: {
1113
1187
  "Content-Type": "application/json",
1114
1188
  ...options.headers
1115
1189
  }
1116
1190
  });
1117
- var listDestroy = (options) => (options.client ?? client).delete({
1118
- security: [{ scheme: "bearer", type: "http" }],
1119
- url: "/v1/lists/{id}",
1191
+ var deleteUserActivity = (options) => (options?.client ?? client).delete({
1192
+ security: [{
1193
+ in: "cookie",
1194
+ name: "nadeshiko.session_token",
1195
+ type: "apiKey"
1196
+ }],
1197
+ url: "/v1/user/activity",
1120
1198
  ...options
1121
1199
  });
1122
- var listShow = (options) => (options.client ?? client).get({
1123
- security: [{ scheme: "bearer", type: "http" }],
1124
- url: "/v1/lists/{id}",
1200
+ var listUserActivity = (options) => (options?.client ?? client).get({
1201
+ security: [{
1202
+ in: "cookie",
1203
+ name: "nadeshiko.session_token",
1204
+ type: "apiKey"
1205
+ }],
1206
+ url: "/v1/user/activity",
1125
1207
  ...options
1126
1208
  });
1127
- var listUpdate = (options) => (options.client ?? client).patch({
1128
- security: [{ scheme: "bearer", type: "http" }],
1129
- url: "/v1/lists/{id}",
1130
- ...options,
1131
- headers: {
1132
- "Content-Type": "application/json",
1133
- ...options.headers
1134
- }
1209
+ var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
1210
+ security: [{
1211
+ in: "cookie",
1212
+ name: "nadeshiko.session_token",
1213
+ type: "apiKey"
1214
+ }],
1215
+ url: "/v1/user/activity/heatmap",
1216
+ ...options
1135
1217
  });
1136
- var listAddItem = (options) => (options.client ?? client).post({
1137
- security: [{ scheme: "bearer", type: "http" }],
1138
- url: "/v1/lists/{id}/items",
1139
- ...options,
1140
- headers: {
1141
- "Content-Type": "application/json",
1142
- ...options.headers
1143
- }
1218
+ var getUserActivityStats = (options) => (options?.client ?? client).get({
1219
+ security: [{
1220
+ in: "cookie",
1221
+ name: "nadeshiko.session_token",
1222
+ type: "apiKey"
1223
+ }],
1224
+ url: "/v1/user/activity/stats",
1225
+ ...options
1144
1226
  });
1145
- var listRemoveItem = (options) => (options.client ?? client).delete({
1146
- security: [{ scheme: "bearer", type: "http" }],
1147
- url: "/v1/lists/{id}/items/{mediaId}",
1227
+ var exportUserData = (options) => (options?.client ?? client).get({
1228
+ security: [{
1229
+ in: "cookie",
1230
+ name: "nadeshiko.session_token",
1231
+ type: "apiKey"
1232
+ }],
1233
+ url: "/v1/user/export",
1148
1234
  ...options
1149
1235
  });
1150
- var listUpdateItem = (options) => (options.client ?? client).patch({
1151
- security: [{ scheme: "bearer", type: "http" }],
1152
- url: "/v1/lists/{id}/items/{mediaId}",
1236
+ var listUserLabs = (options) => (options?.client ?? client).get({
1237
+ security: [{
1238
+ in: "cookie",
1239
+ name: "nadeshiko.session_token",
1240
+ type: "apiKey"
1241
+ }],
1242
+ url: "/v1/user/labs",
1243
+ ...options
1244
+ });
1245
+ var listCollections = (options) => (options?.client ?? client).get({
1246
+ security: [{
1247
+ in: "cookie",
1248
+ name: "nadeshiko.session_token",
1249
+ type: "apiKey"
1250
+ }],
1251
+ url: "/v1/collections",
1252
+ ...options
1253
+ });
1254
+ var createCollection = (options) => (options.client ?? client).post({
1255
+ security: [{
1256
+ in: "cookie",
1257
+ name: "nadeshiko.session_token",
1258
+ type: "apiKey"
1259
+ }],
1260
+ url: "/v1/collections",
1153
1261
  ...options,
1154
1262
  headers: {
1155
1263
  "Content-Type": "application/json",
1156
1264
  ...options.headers
1157
1265
  }
1158
1266
  });
1159
- var listGetSegments = (options) => (options.client ?? client).get({
1160
- security: [{ scheme: "bearer", type: "http" }, {
1267
+ var deleteCollection = (options) => (options.client ?? client).delete({
1268
+ security: [{
1161
1269
  in: "cookie",
1162
1270
  name: "nadeshiko.session_token",
1163
1271
  type: "apiKey"
1164
1272
  }],
1165
- url: "/v1/lists/{id}/segments",
1273
+ url: "/v1/collections/{id}",
1166
1274
  ...options
1167
1275
  });
1168
- var listAddSegment = (options) => (options.client ?? client).post({
1169
- security: [{ scheme: "bearer", type: "http" }, {
1276
+ var getCollection = (options) => (options.client ?? client).get({
1277
+ security: [{
1278
+ in: "cookie",
1279
+ name: "nadeshiko.session_token",
1280
+ type: "apiKey"
1281
+ }],
1282
+ url: "/v1/collections/{id}",
1283
+ ...options
1284
+ });
1285
+ var updateCollection = (options) => (options.client ?? client).patch({
1286
+ security: [{
1170
1287
  in: "cookie",
1171
1288
  name: "nadeshiko.session_token",
1172
1289
  type: "apiKey"
1173
1290
  }],
1174
- url: "/v1/lists/{id}/segments",
1291
+ url: "/v1/collections/{id}",
1175
1292
  ...options,
1176
1293
  headers: {
1177
1294
  "Content-Type": "application/json",
1178
1295
  ...options.headers
1179
1296
  }
1180
1297
  });
1181
- var listRemoveSegment = (options) => (options.client ?? client).delete({
1182
- security: [{ scheme: "bearer", type: "http" }, {
1298
+ var addSegmentToCollection = (options) => (options.client ?? client).post({
1299
+ security: [{
1300
+ in: "cookie",
1301
+ name: "nadeshiko.session_token",
1302
+ type: "apiKey"
1303
+ }],
1304
+ url: "/v1/collections/{id}/segments",
1305
+ ...options,
1306
+ headers: {
1307
+ "Content-Type": "application/json",
1308
+ ...options.headers
1309
+ }
1310
+ });
1311
+ var removeSegmentFromCollection = (options) => (options.client ?? client).delete({
1312
+ security: [{
1183
1313
  in: "cookie",
1184
1314
  name: "nadeshiko.session_token",
1185
1315
  type: "apiKey"
1186
1316
  }],
1187
- url: "/v1/lists/{id}/segments/{uuid}",
1317
+ url: "/v1/collections/{id}/segments/{uuid}",
1188
1318
  ...options
1189
1319
  });
1190
- var listUpdateSegment = (options) => (options.client ?? client).patch({
1191
- security: [{ scheme: "bearer", type: "http" }, {
1320
+ var updateCollectionSegment = (options) => (options.client ?? client).patch({
1321
+ security: [{
1192
1322
  in: "cookie",
1193
1323
  name: "nadeshiko.session_token",
1194
1324
  type: "apiKey"
1195
1325
  }],
1196
- url: "/v1/lists/{id}/segments/{uuid}",
1326
+ url: "/v1/collections/{id}/segments/{uuid}",
1197
1327
  ...options,
1198
1328
  headers: {
1199
1329
  "Content-Type": "application/json",
1200
1330
  ...options.headers
1201
1331
  }
1202
1332
  });
1203
- var reindexElasticsearch = (options) => (options?.client ?? client).post({
1333
+ var getAdminDashboard = (options) => (options?.client ?? client).get({
1334
+ security: [{ scheme: "bearer", type: "http" }],
1335
+ url: "/v1/admin/dashboard",
1336
+ ...options
1337
+ });
1338
+ var getAdminHealth = (options) => (options?.client ?? client).get({
1339
+ security: [{ scheme: "bearer", type: "http" }],
1340
+ url: "/v1/admin/health",
1341
+ ...options
1342
+ });
1343
+ var triggerReindex = (options) => (options?.client ?? client).post({
1204
1344
  security: [{ scheme: "bearer", type: "http" }],
1205
1345
  url: "/v1/admin/reindex",
1206
1346
  ...options,
@@ -1209,46 +1349,37 @@ var reindexElasticsearch = (options) => (options?.client ?? client).post({
1209
1349
  ...options?.headers
1210
1350
  }
1211
1351
  });
1212
- var getQueueStats = (options) => (options?.client ?? client).get({
1352
+ var listAdminQueueStats = (options) => (options?.client ?? client).get({
1213
1353
  security: [{ scheme: "bearer", type: "http" }],
1214
1354
  url: "/v1/admin/queues/stats",
1215
1355
  ...options
1216
1356
  });
1217
- var getQueueDetails = (options) => (options.client ?? client).get({
1357
+ var getAdminQueue = (options) => (options.client ?? client).get({
1218
1358
  security: [{ scheme: "bearer", type: "http" }],
1219
1359
  url: "/v1/admin/queues/{queueName}",
1220
1360
  ...options
1221
1361
  });
1222
- var getFailedJobs = (options) => (options.client ?? client).get({
1362
+ var listAdminQueueFailed = (options) => (options.client ?? client).get({
1223
1363
  security: [{ scheme: "bearer", type: "http" }],
1224
1364
  url: "/v1/admin/queues/{queueName}/failed",
1225
1365
  ...options
1226
1366
  });
1227
- var retryQueueJobs = (options) => (options.client ?? client).post({
1367
+ var retryAdminQueueFailed = (options) => (options.client ?? client).post({
1228
1368
  security: [{ scheme: "bearer", type: "http" }],
1229
1369
  url: "/v1/admin/queues/{queueName}/retry",
1230
1370
  ...options
1231
1371
  });
1232
- var purgeFailedJobs = (options) => (options.client ?? client).delete({
1372
+ var purgeAdminQueueFailed = (options) => (options.client ?? client).delete({
1233
1373
  security: [{ scheme: "bearer", type: "http" }],
1234
1374
  url: "/v1/admin/queues/{queueName}/purge",
1235
1375
  ...options
1236
1376
  });
1237
- var morphemeBackfill = (options) => (options?.client ?? client).post({
1238
- security: [{ scheme: "bearer", type: "http" }, {
1239
- in: "cookie",
1240
- name: "nadeshiko.session_token",
1241
- type: "apiKey"
1242
- }],
1243
- url: "/v1/admin/morpheme-backfill",
1244
- ...options
1245
- });
1246
- var getAdminReports = (options) => (options?.client ?? client).get({
1377
+ var listAdminReports = (options) => (options?.client ?? client).get({
1247
1378
  security: [{ scheme: "bearer", type: "http" }],
1248
1379
  url: "/v1/admin/reports",
1249
1380
  ...options
1250
1381
  });
1251
- var updateReport = (options) => (options.client ?? client).patch({
1382
+ var updateAdminReport = (options) => (options.client ?? client).patch({
1252
1383
  security: [{ scheme: "bearer", type: "http" }],
1253
1384
  url: "/v1/admin/reports/{id}",
1254
1385
  ...options,
@@ -1257,100 +1388,191 @@ var updateReport = (options) => (options.client ?? client).patch({
1257
1388
  ...options.headers
1258
1389
  }
1259
1390
  });
1260
- // generated/internal/nadeshiko.gen.ts
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",
1399
+ ...options
1400
+ });
1401
+ var updateAdminReviewCheck = (options) => (options.client ?? client).patch({
1402
+ security: [{ scheme: "bearer", type: "http" }],
1403
+ url: "/v1/admin/review/checks/{name}",
1404
+ ...options,
1405
+ headers: {
1406
+ "Content-Type": "application/json",
1407
+ ...options.headers
1408
+ }
1409
+ });
1410
+ var listAdminReviewRuns = (options) => (options?.client ?? client).get({
1411
+ security: [{ scheme: "bearer", type: "http" }],
1412
+ url: "/v1/admin/review/runs",
1413
+ ...options
1414
+ });
1415
+ var getAdminReviewRun = (options) => (options.client ?? client).get({
1416
+ security: [{ scheme: "bearer", type: "http" }],
1417
+ url: "/v1/admin/review/runs/{id}",
1418
+ ...options
1419
+ });
1420
+ var listAdminReviewAllowlist = (options) => (options?.client ?? client).get({
1421
+ security: [{ scheme: "bearer", type: "http" }],
1422
+ url: "/v1/admin/review/allowlist",
1423
+ ...options
1424
+ });
1425
+ var createAdminReviewAllowlistEntry = (options) => (options.client ?? client).post({
1426
+ security: [{ scheme: "bearer", type: "http" }],
1427
+ url: "/v1/admin/review/allowlist",
1428
+ ...options,
1429
+ headers: {
1430
+ "Content-Type": "application/json",
1431
+ ...options.headers
1432
+ }
1433
+ });
1434
+ var deleteAdminReviewAllowlistEntry = (options) => (options.client ?? client).delete({
1435
+ security: [{ scheme: "bearer", type: "http" }],
1436
+ url: "/v1/admin/review/allowlist/{id}",
1437
+ ...options
1438
+ });
1439
+ // generated/dev/nadeshiko.gen.ts
1261
1440
  var environments = {
1262
1441
  LOCAL: "http://localhost:5000/api",
1263
1442
  DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
1264
1443
  PRODUCTION: "https://api.brigadasos.xyz/api"
1265
1444
  };
1445
+ var defaultSessionTokenGetter = () => {
1446
+ if (typeof document === "undefined")
1447
+ return;
1448
+ const match = document.cookie.match(/(?:^|;\s*)nadeshiko\.session_token=([^;]*)/);
1449
+ return match ? decodeURIComponent(match[1]) : undefined;
1450
+ };
1266
1451
  function createNadeshikoClient(config) {
1267
1452
  const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl : environments.PRODUCTION;
1453
+ const getSessionToken = config.sessionToken ?? defaultSessionTokenGetter;
1268
1454
  const clientInstance = createClient(createConfig({
1269
1455
  baseUrl,
1270
- headers: { Authorization: `Bearer ${config.apiKey}` }
1456
+ auth: (auth) => {
1457
+ if (auth.in === "cookie") {
1458
+ return getSessionToken();
1459
+ }
1460
+ return config.apiKey;
1461
+ }
1271
1462
  }));
1272
1463
  return {
1273
1464
  client: clientInstance,
1274
- searchSegments: (options) => searchSegments({ ...options, client: clientInstance }),
1465
+ search: (options) => search({ ...options, client: clientInstance }),
1275
1466
  getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
1276
1467
  searchWords: (options) => searchWords({ ...options, client: clientInstance }),
1468
+ 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
+ getSegmentByUuid: (options) => getSegmentByUuid({ ...options, client: clientInstance }),
1277
1474
  getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
1278
- browseMedia: (options) => browseMedia({ ...options, client: clientInstance }),
1279
- mediaIndex: (options) => mediaIndex({ ...options, client: clientInstance }),
1280
- mediaShow: (options) => mediaShow({ ...options, client: clientInstance }),
1281
- episodeIndex: (options) => episodeIndex({ ...options, client: clientInstance }),
1282
- episodeShow: (options) => episodeShow({ ...options, client: clientInstance }),
1283
- segmentShow: (options) => segmentShow({ ...options, client: clientInstance }),
1284
- segmentShowByUuid: (options) => segmentShowByUuid({ ...options, client: clientInstance }),
1285
- characterShow: (options) => characterShow({ ...options, client: clientInstance }),
1286
- seiyuuShow: (options) => seiyuuShow({ ...options, client: clientInstance }),
1475
+ listSeries: (options) => listSeries({ ...options, client: clientInstance }),
1476
+ getSeries: (options) => getSeries({ ...options, client: clientInstance }),
1477
+ getCharacter: (options) => getCharacter({ ...options, client: clientInstance }),
1478
+ getSeiyuu: (options) => getSeiyuu({ ...options, client: clientInstance }),
1287
1479
  getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
1288
- createReport: (options) => createReport({ ...options, client: clientInstance }),
1289
- getUserReports: (options) => getUserReports({ ...options, client: clientInstance }),
1290
- listIndex: (options) => listIndex({ ...options, client: clientInstance }),
1291
- listShow: (options) => listShow({ ...options, client: clientInstance }),
1292
- listGetSegments: (options) => listGetSegments({ ...options, client: clientInstance }),
1293
- listAddSegment: (options) => listAddSegment({ ...options, client: clientInstance }),
1294
- listUpdateSegment: (options) => listUpdateSegment({ ...options, client: clientInstance }),
1295
- listRemoveSegment: (options) => listRemoveSegment({ ...options, client: clientInstance }),
1296
- reindexElasticsearch: (options) => reindexElasticsearch({ ...options, client: clientInstance }),
1297
- getQueueStats: (options) => getQueueStats({ ...options, client: clientInstance }),
1298
- getQueueDetails: (options) => getQueueDetails({ ...options, client: clientInstance }),
1299
- getFailedJobs: (options) => getFailedJobs({ ...options, client: clientInstance }),
1300
- retryQueueJobs: (options) => retryQueueJobs({ ...options, client: clientInstance }),
1301
- purgeFailedJobs: (options) => purgeFailedJobs({ ...options, client: clientInstance }),
1302
- morphemeBackfill: (options) => morphemeBackfill({ ...options, client: clientInstance }),
1303
- getAdminReports: (options) => getAdminReports({ ...options, client: clientInstance }),
1304
- updateReport: (options) => updateReport({ ...options, client: clientInstance }),
1305
- healthCheck: (options) => healthCheck({ ...options, client: clientInstance }),
1306
- mediaCreate: (options) => mediaCreate({ ...options, client: clientInstance }),
1307
- mediaUpdate: (options) => mediaUpdate({ ...options, client: clientInstance }),
1308
- mediaDestroy: (options) => mediaDestroy({ ...options, client: clientInstance }),
1309
- episodeCreate: (options) => episodeCreate({ ...options, client: clientInstance }),
1310
- episodeUpdate: (options) => episodeUpdate({ ...options, client: clientInstance }),
1311
- episodeDestroy: (options) => episodeDestroy({ ...options, client: clientInstance }),
1312
- segmentIndex: (options) => segmentIndex({ ...options, client: clientInstance }),
1313
- segmentCreate: (options) => segmentCreate({ ...options, client: clientInstance }),
1314
- segmentUpdate: (options) => segmentUpdate({ ...options, client: clientInstance }),
1315
- segmentDestroy: (options) => segmentDestroy({ ...options, client: clientInstance }),
1316
- listCreate: (options) => listCreate({ ...options, client: clientInstance }),
1317
- listUpdate: (options) => listUpdate({ ...options, client: clientInstance }),
1318
- listDestroy: (options) => listDestroy({ ...options, client: clientInstance }),
1319
- listAddItem: (options) => listAddItem({ ...options, client: clientInstance }),
1320
- listUpdateItem: (options) => listUpdateItem({ ...options, client: clientInstance }),
1321
- listRemoveItem: (options) => listRemoveItem({ ...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 }),
1504
+ createMedia: (options) => createMedia({ ...options, client: clientInstance }),
1505
+ autocompleteMedia: (options) => autocompleteMedia({ ...options, client: clientInstance }),
1506
+ updateMedia: (options) => updateMedia({ ...options, client: clientInstance }),
1507
+ deleteMedia: (options) => deleteMedia({ ...options, client: clientInstance }),
1508
+ createEpisode: (options) => createEpisode({ ...options, client: clientInstance }),
1509
+ updateEpisode: (options) => updateEpisode({ ...options, client: clientInstance }),
1510
+ deleteEpisode: (options) => deleteEpisode({ ...options, client: clientInstance }),
1511
+ listSegments: (options) => listSegments({ ...options, client: clientInstance }),
1512
+ createSegment: (options) => createSegment({ ...options, client: clientInstance }),
1513
+ updateSegment: (options) => updateSegment({ ...options, client: clientInstance }),
1514
+ 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 }),
1521
+ createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
1522
+ listUserReports: (options) => listUserReports({ ...options, client: clientInstance }),
1523
+ getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
1524
+ updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
1525
+ listUserActivity: (options) => listUserActivity({ ...options, client: clientInstance }),
1526
+ deleteUserActivity: (options) => deleteUserActivity({ ...options, client: clientInstance }),
1527
+ getUserActivityHeatmap: (options) => getUserActivityHeatmap({ ...options, client: clientInstance }),
1528
+ getUserActivityStats: (options) => getUserActivityStats({ ...options, client: clientInstance }),
1529
+ exportUserData: (options) => exportUserData({ ...options, client: clientInstance }),
1530
+ listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
1531
+ getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
1532
+ getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance })
1322
1533
  };
1323
1534
  }
1324
- var createClient2 = createNadeshikoClient;
1325
- // generated/internal/internal/search.gen.ts
1326
- var exports_search_gen = {};
1327
- __export(exports_search_gen, {
1328
- healthCheck: () => healthCheck
1329
- });
1330
- // generated/internal/internal/media.gen.ts
1535
+ // generated/dev/internal/media.gen.ts
1331
1536
  var exports_media_gen = {};
1332
1537
  __export(exports_media_gen, {
1333
- segmentUpdate: () => segmentUpdate,
1334
- segmentIndex: () => segmentIndex,
1335
- segmentDestroy: () => segmentDestroy,
1336
- segmentCreate: () => segmentCreate,
1337
- mediaUpdate: () => mediaUpdate,
1338
- mediaDestroy: () => mediaDestroy,
1339
- mediaCreate: () => mediaCreate,
1340
- episodeUpdate: () => episodeUpdate,
1341
- episodeDestroy: () => episodeDestroy,
1342
- episodeCreate: () => episodeCreate
1343
- });
1344
- // generated/internal/internal/lists.gen.ts
1345
- var exports_lists_gen = {};
1346
- __export(exports_lists_gen, {
1347
- listUpdateItem: () => listUpdateItem,
1348
- listUpdate: () => listUpdate,
1349
- listRemoveItem: () => listRemoveItem,
1350
- listDestroy: () => listDestroy,
1351
- listCreate: () => listCreate,
1352
- listAddItem: () => listAddItem
1538
+ updateSeriesMedia: () => updateSeriesMedia,
1539
+ updateSeries: () => updateSeries,
1540
+ updateSegment: () => updateSegment,
1541
+ updateMedia: () => updateMedia,
1542
+ updateEpisode: () => updateEpisode,
1543
+ removeMediaFromSeries: () => removeMediaFromSeries,
1544
+ listSegments: () => listSegments,
1545
+ deleteSeries: () => deleteSeries,
1546
+ deleteSegment: () => deleteSegment,
1547
+ deleteMedia: () => deleteMedia,
1548
+ deleteEpisode: () => deleteEpisode,
1549
+ createSeries: () => createSeries,
1550
+ createSegment: () => createSegment,
1551
+ createMedia: () => createMedia,
1552
+ createEpisode: () => createEpisode,
1553
+ autocompleteMedia: () => autocompleteMedia,
1554
+ addMediaToSeries: () => addMediaToSeries
1555
+ });
1556
+ // generated/dev/internal/user.gen.ts
1557
+ var exports_user_gen = {};
1558
+ __export(exports_user_gen, {
1559
+ updateUserPreferences: () => updateUserPreferences,
1560
+ listUserReports: () => listUserReports,
1561
+ listUserLabs: () => listUserLabs,
1562
+ listUserActivity: () => listUserActivity,
1563
+ getUserPreferences: () => getUserPreferences,
1564
+ getUserActivityStats: () => getUserActivityStats,
1565
+ getUserActivityHeatmap: () => getUserActivityHeatmap,
1566
+ exportUserData: () => exportUserData,
1567
+ deleteUserActivity: () => deleteUserActivity,
1568
+ createUserReport: () => createUserReport
1569
+ });
1570
+ // generated/dev/internal/admin.gen.ts
1571
+ var exports_admin_gen = {};
1572
+ __export(exports_admin_gen, {
1573
+ getAdminHealth: () => getAdminHealth,
1574
+ getAdminDashboard: () => getAdminDashboard
1353
1575
  });
1354
1576
 
1355
- //# debugId=FC450958C5EB234C64756E2164756E21
1577
+ //# debugId=4B0EFE7CA1477FC664756E2164756E21
1356
1578
  //# sourceMappingURL=index.js.map