@brigadasos/nadeshiko-sdk 1.3.0 → 1.4.0-dev.6f733b8

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 +6 -0
  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 +401 -38
  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 +408 -34
  20. package/dist/index.js.map +5 -5
  21. package/dist/internal/lists.gen.d.ts +2 -0
  22. package/dist/internal/lists.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/search.gen.d.ts +2 -0
  26. package/dist/internal/search.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 +60 -0
  30. package/dist/nadeshiko.gen.d.ts.map +1 -0
  31. package/dist/sdk.gen.d.ts +471 -0
  32. package/dist/sdk.gen.d.ts.map +1 -0
  33. package/dist/types.gen.d.ts +3976 -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,71 @@ var __export = (target, all) => {
26
26
  });
27
27
  };
28
28
 
29
- // src/index.ts
30
- var exports_src = {};
31
- __export(exports_src, {
29
+ // generated/internal/index.ts
30
+ var exports_internal = {};
31
+ __export(exports_internal, {
32
+ updateReport: () => updateReport,
32
33
  seiyuuShow: () => seiyuuShow,
34
+ segmentUpdate: () => segmentUpdate,
33
35
  segmentShowByUuid: () => segmentShowByUuid,
34
36
  segmentShow: () => segmentShow,
35
- searchMultiple: () => searchMultiple,
36
- searchHealthCheck: () => searchHealthCheck,
37
- search: () => search,
37
+ segmentIndex: () => segmentIndex,
38
+ segmentDestroy: () => segmentDestroy,
39
+ segmentCreate: () => segmentCreate,
40
+ 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,
38
48
  mediaShow: () => mediaShow,
39
49
  mediaIndex: () => mediaIndex,
50
+ mediaDestroy: () => mediaDestroy,
51
+ mediaCreate: () => mediaCreate,
52
+ media: () => exports_media_gen,
53
+ lists: () => exports_lists_gen,
54
+ listUpdateSegment: () => listUpdateSegment,
55
+ listUpdateItem: () => listUpdateItem,
56
+ listUpdate: () => listUpdate,
40
57
  listShow: () => listShow,
58
+ listRemoveSegment: () => listRemoveSegment,
59
+ listRemoveItem: () => listRemoveItem,
41
60
  listIndex: () => listIndex,
42
- fetchSentenceContext: () => fetchSentenceContext,
43
- fetchMediaInfo: () => fetchMediaInfo,
61
+ listGetSegments: () => listGetSegments,
62
+ listDestroy: () => listDestroy,
63
+ listCreate: () => listCreate,
64
+ listAddSegment: () => listAddSegment,
65
+ listAddItem: () => listAddItem,
66
+ healthCheck: () => healthCheck,
67
+ getUserReports: () => getUserReports,
68
+ getUserQuota: () => getUserQuota,
69
+ getSegmentContext: () => getSegmentContext,
70
+ getSearchStats: () => getSearchStats,
71
+ getQueueStats: () => getQueueStats,
72
+ getQueueDetails: () => getQueueDetails,
73
+ getFailedJobs: () => getFailedJobs,
74
+ getAdminReports: () => getAdminReports,
75
+ episodeUpdate: () => episodeUpdate,
44
76
  episodeShow: () => episodeShow,
45
77
  episodeIndex: () => episodeIndex,
78
+ episodeDestroy: () => episodeDestroy,
79
+ episodeCreate: () => episodeCreate,
80
+ createReport: () => createReport,
46
81
  createNadeshikoClient: () => createNadeshikoClient,
47
82
  createClient: () => createClient2,
48
83
  client: () => client,
49
- characterShow: () => characterShow
84
+ characterShow: () => characterShow,
85
+ browseMedia: () => browseMedia
50
86
  });
51
- module.exports = __toCommonJS(exports_src);
87
+ module.exports = __toCommonJS(exports_internal);
52
88
 
53
- // src/generated/core/bodySerializer.gen.ts
89
+ // generated/internal/core/bodySerializer.gen.ts
54
90
  var jsonBodySerializer = {
55
91
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
56
92
  };
57
- // src/generated/core/params.gen.ts
93
+ // generated/internal/core/params.gen.ts
58
94
  var extraPrefixesMap = {
59
95
  $body_: "body",
60
96
  $headers_: "headers",
@@ -62,7 +98,7 @@ var extraPrefixesMap = {
62
98
  $query_: "query"
63
99
  };
64
100
  var extraPrefixes = Object.entries(extraPrefixesMap);
65
- // src/generated/core/serverSentEvents.gen.ts
101
+ // generated/internal/core/serverSentEvents.gen.ts
66
102
  var createSseClient = ({
67
103
  onRequest,
68
104
  onSseError,
@@ -198,7 +234,7 @@ var createSseClient = ({
198
234
  return { stream };
199
235
  };
200
236
 
201
- // src/generated/core/pathSerializer.gen.ts
237
+ // generated/internal/core/pathSerializer.gen.ts
202
238
  var separatorArrayExplode = (style) => {
203
239
  switch (style) {
204
240
  case "label":
@@ -322,7 +358,7 @@ var serializeObjectParam = ({
322
358
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
323
359
  };
324
360
 
325
- // src/generated/core/utils.gen.ts
361
+ // generated/internal/core/utils.gen.ts
326
362
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
327
363
  var defaultPathSerializer = ({ path, url: _url }) => {
328
364
  let url = _url;
@@ -411,7 +447,7 @@ function getValidRequestBody(options) {
411
447
  return;
412
448
  }
413
449
 
414
- // src/generated/core/auth.gen.ts
450
+ // generated/internal/core/auth.gen.ts
415
451
  var getAuthToken = async (auth, callback) => {
416
452
  const token = typeof callback === "function" ? await callback(auth) : callback;
417
453
  if (!token) {
@@ -426,7 +462,7 @@ var getAuthToken = async (auth, callback) => {
426
462
  return token;
427
463
  };
428
464
 
429
- // src/generated/client/utils.gen.ts
465
+ // generated/internal/client/utils.gen.ts
430
466
  var createQuerySerializer = ({
431
467
  parameters = {},
432
468
  ...args
@@ -643,7 +679,7 @@ var createConfig = (override = {}) => ({
643
679
  ...override
644
680
  });
645
681
 
646
- // src/generated/client/client.gen.ts
682
+ // generated/internal/client/client.gen.ts
647
683
  var createClient = (config = {}) => {
648
684
  let _config = mergeConfigs(createConfig(), config);
649
685
  const getConfig = () => ({ ..._config });
@@ -849,61 +885,74 @@ var createClient = (config = {}) => {
849
885
  trace: makeMethodFn("TRACE")
850
886
  };
851
887
  };
852
- // src/generated/client.gen.ts
888
+ // generated/internal/client.gen.ts
853
889
  var client = createClient(createConfig({ baseUrl: "http://localhost:5000" }));
854
890
 
855
- // src/generated/sdk.gen.ts
856
- var searchHealthCheck = (options) => (options?.client ?? client).get({
891
+ // generated/internal/sdk.gen.ts
892
+ var healthCheck = (options) => (options?.client ?? client).get({
857
893
  security: [{ scheme: "bearer", type: "http" }],
858
- url: "/v1/search/health",
894
+ url: "/v1/health",
859
895
  ...options
860
896
  });
861
- var search = (options) => (options?.client ?? client).post({
897
+ var searchSegments = (options) => (options?.client ?? client).post({
862
898
  security: [{ scheme: "bearer", type: "http" }, {
863
899
  in: "cookie",
864
900
  name: "nadeshiko.session_token",
865
901
  type: "apiKey"
866
902
  }],
867
- url: "/v1/search/media/sentence",
903
+ url: "/v1/search/segments",
868
904
  ...options,
869
905
  headers: {
870
906
  "Content-Type": "application/json",
871
907
  ...options?.headers
872
908
  }
873
909
  });
874
- var searchMultiple = (options) => (options.client ?? client).post({
910
+ var getSearchStats = (options) => (options?.client ?? client).post({
875
911
  security: [{ scheme: "bearer", type: "http" }, {
876
912
  in: "cookie",
877
913
  name: "nadeshiko.session_token",
878
914
  type: "apiKey"
879
915
  }],
880
- url: "/v1/search/media/match/words",
916
+ url: "/v1/search/stats",
917
+ ...options,
918
+ headers: {
919
+ "Content-Type": "application/json",
920
+ ...options?.headers
921
+ }
922
+ });
923
+ var searchWords = (options) => (options.client ?? client).post({
924
+ security: [{ scheme: "bearer", type: "http" }, {
925
+ in: "cookie",
926
+ name: "nadeshiko.session_token",
927
+ type: "apiKey"
928
+ }],
929
+ url: "/v1/search/words",
881
930
  ...options,
882
931
  headers: {
883
932
  "Content-Type": "application/json",
884
933
  ...options.headers
885
934
  }
886
935
  });
887
- var fetchSentenceContext = (options) => (options.client ?? client).post({
936
+ var getSegmentContext = (options) => (options.client ?? client).post({
888
937
  security: [{ scheme: "bearer", type: "http" }, {
889
938
  in: "cookie",
890
939
  name: "nadeshiko.session_token",
891
940
  type: "apiKey"
892
941
  }],
893
- url: "/v1/search/media/context",
942
+ url: "/v1/search/context",
894
943
  ...options,
895
944
  headers: {
896
945
  "Content-Type": "application/json",
897
946
  ...options.headers
898
947
  }
899
948
  });
900
- var fetchMediaInfo = (options) => (options?.client ?? client).get({
949
+ var browseMedia = (options) => (options?.client ?? client).get({
901
950
  security: [{ scheme: "bearer", type: "http" }, {
902
951
  in: "cookie",
903
952
  name: "nadeshiko.session_token",
904
953
  type: "apiKey"
905
954
  }],
906
- url: "/v1/search/media/info",
955
+ url: "/v1/media/browse",
907
956
  ...options
908
957
  });
909
958
  var mediaIndex = (options) => (options?.client ?? client).get({
@@ -911,26 +960,100 @@ var mediaIndex = (options) => (options?.client ?? client).get({
911
960
  url: "/v1/media",
912
961
  ...options
913
962
  });
963
+ var mediaCreate = (options) => (options.client ?? client).post({
964
+ security: [{ scheme: "bearer", type: "http" }],
965
+ url: "/v1/media",
966
+ ...options,
967
+ headers: {
968
+ "Content-Type": "application/json",
969
+ ...options.headers
970
+ }
971
+ });
972
+ var mediaDestroy = (options) => (options.client ?? client).delete({
973
+ security: [{ scheme: "bearer", type: "http" }],
974
+ url: "/v1/media/{id}",
975
+ ...options
976
+ });
914
977
  var mediaShow = (options) => (options.client ?? client).get({
915
978
  security: [{ scheme: "bearer", type: "http" }],
916
979
  url: "/v1/media/{id}",
917
980
  ...options
918
981
  });
982
+ var mediaUpdate = (options) => (options.client ?? client).patch({
983
+ security: [{ scheme: "bearer", type: "http" }],
984
+ url: "/v1/media/{id}",
985
+ ...options,
986
+ headers: {
987
+ "Content-Type": "application/json",
988
+ ...options.headers
989
+ }
990
+ });
919
991
  var episodeIndex = (options) => (options.client ?? client).get({
920
992
  security: [{ scheme: "bearer", type: "http" }],
921
993
  url: "/v1/media/{mediaId}/episodes",
922
994
  ...options
923
995
  });
996
+ var episodeCreate = (options) => (options.client ?? client).post({
997
+ security: [{ scheme: "bearer", type: "http" }],
998
+ url: "/v1/media/{mediaId}/episodes",
999
+ ...options,
1000
+ headers: {
1001
+ "Content-Type": "application/json",
1002
+ ...options.headers
1003
+ }
1004
+ });
1005
+ var episodeDestroy = (options) => (options.client ?? client).delete({
1006
+ security: [{ scheme: "bearer", type: "http" }],
1007
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1008
+ ...options
1009
+ });
924
1010
  var episodeShow = (options) => (options.client ?? client).get({
925
1011
  security: [{ scheme: "bearer", type: "http" }],
926
1012
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
927
1013
  ...options
928
1014
  });
1015
+ var episodeUpdate = (options) => (options.client ?? client).patch({
1016
+ security: [{ scheme: "bearer", type: "http" }],
1017
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
1018
+ ...options,
1019
+ headers: {
1020
+ "Content-Type": "application/json",
1021
+ ...options.headers
1022
+ }
1023
+ });
1024
+ var segmentIndex = (options) => (options.client ?? client).get({
1025
+ security: [{ scheme: "bearer", type: "http" }],
1026
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1027
+ ...options
1028
+ });
1029
+ var segmentCreate = (options) => (options.client ?? client).post({
1030
+ security: [{ scheme: "bearer", type: "http" }],
1031
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
1032
+ ...options,
1033
+ headers: {
1034
+ "Content-Type": "application/json",
1035
+ ...options.headers
1036
+ }
1037
+ });
1038
+ var segmentDestroy = (options) => (options.client ?? client).delete({
1039
+ security: [{ scheme: "bearer", type: "http" }],
1040
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1041
+ ...options
1042
+ });
929
1043
  var segmentShow = (options) => (options.client ?? client).get({
930
1044
  security: [{ scheme: "bearer", type: "http" }],
931
1045
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
932
1046
  ...options
933
1047
  });
1048
+ var segmentUpdate = (options) => (options.client ?? client).patch({
1049
+ security: [{ scheme: "bearer", type: "http" }],
1050
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
1051
+ ...options,
1052
+ headers: {
1053
+ "Content-Type": "application/json",
1054
+ ...options.headers
1055
+ }
1056
+ });
934
1057
  var segmentShowByUuid = (options) => (options.client ?? client).get({
935
1058
  security: [{ scheme: "bearer", type: "http" }],
936
1059
  url: "/v1/media/segments/{uuid}",
@@ -946,17 +1069,195 @@ var seiyuuShow = (options) => (options.client ?? client).get({
946
1069
  url: "/v1/media/seiyuu/{id}",
947
1070
  ...options
948
1071
  });
1072
+ var getUserQuota = (options) => (options?.client ?? client).get({
1073
+ security: [{
1074
+ in: "cookie",
1075
+ name: "nadeshiko.session_token",
1076
+ type: "apiKey"
1077
+ }],
1078
+ url: "/v1/user/quota",
1079
+ ...options
1080
+ });
1081
+ var getUserReports = (options) => (options?.client ?? client).get({
1082
+ security: [{
1083
+ in: "cookie",
1084
+ name: "nadeshiko.session_token",
1085
+ type: "apiKey"
1086
+ }],
1087
+ url: "/v1/user/reports",
1088
+ ...options
1089
+ });
1090
+ var createReport = (options) => (options.client ?? client).post({
1091
+ security: [{
1092
+ in: "cookie",
1093
+ name: "nadeshiko.session_token",
1094
+ type: "apiKey"
1095
+ }],
1096
+ url: "/v1/user/reports",
1097
+ ...options,
1098
+ headers: {
1099
+ "Content-Type": "application/json",
1100
+ ...options.headers
1101
+ }
1102
+ });
949
1103
  var listIndex = (options) => (options?.client ?? client).get({
950
1104
  security: [{ scheme: "bearer", type: "http" }],
951
1105
  url: "/v1/lists",
952
1106
  ...options
953
1107
  });
1108
+ var listCreate = (options) => (options.client ?? client).post({
1109
+ security: [{ scheme: "bearer", type: "http" }],
1110
+ url: "/v1/lists",
1111
+ ...options,
1112
+ headers: {
1113
+ "Content-Type": "application/json",
1114
+ ...options.headers
1115
+ }
1116
+ });
1117
+ var listDestroy = (options) => (options.client ?? client).delete({
1118
+ security: [{ scheme: "bearer", type: "http" }],
1119
+ url: "/v1/lists/{id}",
1120
+ ...options
1121
+ });
954
1122
  var listShow = (options) => (options.client ?? client).get({
955
1123
  security: [{ scheme: "bearer", type: "http" }],
956
1124
  url: "/v1/lists/{id}",
957
1125
  ...options
958
1126
  });
959
- // src/generated/nadeshiko.gen.ts
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
+ }
1135
+ });
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
+ }
1144
+ });
1145
+ var listRemoveItem = (options) => (options.client ?? client).delete({
1146
+ security: [{ scheme: "bearer", type: "http" }],
1147
+ url: "/v1/lists/{id}/items/{mediaId}",
1148
+ ...options
1149
+ });
1150
+ var listUpdateItem = (options) => (options.client ?? client).patch({
1151
+ security: [{ scheme: "bearer", type: "http" }],
1152
+ url: "/v1/lists/{id}/items/{mediaId}",
1153
+ ...options,
1154
+ headers: {
1155
+ "Content-Type": "application/json",
1156
+ ...options.headers
1157
+ }
1158
+ });
1159
+ var listGetSegments = (options) => (options.client ?? client).get({
1160
+ security: [{ scheme: "bearer", type: "http" }, {
1161
+ in: "cookie",
1162
+ name: "nadeshiko.session_token",
1163
+ type: "apiKey"
1164
+ }],
1165
+ url: "/v1/lists/{id}/segments",
1166
+ ...options
1167
+ });
1168
+ var listAddSegment = (options) => (options.client ?? client).post({
1169
+ security: [{ scheme: "bearer", type: "http" }, {
1170
+ in: "cookie",
1171
+ name: "nadeshiko.session_token",
1172
+ type: "apiKey"
1173
+ }],
1174
+ url: "/v1/lists/{id}/segments",
1175
+ ...options,
1176
+ headers: {
1177
+ "Content-Type": "application/json",
1178
+ ...options.headers
1179
+ }
1180
+ });
1181
+ var listRemoveSegment = (options) => (options.client ?? client).delete({
1182
+ security: [{ scheme: "bearer", type: "http" }, {
1183
+ in: "cookie",
1184
+ name: "nadeshiko.session_token",
1185
+ type: "apiKey"
1186
+ }],
1187
+ url: "/v1/lists/{id}/segments/{uuid}",
1188
+ ...options
1189
+ });
1190
+ var listUpdateSegment = (options) => (options.client ?? client).patch({
1191
+ security: [{ scheme: "bearer", type: "http" }, {
1192
+ in: "cookie",
1193
+ name: "nadeshiko.session_token",
1194
+ type: "apiKey"
1195
+ }],
1196
+ url: "/v1/lists/{id}/segments/{uuid}",
1197
+ ...options,
1198
+ headers: {
1199
+ "Content-Type": "application/json",
1200
+ ...options.headers
1201
+ }
1202
+ });
1203
+ var reindexElasticsearch = (options) => (options?.client ?? client).post({
1204
+ security: [{ scheme: "bearer", type: "http" }],
1205
+ url: "/v1/admin/reindex",
1206
+ ...options,
1207
+ headers: {
1208
+ "Content-Type": "application/json",
1209
+ ...options?.headers
1210
+ }
1211
+ });
1212
+ var getQueueStats = (options) => (options?.client ?? client).get({
1213
+ security: [{ scheme: "bearer", type: "http" }],
1214
+ url: "/v1/admin/queues/stats",
1215
+ ...options
1216
+ });
1217
+ var getQueueDetails = (options) => (options.client ?? client).get({
1218
+ security: [{ scheme: "bearer", type: "http" }],
1219
+ url: "/v1/admin/queues/{queueName}",
1220
+ ...options
1221
+ });
1222
+ var getFailedJobs = (options) => (options.client ?? client).get({
1223
+ security: [{ scheme: "bearer", type: "http" }],
1224
+ url: "/v1/admin/queues/{queueName}/failed",
1225
+ ...options
1226
+ });
1227
+ var retryQueueJobs = (options) => (options.client ?? client).post({
1228
+ security: [{ scheme: "bearer", type: "http" }],
1229
+ url: "/v1/admin/queues/{queueName}/retry",
1230
+ ...options
1231
+ });
1232
+ var purgeFailedJobs = (options) => (options.client ?? client).delete({
1233
+ security: [{ scheme: "bearer", type: "http" }],
1234
+ url: "/v1/admin/queues/{queueName}/purge",
1235
+ ...options
1236
+ });
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({
1247
+ security: [{ scheme: "bearer", type: "http" }],
1248
+ url: "/v1/admin/reports",
1249
+ ...options
1250
+ });
1251
+ var updateReport = (options) => (options.client ?? client).patch({
1252
+ security: [{ scheme: "bearer", type: "http" }],
1253
+ url: "/v1/admin/reports/{id}",
1254
+ ...options,
1255
+ headers: {
1256
+ "Content-Type": "application/json",
1257
+ ...options.headers
1258
+ }
1259
+ });
1260
+ // generated/internal/nadeshiko.gen.ts
960
1261
  var environments = {
961
1262
  LOCAL: "http://localhost:5000/api",
962
1263
  DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
@@ -970,11 +1271,11 @@ function createNadeshikoClient(config) {
970
1271
  }));
971
1272
  return {
972
1273
  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 }),
1274
+ searchSegments: (options) => searchSegments({ ...options, client: clientInstance }),
1275
+ getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
1276
+ searchWords: (options) => searchWords({ ...options, client: clientInstance }),
1277
+ getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
1278
+ browseMedia: (options) => browseMedia({ ...options, client: clientInstance }),
978
1279
  mediaIndex: (options) => mediaIndex({ ...options, client: clientInstance }),
979
1280
  mediaShow: (options) => mediaShow({ ...options, client: clientInstance }),
980
1281
  episodeIndex: (options) => episodeIndex({ ...options, client: clientInstance }),
@@ -983,11 +1284,73 @@ function createNadeshikoClient(config) {
983
1284
  segmentShowByUuid: (options) => segmentShowByUuid({ ...options, client: clientInstance }),
984
1285
  characterShow: (options) => characterShow({ ...options, client: clientInstance }),
985
1286
  seiyuuShow: (options) => seiyuuShow({ ...options, client: clientInstance }),
1287
+ getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
1288
+ createReport: (options) => createReport({ ...options, client: clientInstance }),
1289
+ getUserReports: (options) => getUserReports({ ...options, client: clientInstance }),
986
1290
  listIndex: (options) => listIndex({ ...options, client: clientInstance }),
987
- listShow: (options) => listShow({ ...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 })
988
1322
  };
989
1323
  }
990
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
1331
+ var exports_media_gen = {};
1332
+ __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
1353
+ });
991
1354
 
992
- //# debugId=AFB20C7D997C890E64756E2164756E21
1355
+ //# debugId=FC450958C5EB234C64756E2164756E21
993
1356
  //# sourceMappingURL=index.js.map