@brigadasos/nadeshiko-sdk 1.4.0-dev.2819d72 → 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.
- package/README.md +99 -2
- package/dist/index.cjs +207 -129
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +207 -129
- package/dist/index.js.map +4 -4
- package/dist/internal/admin.gen.d.ts +2 -0
- package/dist/internal/admin.gen.d.ts.map +1 -0
- package/dist/internal/media.gen.d.ts +1 -1
- package/dist/internal/media.gen.d.ts.map +1 -1
- package/dist/internal/user.gen.d.ts +2 -0
- package/dist/internal/user.gen.d.ts.map +1 -0
- package/dist/internal.gen.d.ts +2 -2
- package/dist/internal.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +29 -24
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +112 -93
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +1727 -1399
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/internal/lists.gen.d.ts +0 -2
- package/dist/internal/lists.gen.d.ts.map +0 -1
- package/dist/internal/search.gen.d.ts +0 -2
- package/dist/internal/search.gen.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -19,14 +19,14 @@ bun add @brigadasos/nadeshiko-sdk@internal
|
|
|
19
19
|
The client sends your API key as `Authorization: Bearer <apiKey>`.
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
|
-
import { createClient,
|
|
22
|
+
import { createClient, searchSegments } from '@brigadasos/nadeshiko-sdk';
|
|
23
23
|
|
|
24
24
|
const client = createClient({
|
|
25
25
|
apiKey: process.env.NADESHIKO_API_KEY!,
|
|
26
26
|
baseUrl: 'PRODUCTION',
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
const result = await
|
|
29
|
+
const result = await searchSegments({
|
|
30
30
|
client,
|
|
31
31
|
body: { query: '彼女' },
|
|
32
32
|
});
|
|
@@ -37,3 +37,100 @@ if (result.error) {
|
|
|
37
37
|
console.log(result.data);
|
|
38
38
|
}
|
|
39
39
|
```
|
|
40
|
+
|
|
41
|
+
### Error handling
|
|
42
|
+
|
|
43
|
+
Every response returns a discriminated union with either `data` or `error`. The `error` object follows the [RFC 7807](https://tools.ietf.org/html/rfc7807) Problem Details format, so you always get a machine-readable `code` and a human-readable `detail`.
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import { createClient, searchSegments } from '@brigadasos/nadeshiko-sdk';
|
|
47
|
+
|
|
48
|
+
const client = createClient({
|
|
49
|
+
apiKey: process.env.NADESHIKO_API_KEY!,
|
|
50
|
+
baseUrl: 'PRODUCTION',
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
const result = await searchSegments({
|
|
54
|
+
client,
|
|
55
|
+
body: { query: '食べる' },
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
if (result.error) {
|
|
59
|
+
switch (result.error.code) {
|
|
60
|
+
// 400 — Bad Request
|
|
61
|
+
case 'VALIDATION_FAILED':
|
|
62
|
+
console.error('Validation failed:', result.error.detail);
|
|
63
|
+
for (const [field, msg] of Object.entries(result.error.errors ?? {})) {
|
|
64
|
+
console.error(` ${field}: ${msg}`);
|
|
65
|
+
}
|
|
66
|
+
break;
|
|
67
|
+
case 'INVALID_JSON':
|
|
68
|
+
console.error('Malformed JSON body:', result.error.detail);
|
|
69
|
+
break;
|
|
70
|
+
case 'INVALID_REQUEST':
|
|
71
|
+
console.error('Invalid request:', result.error.detail);
|
|
72
|
+
break;
|
|
73
|
+
|
|
74
|
+
// 401 — Unauthorized
|
|
75
|
+
case 'AUTH_CREDENTIALS_REQUIRED':
|
|
76
|
+
console.error('Missing API key or session token');
|
|
77
|
+
break;
|
|
78
|
+
case 'AUTH_CREDENTIALS_INVALID':
|
|
79
|
+
console.error('API key is invalid');
|
|
80
|
+
break;
|
|
81
|
+
case 'AUTH_CREDENTIALS_EXPIRED':
|
|
82
|
+
console.error('Token has expired, re-authenticate');
|
|
83
|
+
break;
|
|
84
|
+
case 'EMAIL_NOT_VERIFIED':
|
|
85
|
+
console.error('Email verification required');
|
|
86
|
+
break;
|
|
87
|
+
|
|
88
|
+
// 403 — Forbidden
|
|
89
|
+
case 'ACCESS_DENIED':
|
|
90
|
+
console.error('Access denied');
|
|
91
|
+
break;
|
|
92
|
+
case 'INSUFFICIENT_PERMISSIONS':
|
|
93
|
+
console.error('API key lacks the required scope');
|
|
94
|
+
break;
|
|
95
|
+
|
|
96
|
+
// 429 — Too Many Requests
|
|
97
|
+
case 'RATE_LIMIT_EXCEEDED':
|
|
98
|
+
console.error('Rate limit hit, slow down');
|
|
99
|
+
break;
|
|
100
|
+
case 'QUOTA_EXCEEDED':
|
|
101
|
+
console.error('Monthly quota exhausted');
|
|
102
|
+
break;
|
|
103
|
+
|
|
104
|
+
// 500 — Internal Server Error
|
|
105
|
+
case 'INTERNAL_SERVER_EXCEPTION':
|
|
106
|
+
console.error('Server error, trace ID:', result.error.instance);
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// result.data is fully typed as SearchResponse
|
|
113
|
+
for (const hit of result.data.results ?? []) {
|
|
114
|
+
console.log(hit.segment.ja.content, '—', hit.media.nameEn);
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### `throwOnError` mode
|
|
119
|
+
|
|
120
|
+
If you prefer exceptions over checking `.error`, pass `throwOnError: true`. The call will throw on any non-2xx response, and the return type narrows to just `{ data }`.
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
try {
|
|
124
|
+
const { data } = await searchSegments({
|
|
125
|
+
client,
|
|
126
|
+
throwOnError: true,
|
|
127
|
+
body: { query: '彼女' },
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
console.log(data.results);
|
|
131
|
+
} catch (error) {
|
|
132
|
+
console.error('Request failed:', error);
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
See [`examples/examples.ts`](examples/examples.ts) for more usage patterns.
|
package/dist/index.cjs
CHANGED
|
@@ -34,10 +34,21 @@ __export(exports_dev, {
|
|
|
34
34
|
userQuotaShow: () => userQuotaShow,
|
|
35
35
|
userPreferencesUpdate: () => userPreferencesUpdate,
|
|
36
36
|
userPreferencesShow: () => userPreferencesShow,
|
|
37
|
+
userLabsIndex: () => userLabsIndex,
|
|
37
38
|
userExportShow: () => userExportShow,
|
|
38
39
|
userActivityStatsShow: () => userActivityStatsShow,
|
|
39
40
|
userActivityIndex: () => userActivityIndex,
|
|
41
|
+
userActivityHeatmapShow: () => userActivityHeatmapShow,
|
|
40
42
|
userActivityDestroy: () => userActivityDestroy,
|
|
43
|
+
user: () => exports_user_gen,
|
|
44
|
+
seriesUpdateMedia: () => seriesUpdateMedia,
|
|
45
|
+
seriesUpdate: () => seriesUpdate,
|
|
46
|
+
seriesShow: () => seriesShow,
|
|
47
|
+
seriesRemoveMedia: () => seriesRemoveMedia,
|
|
48
|
+
seriesIndex: () => seriesIndex,
|
|
49
|
+
seriesDestroy: () => seriesDestroy,
|
|
50
|
+
seriesCreate: () => seriesCreate,
|
|
51
|
+
seriesAddMedia: () => seriesAddMedia,
|
|
41
52
|
seiyuuShow: () => seiyuuShow,
|
|
42
53
|
segmentUpdate: () => segmentUpdate,
|
|
43
54
|
segmentShowByUuid: () => segmentShowByUuid,
|
|
@@ -49,28 +60,12 @@ __export(exports_dev, {
|
|
|
49
60
|
searchWords: () => searchWords,
|
|
50
61
|
searchStats: () => searchStats,
|
|
51
62
|
searchIndex: () => searchIndex,
|
|
52
|
-
search: () => exports_search_gen,
|
|
53
63
|
mediaUpdate: () => mediaUpdate,
|
|
54
64
|
mediaShow: () => mediaShow,
|
|
55
65
|
mediaIndex: () => mediaIndex,
|
|
56
66
|
mediaDestroy: () => mediaDestroy,
|
|
57
67
|
mediaCreate: () => mediaCreate,
|
|
58
68
|
media: () => exports_media_gen,
|
|
59
|
-
lists: () => exports_lists_gen,
|
|
60
|
-
listUpdateSegment: () => listUpdateSegment,
|
|
61
|
-
listUpdateItem: () => listUpdateItem,
|
|
62
|
-
listUpdate: () => listUpdate,
|
|
63
|
-
listShow: () => listShow,
|
|
64
|
-
listRemoveSegment: () => listRemoveSegment,
|
|
65
|
-
listRemoveItem: () => listRemoveItem,
|
|
66
|
-
listIndex: () => listIndex,
|
|
67
|
-
listGetSegments: () => listGetSegments,
|
|
68
|
-
listDestroy: () => listDestroy,
|
|
69
|
-
listCreate: () => listCreate,
|
|
70
|
-
listAddSegment: () => listAddSegment,
|
|
71
|
-
listAddItem: () => listAddItem,
|
|
72
|
-
labIndex: () => labIndex,
|
|
73
|
-
healthCheck: () => healthCheck,
|
|
74
69
|
episodeUpdate: () => episodeUpdate,
|
|
75
70
|
episodeShow: () => episodeShow,
|
|
76
71
|
episodeIndex: () => episodeIndex,
|
|
@@ -78,6 +73,14 @@ __export(exports_dev, {
|
|
|
78
73
|
episodeCreate: () => episodeCreate,
|
|
79
74
|
createNadeshikoClient: () => createNadeshikoClient,
|
|
80
75
|
createClient: () => createClient2,
|
|
76
|
+
collectionUpdateSegment: () => collectionUpdateSegment,
|
|
77
|
+
collectionUpdate: () => collectionUpdate,
|
|
78
|
+
collectionShow: () => collectionShow,
|
|
79
|
+
collectionRemoveSegment: () => collectionRemoveSegment,
|
|
80
|
+
collectionIndex: () => collectionIndex,
|
|
81
|
+
collectionDestroy: () => collectionDestroy,
|
|
82
|
+
collectionCreate: () => collectionCreate,
|
|
83
|
+
collectionAddSegment: () => collectionAddSegment,
|
|
81
84
|
client: () => client,
|
|
82
85
|
characterShow: () => characterShow,
|
|
83
86
|
adminReviewRunShow: () => adminReviewRunShow,
|
|
@@ -96,7 +99,9 @@ __export(exports_dev, {
|
|
|
96
99
|
adminQueueRetryCreate: () => adminQueueRetryCreate,
|
|
97
100
|
adminQueueFailedIndex: () => adminQueueFailedIndex,
|
|
98
101
|
adminQueueFailedDestroy: () => adminQueueFailedDestroy,
|
|
99
|
-
|
|
102
|
+
adminHealthShow: () => adminHealthShow,
|
|
103
|
+
adminDashboardShow: () => adminDashboardShow,
|
|
104
|
+
admin: () => exports_admin_gen
|
|
100
105
|
});
|
|
101
106
|
module.exports = __toCommonJS(exports_dev);
|
|
102
107
|
|
|
@@ -903,11 +908,6 @@ var createClient = (config = {}) => {
|
|
|
903
908
|
var client = createClient(createConfig({ baseUrl: "http://localhost:5000" }));
|
|
904
909
|
|
|
905
910
|
// generated/dev/sdk.gen.ts
|
|
906
|
-
var healthCheck = (options) => (options?.client ?? client).get({
|
|
907
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
908
|
-
url: "/v1/health",
|
|
909
|
-
...options
|
|
910
|
-
});
|
|
911
911
|
var searchIndex = (options) => (options?.client ?? client).post({
|
|
912
912
|
security: [{ scheme: "bearer", type: "http" }, {
|
|
913
913
|
in: "cookie",
|
|
@@ -1056,6 +1056,70 @@ var segmentContextShow = (options) => (options.client ?? client).get({
|
|
|
1056
1056
|
url: "/v1/media/segments/{uuid}/context",
|
|
1057
1057
|
...options
|
|
1058
1058
|
});
|
|
1059
|
+
var seriesIndex = (options) => (options?.client ?? client).get({
|
|
1060
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1061
|
+
in: "cookie",
|
|
1062
|
+
name: "nadeshiko.session_token",
|
|
1063
|
+
type: "apiKey"
|
|
1064
|
+
}],
|
|
1065
|
+
url: "/v1/media/series",
|
|
1066
|
+
...options
|
|
1067
|
+
});
|
|
1068
|
+
var seriesCreate = (options) => (options.client ?? client).post({
|
|
1069
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1070
|
+
url: "/v1/media/series",
|
|
1071
|
+
...options,
|
|
1072
|
+
headers: {
|
|
1073
|
+
"Content-Type": "application/json",
|
|
1074
|
+
...options.headers
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
var seriesDestroy = (options) => (options.client ?? client).delete({
|
|
1078
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1079
|
+
url: "/v1/media/series/{id}",
|
|
1080
|
+
...options
|
|
1081
|
+
});
|
|
1082
|
+
var seriesShow = (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/media/series/{id}",
|
|
1089
|
+
...options
|
|
1090
|
+
});
|
|
1091
|
+
var seriesUpdate = (options) => (options.client ?? client).patch({
|
|
1092
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1093
|
+
url: "/v1/media/series/{id}",
|
|
1094
|
+
...options,
|
|
1095
|
+
headers: {
|
|
1096
|
+
"Content-Type": "application/json",
|
|
1097
|
+
...options.headers
|
|
1098
|
+
}
|
|
1099
|
+
});
|
|
1100
|
+
var seriesAddMedia = (options) => (options.client ?? client).post({
|
|
1101
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1102
|
+
url: "/v1/media/series/{id}/media",
|
|
1103
|
+
...options,
|
|
1104
|
+
headers: {
|
|
1105
|
+
"Content-Type": "application/json",
|
|
1106
|
+
...options.headers
|
|
1107
|
+
}
|
|
1108
|
+
});
|
|
1109
|
+
var seriesRemoveMedia = (options) => (options.client ?? client).delete({
|
|
1110
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1111
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1112
|
+
...options
|
|
1113
|
+
});
|
|
1114
|
+
var seriesUpdateMedia = (options) => (options.client ?? client).patch({
|
|
1115
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1116
|
+
url: "/v1/media/series/{id}/media/{mediaId}",
|
|
1117
|
+
...options,
|
|
1118
|
+
headers: {
|
|
1119
|
+
"Content-Type": "application/json",
|
|
1120
|
+
...options.headers
|
|
1121
|
+
}
|
|
1122
|
+
});
|
|
1059
1123
|
var characterShow = (options) => (options.client ?? client).get({
|
|
1060
1124
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1061
1125
|
url: "/v1/media/characters/{id}",
|
|
@@ -1071,7 +1135,7 @@ var userQuotaShow = (options) => (options?.client ?? client).get({
|
|
|
1071
1135
|
in: "cookie",
|
|
1072
1136
|
name: "nadeshiko.session_token",
|
|
1073
1137
|
type: "apiKey"
|
|
1074
|
-
}],
|
|
1138
|
+
}, { scheme: "bearer", type: "http" }],
|
|
1075
1139
|
url: "/v1/user/quota",
|
|
1076
1140
|
...options
|
|
1077
1141
|
});
|
|
@@ -1137,6 +1201,15 @@ var userActivityIndex = (options) => (options?.client ?? client).get({
|
|
|
1137
1201
|
url: "/v1/user/activity",
|
|
1138
1202
|
...options
|
|
1139
1203
|
});
|
|
1204
|
+
var userActivityHeatmapShow = (options) => (options?.client ?? client).get({
|
|
1205
|
+
security: [{
|
|
1206
|
+
in: "cookie",
|
|
1207
|
+
name: "nadeshiko.session_token",
|
|
1208
|
+
type: "apiKey"
|
|
1209
|
+
}],
|
|
1210
|
+
url: "/v1/user/activity/heatmap",
|
|
1211
|
+
...options
|
|
1212
|
+
});
|
|
1140
1213
|
var userActivityStatsShow = (options) => (options?.client ?? client).get({
|
|
1141
1214
|
security: [{
|
|
1142
1215
|
in: "cookie",
|
|
@@ -1155,115 +1228,113 @@ var userExportShow = (options) => (options?.client ?? client).get({
|
|
|
1155
1228
|
url: "/v1/user/export",
|
|
1156
1229
|
...options
|
|
1157
1230
|
});
|
|
1158
|
-
var
|
|
1159
|
-
security: [{
|
|
1231
|
+
var userLabsIndex = (options) => (options?.client ?? client).get({
|
|
1232
|
+
security: [{
|
|
1160
1233
|
in: "cookie",
|
|
1161
1234
|
name: "nadeshiko.session_token",
|
|
1162
1235
|
type: "apiKey"
|
|
1163
1236
|
}],
|
|
1164
|
-
url: "/v1/labs",
|
|
1237
|
+
url: "/v1/user/labs",
|
|
1165
1238
|
...options
|
|
1166
1239
|
});
|
|
1167
|
-
var
|
|
1168
|
-
security: [{
|
|
1169
|
-
|
|
1240
|
+
var collectionIndex = (options) => (options?.client ?? client).get({
|
|
1241
|
+
security: [{
|
|
1242
|
+
in: "cookie",
|
|
1243
|
+
name: "nadeshiko.session_token",
|
|
1244
|
+
type: "apiKey"
|
|
1245
|
+
}],
|
|
1246
|
+
url: "/v1/collections",
|
|
1170
1247
|
...options
|
|
1171
1248
|
});
|
|
1172
|
-
var
|
|
1173
|
-
security: [{
|
|
1174
|
-
|
|
1249
|
+
var collectionCreate = (options) => (options.client ?? client).post({
|
|
1250
|
+
security: [{
|
|
1251
|
+
in: "cookie",
|
|
1252
|
+
name: "nadeshiko.session_token",
|
|
1253
|
+
type: "apiKey"
|
|
1254
|
+
}],
|
|
1255
|
+
url: "/v1/collections",
|
|
1175
1256
|
...options,
|
|
1176
1257
|
headers: {
|
|
1177
1258
|
"Content-Type": "application/json",
|
|
1178
1259
|
...options.headers
|
|
1179
1260
|
}
|
|
1180
1261
|
});
|
|
1181
|
-
var
|
|
1182
|
-
security: [{
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
url: "/v1/lists/{id}",
|
|
1262
|
+
var collectionDestroy = (options) => (options.client ?? client).delete({
|
|
1263
|
+
security: [{
|
|
1264
|
+
in: "cookie",
|
|
1265
|
+
name: "nadeshiko.session_token",
|
|
1266
|
+
type: "apiKey"
|
|
1267
|
+
}],
|
|
1268
|
+
url: "/v1/collections/{id}",
|
|
1189
1269
|
...options
|
|
1190
1270
|
});
|
|
1191
|
-
var
|
|
1192
|
-
security: [{
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
}
|
|
1199
|
-
});
|
|
1200
|
-
var listAddItem = (options) => (options.client ?? client).post({
|
|
1201
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1202
|
-
url: "/v1/lists/{id}/items",
|
|
1203
|
-
...options,
|
|
1204
|
-
headers: {
|
|
1205
|
-
"Content-Type": "application/json",
|
|
1206
|
-
...options.headers
|
|
1207
|
-
}
|
|
1208
|
-
});
|
|
1209
|
-
var listRemoveItem = (options) => (options.client ?? client).delete({
|
|
1210
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1211
|
-
url: "/v1/lists/{id}/items/{mediaId}",
|
|
1271
|
+
var collectionShow = (options) => (options.client ?? client).get({
|
|
1272
|
+
security: [{
|
|
1273
|
+
in: "cookie",
|
|
1274
|
+
name: "nadeshiko.session_token",
|
|
1275
|
+
type: "apiKey"
|
|
1276
|
+
}],
|
|
1277
|
+
url: "/v1/collections/{id}",
|
|
1212
1278
|
...options
|
|
1213
1279
|
});
|
|
1214
|
-
var
|
|
1215
|
-
security: [{
|
|
1216
|
-
|
|
1280
|
+
var collectionUpdate = (options) => (options.client ?? client).patch({
|
|
1281
|
+
security: [{
|
|
1282
|
+
in: "cookie",
|
|
1283
|
+
name: "nadeshiko.session_token",
|
|
1284
|
+
type: "apiKey"
|
|
1285
|
+
}],
|
|
1286
|
+
url: "/v1/collections/{id}",
|
|
1217
1287
|
...options,
|
|
1218
1288
|
headers: {
|
|
1219
1289
|
"Content-Type": "application/json",
|
|
1220
1290
|
...options.headers
|
|
1221
1291
|
}
|
|
1222
1292
|
});
|
|
1223
|
-
var
|
|
1224
|
-
security: [{
|
|
1225
|
-
in: "cookie",
|
|
1226
|
-
name: "nadeshiko.session_token",
|
|
1227
|
-
type: "apiKey"
|
|
1228
|
-
}],
|
|
1229
|
-
url: "/v1/lists/{id}/segments",
|
|
1230
|
-
...options
|
|
1231
|
-
});
|
|
1232
|
-
var listAddSegment = (options) => (options.client ?? client).post({
|
|
1233
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1293
|
+
var collectionAddSegment = (options) => (options.client ?? client).post({
|
|
1294
|
+
security: [{
|
|
1234
1295
|
in: "cookie",
|
|
1235
1296
|
name: "nadeshiko.session_token",
|
|
1236
1297
|
type: "apiKey"
|
|
1237
1298
|
}],
|
|
1238
|
-
url: "/v1/
|
|
1299
|
+
url: "/v1/collections/{id}/segments",
|
|
1239
1300
|
...options,
|
|
1240
1301
|
headers: {
|
|
1241
1302
|
"Content-Type": "application/json",
|
|
1242
1303
|
...options.headers
|
|
1243
1304
|
}
|
|
1244
1305
|
});
|
|
1245
|
-
var
|
|
1246
|
-
security: [{
|
|
1306
|
+
var collectionRemoveSegment = (options) => (options.client ?? client).delete({
|
|
1307
|
+
security: [{
|
|
1247
1308
|
in: "cookie",
|
|
1248
1309
|
name: "nadeshiko.session_token",
|
|
1249
1310
|
type: "apiKey"
|
|
1250
1311
|
}],
|
|
1251
|
-
url: "/v1/
|
|
1312
|
+
url: "/v1/collections/{id}/segments/{uuid}",
|
|
1252
1313
|
...options
|
|
1253
1314
|
});
|
|
1254
|
-
var
|
|
1255
|
-
security: [{
|
|
1315
|
+
var collectionUpdateSegment = (options) => (options.client ?? client).patch({
|
|
1316
|
+
security: [{
|
|
1256
1317
|
in: "cookie",
|
|
1257
1318
|
name: "nadeshiko.session_token",
|
|
1258
1319
|
type: "apiKey"
|
|
1259
1320
|
}],
|
|
1260
|
-
url: "/v1/
|
|
1321
|
+
url: "/v1/collections/{id}/segments/{uuid}",
|
|
1261
1322
|
...options,
|
|
1262
1323
|
headers: {
|
|
1263
1324
|
"Content-Type": "application/json",
|
|
1264
1325
|
...options.headers
|
|
1265
1326
|
}
|
|
1266
1327
|
});
|
|
1328
|
+
var adminDashboardShow = (options) => (options?.client ?? client).get({
|
|
1329
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1330
|
+
url: "/v1/admin/dashboard",
|
|
1331
|
+
...options
|
|
1332
|
+
});
|
|
1333
|
+
var adminHealthShow = (options) => (options?.client ?? client).get({
|
|
1334
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1335
|
+
url: "/v1/admin/health",
|
|
1336
|
+
...options
|
|
1337
|
+
});
|
|
1267
1338
|
var adminReindexCreate = (options) => (options?.client ?? client).post({
|
|
1268
1339
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1269
1340
|
url: "/v1/admin/reindex",
|
|
@@ -1298,15 +1369,6 @@ var adminQueueFailedDestroy = (options) => (options.client ?? client).delete({
|
|
|
1298
1369
|
url: "/v1/admin/queues/{queueName}/purge",
|
|
1299
1370
|
...options
|
|
1300
1371
|
});
|
|
1301
|
-
var adminMorphemeBackfillCreate = (options) => (options?.client ?? client).post({
|
|
1302
|
-
security: [{ scheme: "bearer", type: "http" }, {
|
|
1303
|
-
in: "cookie",
|
|
1304
|
-
name: "nadeshiko.session_token",
|
|
1305
|
-
type: "apiKey"
|
|
1306
|
-
}],
|
|
1307
|
-
url: "/v1/admin/morpheme-backfill",
|
|
1308
|
-
...options
|
|
1309
|
-
});
|
|
1310
1372
|
var adminReportIndex = (options) => (options?.client ?? client).get({
|
|
1311
1373
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1312
1374
|
url: "/v1/admin/reports",
|
|
@@ -1393,31 +1455,25 @@ function createNadeshikoClient(config) {
|
|
|
1393
1455
|
segmentShow: (options) => segmentShow({ ...options, client: clientInstance }),
|
|
1394
1456
|
segmentShowByUuid: (options) => segmentShowByUuid({ ...options, client: clientInstance }),
|
|
1395
1457
|
segmentContextShow: (options) => segmentContextShow({ ...options, client: clientInstance }),
|
|
1458
|
+
seriesIndex: (options) => seriesIndex({ ...options, client: clientInstance }),
|
|
1459
|
+
seriesShow: (options) => seriesShow({ ...options, client: clientInstance }),
|
|
1396
1460
|
characterShow: (options) => characterShow({ ...options, client: clientInstance }),
|
|
1397
1461
|
seiyuuShow: (options) => seiyuuShow({ ...options, client: clientInstance }),
|
|
1398
1462
|
userQuotaShow: (options) => userQuotaShow({ ...options, client: clientInstance }),
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
labIndex: (options) => labIndex({ ...options, client: clientInstance }),
|
|
1408
|
-
listIndex: (options) => listIndex({ ...options, client: clientInstance }),
|
|
1409
|
-
listShow: (options) => listShow({ ...options, client: clientInstance }),
|
|
1410
|
-
listGetSegments: (options) => listGetSegments({ ...options, client: clientInstance }),
|
|
1411
|
-
listAddSegment: (options) => listAddSegment({ ...options, client: clientInstance }),
|
|
1412
|
-
listUpdateSegment: (options) => listUpdateSegment({ ...options, client: clientInstance }),
|
|
1413
|
-
listRemoveSegment: (options) => listRemoveSegment({ ...options, client: clientInstance }),
|
|
1463
|
+
collectionIndex: (options) => collectionIndex({ ...options, client: clientInstance }),
|
|
1464
|
+
collectionCreate: (options) => collectionCreate({ ...options, client: clientInstance }),
|
|
1465
|
+
collectionShow: (options) => collectionShow({ ...options, client: clientInstance }),
|
|
1466
|
+
collectionUpdate: (options) => collectionUpdate({ ...options, client: clientInstance }),
|
|
1467
|
+
collectionDestroy: (options) => collectionDestroy({ ...options, client: clientInstance }),
|
|
1468
|
+
collectionAddSegment: (options) => collectionAddSegment({ ...options, client: clientInstance }),
|
|
1469
|
+
collectionUpdateSegment: (options) => collectionUpdateSegment({ ...options, client: clientInstance }),
|
|
1470
|
+
collectionRemoveSegment: (options) => collectionRemoveSegment({ ...options, client: clientInstance }),
|
|
1414
1471
|
adminReindexCreate: (options) => adminReindexCreate({ ...options, client: clientInstance }),
|
|
1415
1472
|
adminQueueStatsIndex: (options) => adminQueueStatsIndex({ ...options, client: clientInstance }),
|
|
1416
1473
|
adminQueueShow: (options) => adminQueueShow({ ...options, client: clientInstance }),
|
|
1417
1474
|
adminQueueFailedIndex: (options) => adminQueueFailedIndex({ ...options, client: clientInstance }),
|
|
1418
1475
|
adminQueueRetryCreate: (options) => adminQueueRetryCreate({ ...options, client: clientInstance }),
|
|
1419
1476
|
adminQueueFailedDestroy: (options) => adminQueueFailedDestroy({ ...options, client: clientInstance }),
|
|
1420
|
-
adminMorphemeBackfillCreate: (options) => adminMorphemeBackfillCreate({ ...options, client: clientInstance }),
|
|
1421
1477
|
adminReportIndex: (options) => adminReportIndex({ ...options, client: clientInstance }),
|
|
1422
1478
|
adminReportUpdate: (options) => adminReportUpdate({ ...options, client: clientInstance }),
|
|
1423
1479
|
adminReviewRunCreate: (options) => adminReviewRunCreate({ ...options, client: clientInstance }),
|
|
@@ -1428,7 +1484,6 @@ function createNadeshikoClient(config) {
|
|
|
1428
1484
|
adminReviewAllowlistIndex: (options) => adminReviewAllowlistIndex({ ...options, client: clientInstance }),
|
|
1429
1485
|
adminReviewAllowlistCreate: (options) => adminReviewAllowlistCreate({ ...options, client: clientInstance }),
|
|
1430
1486
|
adminReviewAllowlistDestroy: (options) => adminReviewAllowlistDestroy({ ...options, client: clientInstance }),
|
|
1431
|
-
healthCheck: (options) => healthCheck({ ...options, client: clientInstance }),
|
|
1432
1487
|
mediaCreate: (options) => mediaCreate({ ...options, client: clientInstance }),
|
|
1433
1488
|
mediaUpdate: (options) => mediaUpdate({ ...options, client: clientInstance }),
|
|
1434
1489
|
mediaDestroy: (options) => mediaDestroy({ ...options, client: clientInstance }),
|
|
@@ -1439,23 +1494,36 @@ function createNadeshikoClient(config) {
|
|
|
1439
1494
|
segmentCreate: (options) => segmentCreate({ ...options, client: clientInstance }),
|
|
1440
1495
|
segmentUpdate: (options) => segmentUpdate({ ...options, client: clientInstance }),
|
|
1441
1496
|
segmentDestroy: (options) => segmentDestroy({ ...options, client: clientInstance }),
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1497
|
+
seriesCreate: (options) => seriesCreate({ ...options, client: clientInstance }),
|
|
1498
|
+
seriesUpdate: (options) => seriesUpdate({ ...options, client: clientInstance }),
|
|
1499
|
+
seriesDestroy: (options) => seriesDestroy({ ...options, client: clientInstance }),
|
|
1500
|
+
seriesAddMedia: (options) => seriesAddMedia({ ...options, client: clientInstance }),
|
|
1501
|
+
seriesUpdateMedia: (options) => seriesUpdateMedia({ ...options, client: clientInstance }),
|
|
1502
|
+
seriesRemoveMedia: (options) => seriesRemoveMedia({ ...options, client: clientInstance }),
|
|
1503
|
+
userReportCreate: (options) => userReportCreate({ ...options, client: clientInstance }),
|
|
1504
|
+
userReportIndex: (options) => userReportIndex({ ...options, client: clientInstance }),
|
|
1505
|
+
userPreferencesShow: (options) => userPreferencesShow({ ...options, client: clientInstance }),
|
|
1506
|
+
userPreferencesUpdate: (options) => userPreferencesUpdate({ ...options, client: clientInstance }),
|
|
1507
|
+
userActivityIndex: (options) => userActivityIndex({ ...options, client: clientInstance }),
|
|
1508
|
+
userActivityDestroy: (options) => userActivityDestroy({ ...options, client: clientInstance }),
|
|
1509
|
+
userActivityHeatmapShow: (options) => userActivityHeatmapShow({ ...options, client: clientInstance }),
|
|
1510
|
+
userActivityStatsShow: (options) => userActivityStatsShow({ ...options, client: clientInstance }),
|
|
1511
|
+
userExportShow: (options) => userExportShow({ ...options, client: clientInstance }),
|
|
1512
|
+
userLabsIndex: (options) => userLabsIndex({ ...options, client: clientInstance }),
|
|
1513
|
+
adminDashboardShow: (options) => adminDashboardShow({ ...options, client: clientInstance }),
|
|
1514
|
+
adminHealthShow: (options) => adminHealthShow({ ...options, client: clientInstance })
|
|
1448
1515
|
};
|
|
1449
1516
|
}
|
|
1450
1517
|
var createClient2 = createNadeshikoClient;
|
|
1451
|
-
// generated/dev/internal/search.gen.ts
|
|
1452
|
-
var exports_search_gen = {};
|
|
1453
|
-
__export(exports_search_gen, {
|
|
1454
|
-
healthCheck: () => healthCheck
|
|
1455
|
-
});
|
|
1456
1518
|
// generated/dev/internal/media.gen.ts
|
|
1457
1519
|
var exports_media_gen = {};
|
|
1458
1520
|
__export(exports_media_gen, {
|
|
1521
|
+
seriesUpdateMedia: () => seriesUpdateMedia,
|
|
1522
|
+
seriesUpdate: () => seriesUpdate,
|
|
1523
|
+
seriesRemoveMedia: () => seriesRemoveMedia,
|
|
1524
|
+
seriesDestroy: () => seriesDestroy,
|
|
1525
|
+
seriesCreate: () => seriesCreate,
|
|
1526
|
+
seriesAddMedia: () => seriesAddMedia,
|
|
1459
1527
|
segmentUpdate: () => segmentUpdate,
|
|
1460
1528
|
segmentIndex: () => segmentIndex,
|
|
1461
1529
|
segmentDestroy: () => segmentDestroy,
|
|
@@ -1467,16 +1535,26 @@ __export(exports_media_gen, {
|
|
|
1467
1535
|
episodeDestroy: () => episodeDestroy,
|
|
1468
1536
|
episodeCreate: () => episodeCreate
|
|
1469
1537
|
});
|
|
1470
|
-
// generated/dev/internal/
|
|
1471
|
-
var
|
|
1472
|
-
__export(
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1538
|
+
// generated/dev/internal/user.gen.ts
|
|
1539
|
+
var exports_user_gen = {};
|
|
1540
|
+
__export(exports_user_gen, {
|
|
1541
|
+
userReportIndex: () => userReportIndex,
|
|
1542
|
+
userReportCreate: () => userReportCreate,
|
|
1543
|
+
userPreferencesUpdate: () => userPreferencesUpdate,
|
|
1544
|
+
userPreferencesShow: () => userPreferencesShow,
|
|
1545
|
+
userLabsIndex: () => userLabsIndex,
|
|
1546
|
+
userExportShow: () => userExportShow,
|
|
1547
|
+
userActivityStatsShow: () => userActivityStatsShow,
|
|
1548
|
+
userActivityIndex: () => userActivityIndex,
|
|
1549
|
+
userActivityHeatmapShow: () => userActivityHeatmapShow,
|
|
1550
|
+
userActivityDestroy: () => userActivityDestroy
|
|
1551
|
+
});
|
|
1552
|
+
// generated/dev/internal/admin.gen.ts
|
|
1553
|
+
var exports_admin_gen = {};
|
|
1554
|
+
__export(exports_admin_gen, {
|
|
1555
|
+
adminHealthShow: () => adminHealthShow,
|
|
1556
|
+
adminDashboardShow: () => adminDashboardShow
|
|
1479
1557
|
});
|
|
1480
1558
|
|
|
1481
|
-
//# debugId=
|
|
1559
|
+
//# debugId=53D30A77967A251364756E2164756E21
|
|
1482
1560
|
//# sourceMappingURL=index.js.map
|