@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.
- package/README.md +6 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client.gen.d.ts.map +1 -0
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/index.cjs +534 -45
- package/dist/index.cjs.map +5 -5
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +541 -41
- package/dist/index.js.map +5 -5
- package/dist/internal/lists.gen.d.ts +2 -0
- package/dist/internal/lists.gen.d.ts.map +1 -0
- package/dist/internal/media.gen.d.ts +2 -0
- package/dist/internal/media.gen.d.ts.map +1 -0
- package/dist/internal/search.gen.d.ts +2 -0
- package/dist/internal/search.gen.d.ts.map +1 -0
- package/dist/internal.gen.d.ts +4 -0
- package/dist/internal.gen.d.ts.map +1 -0
- package/dist/nadeshiko.gen.d.ts +74 -0
- package/dist/nadeshiko.gen.d.ts.map +1 -0
- package/dist/sdk.gen.d.ts +641 -0
- package/dist/sdk.gen.d.ts.map +1 -0
- package/dist/types.gen.d.ts +4793 -0
- package/dist/types.gen.d.ts.map +1 -0
- package/package.json +4 -8
- package/dist/generated/client/client.gen.d.ts.map +0 -1
- package/dist/generated/client/index.d.ts.map +0 -1
- package/dist/generated/client/types.gen.d.ts.map +0 -1
- package/dist/generated/client/utils.gen.d.ts.map +0 -1
- package/dist/generated/client.gen.d.ts.map +0 -1
- package/dist/generated/core/auth.gen.d.ts.map +0 -1
- package/dist/generated/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/params.gen.d.ts.map +0 -1
- package/dist/generated/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/generated/core/types.gen.d.ts.map +0 -1
- package/dist/generated/core/utils.gen.d.ts.map +0 -1
- package/dist/generated/index.d.ts +0 -6
- package/dist/generated/index.d.ts.map +0 -1
- package/dist/generated/nadeshiko.gen.d.ts +0 -27
- package/dist/generated/nadeshiko.gen.d.ts.map +0 -1
- package/dist/generated/sdk.gen.d.ts +0 -257
- package/dist/generated/sdk.gen.d.ts.map +0 -1
- package/dist/generated/types.gen.d.ts +0 -2001
- package/dist/generated/types.gen.d.ts.map +0 -1
- /package/dist/{generated/client → client}/client.gen.d.ts +0 -0
- /package/dist/{generated/client → client}/index.d.ts +0 -0
- /package/dist/{generated/client → client}/types.gen.d.ts +0 -0
- /package/dist/{generated/client → client}/utils.gen.d.ts +0 -0
- /package/dist/{generated/client.gen.d.ts → client.gen.d.ts} +0 -0
- /package/dist/{generated/core → core}/auth.gen.d.ts +0 -0
- /package/dist/{generated/core → core}/bodySerializer.gen.d.ts +0 -0
- /package/dist/{generated/core → core}/params.gen.d.ts +0 -0
- /package/dist/{generated/core → core}/pathSerializer.gen.d.ts +0 -0
- /package/dist/{generated/core → core}/queryKeySerializer.gen.d.ts +0 -0
- /package/dist/{generated/core → core}/serverSentEvents.gen.d.ts +0 -0
- /package/dist/{generated/core → core}/types.gen.d.ts +0 -0
- /package/dist/{generated/core → core}/utils.gen.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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,71 @@ var createClient = (config = {}) => {
|
|
|
797
808
|
trace: makeMethodFn("TRACE")
|
|
798
809
|
};
|
|
799
810
|
};
|
|
800
|
-
//
|
|
811
|
+
// generated/dev/client.gen.ts
|
|
801
812
|
var client = createClient(createConfig({ baseUrl: "http://localhost:5000" }));
|
|
802
813
|
|
|
803
|
-
//
|
|
804
|
-
var
|
|
814
|
+
// generated/dev/sdk.gen.ts
|
|
815
|
+
var healthCheck = (options) => (options?.client ?? client).get({
|
|
805
816
|
security: [{ scheme: "bearer", type: "http" }],
|
|
806
|
-
url: "/v1/
|
|
817
|
+
url: "/v1/health",
|
|
807
818
|
...options
|
|
808
819
|
});
|
|
809
|
-
var
|
|
820
|
+
var searchIndex = (options) => (options?.client ?? client).post({
|
|
810
821
|
security: [{ scheme: "bearer", type: "http" }, {
|
|
811
822
|
in: "cookie",
|
|
812
823
|
name: "nadeshiko.session_token",
|
|
813
824
|
type: "apiKey"
|
|
814
825
|
}],
|
|
815
|
-
url: "/v1/search
|
|
826
|
+
url: "/v1/search",
|
|
816
827
|
...options,
|
|
817
828
|
headers: {
|
|
818
829
|
"Content-Type": "application/json",
|
|
819
830
|
...options?.headers
|
|
820
831
|
}
|
|
821
832
|
});
|
|
822
|
-
var
|
|
833
|
+
var searchStats = (options) => (options?.client ?? client).post({
|
|
823
834
|
security: [{ scheme: "bearer", type: "http" }, {
|
|
824
835
|
in: "cookie",
|
|
825
836
|
name: "nadeshiko.session_token",
|
|
826
837
|
type: "apiKey"
|
|
827
838
|
}],
|
|
828
|
-
url: "/v1/search/
|
|
839
|
+
url: "/v1/search/stats",
|
|
829
840
|
...options,
|
|
830
841
|
headers: {
|
|
831
842
|
"Content-Type": "application/json",
|
|
832
|
-
...options
|
|
843
|
+
...options?.headers
|
|
833
844
|
}
|
|
834
845
|
});
|
|
835
|
-
var
|
|
846
|
+
var searchWords = (options) => (options.client ?? client).post({
|
|
836
847
|
security: [{ scheme: "bearer", type: "http" }, {
|
|
837
848
|
in: "cookie",
|
|
838
849
|
name: "nadeshiko.session_token",
|
|
839
850
|
type: "apiKey"
|
|
840
851
|
}],
|
|
841
|
-
url: "/v1/search/
|
|
852
|
+
url: "/v1/search/words",
|
|
842
853
|
...options,
|
|
843
854
|
headers: {
|
|
844
855
|
"Content-Type": "application/json",
|
|
845
856
|
...options.headers
|
|
846
857
|
}
|
|
847
858
|
});
|
|
848
|
-
var
|
|
849
|
-
security: [{ scheme: "bearer", type: "http" },
|
|
850
|
-
|
|
851
|
-
name: "nadeshiko.session_token",
|
|
852
|
-
type: "apiKey"
|
|
853
|
-
}],
|
|
854
|
-
url: "/v1/search/media/info",
|
|
859
|
+
var mediaIndex = (options) => (options?.client ?? client).get({
|
|
860
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
861
|
+
url: "/v1/media",
|
|
855
862
|
...options
|
|
856
863
|
});
|
|
857
|
-
var
|
|
864
|
+
var mediaCreate = (options) => (options.client ?? client).post({
|
|
858
865
|
security: [{ scheme: "bearer", type: "http" }],
|
|
859
866
|
url: "/v1/media",
|
|
867
|
+
...options,
|
|
868
|
+
headers: {
|
|
869
|
+
"Content-Type": "application/json",
|
|
870
|
+
...options.headers
|
|
871
|
+
}
|
|
872
|
+
});
|
|
873
|
+
var mediaDestroy = (options) => (options.client ?? client).delete({
|
|
874
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
875
|
+
url: "/v1/media/{id}",
|
|
860
876
|
...options
|
|
861
877
|
});
|
|
862
878
|
var mediaShow = (options) => (options.client ?? client).get({
|
|
@@ -864,26 +880,91 @@ var mediaShow = (options) => (options.client ?? client).get({
|
|
|
864
880
|
url: "/v1/media/{id}",
|
|
865
881
|
...options
|
|
866
882
|
});
|
|
883
|
+
var mediaUpdate = (options) => (options.client ?? client).patch({
|
|
884
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
885
|
+
url: "/v1/media/{id}",
|
|
886
|
+
...options,
|
|
887
|
+
headers: {
|
|
888
|
+
"Content-Type": "application/json",
|
|
889
|
+
...options.headers
|
|
890
|
+
}
|
|
891
|
+
});
|
|
867
892
|
var episodeIndex = (options) => (options.client ?? client).get({
|
|
868
893
|
security: [{ scheme: "bearer", type: "http" }],
|
|
869
894
|
url: "/v1/media/{mediaId}/episodes",
|
|
870
895
|
...options
|
|
871
896
|
});
|
|
897
|
+
var episodeCreate = (options) => (options.client ?? client).post({
|
|
898
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
899
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
900
|
+
...options,
|
|
901
|
+
headers: {
|
|
902
|
+
"Content-Type": "application/json",
|
|
903
|
+
...options.headers
|
|
904
|
+
}
|
|
905
|
+
});
|
|
906
|
+
var episodeDestroy = (options) => (options.client ?? client).delete({
|
|
907
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
908
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
909
|
+
...options
|
|
910
|
+
});
|
|
872
911
|
var episodeShow = (options) => (options.client ?? client).get({
|
|
873
912
|
security: [{ scheme: "bearer", type: "http" }],
|
|
874
913
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
875
914
|
...options
|
|
876
915
|
});
|
|
916
|
+
var episodeUpdate = (options) => (options.client ?? client).patch({
|
|
917
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
918
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
919
|
+
...options,
|
|
920
|
+
headers: {
|
|
921
|
+
"Content-Type": "application/json",
|
|
922
|
+
...options.headers
|
|
923
|
+
}
|
|
924
|
+
});
|
|
925
|
+
var segmentIndex = (options) => (options.client ?? client).get({
|
|
926
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
927
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
928
|
+
...options
|
|
929
|
+
});
|
|
930
|
+
var segmentCreate = (options) => (options.client ?? client).post({
|
|
931
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
932
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
933
|
+
...options,
|
|
934
|
+
headers: {
|
|
935
|
+
"Content-Type": "application/json",
|
|
936
|
+
...options.headers
|
|
937
|
+
}
|
|
938
|
+
});
|
|
939
|
+
var segmentDestroy = (options) => (options.client ?? client).delete({
|
|
940
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
941
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
942
|
+
...options
|
|
943
|
+
});
|
|
877
944
|
var segmentShow = (options) => (options.client ?? client).get({
|
|
878
945
|
security: [{ scheme: "bearer", type: "http" }],
|
|
879
946
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
880
947
|
...options
|
|
881
948
|
});
|
|
949
|
+
var segmentUpdate = (options) => (options.client ?? client).patch({
|
|
950
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
951
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
952
|
+
...options,
|
|
953
|
+
headers: {
|
|
954
|
+
"Content-Type": "application/json",
|
|
955
|
+
...options.headers
|
|
956
|
+
}
|
|
957
|
+
});
|
|
882
958
|
var segmentShowByUuid = (options) => (options.client ?? client).get({
|
|
883
959
|
security: [{ scheme: "bearer", type: "http" }],
|
|
884
960
|
url: "/v1/media/segments/{uuid}",
|
|
885
961
|
...options
|
|
886
962
|
});
|
|
963
|
+
var segmentContextShow = (options) => (options.client ?? client).get({
|
|
964
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
965
|
+
url: "/v1/media/segments/{uuid}/context",
|
|
966
|
+
...options
|
|
967
|
+
});
|
|
887
968
|
var characterShow = (options) => (options.client ?? client).get({
|
|
888
969
|
security: [{ scheme: "bearer", type: "http" }],
|
|
889
970
|
url: "/v1/media/characters/{id}",
|
|
@@ -894,17 +975,310 @@ var seiyuuShow = (options) => (options.client ?? client).get({
|
|
|
894
975
|
url: "/v1/media/seiyuu/{id}",
|
|
895
976
|
...options
|
|
896
977
|
});
|
|
978
|
+
var userQuotaShow = (options) => (options?.client ?? client).get({
|
|
979
|
+
security: [{
|
|
980
|
+
in: "cookie",
|
|
981
|
+
name: "nadeshiko.session_token",
|
|
982
|
+
type: "apiKey"
|
|
983
|
+
}],
|
|
984
|
+
url: "/v1/user/quota",
|
|
985
|
+
...options
|
|
986
|
+
});
|
|
987
|
+
var userReportIndex = (options) => (options?.client ?? client).get({
|
|
988
|
+
security: [{
|
|
989
|
+
in: "cookie",
|
|
990
|
+
name: "nadeshiko.session_token",
|
|
991
|
+
type: "apiKey"
|
|
992
|
+
}],
|
|
993
|
+
url: "/v1/user/reports",
|
|
994
|
+
...options
|
|
995
|
+
});
|
|
996
|
+
var userReportCreate = (options) => (options.client ?? client).post({
|
|
997
|
+
security: [{
|
|
998
|
+
in: "cookie",
|
|
999
|
+
name: "nadeshiko.session_token",
|
|
1000
|
+
type: "apiKey"
|
|
1001
|
+
}],
|
|
1002
|
+
url: "/v1/user/reports",
|
|
1003
|
+
...options,
|
|
1004
|
+
headers: {
|
|
1005
|
+
"Content-Type": "application/json",
|
|
1006
|
+
...options.headers
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
var userPreferencesShow = (options) => (options?.client ?? client).get({
|
|
1010
|
+
security: [{
|
|
1011
|
+
in: "cookie",
|
|
1012
|
+
name: "nadeshiko.session_token",
|
|
1013
|
+
type: "apiKey"
|
|
1014
|
+
}],
|
|
1015
|
+
url: "/v1/user/preferences",
|
|
1016
|
+
...options
|
|
1017
|
+
});
|
|
1018
|
+
var userPreferencesUpdate = (options) => (options.client ?? client).patch({
|
|
1019
|
+
security: [{
|
|
1020
|
+
in: "cookie",
|
|
1021
|
+
name: "nadeshiko.session_token",
|
|
1022
|
+
type: "apiKey"
|
|
1023
|
+
}],
|
|
1024
|
+
url: "/v1/user/preferences",
|
|
1025
|
+
...options,
|
|
1026
|
+
headers: {
|
|
1027
|
+
"Content-Type": "application/json",
|
|
1028
|
+
...options.headers
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
var userActivityDestroy = (options) => (options?.client ?? client).delete({
|
|
1032
|
+
security: [{
|
|
1033
|
+
in: "cookie",
|
|
1034
|
+
name: "nadeshiko.session_token",
|
|
1035
|
+
type: "apiKey"
|
|
1036
|
+
}],
|
|
1037
|
+
url: "/v1/user/activity",
|
|
1038
|
+
...options
|
|
1039
|
+
});
|
|
1040
|
+
var userActivityIndex = (options) => (options?.client ?? client).get({
|
|
1041
|
+
security: [{
|
|
1042
|
+
in: "cookie",
|
|
1043
|
+
name: "nadeshiko.session_token",
|
|
1044
|
+
type: "apiKey"
|
|
1045
|
+
}],
|
|
1046
|
+
url: "/v1/user/activity",
|
|
1047
|
+
...options
|
|
1048
|
+
});
|
|
1049
|
+
var userActivityStatsShow = (options) => (options?.client ?? client).get({
|
|
1050
|
+
security: [{
|
|
1051
|
+
in: "cookie",
|
|
1052
|
+
name: "nadeshiko.session_token",
|
|
1053
|
+
type: "apiKey"
|
|
1054
|
+
}],
|
|
1055
|
+
url: "/v1/user/activity/stats",
|
|
1056
|
+
...options
|
|
1057
|
+
});
|
|
1058
|
+
var userExportShow = (options) => (options?.client ?? client).get({
|
|
1059
|
+
security: [{
|
|
1060
|
+
in: "cookie",
|
|
1061
|
+
name: "nadeshiko.session_token",
|
|
1062
|
+
type: "apiKey"
|
|
1063
|
+
}],
|
|
1064
|
+
url: "/v1/user/export",
|
|
1065
|
+
...options
|
|
1066
|
+
});
|
|
1067
|
+
var labIndex = (options) => (options?.client ?? client).get({
|
|
1068
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1069
|
+
in: "cookie",
|
|
1070
|
+
name: "nadeshiko.session_token",
|
|
1071
|
+
type: "apiKey"
|
|
1072
|
+
}],
|
|
1073
|
+
url: "/v1/labs",
|
|
1074
|
+
...options
|
|
1075
|
+
});
|
|
897
1076
|
var listIndex = (options) => (options?.client ?? client).get({
|
|
898
1077
|
security: [{ scheme: "bearer", type: "http" }],
|
|
899
1078
|
url: "/v1/lists",
|
|
900
1079
|
...options
|
|
901
1080
|
});
|
|
1081
|
+
var listCreate = (options) => (options.client ?? client).post({
|
|
1082
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1083
|
+
url: "/v1/lists",
|
|
1084
|
+
...options,
|
|
1085
|
+
headers: {
|
|
1086
|
+
"Content-Type": "application/json",
|
|
1087
|
+
...options.headers
|
|
1088
|
+
}
|
|
1089
|
+
});
|
|
1090
|
+
var listDestroy = (options) => (options.client ?? client).delete({
|
|
1091
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1092
|
+
url: "/v1/lists/{id}",
|
|
1093
|
+
...options
|
|
1094
|
+
});
|
|
902
1095
|
var listShow = (options) => (options.client ?? client).get({
|
|
903
1096
|
security: [{ scheme: "bearer", type: "http" }],
|
|
904
1097
|
url: "/v1/lists/{id}",
|
|
905
1098
|
...options
|
|
906
1099
|
});
|
|
907
|
-
|
|
1100
|
+
var listUpdate = (options) => (options.client ?? client).patch({
|
|
1101
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1102
|
+
url: "/v1/lists/{id}",
|
|
1103
|
+
...options,
|
|
1104
|
+
headers: {
|
|
1105
|
+
"Content-Type": "application/json",
|
|
1106
|
+
...options.headers
|
|
1107
|
+
}
|
|
1108
|
+
});
|
|
1109
|
+
var listAddItem = (options) => (options.client ?? client).post({
|
|
1110
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1111
|
+
url: "/v1/lists/{id}/items",
|
|
1112
|
+
...options,
|
|
1113
|
+
headers: {
|
|
1114
|
+
"Content-Type": "application/json",
|
|
1115
|
+
...options.headers
|
|
1116
|
+
}
|
|
1117
|
+
});
|
|
1118
|
+
var listRemoveItem = (options) => (options.client ?? client).delete({
|
|
1119
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1120
|
+
url: "/v1/lists/{id}/items/{mediaId}",
|
|
1121
|
+
...options
|
|
1122
|
+
});
|
|
1123
|
+
var listUpdateItem = (options) => (options.client ?? client).patch({
|
|
1124
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1125
|
+
url: "/v1/lists/{id}/items/{mediaId}",
|
|
1126
|
+
...options,
|
|
1127
|
+
headers: {
|
|
1128
|
+
"Content-Type": "application/json",
|
|
1129
|
+
...options.headers
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
var listGetSegments = (options) => (options.client ?? client).get({
|
|
1133
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1134
|
+
in: "cookie",
|
|
1135
|
+
name: "nadeshiko.session_token",
|
|
1136
|
+
type: "apiKey"
|
|
1137
|
+
}],
|
|
1138
|
+
url: "/v1/lists/{id}/segments",
|
|
1139
|
+
...options
|
|
1140
|
+
});
|
|
1141
|
+
var listAddSegment = (options) => (options.client ?? client).post({
|
|
1142
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1143
|
+
in: "cookie",
|
|
1144
|
+
name: "nadeshiko.session_token",
|
|
1145
|
+
type: "apiKey"
|
|
1146
|
+
}],
|
|
1147
|
+
url: "/v1/lists/{id}/segments",
|
|
1148
|
+
...options,
|
|
1149
|
+
headers: {
|
|
1150
|
+
"Content-Type": "application/json",
|
|
1151
|
+
...options.headers
|
|
1152
|
+
}
|
|
1153
|
+
});
|
|
1154
|
+
var listRemoveSegment = (options) => (options.client ?? client).delete({
|
|
1155
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1156
|
+
in: "cookie",
|
|
1157
|
+
name: "nadeshiko.session_token",
|
|
1158
|
+
type: "apiKey"
|
|
1159
|
+
}],
|
|
1160
|
+
url: "/v1/lists/{id}/segments/{uuid}",
|
|
1161
|
+
...options
|
|
1162
|
+
});
|
|
1163
|
+
var listUpdateSegment = (options) => (options.client ?? client).patch({
|
|
1164
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1165
|
+
in: "cookie",
|
|
1166
|
+
name: "nadeshiko.session_token",
|
|
1167
|
+
type: "apiKey"
|
|
1168
|
+
}],
|
|
1169
|
+
url: "/v1/lists/{id}/segments/{uuid}",
|
|
1170
|
+
...options,
|
|
1171
|
+
headers: {
|
|
1172
|
+
"Content-Type": "application/json",
|
|
1173
|
+
...options.headers
|
|
1174
|
+
}
|
|
1175
|
+
});
|
|
1176
|
+
var adminReindexCreate = (options) => (options?.client ?? client).post({
|
|
1177
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1178
|
+
url: "/v1/admin/reindex",
|
|
1179
|
+
...options,
|
|
1180
|
+
headers: {
|
|
1181
|
+
"Content-Type": "application/json",
|
|
1182
|
+
...options?.headers
|
|
1183
|
+
}
|
|
1184
|
+
});
|
|
1185
|
+
var adminQueueStatsIndex = (options) => (options?.client ?? client).get({
|
|
1186
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1187
|
+
url: "/v1/admin/queues/stats",
|
|
1188
|
+
...options
|
|
1189
|
+
});
|
|
1190
|
+
var adminQueueShow = (options) => (options.client ?? client).get({
|
|
1191
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1192
|
+
url: "/v1/admin/queues/{queueName}",
|
|
1193
|
+
...options
|
|
1194
|
+
});
|
|
1195
|
+
var adminQueueFailedIndex = (options) => (options.client ?? client).get({
|
|
1196
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1197
|
+
url: "/v1/admin/queues/{queueName}/failed",
|
|
1198
|
+
...options
|
|
1199
|
+
});
|
|
1200
|
+
var adminQueueRetryCreate = (options) => (options.client ?? client).post({
|
|
1201
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1202
|
+
url: "/v1/admin/queues/{queueName}/retry",
|
|
1203
|
+
...options
|
|
1204
|
+
});
|
|
1205
|
+
var adminQueueFailedDestroy = (options) => (options.client ?? client).delete({
|
|
1206
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1207
|
+
url: "/v1/admin/queues/{queueName}/purge",
|
|
1208
|
+
...options
|
|
1209
|
+
});
|
|
1210
|
+
var adminMorphemeBackfillCreate = (options) => (options?.client ?? client).post({
|
|
1211
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1212
|
+
in: "cookie",
|
|
1213
|
+
name: "nadeshiko.session_token",
|
|
1214
|
+
type: "apiKey"
|
|
1215
|
+
}],
|
|
1216
|
+
url: "/v1/admin/morpheme-backfill",
|
|
1217
|
+
...options
|
|
1218
|
+
});
|
|
1219
|
+
var adminReportIndex = (options) => (options?.client ?? client).get({
|
|
1220
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1221
|
+
url: "/v1/admin/reports",
|
|
1222
|
+
...options
|
|
1223
|
+
});
|
|
1224
|
+
var adminReportUpdate = (options) => (options.client ?? client).patch({
|
|
1225
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1226
|
+
url: "/v1/admin/reports/{id}",
|
|
1227
|
+
...options,
|
|
1228
|
+
headers: {
|
|
1229
|
+
"Content-Type": "application/json",
|
|
1230
|
+
...options.headers
|
|
1231
|
+
}
|
|
1232
|
+
});
|
|
1233
|
+
var adminReviewRunCreate = (options) => (options?.client ?? client).post({
|
|
1234
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1235
|
+
url: "/v1/admin/review/run",
|
|
1236
|
+
...options
|
|
1237
|
+
});
|
|
1238
|
+
var adminReviewCheckIndex = (options) => (options?.client ?? client).get({
|
|
1239
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1240
|
+
url: "/v1/admin/review/checks",
|
|
1241
|
+
...options
|
|
1242
|
+
});
|
|
1243
|
+
var adminReviewCheckUpdate = (options) => (options.client ?? client).patch({
|
|
1244
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1245
|
+
url: "/v1/admin/review/checks/{name}",
|
|
1246
|
+
...options,
|
|
1247
|
+
headers: {
|
|
1248
|
+
"Content-Type": "application/json",
|
|
1249
|
+
...options.headers
|
|
1250
|
+
}
|
|
1251
|
+
});
|
|
1252
|
+
var adminReviewRunIndex = (options) => (options?.client ?? client).get({
|
|
1253
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1254
|
+
url: "/v1/admin/review/runs",
|
|
1255
|
+
...options
|
|
1256
|
+
});
|
|
1257
|
+
var adminReviewRunShow = (options) => (options.client ?? client).get({
|
|
1258
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1259
|
+
url: "/v1/admin/review/runs/{id}",
|
|
1260
|
+
...options
|
|
1261
|
+
});
|
|
1262
|
+
var adminReviewAllowlistIndex = (options) => (options?.client ?? client).get({
|
|
1263
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1264
|
+
url: "/v1/admin/review/allowlist",
|
|
1265
|
+
...options
|
|
1266
|
+
});
|
|
1267
|
+
var adminReviewAllowlistCreate = (options) => (options.client ?? client).post({
|
|
1268
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1269
|
+
url: "/v1/admin/review/allowlist",
|
|
1270
|
+
...options,
|
|
1271
|
+
headers: {
|
|
1272
|
+
"Content-Type": "application/json",
|
|
1273
|
+
...options.headers
|
|
1274
|
+
}
|
|
1275
|
+
});
|
|
1276
|
+
var adminReviewAllowlistDestroy = (options) => (options.client ?? client).delete({
|
|
1277
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1278
|
+
url: "/v1/admin/review/allowlist/{id}",
|
|
1279
|
+
...options
|
|
1280
|
+
});
|
|
1281
|
+
// generated/dev/nadeshiko.gen.ts
|
|
908
1282
|
var environments = {
|
|
909
1283
|
LOCAL: "http://localhost:5000/api",
|
|
910
1284
|
DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
|
|
@@ -918,44 +1292,170 @@ function createNadeshikoClient(config) {
|
|
|
918
1292
|
}));
|
|
919
1293
|
return {
|
|
920
1294
|
client: clientInstance,
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
fetchSentenceContext: (options) => fetchSentenceContext({ ...options, client: clientInstance }),
|
|
925
|
-
fetchMediaInfo: (options) => fetchMediaInfo({ ...options, client: clientInstance }),
|
|
1295
|
+
searchIndex: (options) => searchIndex({ ...options, client: clientInstance }),
|
|
1296
|
+
searchStats: (options) => searchStats({ ...options, client: clientInstance }),
|
|
1297
|
+
searchWords: (options) => searchWords({ ...options, client: clientInstance }),
|
|
926
1298
|
mediaIndex: (options) => mediaIndex({ ...options, client: clientInstance }),
|
|
927
1299
|
mediaShow: (options) => mediaShow({ ...options, client: clientInstance }),
|
|
928
1300
|
episodeIndex: (options) => episodeIndex({ ...options, client: clientInstance }),
|
|
929
1301
|
episodeShow: (options) => episodeShow({ ...options, client: clientInstance }),
|
|
930
1302
|
segmentShow: (options) => segmentShow({ ...options, client: clientInstance }),
|
|
931
1303
|
segmentShowByUuid: (options) => segmentShowByUuid({ ...options, client: clientInstance }),
|
|
1304
|
+
segmentContextShow: (options) => segmentContextShow({ ...options, client: clientInstance }),
|
|
932
1305
|
characterShow: (options) => characterShow({ ...options, client: clientInstance }),
|
|
933
1306
|
seiyuuShow: (options) => seiyuuShow({ ...options, client: clientInstance }),
|
|
1307
|
+
userQuotaShow: (options) => userQuotaShow({ ...options, client: clientInstance }),
|
|
1308
|
+
userReportCreate: (options) => userReportCreate({ ...options, client: clientInstance }),
|
|
1309
|
+
userReportIndex: (options) => userReportIndex({ ...options, client: clientInstance }),
|
|
1310
|
+
userPreferencesShow: (options) => userPreferencesShow({ ...options, client: clientInstance }),
|
|
1311
|
+
userPreferencesUpdate: (options) => userPreferencesUpdate({ ...options, client: clientInstance }),
|
|
1312
|
+
userActivityIndex: (options) => userActivityIndex({ ...options, client: clientInstance }),
|
|
1313
|
+
userActivityDestroy: (options) => userActivityDestroy({ ...options, client: clientInstance }),
|
|
1314
|
+
userActivityStatsShow: (options) => userActivityStatsShow({ ...options, client: clientInstance }),
|
|
1315
|
+
userExportShow: (options) => userExportShow({ ...options, client: clientInstance }),
|
|
1316
|
+
labIndex: (options) => labIndex({ ...options, client: clientInstance }),
|
|
934
1317
|
listIndex: (options) => listIndex({ ...options, client: clientInstance }),
|
|
935
|
-
listShow: (options) => listShow({ ...options, client: clientInstance })
|
|
1318
|
+
listShow: (options) => listShow({ ...options, client: clientInstance }),
|
|
1319
|
+
listGetSegments: (options) => listGetSegments({ ...options, client: clientInstance }),
|
|
1320
|
+
listAddSegment: (options) => listAddSegment({ ...options, client: clientInstance }),
|
|
1321
|
+
listUpdateSegment: (options) => listUpdateSegment({ ...options, client: clientInstance }),
|
|
1322
|
+
listRemoveSegment: (options) => listRemoveSegment({ ...options, client: clientInstance }),
|
|
1323
|
+
adminReindexCreate: (options) => adminReindexCreate({ ...options, client: clientInstance }),
|
|
1324
|
+
adminQueueStatsIndex: (options) => adminQueueStatsIndex({ ...options, client: clientInstance }),
|
|
1325
|
+
adminQueueShow: (options) => adminQueueShow({ ...options, client: clientInstance }),
|
|
1326
|
+
adminQueueFailedIndex: (options) => adminQueueFailedIndex({ ...options, client: clientInstance }),
|
|
1327
|
+
adminQueueRetryCreate: (options) => adminQueueRetryCreate({ ...options, client: clientInstance }),
|
|
1328
|
+
adminQueueFailedDestroy: (options) => adminQueueFailedDestroy({ ...options, client: clientInstance }),
|
|
1329
|
+
adminMorphemeBackfillCreate: (options) => adminMorphemeBackfillCreate({ ...options, client: clientInstance }),
|
|
1330
|
+
adminReportIndex: (options) => adminReportIndex({ ...options, client: clientInstance }),
|
|
1331
|
+
adminReportUpdate: (options) => adminReportUpdate({ ...options, client: clientInstance }),
|
|
1332
|
+
adminReviewRunCreate: (options) => adminReviewRunCreate({ ...options, client: clientInstance }),
|
|
1333
|
+
adminReviewCheckIndex: (options) => adminReviewCheckIndex({ ...options, client: clientInstance }),
|
|
1334
|
+
adminReviewCheckUpdate: (options) => adminReviewCheckUpdate({ ...options, client: clientInstance }),
|
|
1335
|
+
adminReviewRunIndex: (options) => adminReviewRunIndex({ ...options, client: clientInstance }),
|
|
1336
|
+
adminReviewRunShow: (options) => adminReviewRunShow({ ...options, client: clientInstance }),
|
|
1337
|
+
adminReviewAllowlistIndex: (options) => adminReviewAllowlistIndex({ ...options, client: clientInstance }),
|
|
1338
|
+
adminReviewAllowlistCreate: (options) => adminReviewAllowlistCreate({ ...options, client: clientInstance }),
|
|
1339
|
+
adminReviewAllowlistDestroy: (options) => adminReviewAllowlistDestroy({ ...options, client: clientInstance }),
|
|
1340
|
+
healthCheck: (options) => healthCheck({ ...options, client: clientInstance }),
|
|
1341
|
+
mediaCreate: (options) => mediaCreate({ ...options, client: clientInstance }),
|
|
1342
|
+
mediaUpdate: (options) => mediaUpdate({ ...options, client: clientInstance }),
|
|
1343
|
+
mediaDestroy: (options) => mediaDestroy({ ...options, client: clientInstance }),
|
|
1344
|
+
episodeCreate: (options) => episodeCreate({ ...options, client: clientInstance }),
|
|
1345
|
+
episodeUpdate: (options) => episodeUpdate({ ...options, client: clientInstance }),
|
|
1346
|
+
episodeDestroy: (options) => episodeDestroy({ ...options, client: clientInstance }),
|
|
1347
|
+
segmentIndex: (options) => segmentIndex({ ...options, client: clientInstance }),
|
|
1348
|
+
segmentCreate: (options) => segmentCreate({ ...options, client: clientInstance }),
|
|
1349
|
+
segmentUpdate: (options) => segmentUpdate({ ...options, client: clientInstance }),
|
|
1350
|
+
segmentDestroy: (options) => segmentDestroy({ ...options, client: clientInstance }),
|
|
1351
|
+
listCreate: (options) => listCreate({ ...options, client: clientInstance }),
|
|
1352
|
+
listUpdate: (options) => listUpdate({ ...options, client: clientInstance }),
|
|
1353
|
+
listDestroy: (options) => listDestroy({ ...options, client: clientInstance }),
|
|
1354
|
+
listAddItem: (options) => listAddItem({ ...options, client: clientInstance }),
|
|
1355
|
+
listUpdateItem: (options) => listUpdateItem({ ...options, client: clientInstance }),
|
|
1356
|
+
listRemoveItem: (options) => listRemoveItem({ ...options, client: clientInstance })
|
|
936
1357
|
};
|
|
937
1358
|
}
|
|
938
1359
|
var createClient2 = createNadeshikoClient;
|
|
1360
|
+
// generated/dev/internal/search.gen.ts
|
|
1361
|
+
var exports_search_gen = {};
|
|
1362
|
+
__export(exports_search_gen, {
|
|
1363
|
+
healthCheck: () => healthCheck
|
|
1364
|
+
});
|
|
1365
|
+
// generated/dev/internal/media.gen.ts
|
|
1366
|
+
var exports_media_gen = {};
|
|
1367
|
+
__export(exports_media_gen, {
|
|
1368
|
+
segmentUpdate: () => segmentUpdate,
|
|
1369
|
+
segmentIndex: () => segmentIndex,
|
|
1370
|
+
segmentDestroy: () => segmentDestroy,
|
|
1371
|
+
segmentCreate: () => segmentCreate,
|
|
1372
|
+
mediaUpdate: () => mediaUpdate,
|
|
1373
|
+
mediaDestroy: () => mediaDestroy,
|
|
1374
|
+
mediaCreate: () => mediaCreate,
|
|
1375
|
+
episodeUpdate: () => episodeUpdate,
|
|
1376
|
+
episodeDestroy: () => episodeDestroy,
|
|
1377
|
+
episodeCreate: () => episodeCreate
|
|
1378
|
+
});
|
|
1379
|
+
// generated/dev/internal/lists.gen.ts
|
|
1380
|
+
var exports_lists_gen = {};
|
|
1381
|
+
__export(exports_lists_gen, {
|
|
1382
|
+
listUpdateItem: () => listUpdateItem,
|
|
1383
|
+
listUpdate: () => listUpdate,
|
|
1384
|
+
listRemoveItem: () => listRemoveItem,
|
|
1385
|
+
listDestroy: () => listDestroy,
|
|
1386
|
+
listCreate: () => listCreate,
|
|
1387
|
+
listAddItem: () => listAddItem
|
|
1388
|
+
});
|
|
939
1389
|
export {
|
|
1390
|
+
userReportIndex,
|
|
1391
|
+
userReportCreate,
|
|
1392
|
+
userQuotaShow,
|
|
1393
|
+
userPreferencesUpdate,
|
|
1394
|
+
userPreferencesShow,
|
|
1395
|
+
userExportShow,
|
|
1396
|
+
userActivityStatsShow,
|
|
1397
|
+
userActivityIndex,
|
|
1398
|
+
userActivityDestroy,
|
|
940
1399
|
seiyuuShow,
|
|
1400
|
+
segmentUpdate,
|
|
941
1401
|
segmentShowByUuid,
|
|
942
1402
|
segmentShow,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
1403
|
+
segmentIndex,
|
|
1404
|
+
segmentDestroy,
|
|
1405
|
+
segmentCreate,
|
|
1406
|
+
segmentContextShow,
|
|
1407
|
+
searchWords,
|
|
1408
|
+
searchStats,
|
|
1409
|
+
searchIndex,
|
|
1410
|
+
exports_search_gen as search,
|
|
1411
|
+
mediaUpdate,
|
|
946
1412
|
mediaShow,
|
|
947
1413
|
mediaIndex,
|
|
1414
|
+
mediaDestroy,
|
|
1415
|
+
mediaCreate,
|
|
1416
|
+
exports_media_gen as media,
|
|
1417
|
+
exports_lists_gen as lists,
|
|
1418
|
+
listUpdateSegment,
|
|
1419
|
+
listUpdateItem,
|
|
1420
|
+
listUpdate,
|
|
948
1421
|
listShow,
|
|
1422
|
+
listRemoveSegment,
|
|
1423
|
+
listRemoveItem,
|
|
949
1424
|
listIndex,
|
|
950
|
-
|
|
951
|
-
|
|
1425
|
+
listGetSegments,
|
|
1426
|
+
listDestroy,
|
|
1427
|
+
listCreate,
|
|
1428
|
+
listAddSegment,
|
|
1429
|
+
listAddItem,
|
|
1430
|
+
labIndex,
|
|
1431
|
+
healthCheck,
|
|
1432
|
+
episodeUpdate,
|
|
952
1433
|
episodeShow,
|
|
953
1434
|
episodeIndex,
|
|
1435
|
+
episodeDestroy,
|
|
1436
|
+
episodeCreate,
|
|
954
1437
|
createNadeshikoClient,
|
|
955
1438
|
createClient2 as createClient,
|
|
956
1439
|
client,
|
|
957
|
-
characterShow
|
|
1440
|
+
characterShow,
|
|
1441
|
+
adminReviewRunShow,
|
|
1442
|
+
adminReviewRunIndex,
|
|
1443
|
+
adminReviewRunCreate,
|
|
1444
|
+
adminReviewCheckUpdate,
|
|
1445
|
+
adminReviewCheckIndex,
|
|
1446
|
+
adminReviewAllowlistIndex,
|
|
1447
|
+
adminReviewAllowlistDestroy,
|
|
1448
|
+
adminReviewAllowlistCreate,
|
|
1449
|
+
adminReportUpdate,
|
|
1450
|
+
adminReportIndex,
|
|
1451
|
+
adminReindexCreate,
|
|
1452
|
+
adminQueueStatsIndex,
|
|
1453
|
+
adminQueueShow,
|
|
1454
|
+
adminQueueRetryCreate,
|
|
1455
|
+
adminQueueFailedIndex,
|
|
1456
|
+
adminQueueFailedDestroy,
|
|
1457
|
+
adminMorphemeBackfillCreate
|
|
958
1458
|
};
|
|
959
1459
|
|
|
960
|
-
//# debugId=
|
|
1460
|
+
//# debugId=E295AF37E6B3026564756E2164756E21
|
|
961
1461
|
//# sourceMappingURL=index.js.map
|