@brigadasos/nadeshiko-sdk 1.3.0 → 1.4.0-dev.2819d72

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 +534 -45
  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 +541 -41
  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 +74 -0
  30. package/dist/nadeshiko.gen.d.ts.map +1 -0
  31. package/dist/sdk.gen.d.ts +641 -0
  32. package/dist/sdk.gen.d.ts.map +1 -0
  33. package/dist/types.gen.d.ts +4793 -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,85 @@ 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
+ userExportShow: () => userExportShow,
38
+ userActivityStatsShow: () => userActivityStatsShow,
39
+ userActivityIndex: () => userActivityIndex,
40
+ userActivityDestroy: () => userActivityDestroy,
32
41
  seiyuuShow: () => seiyuuShow,
42
+ segmentUpdate: () => segmentUpdate,
33
43
  segmentShowByUuid: () => segmentShowByUuid,
34
44
  segmentShow: () => segmentShow,
35
- searchMultiple: () => searchMultiple,
36
- searchHealthCheck: () => searchHealthCheck,
37
- search: () => search,
45
+ segmentIndex: () => segmentIndex,
46
+ segmentDestroy: () => segmentDestroy,
47
+ segmentCreate: () => segmentCreate,
48
+ segmentContextShow: () => segmentContextShow,
49
+ searchWords: () => searchWords,
50
+ searchStats: () => searchStats,
51
+ searchIndex: () => searchIndex,
52
+ search: () => exports_search_gen,
53
+ mediaUpdate: () => mediaUpdate,
38
54
  mediaShow: () => mediaShow,
39
55
  mediaIndex: () => mediaIndex,
56
+ mediaDestroy: () => mediaDestroy,
57
+ mediaCreate: () => mediaCreate,
58
+ media: () => exports_media_gen,
59
+ lists: () => exports_lists_gen,
60
+ listUpdateSegment: () => listUpdateSegment,
61
+ listUpdateItem: () => listUpdateItem,
62
+ listUpdate: () => listUpdate,
40
63
  listShow: () => listShow,
64
+ listRemoveSegment: () => listRemoveSegment,
65
+ listRemoveItem: () => listRemoveItem,
41
66
  listIndex: () => listIndex,
42
- fetchSentenceContext: () => fetchSentenceContext,
43
- fetchMediaInfo: () => fetchMediaInfo,
67
+ listGetSegments: () => listGetSegments,
68
+ listDestroy: () => listDestroy,
69
+ listCreate: () => listCreate,
70
+ listAddSegment: () => listAddSegment,
71
+ listAddItem: () => listAddItem,
72
+ labIndex: () => labIndex,
73
+ healthCheck: () => healthCheck,
74
+ episodeUpdate: () => episodeUpdate,
44
75
  episodeShow: () => episodeShow,
45
76
  episodeIndex: () => episodeIndex,
77
+ episodeDestroy: () => episodeDestroy,
78
+ episodeCreate: () => episodeCreate,
46
79
  createNadeshikoClient: () => createNadeshikoClient,
47
80
  createClient: () => createClient2,
48
81
  client: () => client,
49
- characterShow: () => characterShow
82
+ characterShow: () => characterShow,
83
+ adminReviewRunShow: () => adminReviewRunShow,
84
+ adminReviewRunIndex: () => adminReviewRunIndex,
85
+ adminReviewRunCreate: () => adminReviewRunCreate,
86
+ adminReviewCheckUpdate: () => adminReviewCheckUpdate,
87
+ adminReviewCheckIndex: () => adminReviewCheckIndex,
88
+ adminReviewAllowlistIndex: () => adminReviewAllowlistIndex,
89
+ adminReviewAllowlistDestroy: () => adminReviewAllowlistDestroy,
90
+ adminReviewAllowlistCreate: () => adminReviewAllowlistCreate,
91
+ adminReportUpdate: () => adminReportUpdate,
92
+ adminReportIndex: () => adminReportIndex,
93
+ adminReindexCreate: () => adminReindexCreate,
94
+ adminQueueStatsIndex: () => adminQueueStatsIndex,
95
+ adminQueueShow: () => adminQueueShow,
96
+ adminQueueRetryCreate: () => adminQueueRetryCreate,
97
+ adminQueueFailedIndex: () => adminQueueFailedIndex,
98
+ adminQueueFailedDestroy: () => adminQueueFailedDestroy,
99
+ adminMorphemeBackfillCreate: () => adminMorphemeBackfillCreate
50
100
  });
51
- module.exports = __toCommonJS(exports_src);
101
+ module.exports = __toCommonJS(exports_dev);
52
102
 
53
- // src/generated/core/bodySerializer.gen.ts
103
+ // generated/dev/core/bodySerializer.gen.ts
54
104
  var jsonBodySerializer = {
55
105
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
56
106
  };
57
- // src/generated/core/params.gen.ts
107
+ // generated/dev/core/params.gen.ts
58
108
  var extraPrefixesMap = {
59
109
  $body_: "body",
60
110
  $headers_: "headers",
@@ -62,7 +112,7 @@ var extraPrefixesMap = {
62
112
  $query_: "query"
63
113
  };
64
114
  var extraPrefixes = Object.entries(extraPrefixesMap);
65
- // src/generated/core/serverSentEvents.gen.ts
115
+ // generated/dev/core/serverSentEvents.gen.ts
66
116
  var createSseClient = ({
67
117
  onRequest,
68
118
  onSseError,
@@ -198,7 +248,7 @@ var createSseClient = ({
198
248
  return { stream };
199
249
  };
200
250
 
201
- // src/generated/core/pathSerializer.gen.ts
251
+ // generated/dev/core/pathSerializer.gen.ts
202
252
  var separatorArrayExplode = (style) => {
203
253
  switch (style) {
204
254
  case "label":
@@ -322,7 +372,7 @@ var serializeObjectParam = ({
322
372
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
323
373
  };
324
374
 
325
- // src/generated/core/utils.gen.ts
375
+ // generated/dev/core/utils.gen.ts
326
376
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
327
377
  var defaultPathSerializer = ({ path, url: _url }) => {
328
378
  let url = _url;
@@ -411,7 +461,7 @@ function getValidRequestBody(options) {
411
461
  return;
412
462
  }
413
463
 
414
- // src/generated/core/auth.gen.ts
464
+ // generated/dev/core/auth.gen.ts
415
465
  var getAuthToken = async (auth, callback) => {
416
466
  const token = typeof callback === "function" ? await callback(auth) : callback;
417
467
  if (!token) {
@@ -426,7 +476,7 @@ var getAuthToken = async (auth, callback) => {
426
476
  return token;
427
477
  };
428
478
 
429
- // src/generated/client/utils.gen.ts
479
+ // generated/dev/client/utils.gen.ts
430
480
  var createQuerySerializer = ({
431
481
  parameters = {},
432
482
  ...args
@@ -643,7 +693,7 @@ var createConfig = (override = {}) => ({
643
693
  ...override
644
694
  });
645
695
 
646
- // src/generated/client/client.gen.ts
696
+ // generated/dev/client/client.gen.ts
647
697
  var createClient = (config = {}) => {
648
698
  let _config = mergeConfigs(createConfig(), config);
649
699
  const getConfig = () => ({ ..._config });
@@ -849,66 +899,71 @@ var createClient = (config = {}) => {
849
899
  trace: makeMethodFn("TRACE")
850
900
  };
851
901
  };
852
- // src/generated/client.gen.ts
902
+ // generated/dev/client.gen.ts
853
903
  var client = createClient(createConfig({ baseUrl: "http://localhost:5000" }));
854
904
 
855
- // src/generated/sdk.gen.ts
856
- var searchHealthCheck = (options) => (options?.client ?? client).get({
905
+ // generated/dev/sdk.gen.ts
906
+ var healthCheck = (options) => (options?.client ?? client).get({
857
907
  security: [{ scheme: "bearer", type: "http" }],
858
- url: "/v1/search/health",
908
+ url: "/v1/health",
859
909
  ...options
860
910
  });
861
- var search = (options) => (options?.client ?? client).post({
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,91 @@ 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
+ });
939
1059
  var characterShow = (options) => (options.client ?? client).get({
940
1060
  security: [{ scheme: "bearer", type: "http" }],
941
1061
  url: "/v1/media/characters/{id}",
@@ -946,17 +1066,310 @@ var seiyuuShow = (options) => (options.client ?? client).get({
946
1066
  url: "/v1/media/seiyuu/{id}",
947
1067
  ...options
948
1068
  });
1069
+ var userQuotaShow = (options) => (options?.client ?? client).get({
1070
+ security: [{
1071
+ in: "cookie",
1072
+ name: "nadeshiko.session_token",
1073
+ type: "apiKey"
1074
+ }],
1075
+ url: "/v1/user/quota",
1076
+ ...options
1077
+ });
1078
+ var userReportIndex = (options) => (options?.client ?? client).get({
1079
+ security: [{
1080
+ in: "cookie",
1081
+ name: "nadeshiko.session_token",
1082
+ type: "apiKey"
1083
+ }],
1084
+ url: "/v1/user/reports",
1085
+ ...options
1086
+ });
1087
+ var userReportCreate = (options) => (options.client ?? client).post({
1088
+ security: [{
1089
+ in: "cookie",
1090
+ name: "nadeshiko.session_token",
1091
+ type: "apiKey"
1092
+ }],
1093
+ url: "/v1/user/reports",
1094
+ ...options,
1095
+ headers: {
1096
+ "Content-Type": "application/json",
1097
+ ...options.headers
1098
+ }
1099
+ });
1100
+ var userPreferencesShow = (options) => (options?.client ?? client).get({
1101
+ security: [{
1102
+ in: "cookie",
1103
+ name: "nadeshiko.session_token",
1104
+ type: "apiKey"
1105
+ }],
1106
+ url: "/v1/user/preferences",
1107
+ ...options
1108
+ });
1109
+ var userPreferencesUpdate = (options) => (options.client ?? client).patch({
1110
+ security: [{
1111
+ in: "cookie",
1112
+ name: "nadeshiko.session_token",
1113
+ type: "apiKey"
1114
+ }],
1115
+ url: "/v1/user/preferences",
1116
+ ...options,
1117
+ headers: {
1118
+ "Content-Type": "application/json",
1119
+ ...options.headers
1120
+ }
1121
+ });
1122
+ var userActivityDestroy = (options) => (options?.client ?? client).delete({
1123
+ security: [{
1124
+ in: "cookie",
1125
+ name: "nadeshiko.session_token",
1126
+ type: "apiKey"
1127
+ }],
1128
+ url: "/v1/user/activity",
1129
+ ...options
1130
+ });
1131
+ var userActivityIndex = (options) => (options?.client ?? client).get({
1132
+ security: [{
1133
+ in: "cookie",
1134
+ name: "nadeshiko.session_token",
1135
+ type: "apiKey"
1136
+ }],
1137
+ url: "/v1/user/activity",
1138
+ ...options
1139
+ });
1140
+ var userActivityStatsShow = (options) => (options?.client ?? client).get({
1141
+ security: [{
1142
+ in: "cookie",
1143
+ name: "nadeshiko.session_token",
1144
+ type: "apiKey"
1145
+ }],
1146
+ url: "/v1/user/activity/stats",
1147
+ ...options
1148
+ });
1149
+ var userExportShow = (options) => (options?.client ?? client).get({
1150
+ security: [{
1151
+ in: "cookie",
1152
+ name: "nadeshiko.session_token",
1153
+ type: "apiKey"
1154
+ }],
1155
+ url: "/v1/user/export",
1156
+ ...options
1157
+ });
1158
+ var labIndex = (options) => (options?.client ?? client).get({
1159
+ security: [{ scheme: "bearer", type: "http" }, {
1160
+ in: "cookie",
1161
+ name: "nadeshiko.session_token",
1162
+ type: "apiKey"
1163
+ }],
1164
+ url: "/v1/labs",
1165
+ ...options
1166
+ });
949
1167
  var listIndex = (options) => (options?.client ?? client).get({
950
1168
  security: [{ scheme: "bearer", type: "http" }],
951
1169
  url: "/v1/lists",
952
1170
  ...options
953
1171
  });
1172
+ var listCreate = (options) => (options.client ?? client).post({
1173
+ security: [{ scheme: "bearer", type: "http" }],
1174
+ url: "/v1/lists",
1175
+ ...options,
1176
+ headers: {
1177
+ "Content-Type": "application/json",
1178
+ ...options.headers
1179
+ }
1180
+ });
1181
+ var listDestroy = (options) => (options.client ?? client).delete({
1182
+ security: [{ scheme: "bearer", type: "http" }],
1183
+ url: "/v1/lists/{id}",
1184
+ ...options
1185
+ });
954
1186
  var listShow = (options) => (options.client ?? client).get({
955
1187
  security: [{ scheme: "bearer", type: "http" }],
956
1188
  url: "/v1/lists/{id}",
957
1189
  ...options
958
1190
  });
959
- // src/generated/nadeshiko.gen.ts
1191
+ var listUpdate = (options) => (options.client ?? client).patch({
1192
+ security: [{ scheme: "bearer", type: "http" }],
1193
+ url: "/v1/lists/{id}",
1194
+ ...options,
1195
+ headers: {
1196
+ "Content-Type": "application/json",
1197
+ ...options.headers
1198
+ }
1199
+ });
1200
+ var listAddItem = (options) => (options.client ?? client).post({
1201
+ security: [{ scheme: "bearer", type: "http" }],
1202
+ url: "/v1/lists/{id}/items",
1203
+ ...options,
1204
+ headers: {
1205
+ "Content-Type": "application/json",
1206
+ ...options.headers
1207
+ }
1208
+ });
1209
+ var listRemoveItem = (options) => (options.client ?? client).delete({
1210
+ security: [{ scheme: "bearer", type: "http" }],
1211
+ url: "/v1/lists/{id}/items/{mediaId}",
1212
+ ...options
1213
+ });
1214
+ var listUpdateItem = (options) => (options.client ?? client).patch({
1215
+ security: [{ scheme: "bearer", type: "http" }],
1216
+ url: "/v1/lists/{id}/items/{mediaId}",
1217
+ ...options,
1218
+ headers: {
1219
+ "Content-Type": "application/json",
1220
+ ...options.headers
1221
+ }
1222
+ });
1223
+ var listGetSegments = (options) => (options.client ?? client).get({
1224
+ security: [{ scheme: "bearer", type: "http" }, {
1225
+ in: "cookie",
1226
+ name: "nadeshiko.session_token",
1227
+ type: "apiKey"
1228
+ }],
1229
+ url: "/v1/lists/{id}/segments",
1230
+ ...options
1231
+ });
1232
+ var listAddSegment = (options) => (options.client ?? client).post({
1233
+ security: [{ scheme: "bearer", type: "http" }, {
1234
+ in: "cookie",
1235
+ name: "nadeshiko.session_token",
1236
+ type: "apiKey"
1237
+ }],
1238
+ url: "/v1/lists/{id}/segments",
1239
+ ...options,
1240
+ headers: {
1241
+ "Content-Type": "application/json",
1242
+ ...options.headers
1243
+ }
1244
+ });
1245
+ var listRemoveSegment = (options) => (options.client ?? client).delete({
1246
+ security: [{ scheme: "bearer", type: "http" }, {
1247
+ in: "cookie",
1248
+ name: "nadeshiko.session_token",
1249
+ type: "apiKey"
1250
+ }],
1251
+ url: "/v1/lists/{id}/segments/{uuid}",
1252
+ ...options
1253
+ });
1254
+ var listUpdateSegment = (options) => (options.client ?? client).patch({
1255
+ security: [{ scheme: "bearer", type: "http" }, {
1256
+ in: "cookie",
1257
+ name: "nadeshiko.session_token",
1258
+ type: "apiKey"
1259
+ }],
1260
+ url: "/v1/lists/{id}/segments/{uuid}",
1261
+ ...options,
1262
+ headers: {
1263
+ "Content-Type": "application/json",
1264
+ ...options.headers
1265
+ }
1266
+ });
1267
+ var adminReindexCreate = (options) => (options?.client ?? client).post({
1268
+ security: [{ scheme: "bearer", type: "http" }],
1269
+ url: "/v1/admin/reindex",
1270
+ ...options,
1271
+ headers: {
1272
+ "Content-Type": "application/json",
1273
+ ...options?.headers
1274
+ }
1275
+ });
1276
+ var adminQueueStatsIndex = (options) => (options?.client ?? client).get({
1277
+ security: [{ scheme: "bearer", type: "http" }],
1278
+ url: "/v1/admin/queues/stats",
1279
+ ...options
1280
+ });
1281
+ var adminQueueShow = (options) => (options.client ?? client).get({
1282
+ security: [{ scheme: "bearer", type: "http" }],
1283
+ url: "/v1/admin/queues/{queueName}",
1284
+ ...options
1285
+ });
1286
+ var adminQueueFailedIndex = (options) => (options.client ?? client).get({
1287
+ security: [{ scheme: "bearer", type: "http" }],
1288
+ url: "/v1/admin/queues/{queueName}/failed",
1289
+ ...options
1290
+ });
1291
+ var adminQueueRetryCreate = (options) => (options.client ?? client).post({
1292
+ security: [{ scheme: "bearer", type: "http" }],
1293
+ url: "/v1/admin/queues/{queueName}/retry",
1294
+ ...options
1295
+ });
1296
+ var adminQueueFailedDestroy = (options) => (options.client ?? client).delete({
1297
+ security: [{ scheme: "bearer", type: "http" }],
1298
+ url: "/v1/admin/queues/{queueName}/purge",
1299
+ ...options
1300
+ });
1301
+ var adminMorphemeBackfillCreate = (options) => (options?.client ?? client).post({
1302
+ security: [{ scheme: "bearer", type: "http" }, {
1303
+ in: "cookie",
1304
+ name: "nadeshiko.session_token",
1305
+ type: "apiKey"
1306
+ }],
1307
+ url: "/v1/admin/morpheme-backfill",
1308
+ ...options
1309
+ });
1310
+ var adminReportIndex = (options) => (options?.client ?? client).get({
1311
+ security: [{ scheme: "bearer", type: "http" }],
1312
+ url: "/v1/admin/reports",
1313
+ ...options
1314
+ });
1315
+ var adminReportUpdate = (options) => (options.client ?? client).patch({
1316
+ security: [{ scheme: "bearer", type: "http" }],
1317
+ url: "/v1/admin/reports/{id}",
1318
+ ...options,
1319
+ headers: {
1320
+ "Content-Type": "application/json",
1321
+ ...options.headers
1322
+ }
1323
+ });
1324
+ var adminReviewRunCreate = (options) => (options?.client ?? client).post({
1325
+ security: [{ scheme: "bearer", type: "http" }],
1326
+ url: "/v1/admin/review/run",
1327
+ ...options
1328
+ });
1329
+ var adminReviewCheckIndex = (options) => (options?.client ?? client).get({
1330
+ security: [{ scheme: "bearer", type: "http" }],
1331
+ url: "/v1/admin/review/checks",
1332
+ ...options
1333
+ });
1334
+ var adminReviewCheckUpdate = (options) => (options.client ?? client).patch({
1335
+ security: [{ scheme: "bearer", type: "http" }],
1336
+ url: "/v1/admin/review/checks/{name}",
1337
+ ...options,
1338
+ headers: {
1339
+ "Content-Type": "application/json",
1340
+ ...options.headers
1341
+ }
1342
+ });
1343
+ var adminReviewRunIndex = (options) => (options?.client ?? client).get({
1344
+ security: [{ scheme: "bearer", type: "http" }],
1345
+ url: "/v1/admin/review/runs",
1346
+ ...options
1347
+ });
1348
+ var adminReviewRunShow = (options) => (options.client ?? client).get({
1349
+ security: [{ scheme: "bearer", type: "http" }],
1350
+ url: "/v1/admin/review/runs/{id}",
1351
+ ...options
1352
+ });
1353
+ var adminReviewAllowlistIndex = (options) => (options?.client ?? client).get({
1354
+ security: [{ scheme: "bearer", type: "http" }],
1355
+ url: "/v1/admin/review/allowlist",
1356
+ ...options
1357
+ });
1358
+ var adminReviewAllowlistCreate = (options) => (options.client ?? client).post({
1359
+ security: [{ scheme: "bearer", type: "http" }],
1360
+ url: "/v1/admin/review/allowlist",
1361
+ ...options,
1362
+ headers: {
1363
+ "Content-Type": "application/json",
1364
+ ...options.headers
1365
+ }
1366
+ });
1367
+ var adminReviewAllowlistDestroy = (options) => (options.client ?? client).delete({
1368
+ security: [{ scheme: "bearer", type: "http" }],
1369
+ url: "/v1/admin/review/allowlist/{id}",
1370
+ ...options
1371
+ });
1372
+ // generated/dev/nadeshiko.gen.ts
960
1373
  var environments = {
961
1374
  LOCAL: "http://localhost:5000/api",
962
1375
  DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
@@ -970,24 +1383,100 @@ function createNadeshikoClient(config) {
970
1383
  }));
971
1384
  return {
972
1385
  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 }),
1386
+ searchIndex: (options) => searchIndex({ ...options, client: clientInstance }),
1387
+ searchStats: (options) => searchStats({ ...options, client: clientInstance }),
1388
+ searchWords: (options) => searchWords({ ...options, client: clientInstance }),
978
1389
  mediaIndex: (options) => mediaIndex({ ...options, client: clientInstance }),
979
1390
  mediaShow: (options) => mediaShow({ ...options, client: clientInstance }),
980
1391
  episodeIndex: (options) => episodeIndex({ ...options, client: clientInstance }),
981
1392
  episodeShow: (options) => episodeShow({ ...options, client: clientInstance }),
982
1393
  segmentShow: (options) => segmentShow({ ...options, client: clientInstance }),
983
1394
  segmentShowByUuid: (options) => segmentShowByUuid({ ...options, client: clientInstance }),
1395
+ segmentContextShow: (options) => segmentContextShow({ ...options, client: clientInstance }),
984
1396
  characterShow: (options) => characterShow({ ...options, client: clientInstance }),
985
1397
  seiyuuShow: (options) => seiyuuShow({ ...options, client: clientInstance }),
1398
+ userQuotaShow: (options) => userQuotaShow({ ...options, client: clientInstance }),
1399
+ userReportCreate: (options) => userReportCreate({ ...options, client: clientInstance }),
1400
+ userReportIndex: (options) => userReportIndex({ ...options, client: clientInstance }),
1401
+ userPreferencesShow: (options) => userPreferencesShow({ ...options, client: clientInstance }),
1402
+ userPreferencesUpdate: (options) => userPreferencesUpdate({ ...options, client: clientInstance }),
1403
+ userActivityIndex: (options) => userActivityIndex({ ...options, client: clientInstance }),
1404
+ userActivityDestroy: (options) => userActivityDestroy({ ...options, client: clientInstance }),
1405
+ userActivityStatsShow: (options) => userActivityStatsShow({ ...options, client: clientInstance }),
1406
+ userExportShow: (options) => userExportShow({ ...options, client: clientInstance }),
1407
+ labIndex: (options) => labIndex({ ...options, client: clientInstance }),
986
1408
  listIndex: (options) => listIndex({ ...options, client: clientInstance }),
987
- listShow: (options) => listShow({ ...options, client: clientInstance })
1409
+ listShow: (options) => listShow({ ...options, client: clientInstance }),
1410
+ listGetSegments: (options) => listGetSegments({ ...options, client: clientInstance }),
1411
+ listAddSegment: (options) => listAddSegment({ ...options, client: clientInstance }),
1412
+ listUpdateSegment: (options) => listUpdateSegment({ ...options, client: clientInstance }),
1413
+ listRemoveSegment: (options) => listRemoveSegment({ ...options, client: clientInstance }),
1414
+ adminReindexCreate: (options) => adminReindexCreate({ ...options, client: clientInstance }),
1415
+ adminQueueStatsIndex: (options) => adminQueueStatsIndex({ ...options, client: clientInstance }),
1416
+ adminQueueShow: (options) => adminQueueShow({ ...options, client: clientInstance }),
1417
+ adminQueueFailedIndex: (options) => adminQueueFailedIndex({ ...options, client: clientInstance }),
1418
+ adminQueueRetryCreate: (options) => adminQueueRetryCreate({ ...options, client: clientInstance }),
1419
+ adminQueueFailedDestroy: (options) => adminQueueFailedDestroy({ ...options, client: clientInstance }),
1420
+ adminMorphemeBackfillCreate: (options) => adminMorphemeBackfillCreate({ ...options, client: clientInstance }),
1421
+ adminReportIndex: (options) => adminReportIndex({ ...options, client: clientInstance }),
1422
+ adminReportUpdate: (options) => adminReportUpdate({ ...options, client: clientInstance }),
1423
+ adminReviewRunCreate: (options) => adminReviewRunCreate({ ...options, client: clientInstance }),
1424
+ adminReviewCheckIndex: (options) => adminReviewCheckIndex({ ...options, client: clientInstance }),
1425
+ adminReviewCheckUpdate: (options) => adminReviewCheckUpdate({ ...options, client: clientInstance }),
1426
+ adminReviewRunIndex: (options) => adminReviewRunIndex({ ...options, client: clientInstance }),
1427
+ adminReviewRunShow: (options) => adminReviewRunShow({ ...options, client: clientInstance }),
1428
+ adminReviewAllowlistIndex: (options) => adminReviewAllowlistIndex({ ...options, client: clientInstance }),
1429
+ adminReviewAllowlistCreate: (options) => adminReviewAllowlistCreate({ ...options, client: clientInstance }),
1430
+ adminReviewAllowlistDestroy: (options) => adminReviewAllowlistDestroy({ ...options, client: clientInstance }),
1431
+ healthCheck: (options) => healthCheck({ ...options, client: clientInstance }),
1432
+ mediaCreate: (options) => mediaCreate({ ...options, client: clientInstance }),
1433
+ mediaUpdate: (options) => mediaUpdate({ ...options, client: clientInstance }),
1434
+ mediaDestroy: (options) => mediaDestroy({ ...options, client: clientInstance }),
1435
+ episodeCreate: (options) => episodeCreate({ ...options, client: clientInstance }),
1436
+ episodeUpdate: (options) => episodeUpdate({ ...options, client: clientInstance }),
1437
+ episodeDestroy: (options) => episodeDestroy({ ...options, client: clientInstance }),
1438
+ segmentIndex: (options) => segmentIndex({ ...options, client: clientInstance }),
1439
+ segmentCreate: (options) => segmentCreate({ ...options, client: clientInstance }),
1440
+ segmentUpdate: (options) => segmentUpdate({ ...options, client: clientInstance }),
1441
+ segmentDestroy: (options) => segmentDestroy({ ...options, client: clientInstance }),
1442
+ listCreate: (options) => listCreate({ ...options, client: clientInstance }),
1443
+ listUpdate: (options) => listUpdate({ ...options, client: clientInstance }),
1444
+ listDestroy: (options) => listDestroy({ ...options, client: clientInstance }),
1445
+ listAddItem: (options) => listAddItem({ ...options, client: clientInstance }),
1446
+ listUpdateItem: (options) => listUpdateItem({ ...options, client: clientInstance }),
1447
+ listRemoveItem: (options) => listRemoveItem({ ...options, client: clientInstance })
988
1448
  };
989
1449
  }
990
1450
  var createClient2 = createNadeshikoClient;
1451
+ // generated/dev/internal/search.gen.ts
1452
+ var exports_search_gen = {};
1453
+ __export(exports_search_gen, {
1454
+ healthCheck: () => healthCheck
1455
+ });
1456
+ // generated/dev/internal/media.gen.ts
1457
+ var exports_media_gen = {};
1458
+ __export(exports_media_gen, {
1459
+ segmentUpdate: () => segmentUpdate,
1460
+ segmentIndex: () => segmentIndex,
1461
+ segmentDestroy: () => segmentDestroy,
1462
+ segmentCreate: () => segmentCreate,
1463
+ mediaUpdate: () => mediaUpdate,
1464
+ mediaDestroy: () => mediaDestroy,
1465
+ mediaCreate: () => mediaCreate,
1466
+ episodeUpdate: () => episodeUpdate,
1467
+ episodeDestroy: () => episodeDestroy,
1468
+ episodeCreate: () => episodeCreate
1469
+ });
1470
+ // generated/dev/internal/lists.gen.ts
1471
+ var exports_lists_gen = {};
1472
+ __export(exports_lists_gen, {
1473
+ listUpdateItem: () => listUpdateItem,
1474
+ listUpdate: () => listUpdate,
1475
+ listRemoveItem: () => listRemoveItem,
1476
+ listDestroy: () => listDestroy,
1477
+ listCreate: () => listCreate,
1478
+ listAddItem: () => listAddItem
1479
+ });
991
1480
 
992
- //# debugId=AFB20C7D997C890E64756E2164756E21
1481
+ //# debugId=BF824D857B17D1BC64756E2164756E21
993
1482
  //# sourceMappingURL=index.js.map