@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.js CHANGED
@@ -1,8 +1,19 @@
1
- // src/generated/core/bodySerializer.gen.ts
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, {
5
+ get: all[name],
6
+ enumerable: true,
7
+ configurable: true,
8
+ set: (newValue) => all[name] = () => newValue
9
+ });
10
+ };
11
+
12
+ // generated/dev/core/bodySerializer.gen.ts
2
13
  var jsonBodySerializer = {
3
14
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
4
15
  };
5
- // src/generated/core/params.gen.ts
16
+ // generated/dev/core/params.gen.ts
6
17
  var extraPrefixesMap = {
7
18
  $body_: "body",
8
19
  $headers_: "headers",
@@ -10,7 +21,7 @@ var extraPrefixesMap = {
10
21
  $query_: "query"
11
22
  };
12
23
  var extraPrefixes = Object.entries(extraPrefixesMap);
13
- // src/generated/core/serverSentEvents.gen.ts
24
+ // generated/dev/core/serverSentEvents.gen.ts
14
25
  var createSseClient = ({
15
26
  onRequest,
16
27
  onSseError,
@@ -146,7 +157,7 @@ var createSseClient = ({
146
157
  return { stream };
147
158
  };
148
159
 
149
- // src/generated/core/pathSerializer.gen.ts
160
+ // generated/dev/core/pathSerializer.gen.ts
150
161
  var separatorArrayExplode = (style) => {
151
162
  switch (style) {
152
163
  case "label":
@@ -270,7 +281,7 @@ var serializeObjectParam = ({
270
281
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
271
282
  };
272
283
 
273
- // src/generated/core/utils.gen.ts
284
+ // generated/dev/core/utils.gen.ts
274
285
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
275
286
  var defaultPathSerializer = ({ path, url: _url }) => {
276
287
  let url = _url;
@@ -359,7 +370,7 @@ function getValidRequestBody(options) {
359
370
  return;
360
371
  }
361
372
 
362
- // src/generated/core/auth.gen.ts
373
+ // generated/dev/core/auth.gen.ts
363
374
  var getAuthToken = async (auth, callback) => {
364
375
  const token = typeof callback === "function" ? await callback(auth) : callback;
365
376
  if (!token) {
@@ -374,7 +385,7 @@ var getAuthToken = async (auth, callback) => {
374
385
  return token;
375
386
  };
376
387
 
377
- // src/generated/client/utils.gen.ts
388
+ // generated/dev/client/utils.gen.ts
378
389
  var createQuerySerializer = ({
379
390
  parameters = {},
380
391
  ...args
@@ -591,7 +602,7 @@ var createConfig = (override = {}) => ({
591
602
  ...override
592
603
  });
593
604
 
594
- // src/generated/client/client.gen.ts
605
+ // generated/dev/client/client.gen.ts
595
606
  var createClient = (config = {}) => {
596
607
  let _config = mergeConfigs(createConfig(), config);
597
608
  const getConfig = () => ({ ..._config });
@@ -797,66 +808,66 @@ var createClient = (config = {}) => {
797
808
  trace: makeMethodFn("TRACE")
798
809
  };
799
810
  };
800
- // src/generated/client.gen.ts
811
+ // generated/dev/client.gen.ts
801
812
  var client = createClient(createConfig({ baseUrl: "http://localhost:5000" }));
802
813
 
803
- // src/generated/sdk.gen.ts
804
- var searchHealthCheck = (options) => (options?.client ?? client).get({
805
- security: [{ scheme: "bearer", type: "http" }],
806
- url: "/v1/search/health",
807
- ...options
808
- });
809
- var search = (options) => (options?.client ?? client).post({
814
+ // generated/dev/sdk.gen.ts
815
+ var searchIndex = (options) => (options?.client ?? client).post({
810
816
  security: [{ scheme: "bearer", type: "http" }, {
811
817
  in: "cookie",
812
818
  name: "nadeshiko.session_token",
813
819
  type: "apiKey"
814
820
  }],
815
- url: "/v1/search/media/sentence",
821
+ url: "/v1/search",
816
822
  ...options,
817
823
  headers: {
818
824
  "Content-Type": "application/json",
819
825
  ...options?.headers
820
826
  }
821
827
  });
822
- var searchMultiple = (options) => (options.client ?? client).post({
828
+ var searchStats = (options) => (options?.client ?? client).post({
823
829
  security: [{ scheme: "bearer", type: "http" }, {
824
830
  in: "cookie",
825
831
  name: "nadeshiko.session_token",
826
832
  type: "apiKey"
827
833
  }],
828
- url: "/v1/search/media/match/words",
834
+ url: "/v1/search/stats",
829
835
  ...options,
830
836
  headers: {
831
837
  "Content-Type": "application/json",
832
- ...options.headers
838
+ ...options?.headers
833
839
  }
834
840
  });
835
- var fetchSentenceContext = (options) => (options.client ?? client).post({
841
+ var searchWords = (options) => (options.client ?? client).post({
836
842
  security: [{ scheme: "bearer", type: "http" }, {
837
843
  in: "cookie",
838
844
  name: "nadeshiko.session_token",
839
845
  type: "apiKey"
840
846
  }],
841
- url: "/v1/search/media/context",
847
+ url: "/v1/search/words",
842
848
  ...options,
843
849
  headers: {
844
850
  "Content-Type": "application/json",
845
851
  ...options.headers
846
852
  }
847
853
  });
848
- var fetchMediaInfo = (options) => (options?.client ?? client).get({
849
- security: [{ scheme: "bearer", type: "http" }, {
850
- in: "cookie",
851
- name: "nadeshiko.session_token",
852
- type: "apiKey"
853
- }],
854
- url: "/v1/search/media/info",
854
+ var mediaIndex = (options) => (options?.client ?? client).get({
855
+ security: [{ scheme: "bearer", type: "http" }],
856
+ url: "/v1/media",
855
857
  ...options
856
858
  });
857
- var mediaIndex = (options) => (options?.client ?? client).get({
859
+ var mediaCreate = (options) => (options.client ?? client).post({
858
860
  security: [{ scheme: "bearer", type: "http" }],
859
861
  url: "/v1/media",
862
+ ...options,
863
+ headers: {
864
+ "Content-Type": "application/json",
865
+ ...options.headers
866
+ }
867
+ });
868
+ var mediaDestroy = (options) => (options.client ?? client).delete({
869
+ security: [{ scheme: "bearer", type: "http" }],
870
+ url: "/v1/media/{id}",
860
871
  ...options
861
872
  });
862
873
  var mediaShow = (options) => (options.client ?? client).get({
@@ -864,26 +875,155 @@ var mediaShow = (options) => (options.client ?? client).get({
864
875
  url: "/v1/media/{id}",
865
876
  ...options
866
877
  });
878
+ var mediaUpdate = (options) => (options.client ?? client).patch({
879
+ security: [{ scheme: "bearer", type: "http" }],
880
+ url: "/v1/media/{id}",
881
+ ...options,
882
+ headers: {
883
+ "Content-Type": "application/json",
884
+ ...options.headers
885
+ }
886
+ });
867
887
  var episodeIndex = (options) => (options.client ?? client).get({
868
888
  security: [{ scheme: "bearer", type: "http" }],
869
889
  url: "/v1/media/{mediaId}/episodes",
870
890
  ...options
871
891
  });
892
+ var episodeCreate = (options) => (options.client ?? client).post({
893
+ security: [{ scheme: "bearer", type: "http" }],
894
+ url: "/v1/media/{mediaId}/episodes",
895
+ ...options,
896
+ headers: {
897
+ "Content-Type": "application/json",
898
+ ...options.headers
899
+ }
900
+ });
901
+ var episodeDestroy = (options) => (options.client ?? client).delete({
902
+ security: [{ scheme: "bearer", type: "http" }],
903
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
904
+ ...options
905
+ });
872
906
  var episodeShow = (options) => (options.client ?? client).get({
873
907
  security: [{ scheme: "bearer", type: "http" }],
874
908
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
875
909
  ...options
876
910
  });
911
+ var episodeUpdate = (options) => (options.client ?? client).patch({
912
+ security: [{ scheme: "bearer", type: "http" }],
913
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
914
+ ...options,
915
+ headers: {
916
+ "Content-Type": "application/json",
917
+ ...options.headers
918
+ }
919
+ });
920
+ var segmentIndex = (options) => (options.client ?? client).get({
921
+ security: [{ scheme: "bearer", type: "http" }],
922
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
923
+ ...options
924
+ });
925
+ var segmentCreate = (options) => (options.client ?? client).post({
926
+ security: [{ scheme: "bearer", type: "http" }],
927
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
928
+ ...options,
929
+ headers: {
930
+ "Content-Type": "application/json",
931
+ ...options.headers
932
+ }
933
+ });
934
+ var segmentDestroy = (options) => (options.client ?? client).delete({
935
+ security: [{ scheme: "bearer", type: "http" }],
936
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
937
+ ...options
938
+ });
877
939
  var segmentShow = (options) => (options.client ?? client).get({
878
940
  security: [{ scheme: "bearer", type: "http" }],
879
941
  url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
880
942
  ...options
881
943
  });
944
+ var segmentUpdate = (options) => (options.client ?? client).patch({
945
+ security: [{ scheme: "bearer", type: "http" }],
946
+ url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
947
+ ...options,
948
+ headers: {
949
+ "Content-Type": "application/json",
950
+ ...options.headers
951
+ }
952
+ });
882
953
  var segmentShowByUuid = (options) => (options.client ?? client).get({
883
954
  security: [{ scheme: "bearer", type: "http" }],
884
955
  url: "/v1/media/segments/{uuid}",
885
956
  ...options
886
957
  });
958
+ var segmentContextShow = (options) => (options.client ?? client).get({
959
+ security: [{ scheme: "bearer", type: "http" }],
960
+ url: "/v1/media/segments/{uuid}/context",
961
+ ...options
962
+ });
963
+ var seriesIndex = (options) => (options?.client ?? client).get({
964
+ security: [{ scheme: "bearer", type: "http" }, {
965
+ in: "cookie",
966
+ name: "nadeshiko.session_token",
967
+ type: "apiKey"
968
+ }],
969
+ url: "/v1/media/series",
970
+ ...options
971
+ });
972
+ var seriesCreate = (options) => (options.client ?? client).post({
973
+ security: [{ scheme: "bearer", type: "http" }],
974
+ url: "/v1/media/series",
975
+ ...options,
976
+ headers: {
977
+ "Content-Type": "application/json",
978
+ ...options.headers
979
+ }
980
+ });
981
+ var seriesDestroy = (options) => (options.client ?? client).delete({
982
+ security: [{ scheme: "bearer", type: "http" }],
983
+ url: "/v1/media/series/{id}",
984
+ ...options
985
+ });
986
+ var seriesShow = (options) => (options.client ?? client).get({
987
+ security: [{ scheme: "bearer", type: "http" }, {
988
+ in: "cookie",
989
+ name: "nadeshiko.session_token",
990
+ type: "apiKey"
991
+ }],
992
+ url: "/v1/media/series/{id}",
993
+ ...options
994
+ });
995
+ var seriesUpdate = (options) => (options.client ?? client).patch({
996
+ security: [{ scheme: "bearer", type: "http" }],
997
+ url: "/v1/media/series/{id}",
998
+ ...options,
999
+ headers: {
1000
+ "Content-Type": "application/json",
1001
+ ...options.headers
1002
+ }
1003
+ });
1004
+ var seriesAddMedia = (options) => (options.client ?? client).post({
1005
+ security: [{ scheme: "bearer", type: "http" }],
1006
+ url: "/v1/media/series/{id}/media",
1007
+ ...options,
1008
+ headers: {
1009
+ "Content-Type": "application/json",
1010
+ ...options.headers
1011
+ }
1012
+ });
1013
+ var seriesRemoveMedia = (options) => (options.client ?? client).delete({
1014
+ security: [{ scheme: "bearer", type: "http" }],
1015
+ url: "/v1/media/series/{id}/media/{mediaId}",
1016
+ ...options
1017
+ });
1018
+ var seriesUpdateMedia = (options) => (options.client ?? client).patch({
1019
+ security: [{ scheme: "bearer", type: "http" }],
1020
+ url: "/v1/media/series/{id}/media/{mediaId}",
1021
+ ...options,
1022
+ headers: {
1023
+ "Content-Type": "application/json",
1024
+ ...options.headers
1025
+ }
1026
+ });
887
1027
  var characterShow = (options) => (options.client ?? client).get({
888
1028
  security: [{ scheme: "bearer", type: "http" }],
889
1029
  url: "/v1/media/characters/{id}",
@@ -894,17 +1034,308 @@ var seiyuuShow = (options) => (options.client ?? client).get({
894
1034
  url: "/v1/media/seiyuu/{id}",
895
1035
  ...options
896
1036
  });
897
- var listIndex = (options) => (options?.client ?? client).get({
1037
+ var userQuotaShow = (options) => (options?.client ?? client).get({
1038
+ security: [{
1039
+ in: "cookie",
1040
+ name: "nadeshiko.session_token",
1041
+ type: "apiKey"
1042
+ }, { scheme: "bearer", type: "http" }],
1043
+ url: "/v1/user/quota",
1044
+ ...options
1045
+ });
1046
+ var userReportIndex = (options) => (options?.client ?? client).get({
1047
+ security: [{
1048
+ in: "cookie",
1049
+ name: "nadeshiko.session_token",
1050
+ type: "apiKey"
1051
+ }],
1052
+ url: "/v1/user/reports",
1053
+ ...options
1054
+ });
1055
+ var userReportCreate = (options) => (options.client ?? client).post({
1056
+ security: [{
1057
+ in: "cookie",
1058
+ name: "nadeshiko.session_token",
1059
+ type: "apiKey"
1060
+ }],
1061
+ url: "/v1/user/reports",
1062
+ ...options,
1063
+ headers: {
1064
+ "Content-Type": "application/json",
1065
+ ...options.headers
1066
+ }
1067
+ });
1068
+ var userPreferencesShow = (options) => (options?.client ?? client).get({
1069
+ security: [{
1070
+ in: "cookie",
1071
+ name: "nadeshiko.session_token",
1072
+ type: "apiKey"
1073
+ }],
1074
+ url: "/v1/user/preferences",
1075
+ ...options
1076
+ });
1077
+ var userPreferencesUpdate = (options) => (options.client ?? client).patch({
1078
+ security: [{
1079
+ in: "cookie",
1080
+ name: "nadeshiko.session_token",
1081
+ type: "apiKey"
1082
+ }],
1083
+ url: "/v1/user/preferences",
1084
+ ...options,
1085
+ headers: {
1086
+ "Content-Type": "application/json",
1087
+ ...options.headers
1088
+ }
1089
+ });
1090
+ var userActivityDestroy = (options) => (options?.client ?? client).delete({
1091
+ security: [{
1092
+ in: "cookie",
1093
+ name: "nadeshiko.session_token",
1094
+ type: "apiKey"
1095
+ }],
1096
+ url: "/v1/user/activity",
1097
+ ...options
1098
+ });
1099
+ var userActivityIndex = (options) => (options?.client ?? client).get({
1100
+ security: [{
1101
+ in: "cookie",
1102
+ name: "nadeshiko.session_token",
1103
+ type: "apiKey"
1104
+ }],
1105
+ url: "/v1/user/activity",
1106
+ ...options
1107
+ });
1108
+ var userActivityHeatmapShow = (options) => (options?.client ?? client).get({
1109
+ security: [{
1110
+ in: "cookie",
1111
+ name: "nadeshiko.session_token",
1112
+ type: "apiKey"
1113
+ }],
1114
+ url: "/v1/user/activity/heatmap",
1115
+ ...options
1116
+ });
1117
+ var userActivityStatsShow = (options) => (options?.client ?? client).get({
1118
+ security: [{
1119
+ in: "cookie",
1120
+ name: "nadeshiko.session_token",
1121
+ type: "apiKey"
1122
+ }],
1123
+ url: "/v1/user/activity/stats",
1124
+ ...options
1125
+ });
1126
+ var userExportShow = (options) => (options?.client ?? client).get({
1127
+ security: [{
1128
+ in: "cookie",
1129
+ name: "nadeshiko.session_token",
1130
+ type: "apiKey"
1131
+ }],
1132
+ url: "/v1/user/export",
1133
+ ...options
1134
+ });
1135
+ var userLabsIndex = (options) => (options?.client ?? client).get({
1136
+ security: [{
1137
+ in: "cookie",
1138
+ name: "nadeshiko.session_token",
1139
+ type: "apiKey"
1140
+ }],
1141
+ url: "/v1/user/labs",
1142
+ ...options
1143
+ });
1144
+ var collectionIndex = (options) => (options?.client ?? client).get({
1145
+ security: [{
1146
+ in: "cookie",
1147
+ name: "nadeshiko.session_token",
1148
+ type: "apiKey"
1149
+ }],
1150
+ url: "/v1/collections",
1151
+ ...options
1152
+ });
1153
+ var collectionCreate = (options) => (options.client ?? client).post({
1154
+ security: [{
1155
+ in: "cookie",
1156
+ name: "nadeshiko.session_token",
1157
+ type: "apiKey"
1158
+ }],
1159
+ url: "/v1/collections",
1160
+ ...options,
1161
+ headers: {
1162
+ "Content-Type": "application/json",
1163
+ ...options.headers
1164
+ }
1165
+ });
1166
+ var collectionDestroy = (options) => (options.client ?? client).delete({
1167
+ security: [{
1168
+ in: "cookie",
1169
+ name: "nadeshiko.session_token",
1170
+ type: "apiKey"
1171
+ }],
1172
+ url: "/v1/collections/{id}",
1173
+ ...options
1174
+ });
1175
+ var collectionShow = (options) => (options.client ?? client).get({
1176
+ security: [{
1177
+ in: "cookie",
1178
+ name: "nadeshiko.session_token",
1179
+ type: "apiKey"
1180
+ }],
1181
+ url: "/v1/collections/{id}",
1182
+ ...options
1183
+ });
1184
+ var collectionUpdate = (options) => (options.client ?? client).patch({
1185
+ security: [{
1186
+ in: "cookie",
1187
+ name: "nadeshiko.session_token",
1188
+ type: "apiKey"
1189
+ }],
1190
+ url: "/v1/collections/{id}",
1191
+ ...options,
1192
+ headers: {
1193
+ "Content-Type": "application/json",
1194
+ ...options.headers
1195
+ }
1196
+ });
1197
+ var collectionAddSegment = (options) => (options.client ?? client).post({
1198
+ security: [{
1199
+ in: "cookie",
1200
+ name: "nadeshiko.session_token",
1201
+ type: "apiKey"
1202
+ }],
1203
+ url: "/v1/collections/{id}/segments",
1204
+ ...options,
1205
+ headers: {
1206
+ "Content-Type": "application/json",
1207
+ ...options.headers
1208
+ }
1209
+ });
1210
+ var collectionRemoveSegment = (options) => (options.client ?? client).delete({
1211
+ security: [{
1212
+ in: "cookie",
1213
+ name: "nadeshiko.session_token",
1214
+ type: "apiKey"
1215
+ }],
1216
+ url: "/v1/collections/{id}/segments/{uuid}",
1217
+ ...options
1218
+ });
1219
+ var collectionUpdateSegment = (options) => (options.client ?? client).patch({
1220
+ security: [{
1221
+ in: "cookie",
1222
+ name: "nadeshiko.session_token",
1223
+ type: "apiKey"
1224
+ }],
1225
+ url: "/v1/collections/{id}/segments/{uuid}",
1226
+ ...options,
1227
+ headers: {
1228
+ "Content-Type": "application/json",
1229
+ ...options.headers
1230
+ }
1231
+ });
1232
+ var adminDashboardShow = (options) => (options?.client ?? client).get({
1233
+ security: [{ scheme: "bearer", type: "http" }],
1234
+ url: "/v1/admin/dashboard",
1235
+ ...options
1236
+ });
1237
+ var adminHealthShow = (options) => (options?.client ?? client).get({
1238
+ security: [{ scheme: "bearer", type: "http" }],
1239
+ url: "/v1/admin/health",
1240
+ ...options
1241
+ });
1242
+ var adminReindexCreate = (options) => (options?.client ?? client).post({
1243
+ security: [{ scheme: "bearer", type: "http" }],
1244
+ url: "/v1/admin/reindex",
1245
+ ...options,
1246
+ headers: {
1247
+ "Content-Type": "application/json",
1248
+ ...options?.headers
1249
+ }
1250
+ });
1251
+ var adminQueueStatsIndex = (options) => (options?.client ?? client).get({
1252
+ security: [{ scheme: "bearer", type: "http" }],
1253
+ url: "/v1/admin/queues/stats",
1254
+ ...options
1255
+ });
1256
+ var adminQueueShow = (options) => (options.client ?? client).get({
1257
+ security: [{ scheme: "bearer", type: "http" }],
1258
+ url: "/v1/admin/queues/{queueName}",
1259
+ ...options
1260
+ });
1261
+ var adminQueueFailedIndex = (options) => (options.client ?? client).get({
1262
+ security: [{ scheme: "bearer", type: "http" }],
1263
+ url: "/v1/admin/queues/{queueName}/failed",
1264
+ ...options
1265
+ });
1266
+ var adminQueueRetryCreate = (options) => (options.client ?? client).post({
1267
+ security: [{ scheme: "bearer", type: "http" }],
1268
+ url: "/v1/admin/queues/{queueName}/retry",
1269
+ ...options
1270
+ });
1271
+ var adminQueueFailedDestroy = (options) => (options.client ?? client).delete({
1272
+ security: [{ scheme: "bearer", type: "http" }],
1273
+ url: "/v1/admin/queues/{queueName}/purge",
1274
+ ...options
1275
+ });
1276
+ var adminReportIndex = (options) => (options?.client ?? client).get({
898
1277
  security: [{ scheme: "bearer", type: "http" }],
899
- url: "/v1/lists",
1278
+ url: "/v1/admin/reports",
900
1279
  ...options
901
1280
  });
902
- var listShow = (options) => (options.client ?? client).get({
1281
+ var adminReportUpdate = (options) => (options.client ?? client).patch({
903
1282
  security: [{ scheme: "bearer", type: "http" }],
904
- url: "/v1/lists/{id}",
1283
+ url: "/v1/admin/reports/{id}",
1284
+ ...options,
1285
+ headers: {
1286
+ "Content-Type": "application/json",
1287
+ ...options.headers
1288
+ }
1289
+ });
1290
+ var adminReviewRunCreate = (options) => (options?.client ?? client).post({
1291
+ security: [{ scheme: "bearer", type: "http" }],
1292
+ url: "/v1/admin/review/run",
905
1293
  ...options
906
1294
  });
907
- // src/generated/nadeshiko.gen.ts
1295
+ var adminReviewCheckIndex = (options) => (options?.client ?? client).get({
1296
+ security: [{ scheme: "bearer", type: "http" }],
1297
+ url: "/v1/admin/review/checks",
1298
+ ...options
1299
+ });
1300
+ var adminReviewCheckUpdate = (options) => (options.client ?? client).patch({
1301
+ security: [{ scheme: "bearer", type: "http" }],
1302
+ url: "/v1/admin/review/checks/{name}",
1303
+ ...options,
1304
+ headers: {
1305
+ "Content-Type": "application/json",
1306
+ ...options.headers
1307
+ }
1308
+ });
1309
+ var adminReviewRunIndex = (options) => (options?.client ?? client).get({
1310
+ security: [{ scheme: "bearer", type: "http" }],
1311
+ url: "/v1/admin/review/runs",
1312
+ ...options
1313
+ });
1314
+ var adminReviewRunShow = (options) => (options.client ?? client).get({
1315
+ security: [{ scheme: "bearer", type: "http" }],
1316
+ url: "/v1/admin/review/runs/{id}",
1317
+ ...options
1318
+ });
1319
+ var adminReviewAllowlistIndex = (options) => (options?.client ?? client).get({
1320
+ security: [{ scheme: "bearer", type: "http" }],
1321
+ url: "/v1/admin/review/allowlist",
1322
+ ...options
1323
+ });
1324
+ var adminReviewAllowlistCreate = (options) => (options.client ?? client).post({
1325
+ security: [{ scheme: "bearer", type: "http" }],
1326
+ url: "/v1/admin/review/allowlist",
1327
+ ...options,
1328
+ headers: {
1329
+ "Content-Type": "application/json",
1330
+ ...options.headers
1331
+ }
1332
+ });
1333
+ var adminReviewAllowlistDestroy = (options) => (options.client ?? client).delete({
1334
+ security: [{ scheme: "bearer", type: "http" }],
1335
+ url: "/v1/admin/review/allowlist/{id}",
1336
+ ...options
1337
+ });
1338
+ // generated/dev/nadeshiko.gen.ts
908
1339
  var environments = {
909
1340
  LOCAL: "http://localhost:5000/api",
910
1341
  DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
@@ -918,44 +1349,191 @@ function createNadeshikoClient(config) {
918
1349
  }));
919
1350
  return {
920
1351
  client: clientInstance,
921
- searchHealthCheck: (options) => searchHealthCheck({ ...options, client: clientInstance }),
922
- search: (options) => search({ ...options, client: clientInstance }),
923
- searchMultiple: (options) => searchMultiple({ ...options, client: clientInstance }),
924
- fetchSentenceContext: (options) => fetchSentenceContext({ ...options, client: clientInstance }),
925
- fetchMediaInfo: (options) => fetchMediaInfo({ ...options, client: clientInstance }),
1352
+ searchIndex: (options) => searchIndex({ ...options, client: clientInstance }),
1353
+ searchStats: (options) => searchStats({ ...options, client: clientInstance }),
1354
+ searchWords: (options) => searchWords({ ...options, client: clientInstance }),
926
1355
  mediaIndex: (options) => mediaIndex({ ...options, client: clientInstance }),
927
1356
  mediaShow: (options) => mediaShow({ ...options, client: clientInstance }),
928
1357
  episodeIndex: (options) => episodeIndex({ ...options, client: clientInstance }),
929
1358
  episodeShow: (options) => episodeShow({ ...options, client: clientInstance }),
930
1359
  segmentShow: (options) => segmentShow({ ...options, client: clientInstance }),
931
1360
  segmentShowByUuid: (options) => segmentShowByUuid({ ...options, client: clientInstance }),
1361
+ segmentContextShow: (options) => segmentContextShow({ ...options, client: clientInstance }),
1362
+ seriesIndex: (options) => seriesIndex({ ...options, client: clientInstance }),
1363
+ seriesShow: (options) => seriesShow({ ...options, client: clientInstance }),
932
1364
  characterShow: (options) => characterShow({ ...options, client: clientInstance }),
933
1365
  seiyuuShow: (options) => seiyuuShow({ ...options, client: clientInstance }),
934
- listIndex: (options) => listIndex({ ...options, client: clientInstance }),
935
- listShow: (options) => listShow({ ...options, client: clientInstance })
1366
+ userQuotaShow: (options) => userQuotaShow({ ...options, client: clientInstance }),
1367
+ collectionIndex: (options) => collectionIndex({ ...options, client: clientInstance }),
1368
+ collectionCreate: (options) => collectionCreate({ ...options, client: clientInstance }),
1369
+ collectionShow: (options) => collectionShow({ ...options, client: clientInstance }),
1370
+ collectionUpdate: (options) => collectionUpdate({ ...options, client: clientInstance }),
1371
+ collectionDestroy: (options) => collectionDestroy({ ...options, client: clientInstance }),
1372
+ collectionAddSegment: (options) => collectionAddSegment({ ...options, client: clientInstance }),
1373
+ collectionUpdateSegment: (options) => collectionUpdateSegment({ ...options, client: clientInstance }),
1374
+ collectionRemoveSegment: (options) => collectionRemoveSegment({ ...options, client: clientInstance }),
1375
+ adminReindexCreate: (options) => adminReindexCreate({ ...options, client: clientInstance }),
1376
+ adminQueueStatsIndex: (options) => adminQueueStatsIndex({ ...options, client: clientInstance }),
1377
+ adminQueueShow: (options) => adminQueueShow({ ...options, client: clientInstance }),
1378
+ adminQueueFailedIndex: (options) => adminQueueFailedIndex({ ...options, client: clientInstance }),
1379
+ adminQueueRetryCreate: (options) => adminQueueRetryCreate({ ...options, client: clientInstance }),
1380
+ adminQueueFailedDestroy: (options) => adminQueueFailedDestroy({ ...options, client: clientInstance }),
1381
+ adminReportIndex: (options) => adminReportIndex({ ...options, client: clientInstance }),
1382
+ adminReportUpdate: (options) => adminReportUpdate({ ...options, client: clientInstance }),
1383
+ adminReviewRunCreate: (options) => adminReviewRunCreate({ ...options, client: clientInstance }),
1384
+ adminReviewCheckIndex: (options) => adminReviewCheckIndex({ ...options, client: clientInstance }),
1385
+ adminReviewCheckUpdate: (options) => adminReviewCheckUpdate({ ...options, client: clientInstance }),
1386
+ adminReviewRunIndex: (options) => adminReviewRunIndex({ ...options, client: clientInstance }),
1387
+ adminReviewRunShow: (options) => adminReviewRunShow({ ...options, client: clientInstance }),
1388
+ adminReviewAllowlistIndex: (options) => adminReviewAllowlistIndex({ ...options, client: clientInstance }),
1389
+ adminReviewAllowlistCreate: (options) => adminReviewAllowlistCreate({ ...options, client: clientInstance }),
1390
+ adminReviewAllowlistDestroy: (options) => adminReviewAllowlistDestroy({ ...options, client: clientInstance }),
1391
+ mediaCreate: (options) => mediaCreate({ ...options, client: clientInstance }),
1392
+ mediaUpdate: (options) => mediaUpdate({ ...options, client: clientInstance }),
1393
+ mediaDestroy: (options) => mediaDestroy({ ...options, client: clientInstance }),
1394
+ episodeCreate: (options) => episodeCreate({ ...options, client: clientInstance }),
1395
+ episodeUpdate: (options) => episodeUpdate({ ...options, client: clientInstance }),
1396
+ episodeDestroy: (options) => episodeDestroy({ ...options, client: clientInstance }),
1397
+ segmentIndex: (options) => segmentIndex({ ...options, client: clientInstance }),
1398
+ segmentCreate: (options) => segmentCreate({ ...options, client: clientInstance }),
1399
+ segmentUpdate: (options) => segmentUpdate({ ...options, client: clientInstance }),
1400
+ segmentDestroy: (options) => segmentDestroy({ ...options, client: clientInstance }),
1401
+ seriesCreate: (options) => seriesCreate({ ...options, client: clientInstance }),
1402
+ seriesUpdate: (options) => seriesUpdate({ ...options, client: clientInstance }),
1403
+ seriesDestroy: (options) => seriesDestroy({ ...options, client: clientInstance }),
1404
+ seriesAddMedia: (options) => seriesAddMedia({ ...options, client: clientInstance }),
1405
+ seriesUpdateMedia: (options) => seriesUpdateMedia({ ...options, client: clientInstance }),
1406
+ seriesRemoveMedia: (options) => seriesRemoveMedia({ ...options, client: clientInstance }),
1407
+ userReportCreate: (options) => userReportCreate({ ...options, client: clientInstance }),
1408
+ userReportIndex: (options) => userReportIndex({ ...options, client: clientInstance }),
1409
+ userPreferencesShow: (options) => userPreferencesShow({ ...options, client: clientInstance }),
1410
+ userPreferencesUpdate: (options) => userPreferencesUpdate({ ...options, client: clientInstance }),
1411
+ userActivityIndex: (options) => userActivityIndex({ ...options, client: clientInstance }),
1412
+ userActivityDestroy: (options) => userActivityDestroy({ ...options, client: clientInstance }),
1413
+ userActivityHeatmapShow: (options) => userActivityHeatmapShow({ ...options, client: clientInstance }),
1414
+ userActivityStatsShow: (options) => userActivityStatsShow({ ...options, client: clientInstance }),
1415
+ userExportShow: (options) => userExportShow({ ...options, client: clientInstance }),
1416
+ userLabsIndex: (options) => userLabsIndex({ ...options, client: clientInstance }),
1417
+ adminDashboardShow: (options) => adminDashboardShow({ ...options, client: clientInstance }),
1418
+ adminHealthShow: (options) => adminHealthShow({ ...options, client: clientInstance })
936
1419
  };
937
1420
  }
938
1421
  var createClient2 = createNadeshikoClient;
1422
+ // generated/dev/internal/media.gen.ts
1423
+ var exports_media_gen = {};
1424
+ __export(exports_media_gen, {
1425
+ seriesUpdateMedia: () => seriesUpdateMedia,
1426
+ seriesUpdate: () => seriesUpdate,
1427
+ seriesRemoveMedia: () => seriesRemoveMedia,
1428
+ seriesDestroy: () => seriesDestroy,
1429
+ seriesCreate: () => seriesCreate,
1430
+ seriesAddMedia: () => seriesAddMedia,
1431
+ segmentUpdate: () => segmentUpdate,
1432
+ segmentIndex: () => segmentIndex,
1433
+ segmentDestroy: () => segmentDestroy,
1434
+ segmentCreate: () => segmentCreate,
1435
+ mediaUpdate: () => mediaUpdate,
1436
+ mediaDestroy: () => mediaDestroy,
1437
+ mediaCreate: () => mediaCreate,
1438
+ episodeUpdate: () => episodeUpdate,
1439
+ episodeDestroy: () => episodeDestroy,
1440
+ episodeCreate: () => episodeCreate
1441
+ });
1442
+ // generated/dev/internal/user.gen.ts
1443
+ var exports_user_gen = {};
1444
+ __export(exports_user_gen, {
1445
+ userReportIndex: () => userReportIndex,
1446
+ userReportCreate: () => userReportCreate,
1447
+ userPreferencesUpdate: () => userPreferencesUpdate,
1448
+ userPreferencesShow: () => userPreferencesShow,
1449
+ userLabsIndex: () => userLabsIndex,
1450
+ userExportShow: () => userExportShow,
1451
+ userActivityStatsShow: () => userActivityStatsShow,
1452
+ userActivityIndex: () => userActivityIndex,
1453
+ userActivityHeatmapShow: () => userActivityHeatmapShow,
1454
+ userActivityDestroy: () => userActivityDestroy
1455
+ });
1456
+ // generated/dev/internal/admin.gen.ts
1457
+ var exports_admin_gen = {};
1458
+ __export(exports_admin_gen, {
1459
+ adminHealthShow: () => adminHealthShow,
1460
+ adminDashboardShow: () => adminDashboardShow
1461
+ });
939
1462
  export {
1463
+ userReportIndex,
1464
+ userReportCreate,
1465
+ userQuotaShow,
1466
+ userPreferencesUpdate,
1467
+ userPreferencesShow,
1468
+ userLabsIndex,
1469
+ userExportShow,
1470
+ userActivityStatsShow,
1471
+ userActivityIndex,
1472
+ userActivityHeatmapShow,
1473
+ userActivityDestroy,
1474
+ exports_user_gen as user,
1475
+ seriesUpdateMedia,
1476
+ seriesUpdate,
1477
+ seriesShow,
1478
+ seriesRemoveMedia,
1479
+ seriesIndex,
1480
+ seriesDestroy,
1481
+ seriesCreate,
1482
+ seriesAddMedia,
940
1483
  seiyuuShow,
1484
+ segmentUpdate,
941
1485
  segmentShowByUuid,
942
1486
  segmentShow,
943
- searchMultiple,
944
- searchHealthCheck,
945
- search,
1487
+ segmentIndex,
1488
+ segmentDestroy,
1489
+ segmentCreate,
1490
+ segmentContextShow,
1491
+ searchWords,
1492
+ searchStats,
1493
+ searchIndex,
1494
+ mediaUpdate,
946
1495
  mediaShow,
947
1496
  mediaIndex,
948
- listShow,
949
- listIndex,
950
- fetchSentenceContext,
951
- fetchMediaInfo,
1497
+ mediaDestroy,
1498
+ mediaCreate,
1499
+ exports_media_gen as media,
1500
+ episodeUpdate,
952
1501
  episodeShow,
953
1502
  episodeIndex,
1503
+ episodeDestroy,
1504
+ episodeCreate,
954
1505
  createNadeshikoClient,
955
1506
  createClient2 as createClient,
1507
+ collectionUpdateSegment,
1508
+ collectionUpdate,
1509
+ collectionShow,
1510
+ collectionRemoveSegment,
1511
+ collectionIndex,
1512
+ collectionDestroy,
1513
+ collectionCreate,
1514
+ collectionAddSegment,
956
1515
  client,
957
- characterShow
1516
+ characterShow,
1517
+ adminReviewRunShow,
1518
+ adminReviewRunIndex,
1519
+ adminReviewRunCreate,
1520
+ adminReviewCheckUpdate,
1521
+ adminReviewCheckIndex,
1522
+ adminReviewAllowlistIndex,
1523
+ adminReviewAllowlistDestroy,
1524
+ adminReviewAllowlistCreate,
1525
+ adminReportUpdate,
1526
+ adminReportIndex,
1527
+ adminReindexCreate,
1528
+ adminQueueStatsIndex,
1529
+ adminQueueShow,
1530
+ adminQueueRetryCreate,
1531
+ adminQueueFailedIndex,
1532
+ adminQueueFailedDestroy,
1533
+ adminHealthShow,
1534
+ adminDashboardShow,
1535
+ exports_admin_gen as admin
958
1536
  };
959
1537
 
960
- //# debugId=583FBE4F6A06939664756E2164756E21
1538
+ //# debugId=5AAB66214B78CE1864756E2164756E21
961
1539
  //# sourceMappingURL=index.js.map