@brigadasos/nadeshiko-sdk 1.3.0 → 1.4.0-dev.c253525
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 +401 -38
- 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 +408 -34
- 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 +60 -0
- package/dist/nadeshiko.gen.d.ts.map +1 -0
- package/dist/sdk.gen.d.ts +471 -0
- package/dist/sdk.gen.d.ts.map +1 -0
- package/dist/types.gen.d.ts +3976 -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/internal/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/internal/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/internal/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/internal/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/internal/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/internal/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/internal/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/internal/client/client.gen.ts
|
|
595
606
|
var createClient = (config = {}) => {
|
|
596
607
|
let _config = mergeConfigs(createConfig(), config);
|
|
597
608
|
const getConfig = () => ({ ..._config });
|
|
@@ -797,61 +808,74 @@ var createClient = (config = {}) => {
|
|
|
797
808
|
trace: makeMethodFn("TRACE")
|
|
798
809
|
};
|
|
799
810
|
};
|
|
800
|
-
//
|
|
811
|
+
// generated/internal/client.gen.ts
|
|
801
812
|
var client = createClient(createConfig({ baseUrl: "http://localhost:5000" }));
|
|
802
813
|
|
|
803
|
-
//
|
|
804
|
-
var
|
|
814
|
+
// generated/internal/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 searchSegments = (options) => (options?.client ?? client).post({
|
|
821
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
822
|
+
in: "cookie",
|
|
823
|
+
name: "nadeshiko.session_token",
|
|
824
|
+
type: "apiKey"
|
|
825
|
+
}],
|
|
826
|
+
url: "/v1/search/segments",
|
|
827
|
+
...options,
|
|
828
|
+
headers: {
|
|
829
|
+
"Content-Type": "application/json",
|
|
830
|
+
...options?.headers
|
|
831
|
+
}
|
|
832
|
+
});
|
|
833
|
+
var getSearchStats = (options) => (options?.client ?? client).post({
|
|
810
834
|
security: [{ scheme: "bearer", type: "http" }, {
|
|
811
835
|
in: "cookie",
|
|
812
836
|
name: "nadeshiko.session_token",
|
|
813
837
|
type: "apiKey"
|
|
814
838
|
}],
|
|
815
|
-
url: "/v1/search/
|
|
839
|
+
url: "/v1/search/stats",
|
|
816
840
|
...options,
|
|
817
841
|
headers: {
|
|
818
842
|
"Content-Type": "application/json",
|
|
819
843
|
...options?.headers
|
|
820
844
|
}
|
|
821
845
|
});
|
|
822
|
-
var
|
|
846
|
+
var searchWords = (options) => (options.client ?? client).post({
|
|
823
847
|
security: [{ scheme: "bearer", type: "http" }, {
|
|
824
848
|
in: "cookie",
|
|
825
849
|
name: "nadeshiko.session_token",
|
|
826
850
|
type: "apiKey"
|
|
827
851
|
}],
|
|
828
|
-
url: "/v1/search/
|
|
852
|
+
url: "/v1/search/words",
|
|
829
853
|
...options,
|
|
830
854
|
headers: {
|
|
831
855
|
"Content-Type": "application/json",
|
|
832
856
|
...options.headers
|
|
833
857
|
}
|
|
834
858
|
});
|
|
835
|
-
var
|
|
859
|
+
var getSegmentContext = (options) => (options.client ?? client).post({
|
|
836
860
|
security: [{ scheme: "bearer", type: "http" }, {
|
|
837
861
|
in: "cookie",
|
|
838
862
|
name: "nadeshiko.session_token",
|
|
839
863
|
type: "apiKey"
|
|
840
864
|
}],
|
|
841
|
-
url: "/v1/search/
|
|
865
|
+
url: "/v1/search/context",
|
|
842
866
|
...options,
|
|
843
867
|
headers: {
|
|
844
868
|
"Content-Type": "application/json",
|
|
845
869
|
...options.headers
|
|
846
870
|
}
|
|
847
871
|
});
|
|
848
|
-
var
|
|
872
|
+
var browseMedia = (options) => (options?.client ?? client).get({
|
|
849
873
|
security: [{ scheme: "bearer", type: "http" }, {
|
|
850
874
|
in: "cookie",
|
|
851
875
|
name: "nadeshiko.session_token",
|
|
852
876
|
type: "apiKey"
|
|
853
877
|
}],
|
|
854
|
-
url: "/v1/
|
|
878
|
+
url: "/v1/media/browse",
|
|
855
879
|
...options
|
|
856
880
|
});
|
|
857
881
|
var mediaIndex = (options) => (options?.client ?? client).get({
|
|
@@ -859,26 +883,100 @@ var mediaIndex = (options) => (options?.client ?? client).get({
|
|
|
859
883
|
url: "/v1/media",
|
|
860
884
|
...options
|
|
861
885
|
});
|
|
886
|
+
var mediaCreate = (options) => (options.client ?? client).post({
|
|
887
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
888
|
+
url: "/v1/media",
|
|
889
|
+
...options,
|
|
890
|
+
headers: {
|
|
891
|
+
"Content-Type": "application/json",
|
|
892
|
+
...options.headers
|
|
893
|
+
}
|
|
894
|
+
});
|
|
895
|
+
var mediaDestroy = (options) => (options.client ?? client).delete({
|
|
896
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
897
|
+
url: "/v1/media/{id}",
|
|
898
|
+
...options
|
|
899
|
+
});
|
|
862
900
|
var mediaShow = (options) => (options.client ?? client).get({
|
|
863
901
|
security: [{ scheme: "bearer", type: "http" }],
|
|
864
902
|
url: "/v1/media/{id}",
|
|
865
903
|
...options
|
|
866
904
|
});
|
|
905
|
+
var mediaUpdate = (options) => (options.client ?? client).patch({
|
|
906
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
907
|
+
url: "/v1/media/{id}",
|
|
908
|
+
...options,
|
|
909
|
+
headers: {
|
|
910
|
+
"Content-Type": "application/json",
|
|
911
|
+
...options.headers
|
|
912
|
+
}
|
|
913
|
+
});
|
|
867
914
|
var episodeIndex = (options) => (options.client ?? client).get({
|
|
868
915
|
security: [{ scheme: "bearer", type: "http" }],
|
|
869
916
|
url: "/v1/media/{mediaId}/episodes",
|
|
870
917
|
...options
|
|
871
918
|
});
|
|
919
|
+
var episodeCreate = (options) => (options.client ?? client).post({
|
|
920
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
921
|
+
url: "/v1/media/{mediaId}/episodes",
|
|
922
|
+
...options,
|
|
923
|
+
headers: {
|
|
924
|
+
"Content-Type": "application/json",
|
|
925
|
+
...options.headers
|
|
926
|
+
}
|
|
927
|
+
});
|
|
928
|
+
var episodeDestroy = (options) => (options.client ?? client).delete({
|
|
929
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
930
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
931
|
+
...options
|
|
932
|
+
});
|
|
872
933
|
var episodeShow = (options) => (options.client ?? client).get({
|
|
873
934
|
security: [{ scheme: "bearer", type: "http" }],
|
|
874
935
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
875
936
|
...options
|
|
876
937
|
});
|
|
938
|
+
var episodeUpdate = (options) => (options.client ?? client).patch({
|
|
939
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
940
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}",
|
|
941
|
+
...options,
|
|
942
|
+
headers: {
|
|
943
|
+
"Content-Type": "application/json",
|
|
944
|
+
...options.headers
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
var segmentIndex = (options) => (options.client ?? client).get({
|
|
948
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
949
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
950
|
+
...options
|
|
951
|
+
});
|
|
952
|
+
var segmentCreate = (options) => (options.client ?? client).post({
|
|
953
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
954
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments",
|
|
955
|
+
...options,
|
|
956
|
+
headers: {
|
|
957
|
+
"Content-Type": "application/json",
|
|
958
|
+
...options.headers
|
|
959
|
+
}
|
|
960
|
+
});
|
|
961
|
+
var segmentDestroy = (options) => (options.client ?? client).delete({
|
|
962
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
963
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
964
|
+
...options
|
|
965
|
+
});
|
|
877
966
|
var segmentShow = (options) => (options.client ?? client).get({
|
|
878
967
|
security: [{ scheme: "bearer", type: "http" }],
|
|
879
968
|
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
880
969
|
...options
|
|
881
970
|
});
|
|
971
|
+
var segmentUpdate = (options) => (options.client ?? client).patch({
|
|
972
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
973
|
+
url: "/v1/media/{mediaId}/episodes/{episodeNumber}/segments/{id}",
|
|
974
|
+
...options,
|
|
975
|
+
headers: {
|
|
976
|
+
"Content-Type": "application/json",
|
|
977
|
+
...options.headers
|
|
978
|
+
}
|
|
979
|
+
});
|
|
882
980
|
var segmentShowByUuid = (options) => (options.client ?? client).get({
|
|
883
981
|
security: [{ scheme: "bearer", type: "http" }],
|
|
884
982
|
url: "/v1/media/segments/{uuid}",
|
|
@@ -894,17 +992,195 @@ var seiyuuShow = (options) => (options.client ?? client).get({
|
|
|
894
992
|
url: "/v1/media/seiyuu/{id}",
|
|
895
993
|
...options
|
|
896
994
|
});
|
|
995
|
+
var getUserQuota = (options) => (options?.client ?? client).get({
|
|
996
|
+
security: [{
|
|
997
|
+
in: "cookie",
|
|
998
|
+
name: "nadeshiko.session_token",
|
|
999
|
+
type: "apiKey"
|
|
1000
|
+
}],
|
|
1001
|
+
url: "/v1/user/quota",
|
|
1002
|
+
...options
|
|
1003
|
+
});
|
|
1004
|
+
var getUserReports = (options) => (options?.client ?? client).get({
|
|
1005
|
+
security: [{
|
|
1006
|
+
in: "cookie",
|
|
1007
|
+
name: "nadeshiko.session_token",
|
|
1008
|
+
type: "apiKey"
|
|
1009
|
+
}],
|
|
1010
|
+
url: "/v1/user/reports",
|
|
1011
|
+
...options
|
|
1012
|
+
});
|
|
1013
|
+
var createReport = (options) => (options.client ?? client).post({
|
|
1014
|
+
security: [{
|
|
1015
|
+
in: "cookie",
|
|
1016
|
+
name: "nadeshiko.session_token",
|
|
1017
|
+
type: "apiKey"
|
|
1018
|
+
}],
|
|
1019
|
+
url: "/v1/user/reports",
|
|
1020
|
+
...options,
|
|
1021
|
+
headers: {
|
|
1022
|
+
"Content-Type": "application/json",
|
|
1023
|
+
...options.headers
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
897
1026
|
var listIndex = (options) => (options?.client ?? client).get({
|
|
898
1027
|
security: [{ scheme: "bearer", type: "http" }],
|
|
899
1028
|
url: "/v1/lists",
|
|
900
1029
|
...options
|
|
901
1030
|
});
|
|
1031
|
+
var listCreate = (options) => (options.client ?? client).post({
|
|
1032
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1033
|
+
url: "/v1/lists",
|
|
1034
|
+
...options,
|
|
1035
|
+
headers: {
|
|
1036
|
+
"Content-Type": "application/json",
|
|
1037
|
+
...options.headers
|
|
1038
|
+
}
|
|
1039
|
+
});
|
|
1040
|
+
var listDestroy = (options) => (options.client ?? client).delete({
|
|
1041
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1042
|
+
url: "/v1/lists/{id}",
|
|
1043
|
+
...options
|
|
1044
|
+
});
|
|
902
1045
|
var listShow = (options) => (options.client ?? client).get({
|
|
903
1046
|
security: [{ scheme: "bearer", type: "http" }],
|
|
904
1047
|
url: "/v1/lists/{id}",
|
|
905
1048
|
...options
|
|
906
1049
|
});
|
|
907
|
-
|
|
1050
|
+
var listUpdate = (options) => (options.client ?? client).patch({
|
|
1051
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1052
|
+
url: "/v1/lists/{id}",
|
|
1053
|
+
...options,
|
|
1054
|
+
headers: {
|
|
1055
|
+
"Content-Type": "application/json",
|
|
1056
|
+
...options.headers
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
var listAddItem = (options) => (options.client ?? client).post({
|
|
1060
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1061
|
+
url: "/v1/lists/{id}/items",
|
|
1062
|
+
...options,
|
|
1063
|
+
headers: {
|
|
1064
|
+
"Content-Type": "application/json",
|
|
1065
|
+
...options.headers
|
|
1066
|
+
}
|
|
1067
|
+
});
|
|
1068
|
+
var listRemoveItem = (options) => (options.client ?? client).delete({
|
|
1069
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1070
|
+
url: "/v1/lists/{id}/items/{mediaId}",
|
|
1071
|
+
...options
|
|
1072
|
+
});
|
|
1073
|
+
var listUpdateItem = (options) => (options.client ?? client).patch({
|
|
1074
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1075
|
+
url: "/v1/lists/{id}/items/{mediaId}",
|
|
1076
|
+
...options,
|
|
1077
|
+
headers: {
|
|
1078
|
+
"Content-Type": "application/json",
|
|
1079
|
+
...options.headers
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
var listGetSegments = (options) => (options.client ?? client).get({
|
|
1083
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1084
|
+
in: "cookie",
|
|
1085
|
+
name: "nadeshiko.session_token",
|
|
1086
|
+
type: "apiKey"
|
|
1087
|
+
}],
|
|
1088
|
+
url: "/v1/lists/{id}/segments",
|
|
1089
|
+
...options
|
|
1090
|
+
});
|
|
1091
|
+
var listAddSegment = (options) => (options.client ?? client).post({
|
|
1092
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1093
|
+
in: "cookie",
|
|
1094
|
+
name: "nadeshiko.session_token",
|
|
1095
|
+
type: "apiKey"
|
|
1096
|
+
}],
|
|
1097
|
+
url: "/v1/lists/{id}/segments",
|
|
1098
|
+
...options,
|
|
1099
|
+
headers: {
|
|
1100
|
+
"Content-Type": "application/json",
|
|
1101
|
+
...options.headers
|
|
1102
|
+
}
|
|
1103
|
+
});
|
|
1104
|
+
var listRemoveSegment = (options) => (options.client ?? client).delete({
|
|
1105
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1106
|
+
in: "cookie",
|
|
1107
|
+
name: "nadeshiko.session_token",
|
|
1108
|
+
type: "apiKey"
|
|
1109
|
+
}],
|
|
1110
|
+
url: "/v1/lists/{id}/segments/{uuid}",
|
|
1111
|
+
...options
|
|
1112
|
+
});
|
|
1113
|
+
var listUpdateSegment = (options) => (options.client ?? client).patch({
|
|
1114
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1115
|
+
in: "cookie",
|
|
1116
|
+
name: "nadeshiko.session_token",
|
|
1117
|
+
type: "apiKey"
|
|
1118
|
+
}],
|
|
1119
|
+
url: "/v1/lists/{id}/segments/{uuid}",
|
|
1120
|
+
...options,
|
|
1121
|
+
headers: {
|
|
1122
|
+
"Content-Type": "application/json",
|
|
1123
|
+
...options.headers
|
|
1124
|
+
}
|
|
1125
|
+
});
|
|
1126
|
+
var reindexElasticsearch = (options) => (options?.client ?? client).post({
|
|
1127
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1128
|
+
url: "/v1/admin/reindex",
|
|
1129
|
+
...options,
|
|
1130
|
+
headers: {
|
|
1131
|
+
"Content-Type": "application/json",
|
|
1132
|
+
...options?.headers
|
|
1133
|
+
}
|
|
1134
|
+
});
|
|
1135
|
+
var getQueueStats = (options) => (options?.client ?? client).get({
|
|
1136
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1137
|
+
url: "/v1/admin/queues/stats",
|
|
1138
|
+
...options
|
|
1139
|
+
});
|
|
1140
|
+
var getQueueDetails = (options) => (options.client ?? client).get({
|
|
1141
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1142
|
+
url: "/v1/admin/queues/{queueName}",
|
|
1143
|
+
...options
|
|
1144
|
+
});
|
|
1145
|
+
var getFailedJobs = (options) => (options.client ?? client).get({
|
|
1146
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1147
|
+
url: "/v1/admin/queues/{queueName}/failed",
|
|
1148
|
+
...options
|
|
1149
|
+
});
|
|
1150
|
+
var retryQueueJobs = (options) => (options.client ?? client).post({
|
|
1151
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1152
|
+
url: "/v1/admin/queues/{queueName}/retry",
|
|
1153
|
+
...options
|
|
1154
|
+
});
|
|
1155
|
+
var purgeFailedJobs = (options) => (options.client ?? client).delete({
|
|
1156
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1157
|
+
url: "/v1/admin/queues/{queueName}/purge",
|
|
1158
|
+
...options
|
|
1159
|
+
});
|
|
1160
|
+
var morphemeBackfill = (options) => (options?.client ?? client).post({
|
|
1161
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1162
|
+
in: "cookie",
|
|
1163
|
+
name: "nadeshiko.session_token",
|
|
1164
|
+
type: "apiKey"
|
|
1165
|
+
}],
|
|
1166
|
+
url: "/v1/admin/morpheme-backfill",
|
|
1167
|
+
...options
|
|
1168
|
+
});
|
|
1169
|
+
var getAdminReports = (options) => (options?.client ?? client).get({
|
|
1170
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1171
|
+
url: "/v1/admin/reports",
|
|
1172
|
+
...options
|
|
1173
|
+
});
|
|
1174
|
+
var updateReport = (options) => (options.client ?? client).patch({
|
|
1175
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1176
|
+
url: "/v1/admin/reports/{id}",
|
|
1177
|
+
...options,
|
|
1178
|
+
headers: {
|
|
1179
|
+
"Content-Type": "application/json",
|
|
1180
|
+
...options.headers
|
|
1181
|
+
}
|
|
1182
|
+
});
|
|
1183
|
+
// generated/internal/nadeshiko.gen.ts
|
|
908
1184
|
var environments = {
|
|
909
1185
|
LOCAL: "http://localhost:5000/api",
|
|
910
1186
|
DEVELOPMENT: "https://api.dev.brigadasos.xyz/api",
|
|
@@ -918,11 +1194,11 @@ function createNadeshikoClient(config) {
|
|
|
918
1194
|
}));
|
|
919
1195
|
return {
|
|
920
1196
|
client: clientInstance,
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
1197
|
+
searchSegments: (options) => searchSegments({ ...options, client: clientInstance }),
|
|
1198
|
+
getSearchStats: (options) => getSearchStats({ ...options, client: clientInstance }),
|
|
1199
|
+
searchWords: (options) => searchWords({ ...options, client: clientInstance }),
|
|
1200
|
+
getSegmentContext: (options) => getSegmentContext({ ...options, client: clientInstance }),
|
|
1201
|
+
browseMedia: (options) => browseMedia({ ...options, client: clientInstance }),
|
|
926
1202
|
mediaIndex: (options) => mediaIndex({ ...options, client: clientInstance }),
|
|
927
1203
|
mediaShow: (options) => mediaShow({ ...options, client: clientInstance }),
|
|
928
1204
|
episodeIndex: (options) => episodeIndex({ ...options, client: clientInstance }),
|
|
@@ -931,31 +1207,129 @@ function createNadeshikoClient(config) {
|
|
|
931
1207
|
segmentShowByUuid: (options) => segmentShowByUuid({ ...options, client: clientInstance }),
|
|
932
1208
|
characterShow: (options) => characterShow({ ...options, client: clientInstance }),
|
|
933
1209
|
seiyuuShow: (options) => seiyuuShow({ ...options, client: clientInstance }),
|
|
1210
|
+
getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
|
|
1211
|
+
createReport: (options) => createReport({ ...options, client: clientInstance }),
|
|
1212
|
+
getUserReports: (options) => getUserReports({ ...options, client: clientInstance }),
|
|
934
1213
|
listIndex: (options) => listIndex({ ...options, client: clientInstance }),
|
|
935
|
-
listShow: (options) => listShow({ ...options, client: clientInstance })
|
|
1214
|
+
listShow: (options) => listShow({ ...options, client: clientInstance }),
|
|
1215
|
+
listGetSegments: (options) => listGetSegments({ ...options, client: clientInstance }),
|
|
1216
|
+
listAddSegment: (options) => listAddSegment({ ...options, client: clientInstance }),
|
|
1217
|
+
listUpdateSegment: (options) => listUpdateSegment({ ...options, client: clientInstance }),
|
|
1218
|
+
listRemoveSegment: (options) => listRemoveSegment({ ...options, client: clientInstance }),
|
|
1219
|
+
reindexElasticsearch: (options) => reindexElasticsearch({ ...options, client: clientInstance }),
|
|
1220
|
+
getQueueStats: (options) => getQueueStats({ ...options, client: clientInstance }),
|
|
1221
|
+
getQueueDetails: (options) => getQueueDetails({ ...options, client: clientInstance }),
|
|
1222
|
+
getFailedJobs: (options) => getFailedJobs({ ...options, client: clientInstance }),
|
|
1223
|
+
retryQueueJobs: (options) => retryQueueJobs({ ...options, client: clientInstance }),
|
|
1224
|
+
purgeFailedJobs: (options) => purgeFailedJobs({ ...options, client: clientInstance }),
|
|
1225
|
+
morphemeBackfill: (options) => morphemeBackfill({ ...options, client: clientInstance }),
|
|
1226
|
+
getAdminReports: (options) => getAdminReports({ ...options, client: clientInstance }),
|
|
1227
|
+
updateReport: (options) => updateReport({ ...options, client: clientInstance }),
|
|
1228
|
+
healthCheck: (options) => healthCheck({ ...options, client: clientInstance }),
|
|
1229
|
+
mediaCreate: (options) => mediaCreate({ ...options, client: clientInstance }),
|
|
1230
|
+
mediaUpdate: (options) => mediaUpdate({ ...options, client: clientInstance }),
|
|
1231
|
+
mediaDestroy: (options) => mediaDestroy({ ...options, client: clientInstance }),
|
|
1232
|
+
episodeCreate: (options) => episodeCreate({ ...options, client: clientInstance }),
|
|
1233
|
+
episodeUpdate: (options) => episodeUpdate({ ...options, client: clientInstance }),
|
|
1234
|
+
episodeDestroy: (options) => episodeDestroy({ ...options, client: clientInstance }),
|
|
1235
|
+
segmentIndex: (options) => segmentIndex({ ...options, client: clientInstance }),
|
|
1236
|
+
segmentCreate: (options) => segmentCreate({ ...options, client: clientInstance }),
|
|
1237
|
+
segmentUpdate: (options) => segmentUpdate({ ...options, client: clientInstance }),
|
|
1238
|
+
segmentDestroy: (options) => segmentDestroy({ ...options, client: clientInstance }),
|
|
1239
|
+
listCreate: (options) => listCreate({ ...options, client: clientInstance }),
|
|
1240
|
+
listUpdate: (options) => listUpdate({ ...options, client: clientInstance }),
|
|
1241
|
+
listDestroy: (options) => listDestroy({ ...options, client: clientInstance }),
|
|
1242
|
+
listAddItem: (options) => listAddItem({ ...options, client: clientInstance }),
|
|
1243
|
+
listUpdateItem: (options) => listUpdateItem({ ...options, client: clientInstance }),
|
|
1244
|
+
listRemoveItem: (options) => listRemoveItem({ ...options, client: clientInstance })
|
|
936
1245
|
};
|
|
937
1246
|
}
|
|
938
1247
|
var createClient2 = createNadeshikoClient;
|
|
1248
|
+
// generated/internal/internal/search.gen.ts
|
|
1249
|
+
var exports_search_gen = {};
|
|
1250
|
+
__export(exports_search_gen, {
|
|
1251
|
+
healthCheck: () => healthCheck
|
|
1252
|
+
});
|
|
1253
|
+
// generated/internal/internal/media.gen.ts
|
|
1254
|
+
var exports_media_gen = {};
|
|
1255
|
+
__export(exports_media_gen, {
|
|
1256
|
+
segmentUpdate: () => segmentUpdate,
|
|
1257
|
+
segmentIndex: () => segmentIndex,
|
|
1258
|
+
segmentDestroy: () => segmentDestroy,
|
|
1259
|
+
segmentCreate: () => segmentCreate,
|
|
1260
|
+
mediaUpdate: () => mediaUpdate,
|
|
1261
|
+
mediaDestroy: () => mediaDestroy,
|
|
1262
|
+
mediaCreate: () => mediaCreate,
|
|
1263
|
+
episodeUpdate: () => episodeUpdate,
|
|
1264
|
+
episodeDestroy: () => episodeDestroy,
|
|
1265
|
+
episodeCreate: () => episodeCreate
|
|
1266
|
+
});
|
|
1267
|
+
// generated/internal/internal/lists.gen.ts
|
|
1268
|
+
var exports_lists_gen = {};
|
|
1269
|
+
__export(exports_lists_gen, {
|
|
1270
|
+
listUpdateItem: () => listUpdateItem,
|
|
1271
|
+
listUpdate: () => listUpdate,
|
|
1272
|
+
listRemoveItem: () => listRemoveItem,
|
|
1273
|
+
listDestroy: () => listDestroy,
|
|
1274
|
+
listCreate: () => listCreate,
|
|
1275
|
+
listAddItem: () => listAddItem
|
|
1276
|
+
});
|
|
939
1277
|
export {
|
|
1278
|
+
updateReport,
|
|
940
1279
|
seiyuuShow,
|
|
1280
|
+
segmentUpdate,
|
|
941
1281
|
segmentShowByUuid,
|
|
942
1282
|
segmentShow,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
1283
|
+
segmentIndex,
|
|
1284
|
+
segmentDestroy,
|
|
1285
|
+
segmentCreate,
|
|
1286
|
+
searchWords,
|
|
1287
|
+
searchSegments,
|
|
1288
|
+
exports_search_gen as search,
|
|
1289
|
+
retryQueueJobs,
|
|
1290
|
+
reindexElasticsearch,
|
|
1291
|
+
purgeFailedJobs,
|
|
1292
|
+
morphemeBackfill,
|
|
1293
|
+
mediaUpdate,
|
|
946
1294
|
mediaShow,
|
|
947
1295
|
mediaIndex,
|
|
1296
|
+
mediaDestroy,
|
|
1297
|
+
mediaCreate,
|
|
1298
|
+
exports_media_gen as media,
|
|
1299
|
+
exports_lists_gen as lists,
|
|
1300
|
+
listUpdateSegment,
|
|
1301
|
+
listUpdateItem,
|
|
1302
|
+
listUpdate,
|
|
948
1303
|
listShow,
|
|
1304
|
+
listRemoveSegment,
|
|
1305
|
+
listRemoveItem,
|
|
949
1306
|
listIndex,
|
|
950
|
-
|
|
951
|
-
|
|
1307
|
+
listGetSegments,
|
|
1308
|
+
listDestroy,
|
|
1309
|
+
listCreate,
|
|
1310
|
+
listAddSegment,
|
|
1311
|
+
listAddItem,
|
|
1312
|
+
healthCheck,
|
|
1313
|
+
getUserReports,
|
|
1314
|
+
getUserQuota,
|
|
1315
|
+
getSegmentContext,
|
|
1316
|
+
getSearchStats,
|
|
1317
|
+
getQueueStats,
|
|
1318
|
+
getQueueDetails,
|
|
1319
|
+
getFailedJobs,
|
|
1320
|
+
getAdminReports,
|
|
1321
|
+
episodeUpdate,
|
|
952
1322
|
episodeShow,
|
|
953
1323
|
episodeIndex,
|
|
1324
|
+
episodeDestroy,
|
|
1325
|
+
episodeCreate,
|
|
1326
|
+
createReport,
|
|
954
1327
|
createNadeshikoClient,
|
|
955
1328
|
createClient2 as createClient,
|
|
956
1329
|
client,
|
|
957
|
-
characterShow
|
|
1330
|
+
characterShow,
|
|
1331
|
+
browseMedia
|
|
958
1332
|
};
|
|
959
1333
|
|
|
960
|
-
//# debugId=
|
|
1334
|
+
//# debugId=8CBCA84DFC8042B964756E2164756E21
|
|
961
1335
|
//# sourceMappingURL=index.js.map
|