@brigadasos/nadeshiko-sdk 1.3.0 → 1.4.0-dev.28a0384

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 (69) hide show
  1. package/README.md +105 -2
  2. package/dist/client/client.gen.d.ts.map +1 -0
  3. package/dist/client/index.d.ts.map +1 -0
  4. package/dist/client/types.gen.d.ts.map +1 -0
  5. package/dist/client/utils.gen.d.ts.map +1 -0
  6. package/dist/client.gen.d.ts.map +1 -0
  7. package/dist/core/auth.gen.d.ts.map +1 -0
  8. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  9. package/dist/core/params.gen.d.ts.map +1 -0
  10. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  11. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  12. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  13. package/dist/core/types.gen.d.ts.map +1 -0
  14. package/dist/core/utils.gen.d.ts.map +1 -0
  15. package/dist/index.cjs +622 -55
  16. package/dist/index.cjs.map +5 -5
  17. package/dist/index.d.ts +6 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +629 -51
  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 +2 -0
  24. package/dist/internal/media.gen.d.ts.map +1 -0
  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 +4 -0
  28. package/dist/internal.gen.d.ts.map +1 -0
  29. package/dist/nadeshiko.gen.d.ts +79 -0
  30. package/dist/nadeshiko.gen.d.ts.map +1 -0
  31. package/dist/sdk.gen.d.ts +660 -0
  32. package/dist/sdk.gen.d.ts.map +1 -0
  33. package/dist/types.gen.d.ts +5121 -0
  34. package/dist/types.gen.d.ts.map +1 -0
  35. package/package.json +4 -8
  36. package/dist/generated/client/client.gen.d.ts.map +0 -1
  37. package/dist/generated/client/index.d.ts.map +0 -1
  38. package/dist/generated/client/types.gen.d.ts.map +0 -1
  39. package/dist/generated/client/utils.gen.d.ts.map +0 -1
  40. package/dist/generated/client.gen.d.ts.map +0 -1
  41. package/dist/generated/core/auth.gen.d.ts.map +0 -1
  42. package/dist/generated/core/bodySerializer.gen.d.ts.map +0 -1
  43. package/dist/generated/core/params.gen.d.ts.map +0 -1
  44. package/dist/generated/core/pathSerializer.gen.d.ts.map +0 -1
  45. package/dist/generated/core/queryKeySerializer.gen.d.ts.map +0 -1
  46. package/dist/generated/core/serverSentEvents.gen.d.ts.map +0 -1
  47. package/dist/generated/core/types.gen.d.ts.map +0 -1
  48. package/dist/generated/core/utils.gen.d.ts.map +0 -1
  49. package/dist/generated/index.d.ts +0 -6
  50. package/dist/generated/index.d.ts.map +0 -1
  51. package/dist/generated/nadeshiko.gen.d.ts +0 -27
  52. package/dist/generated/nadeshiko.gen.d.ts.map +0 -1
  53. package/dist/generated/sdk.gen.d.ts +0 -257
  54. package/dist/generated/sdk.gen.d.ts.map +0 -1
  55. package/dist/generated/types.gen.d.ts +0 -2001
  56. package/dist/generated/types.gen.d.ts.map +0 -1
  57. /package/dist/{generated/client → client}/client.gen.d.ts +0 -0
  58. /package/dist/{generated/client → client}/index.d.ts +0 -0
  59. /package/dist/{generated/client → client}/types.gen.d.ts +0 -0
  60. /package/dist/{generated/client → client}/utils.gen.d.ts +0 -0
  61. /package/dist/{generated/client.gen.d.ts → client.gen.d.ts} +0 -0
  62. /package/dist/{generated/core → core}/auth.gen.d.ts +0 -0
  63. /package/dist/{generated/core → core}/bodySerializer.gen.d.ts +0 -0
  64. /package/dist/{generated/core → core}/params.gen.d.ts +0 -0
  65. /package/dist/{generated/core → core}/pathSerializer.gen.d.ts +0 -0
  66. /package/dist/{generated/core → core}/queryKeySerializer.gen.d.ts +0 -0
  67. /package/dist/{generated/core → core}/serverSentEvents.gen.d.ts +0 -0
  68. /package/dist/{generated/core → core}/types.gen.d.ts +0 -0
  69. /package/dist/{generated/core → core}/utils.gen.d.ts +0 -0
package/dist/index.cjs CHANGED
@@ -26,35 +26,90 @@ var __export = (target, all) => {
26
26
  });
27
27
  };
28
28
 
29
- // src/index.ts
30
- var exports_src = {};
31
- __export(exports_src, {
29
+ // generated/dev/index.ts
30
+ var exports_dev = {};
31
+ __export(exports_dev, {
32
+ userReportIndex: () => userReportIndex,
33
+ userReportCreate: () => userReportCreate,
34
+ userQuotaShow: () => userQuotaShow,
35
+ userPreferencesUpdate: () => userPreferencesUpdate,
36
+ userPreferencesShow: () => userPreferencesShow,
37
+ userLabsIndex: () => userLabsIndex,
38
+ userExportShow: () => userExportShow,
39
+ userActivityStatsShow: () => userActivityStatsShow,
40
+ userActivityIndex: () => userActivityIndex,
41
+ userActivityHeatmapShow: () => userActivityHeatmapShow,
42
+ userActivityDestroy: () => userActivityDestroy,
43
+ user: () => exports_user_gen,
44
+ seriesUpdateMedia: () => seriesUpdateMedia,
45
+ seriesUpdate: () => seriesUpdate,
46
+ seriesShow: () => seriesShow,
47
+ seriesRemoveMedia: () => seriesRemoveMedia,
48
+ seriesIndex: () => seriesIndex,
49
+ seriesDestroy: () => seriesDestroy,
50
+ seriesCreate: () => seriesCreate,
51
+ seriesAddMedia: () => seriesAddMedia,
32
52
  seiyuuShow: () => seiyuuShow,
53
+ segmentUpdate: () => segmentUpdate,
33
54
  segmentShowByUuid: () => segmentShowByUuid,
34
55
  segmentShow: () => segmentShow,
35
- searchMultiple: () => searchMultiple,
36
- searchHealthCheck: () => searchHealthCheck,
37
- search: () => search,
56
+ segmentIndex: () => segmentIndex,
57
+ segmentDestroy: () => segmentDestroy,
58
+ segmentCreate: () => segmentCreate,
59
+ segmentContextShow: () => segmentContextShow,
60
+ searchWords: () => searchWords,
61
+ searchStats: () => searchStats,
62
+ searchIndex: () => searchIndex,
63
+ mediaUpdate: () => mediaUpdate,
38
64
  mediaShow: () => mediaShow,
39
65
  mediaIndex: () => mediaIndex,
40
- listShow: () => listShow,
41
- listIndex: () => listIndex,
42
- fetchSentenceContext: () => fetchSentenceContext,
43
- fetchMediaInfo: () => fetchMediaInfo,
66
+ mediaDestroy: () => mediaDestroy,
67
+ mediaCreate: () => mediaCreate,
68
+ media: () => exports_media_gen,
69
+ episodeUpdate: () => episodeUpdate,
44
70
  episodeShow: () => episodeShow,
45
71
  episodeIndex: () => episodeIndex,
72
+ episodeDestroy: () => episodeDestroy,
73
+ episodeCreate: () => episodeCreate,
46
74
  createNadeshikoClient: () => createNadeshikoClient,
47
75
  createClient: () => createClient2,
76
+ collectionUpdateSegment: () => collectionUpdateSegment,
77
+ collectionUpdate: () => collectionUpdate,
78
+ collectionShow: () => collectionShow,
79
+ collectionRemoveSegment: () => collectionRemoveSegment,
80
+ collectionIndex: () => collectionIndex,
81
+ collectionDestroy: () => collectionDestroy,
82
+ collectionCreate: () => collectionCreate,
83
+ collectionAddSegment: () => collectionAddSegment,
48
84
  client: () => client,
49
- characterShow: () => characterShow
85
+ characterShow: () => characterShow,
86
+ adminReviewRunShow: () => adminReviewRunShow,
87
+ adminReviewRunIndex: () => adminReviewRunIndex,
88
+ adminReviewRunCreate: () => adminReviewRunCreate,
89
+ adminReviewCheckUpdate: () => adminReviewCheckUpdate,
90
+ adminReviewCheckIndex: () => adminReviewCheckIndex,
91
+ adminReviewAllowlistIndex: () => adminReviewAllowlistIndex,
92
+ adminReviewAllowlistDestroy: () => adminReviewAllowlistDestroy,
93
+ adminReviewAllowlistCreate: () => adminReviewAllowlistCreate,
94
+ adminReportUpdate: () => adminReportUpdate,
95
+ adminReportIndex: () => adminReportIndex,
96
+ adminReindexCreate: () => adminReindexCreate,
97
+ adminQueueStatsIndex: () => adminQueueStatsIndex,
98
+ adminQueueShow: () => adminQueueShow,
99
+ adminQueueRetryCreate: () => adminQueueRetryCreate,
100
+ adminQueueFailedIndex: () => adminQueueFailedIndex,
101
+ adminQueueFailedDestroy: () => adminQueueFailedDestroy,
102
+ adminHealthShow: () => adminHealthShow,
103
+ adminDashboardShow: () => adminDashboardShow,
104
+ admin: () => exports_admin_gen
50
105
  });
51
- module.exports = __toCommonJS(exports_src);
106
+ module.exports = __toCommonJS(exports_dev);
52
107
 
53
- // src/generated/core/bodySerializer.gen.ts
108
+ // generated/dev/core/bodySerializer.gen.ts
54
109
  var jsonBodySerializer = {
55
110
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
56
111
  };
57
- // src/generated/core/params.gen.ts
112
+ // generated/dev/core/params.gen.ts
58
113
  var extraPrefixesMap = {
59
114
  $body_: "body",
60
115
  $headers_: "headers",
@@ -62,7 +117,7 @@ var extraPrefixesMap = {
62
117
  $query_: "query"
63
118
  };
64
119
  var extraPrefixes = Object.entries(extraPrefixesMap);
65
- // src/generated/core/serverSentEvents.gen.ts
120
+ // generated/dev/core/serverSentEvents.gen.ts
66
121
  var createSseClient = ({
67
122
  onRequest,
68
123
  onSseError,
@@ -198,7 +253,7 @@ var createSseClient = ({
198
253
  return { stream };
199
254
  };
200
255
 
201
- // src/generated/core/pathSerializer.gen.ts
256
+ // generated/dev/core/pathSerializer.gen.ts
202
257
  var separatorArrayExplode = (style) => {
203
258
  switch (style) {
204
259
  case "label":
@@ -322,7 +377,7 @@ var serializeObjectParam = ({
322
377
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
323
378
  };
324
379
 
325
- // src/generated/core/utils.gen.ts
380
+ // generated/dev/core/utils.gen.ts
326
381
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
327
382
  var defaultPathSerializer = ({ path, url: _url }) => {
328
383
  let url = _url;
@@ -411,7 +466,7 @@ function getValidRequestBody(options) {
411
466
  return;
412
467
  }
413
468
 
414
- // src/generated/core/auth.gen.ts
469
+ // generated/dev/core/auth.gen.ts
415
470
  var getAuthToken = async (auth, callback) => {
416
471
  const token = typeof callback === "function" ? await callback(auth) : callback;
417
472
  if (!token) {
@@ -426,7 +481,7 @@ var getAuthToken = async (auth, callback) => {
426
481
  return token;
427
482
  };
428
483
 
429
- // src/generated/client/utils.gen.ts
484
+ // generated/dev/client/utils.gen.ts
430
485
  var createQuerySerializer = ({
431
486
  parameters = {},
432
487
  ...args
@@ -643,7 +698,7 @@ var createConfig = (override = {}) => ({
643
698
  ...override
644
699
  });
645
700
 
646
- // src/generated/client/client.gen.ts
701
+ // generated/dev/client/client.gen.ts
647
702
  var createClient = (config = {}) => {
648
703
  let _config = mergeConfigs(createConfig(), config);
649
704
  const getConfig = () => ({ ..._config });
@@ -849,66 +904,66 @@ var createClient = (config = {}) => {
849
904
  trace: makeMethodFn("TRACE")
850
905
  };
851
906
  };
852
- // src/generated/client.gen.ts
907
+ // generated/dev/client.gen.ts
853
908
  var client = createClient(createConfig({ baseUrl: "http://localhost:5000" }));
854
909
 
855
- // src/generated/sdk.gen.ts
856
- var searchHealthCheck = (options) => (options?.client ?? client).get({
857
- security: [{ scheme: "bearer", type: "http" }],
858
- url: "/v1/search/health",
859
- ...options
860
- });
861
- var search = (options) => (options?.client ?? client).post({
910
+ // generated/dev/sdk.gen.ts
911
+ var searchIndex = (options) => (options?.client ?? client).post({
862
912
  security: [{ scheme: "bearer", type: "http" }, {
863
913
  in: "cookie",
864
914
  name: "nadeshiko.session_token",
865
915
  type: "apiKey"
866
916
  }],
867
- url: "/v1/search/media/sentence",
917
+ url: "/v1/search",
868
918
  ...options,
869
919
  headers: {
870
920
  "Content-Type": "application/json",
871
921
  ...options?.headers
872
922
  }
873
923
  });
874
- var searchMultiple = (options) => (options.client ?? client).post({
924
+ var searchStats = (options) => (options?.client ?? client).post({
875
925
  security: [{ scheme: "bearer", type: "http" }, {
876
926
  in: "cookie",
877
927
  name: "nadeshiko.session_token",
878
928
  type: "apiKey"
879
929
  }],
880
- url: "/v1/search/media/match/words",
930
+ url: "/v1/search/stats",
881
931
  ...options,
882
932
  headers: {
883
933
  "Content-Type": "application/json",
884
- ...options.headers
934
+ ...options?.headers
885
935
  }
886
936
  });
887
- var fetchSentenceContext = (options) => (options.client ?? client).post({
937
+ var searchWords = (options) => (options.client ?? client).post({
888
938
  security: [{ scheme: "bearer", type: "http" }, {
889
939
  in: "cookie",
890
940
  name: "nadeshiko.session_token",
891
941
  type: "apiKey"
892
942
  }],
893
- url: "/v1/search/media/context",
943
+ url: "/v1/search/words",
894
944
  ...options,
895
945
  headers: {
896
946
  "Content-Type": "application/json",
897
947
  ...options.headers
898
948
  }
899
949
  });
900
- var fetchMediaInfo = (options) => (options?.client ?? client).get({
901
- security: [{ scheme: "bearer", type: "http" }, {
902
- in: "cookie",
903
- name: "nadeshiko.session_token",
904
- type: "apiKey"
905
- }],
906
- url: "/v1/search/media/info",
950
+ var mediaIndex = (options) => (options?.client ?? client).get({
951
+ security: [{ scheme: "bearer", type: "http" }],
952
+ url: "/v1/media",
907
953
  ...options
908
954
  });
909
- var mediaIndex = (options) => (options?.client ?? client).get({
955
+ var mediaCreate = (options) => (options.client ?? client).post({
910
956
  security: [{ scheme: "bearer", type: "http" }],
911
957
  url: "/v1/media",
958
+ ...options,
959
+ headers: {
960
+ "Content-Type": "application/json",
961
+ ...options.headers
962
+ }
963
+ });
964
+ var mediaDestroy = (options) => (options.client ?? client).delete({
965
+ security: [{ scheme: "bearer", type: "http" }],
966
+ url: "/v1/media/{id}",
912
967
  ...options
913
968
  });
914
969
  var mediaShow = (options) => (options.client ?? client).get({
@@ -916,26 +971,155 @@ var mediaShow = (options) => (options.client ?? client).get({
916
971
  url: "/v1/media/{id}",
917
972
  ...options
918
973
  });
974
+ var mediaUpdate = (options) => (options.client ?? client).patch({
975
+ security: [{ scheme: "bearer", type: "http" }],
976
+ url: "/v1/media/{id}",
977
+ ...options,
978
+ headers: {
979
+ "Content-Type": "application/json",
980
+ ...options.headers
981
+ }
982
+ });
919
983
  var episodeIndex = (options) => (options.client ?? client).get({
920
984
  security: [{ scheme: "bearer", type: "http" }],
921
985
  url: "/v1/media/{mediaId}/episodes",
922
986
  ...options
923
987
  });
988
+ var episodeCreate = (options) => (options.client ?? client).post({
989
+ security: [{ scheme: "bearer", type: "http" }],
990
+ url: "/v1/media/{mediaId}/episodes",
991
+ ...options,
992
+ headers: {
993
+ "Content-Type": "application/json",
994
+ ...options.headers
995
+ }
996
+ });
997
+ var episodeDestroy = (options) => (options.client ?? client).delete({
998
+ security: [{ scheme: "bearer", type: "http" }],
999
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1000
+ ...options
1001
+ });
924
1002
  var episodeShow = (options) => (options.client ?? client).get({
925
1003
  security: [{ scheme: "bearer", type: "http" }],
926
1004
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
927
1005
  ...options
928
1006
  });
1007
+ var episodeUpdate = (options) => (options.client ?? client).patch({
1008
+ security: [{ scheme: "bearer", type: "http" }],
1009
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1010
+ ...options,
1011
+ headers: {
1012
+ "Content-Type": "application/json",
1013
+ ...options.headers
1014
+ }
1015
+ });
1016
+ var segmentIndex = (options) => (options.client ?? client).get({
1017
+ security: [{ scheme: "bearer", type: "http" }],
1018
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1019
+ ...options
1020
+ });
1021
+ var segmentCreate = (options) => (options.client ?? client).post({
1022
+ security: [{ scheme: "bearer", type: "http" }],
1023
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1024
+ ...options,
1025
+ headers: {
1026
+ "Content-Type": "application/json",
1027
+ ...options.headers
1028
+ }
1029
+ });
1030
+ var segmentDestroy = (options) => (options.client ?? client).delete({
1031
+ security: [{ scheme: "bearer", type: "http" }],
1032
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1033
+ ...options
1034
+ });
929
1035
  var segmentShow = (options) => (options.client ?? client).get({
930
1036
  security: [{ scheme: "bearer", type: "http" }],
931
1037
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
932
1038
  ...options
933
1039
  });
1040
+ var segmentUpdate = (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
+ });
934
1049
  var segmentShowByUuid = (options) => (options.client ?? client).get({
935
1050
  security: [{ scheme: "bearer", type: "http" }],
936
1051
  url: "/v1/media/segments/{uuid}",
937
1052
  ...options
938
1053
  });
1054
+ var segmentContextShow = (options) => (options.client ?? client).get({
1055
+ security: [{ scheme: "bearer", type: "http" }],
1056
+ url: "/v1/media/segments/{uuid}/context",
1057
+ ...options
1058
+ });
1059
+ var seriesIndex = (options) => (options?.client ?? client).get({
1060
+ security: [{ scheme: "bearer", type: "http" }, {
1061
+ in: "cookie",
1062
+ name: "nadeshiko.session_token",
1063
+ type: "apiKey"
1064
+ }],
1065
+ url: "/v1/media/series",
1066
+ ...options
1067
+ });
1068
+ var seriesCreate = (options) => (options.client ?? client).post({
1069
+ security: [{ scheme: "bearer", type: "http" }],
1070
+ url: "/v1/media/series",
1071
+ ...options,
1072
+ headers: {
1073
+ "Content-Type": "application/json",
1074
+ ...options.headers
1075
+ }
1076
+ });
1077
+ var seriesDestroy = (options) => (options.client ?? client).delete({
1078
+ security: [{ scheme: "bearer", type: "http" }],
1079
+ url: "/v1/media/series/{id}",
1080
+ ...options
1081
+ });
1082
+ var seriesShow = (options) => (options.client ?? client).get({
1083
+ security: [{ scheme: "bearer", type: "http" }, {
1084
+ in: "cookie",
1085
+ name: "nadeshiko.session_token",
1086
+ type: "apiKey"
1087
+ }],
1088
+ url: "/v1/media/series/{id}",
1089
+ ...options
1090
+ });
1091
+ var seriesUpdate = (options) => (options.client ?? client).patch({
1092
+ security: [{ scheme: "bearer", type: "http" }],
1093
+ url: "/v1/media/series/{id}",
1094
+ ...options,
1095
+ headers: {
1096
+ "Content-Type": "application/json",
1097
+ ...options.headers
1098
+ }
1099
+ });
1100
+ var seriesAddMedia = (options) => (options.client ?? client).post({
1101
+ security: [{ scheme: "bearer", type: "http" }],
1102
+ url: "/v1/media/series/{id}/media",
1103
+ ...options,
1104
+ headers: {
1105
+ "Content-Type": "application/json",
1106
+ ...options.headers
1107
+ }
1108
+ });
1109
+ var seriesRemoveMedia = (options) => (options.client ?? client).delete({
1110
+ security: [{ scheme: "bearer", type: "http" }],
1111
+ url: "/v1/media/series/{id}/media/{mediaId}",
1112
+ ...options
1113
+ });
1114
+ var seriesUpdateMedia = (options) => (options.client ?? client).patch({
1115
+ security: [{ scheme: "bearer", type: "http" }],
1116
+ url: "/v1/media/series/{id}/media/{mediaId}",
1117
+ ...options,
1118
+ headers: {
1119
+ "Content-Type": "application/json",
1120
+ ...options.headers
1121
+ }
1122
+ });
939
1123
  var characterShow = (options) => (options.client ?? client).get({
940
1124
  security: [{ scheme: "bearer", type: "http" }],
941
1125
  url: "/v1/media/characters/{id}",
@@ -946,17 +1130,308 @@ var seiyuuShow = (options) => (options.client ?? client).get({
946
1130
  url: "/v1/media/seiyuu/{id}",
947
1131
  ...options
948
1132
  });
949
- var listIndex = (options) => (options?.client ?? client).get({
1133
+ var userQuotaShow = (options) => (options?.client ?? client).get({
1134
+ security: [{
1135
+ in: "cookie",
1136
+ name: "nadeshiko.session_token",
1137
+ type: "apiKey"
1138
+ }, { scheme: "bearer", type: "http" }],
1139
+ url: "/v1/user/quota",
1140
+ ...options
1141
+ });
1142
+ var userReportIndex = (options) => (options?.client ?? client).get({
1143
+ security: [{
1144
+ in: "cookie",
1145
+ name: "nadeshiko.session_token",
1146
+ type: "apiKey"
1147
+ }],
1148
+ url: "/v1/user/reports",
1149
+ ...options
1150
+ });
1151
+ var userReportCreate = (options) => (options.client ?? client).post({
1152
+ security: [{
1153
+ in: "cookie",
1154
+ name: "nadeshiko.session_token",
1155
+ type: "apiKey"
1156
+ }],
1157
+ url: "/v1/user/reports",
1158
+ ...options,
1159
+ headers: {
1160
+ "Content-Type": "application/json",
1161
+ ...options.headers
1162
+ }
1163
+ });
1164
+ var userPreferencesShow = (options) => (options?.client ?? client).get({
1165
+ security: [{
1166
+ in: "cookie",
1167
+ name: "nadeshiko.session_token",
1168
+ type: "apiKey"
1169
+ }],
1170
+ url: "/v1/user/preferences",
1171
+ ...options
1172
+ });
1173
+ var userPreferencesUpdate = (options) => (options.client ?? client).patch({
1174
+ security: [{
1175
+ in: "cookie",
1176
+ name: "nadeshiko.session_token",
1177
+ type: "apiKey"
1178
+ }],
1179
+ url: "/v1/user/preferences",
1180
+ ...options,
1181
+ headers: {
1182
+ "Content-Type": "application/json",
1183
+ ...options.headers
1184
+ }
1185
+ });
1186
+ var userActivityDestroy = (options) => (options?.client ?? client).delete({
1187
+ security: [{
1188
+ in: "cookie",
1189
+ name: "nadeshiko.session_token",
1190
+ type: "apiKey"
1191
+ }],
1192
+ url: "/v1/user/activity",
1193
+ ...options
1194
+ });
1195
+ var userActivityIndex = (options) => (options?.client ?? client).get({
1196
+ security: [{
1197
+ in: "cookie",
1198
+ name: "nadeshiko.session_token",
1199
+ type: "apiKey"
1200
+ }],
1201
+ url: "/v1/user/activity",
1202
+ ...options
1203
+ });
1204
+ var userActivityHeatmapShow = (options) => (options?.client ?? client).get({
1205
+ security: [{
1206
+ in: "cookie",
1207
+ name: "nadeshiko.session_token",
1208
+ type: "apiKey"
1209
+ }],
1210
+ url: "/v1/user/activity/heatmap",
1211
+ ...options
1212
+ });
1213
+ var userActivityStatsShow = (options) => (options?.client ?? client).get({
1214
+ security: [{
1215
+ in: "cookie",
1216
+ name: "nadeshiko.session_token",
1217
+ type: "apiKey"
1218
+ }],
1219
+ url: "/v1/user/activity/stats",
1220
+ ...options
1221
+ });
1222
+ var userExportShow = (options) => (options?.client ?? client).get({
1223
+ security: [{
1224
+ in: "cookie",
1225
+ name: "nadeshiko.session_token",
1226
+ type: "apiKey"
1227
+ }],
1228
+ url: "/v1/user/export",
1229
+ ...options
1230
+ });
1231
+ var userLabsIndex = (options) => (options?.client ?? client).get({
1232
+ security: [{
1233
+ in: "cookie",
1234
+ name: "nadeshiko.session_token",
1235
+ type: "apiKey"
1236
+ }],
1237
+ url: "/v1/user/labs",
1238
+ ...options
1239
+ });
1240
+ var collectionIndex = (options) => (options?.client ?? client).get({
1241
+ security: [{
1242
+ in: "cookie",
1243
+ name: "nadeshiko.session_token",
1244
+ type: "apiKey"
1245
+ }],
1246
+ url: "/v1/collections",
1247
+ ...options
1248
+ });
1249
+ var collectionCreate = (options) => (options.client ?? client).post({
1250
+ security: [{
1251
+ in: "cookie",
1252
+ name: "nadeshiko.session_token",
1253
+ type: "apiKey"
1254
+ }],
1255
+ url: "/v1/collections",
1256
+ ...options,
1257
+ headers: {
1258
+ "Content-Type": "application/json",
1259
+ ...options.headers
1260
+ }
1261
+ });
1262
+ var collectionDestroy = (options) => (options.client ?? client).delete({
1263
+ security: [{
1264
+ in: "cookie",
1265
+ name: "nadeshiko.session_token",
1266
+ type: "apiKey"
1267
+ }],
1268
+ url: "/v1/collections/{id}",
1269
+ ...options
1270
+ });
1271
+ var collectionShow = (options) => (options.client ?? client).get({
1272
+ security: [{
1273
+ in: "cookie",
1274
+ name: "nadeshiko.session_token",
1275
+ type: "apiKey"
1276
+ }],
1277
+ url: "/v1/collections/{id}",
1278
+ ...options
1279
+ });
1280
+ var collectionUpdate = (options) => (options.client ?? client).patch({
1281
+ security: [{
1282
+ in: "cookie",
1283
+ name: "nadeshiko.session_token",
1284
+ type: "apiKey"
1285
+ }],
1286
+ url: "/v1/collections/{id}",
1287
+ ...options,
1288
+ headers: {
1289
+ "Content-Type": "application/json",
1290
+ ...options.headers
1291
+ }
1292
+ });
1293
+ var collectionAddSegment = (options) => (options.client ?? client).post({
1294
+ security: [{
1295
+ in: "cookie",
1296
+ name: "nadeshiko.session_token",
1297
+ type: "apiKey"
1298
+ }],
1299
+ url: "/v1/collections/{id}/segments",
1300
+ ...options,
1301
+ headers: {
1302
+ "Content-Type": "application/json",
1303
+ ...options.headers
1304
+ }
1305
+ });
1306
+ var collectionRemoveSegment = (options) => (options.client ?? client).delete({
1307
+ security: [{
1308
+ in: "cookie",
1309
+ name: "nadeshiko.session_token",
1310
+ type: "apiKey"
1311
+ }],
1312
+ url: "/v1/collections/{id}/segments/{uuid}",
1313
+ ...options
1314
+ });
1315
+ var collectionUpdateSegment = (options) => (options.client ?? client).patch({
1316
+ security: [{
1317
+ in: "cookie",
1318
+ name: "nadeshiko.session_token",
1319
+ type: "apiKey"
1320
+ }],
1321
+ url: "/v1/collections/{id}/segments/{uuid}",
1322
+ ...options,
1323
+ headers: {
1324
+ "Content-Type": "application/json",
1325
+ ...options.headers
1326
+ }
1327
+ });
1328
+ var adminDashboardShow = (options) => (options?.client ?? client).get({
950
1329
  security: [{ scheme: "bearer", type: "http" }],
951
- url: "/v1/lists",
1330
+ url: "/v1/admin/dashboard",
952
1331
  ...options
953
1332
  });
954
- var listShow = (options) => (options.client ?? client).get({
1333
+ var adminHealthShow = (options) => (options?.client ?? client).get({
955
1334
  security: [{ scheme: "bearer", type: "http" }],
956
- url: "/v1/lists/{id}",
1335
+ url: "/v1/admin/health",
957
1336
  ...options
958
1337
  });
959
- // src/generated/nadeshiko.gen.ts
1338
+ var adminReindexCreate = (options) => (options?.client ?? client).post({
1339
+ security: [{ scheme: "bearer", type: "http" }],
1340
+ url: "/v1/admin/reindex",
1341
+ ...options,
1342
+ headers: {
1343
+ "Content-Type": "application/json",
1344
+ ...options?.headers
1345
+ }
1346
+ });
1347
+ var adminQueueStatsIndex = (options) => (options?.client ?? client).get({
1348
+ security: [{ scheme: "bearer", type: "http" }],
1349
+ url: "/v1/admin/queues/stats",
1350
+ ...options
1351
+ });
1352
+ var adminQueueShow = (options) => (options.client ?? client).get({
1353
+ security: [{ scheme: "bearer", type: "http" }],
1354
+ url: "/v1/admin/queues/{queueName}",
1355
+ ...options
1356
+ });
1357
+ var adminQueueFailedIndex = (options) => (options.client ?? client).get({
1358
+ security: [{ scheme: "bearer", type: "http" }],
1359
+ url: "/v1/admin/queues/{queueName}/failed",
1360
+ ...options
1361
+ });
1362
+ var adminQueueRetryCreate = (options) => (options.client ?? client).post({
1363
+ security: [{ scheme: "bearer", type: "http" }],
1364
+ url: "/v1/admin/queues/{queueName}/retry",
1365
+ ...options
1366
+ });
1367
+ var adminQueueFailedDestroy = (options) => (options.client ?? client).delete({
1368
+ security: [{ scheme: "bearer", type: "http" }],
1369
+ url: "/v1/admin/queues/{queueName}/purge",
1370
+ ...options
1371
+ });
1372
+ var adminReportIndex = (options) => (options?.client ?? client).get({
1373
+ security: [{ scheme: "bearer", type: "http" }],
1374
+ url: "/v1/admin/reports",
1375
+ ...options
1376
+ });
1377
+ var adminReportUpdate = (options) => (options.client ?? client).patch({
1378
+ security: [{ scheme: "bearer", type: "http" }],
1379
+ url: "/v1/admin/reports/{id}",
1380
+ ...options,
1381
+ headers: {
1382
+ "Content-Type": "application/json",
1383
+ ...options.headers
1384
+ }
1385
+ });
1386
+ var adminReviewRunCreate = (options) => (options?.client ?? client).post({
1387
+ security: [{ scheme: "bearer", type: "http" }],
1388
+ url: "/v1/admin/review/run",
1389
+ ...options
1390
+ });
1391
+ var adminReviewCheckIndex = (options) => (options?.client ?? client).get({
1392
+ security: [{ scheme: "bearer", type: "http" }],
1393
+ url: "/v1/admin/review/checks",
1394
+ ...options
1395
+ });
1396
+ var adminReviewCheckUpdate = (options) => (options.client ?? client).patch({
1397
+ security: [{ scheme: "bearer", type: "http" }],
1398
+ url: "/v1/admin/review/checks/{name}",
1399
+ ...options,
1400
+ headers: {
1401
+ "Content-Type": "application/json",
1402
+ ...options.headers
1403
+ }
1404
+ });
1405
+ var adminReviewRunIndex = (options) => (options?.client ?? client).get({
1406
+ security: [{ scheme: "bearer", type: "http" }],
1407
+ url: "/v1/admin/review/runs",
1408
+ ...options
1409
+ });
1410
+ var adminReviewRunShow = (options) => (options.client ?? client).get({
1411
+ security: [{ scheme: "bearer", type: "http" }],
1412
+ url: "/v1/admin/review/runs/{id}",
1413
+ ...options
1414
+ });
1415
+ var adminReviewAllowlistIndex = (options) => (options?.client ?? client).get({
1416
+ security: [{ scheme: "bearer", type: "http" }],
1417
+ url: "/v1/admin/review/allowlist",
1418
+ ...options
1419
+ });
1420
+ var adminReviewAllowlistCreate = (options) => (options.client ?? client).post({
1421
+ security: [{ scheme: "bearer", type: "http" }],
1422
+ url: "/v1/admin/review/allowlist",
1423
+ ...options,
1424
+ headers: {
1425
+ "Content-Type": "application/json",
1426
+ ...options.headers
1427
+ }
1428
+ });
1429
+ var adminReviewAllowlistDestroy = (options) => (options.client ?? client).delete({
1430
+ security: [{ scheme: "bearer", type: "http" }],
1431
+ url: "/v1/admin/review/allowlist/{id}",
1432
+ ...options
1433
+ });
1434
+ // generated/dev/nadeshiko.gen.ts
960
1435
  var environments = {
961
1436
  LOCAL: "http://localhost:5000/api",
962
1437
  DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
@@ -970,24 +1445,116 @@ function createNadeshikoClient(config) {
970
1445
  }));
971
1446
  return {
972
1447
  client: clientInstance,
973
- searchHealthCheck: (options) => searchHealthCheck({ ...options, client: clientInstance }),
974
- search: (options) => search({ ...options, client: clientInstance }),
975
- searchMultiple: (options) => searchMultiple({ ...options, client: clientInstance }),
976
- fetchSentenceContext: (options) => fetchSentenceContext({ ...options, client: clientInstance }),
977
- fetchMediaInfo: (options) => fetchMediaInfo({ ...options, client: clientInstance }),
1448
+ searchIndex: (options) => searchIndex({ ...options, client: clientInstance }),
1449
+ searchStats: (options) => searchStats({ ...options, client: clientInstance }),
1450
+ searchWords: (options) => searchWords({ ...options, client: clientInstance }),
978
1451
  mediaIndex: (options) => mediaIndex({ ...options, client: clientInstance }),
979
1452
  mediaShow: (options) => mediaShow({ ...options, client: clientInstance }),
980
1453
  episodeIndex: (options) => episodeIndex({ ...options, client: clientInstance }),
981
1454
  episodeShow: (options) => episodeShow({ ...options, client: clientInstance }),
982
1455
  segmentShow: (options) => segmentShow({ ...options, client: clientInstance }),
983
1456
  segmentShowByUuid: (options) => segmentShowByUuid({ ...options, client: clientInstance }),
1457
+ segmentContextShow: (options) => segmentContextShow({ ...options, client: clientInstance }),
1458
+ seriesIndex: (options) => seriesIndex({ ...options, client: clientInstance }),
1459
+ seriesShow: (options) => seriesShow({ ...options, client: clientInstance }),
984
1460
  characterShow: (options) => characterShow({ ...options, client: clientInstance }),
985
1461
  seiyuuShow: (options) => seiyuuShow({ ...options, client: clientInstance }),
986
- listIndex: (options) => listIndex({ ...options, client: clientInstance }),
987
- listShow: (options) => listShow({ ...options, client: clientInstance })
1462
+ userQuotaShow: (options) => userQuotaShow({ ...options, client: clientInstance }),
1463
+ collectionIndex: (options) => collectionIndex({ ...options, client: clientInstance }),
1464
+ collectionCreate: (options) => collectionCreate({ ...options, client: clientInstance }),
1465
+ collectionShow: (options) => collectionShow({ ...options, client: clientInstance }),
1466
+ collectionUpdate: (options) => collectionUpdate({ ...options, client: clientInstance }),
1467
+ collectionDestroy: (options) => collectionDestroy({ ...options, client: clientInstance }),
1468
+ collectionAddSegment: (options) => collectionAddSegment({ ...options, client: clientInstance }),
1469
+ collectionUpdateSegment: (options) => collectionUpdateSegment({ ...options, client: clientInstance }),
1470
+ collectionRemoveSegment: (options) => collectionRemoveSegment({ ...options, client: clientInstance }),
1471
+ adminReindexCreate: (options) => adminReindexCreate({ ...options, client: clientInstance }),
1472
+ adminQueueStatsIndex: (options) => adminQueueStatsIndex({ ...options, client: clientInstance }),
1473
+ adminQueueShow: (options) => adminQueueShow({ ...options, client: clientInstance }),
1474
+ adminQueueFailedIndex: (options) => adminQueueFailedIndex({ ...options, client: clientInstance }),
1475
+ adminQueueRetryCreate: (options) => adminQueueRetryCreate({ ...options, client: clientInstance }),
1476
+ adminQueueFailedDestroy: (options) => adminQueueFailedDestroy({ ...options, client: clientInstance }),
1477
+ adminReportIndex: (options) => adminReportIndex({ ...options, client: clientInstance }),
1478
+ adminReportUpdate: (options) => adminReportUpdate({ ...options, client: clientInstance }),
1479
+ adminReviewRunCreate: (options) => adminReviewRunCreate({ ...options, client: clientInstance }),
1480
+ adminReviewCheckIndex: (options) => adminReviewCheckIndex({ ...options, client: clientInstance }),
1481
+ adminReviewCheckUpdate: (options) => adminReviewCheckUpdate({ ...options, client: clientInstance }),
1482
+ adminReviewRunIndex: (options) => adminReviewRunIndex({ ...options, client: clientInstance }),
1483
+ adminReviewRunShow: (options) => adminReviewRunShow({ ...options, client: clientInstance }),
1484
+ adminReviewAllowlistIndex: (options) => adminReviewAllowlistIndex({ ...options, client: clientInstance }),
1485
+ adminReviewAllowlistCreate: (options) => adminReviewAllowlistCreate({ ...options, client: clientInstance }),
1486
+ adminReviewAllowlistDestroy: (options) => adminReviewAllowlistDestroy({ ...options, client: clientInstance }),
1487
+ mediaCreate: (options) => mediaCreate({ ...options, client: clientInstance }),
1488
+ mediaUpdate: (options) => mediaUpdate({ ...options, client: clientInstance }),
1489
+ mediaDestroy: (options) => mediaDestroy({ ...options, client: clientInstance }),
1490
+ episodeCreate: (options) => episodeCreate({ ...options, client: clientInstance }),
1491
+ episodeUpdate: (options) => episodeUpdate({ ...options, client: clientInstance }),
1492
+ episodeDestroy: (options) => episodeDestroy({ ...options, client: clientInstance }),
1493
+ segmentIndex: (options) => segmentIndex({ ...options, client: clientInstance }),
1494
+ segmentCreate: (options) => segmentCreate({ ...options, client: clientInstance }),
1495
+ segmentUpdate: (options) => segmentUpdate({ ...options, client: clientInstance }),
1496
+ segmentDestroy: (options) => segmentDestroy({ ...options, client: clientInstance }),
1497
+ seriesCreate: (options) => seriesCreate({ ...options, client: clientInstance }),
1498
+ seriesUpdate: (options) => seriesUpdate({ ...options, client: clientInstance }),
1499
+ seriesDestroy: (options) => seriesDestroy({ ...options, client: clientInstance }),
1500
+ seriesAddMedia: (options) => seriesAddMedia({ ...options, client: clientInstance }),
1501
+ seriesUpdateMedia: (options) => seriesUpdateMedia({ ...options, client: clientInstance }),
1502
+ seriesRemoveMedia: (options) => seriesRemoveMedia({ ...options, client: clientInstance }),
1503
+ userReportCreate: (options) => userReportCreate({ ...options, client: clientInstance }),
1504
+ userReportIndex: (options) => userReportIndex({ ...options, client: clientInstance }),
1505
+ userPreferencesShow: (options) => userPreferencesShow({ ...options, client: clientInstance }),
1506
+ userPreferencesUpdate: (options) => userPreferencesUpdate({ ...options, client: clientInstance }),
1507
+ userActivityIndex: (options) => userActivityIndex({ ...options, client: clientInstance }),
1508
+ userActivityDestroy: (options) => userActivityDestroy({ ...options, client: clientInstance }),
1509
+ userActivityHeatmapShow: (options) => userActivityHeatmapShow({ ...options, client: clientInstance }),
1510
+ userActivityStatsShow: (options) => userActivityStatsShow({ ...options, client: clientInstance }),
1511
+ userExportShow: (options) => userExportShow({ ...options, client: clientInstance }),
1512
+ userLabsIndex: (options) => userLabsIndex({ ...options, client: clientInstance }),
1513
+ adminDashboardShow: (options) => adminDashboardShow({ ...options, client: clientInstance }),
1514
+ adminHealthShow: (options) => adminHealthShow({ ...options, client: clientInstance })
988
1515
  };
989
1516
  }
990
1517
  var createClient2 = createNadeshikoClient;
1518
+ // generated/dev/internal/media.gen.ts
1519
+ var exports_media_gen = {};
1520
+ __export(exports_media_gen, {
1521
+ seriesUpdateMedia: () => seriesUpdateMedia,
1522
+ seriesUpdate: () => seriesUpdate,
1523
+ seriesRemoveMedia: () => seriesRemoveMedia,
1524
+ seriesDestroy: () => seriesDestroy,
1525
+ seriesCreate: () => seriesCreate,
1526
+ seriesAddMedia: () => seriesAddMedia,
1527
+ segmentUpdate: () => segmentUpdate,
1528
+ segmentIndex: () => segmentIndex,
1529
+ segmentDestroy: () => segmentDestroy,
1530
+ segmentCreate: () => segmentCreate,
1531
+ mediaUpdate: () => mediaUpdate,
1532
+ mediaDestroy: () => mediaDestroy,
1533
+ mediaCreate: () => mediaCreate,
1534
+ episodeUpdate: () => episodeUpdate,
1535
+ episodeDestroy: () => episodeDestroy,
1536
+ episodeCreate: () => episodeCreate
1537
+ });
1538
+ // generated/dev/internal/user.gen.ts
1539
+ var exports_user_gen = {};
1540
+ __export(exports_user_gen, {
1541
+ userReportIndex: () => userReportIndex,
1542
+ userReportCreate: () => userReportCreate,
1543
+ userPreferencesUpdate: () => userPreferencesUpdate,
1544
+ userPreferencesShow: () => userPreferencesShow,
1545
+ userLabsIndex: () => userLabsIndex,
1546
+ userExportShow: () => userExportShow,
1547
+ userActivityStatsShow: () => userActivityStatsShow,
1548
+ userActivityIndex: () => userActivityIndex,
1549
+ userActivityHeatmapShow: () => userActivityHeatmapShow,
1550
+ userActivityDestroy: () => userActivityDestroy
1551
+ });
1552
+ // generated/dev/internal/admin.gen.ts
1553
+ var exports_admin_gen = {};
1554
+ __export(exports_admin_gen, {
1555
+ adminHealthShow: () => adminHealthShow,
1556
+ adminDashboardShow: () => adminDashboardShow
1557
+ });
991
1558
 
992
- //# debugId=AFB20C7D997C890E64756E2164756E21
1559
+ //# debugId=53D30A77967A251364756E2164756E21
993
1560
  //# sourceMappingURL=index.js.map