@brigadasos/nadeshiko-sdk 1.0.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/LICENSE +21 -0
- package/README.md +22 -125
- 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 +1482 -0
- package/dist/index.cjs.map +20 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1461 -6
- package/dist/index.js.map +20 -1
- 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 +13 -20
- package/dist/generated/client/client.gen.d.ts.map +0 -1
- package/dist/generated/client/client.gen.js +0 -236
- package/dist/generated/client/client.gen.js.map +0 -1
- package/dist/generated/client/index.d.ts.map +0 -1
- package/dist/generated/client/index.js +0 -7
- package/dist/generated/client/index.js.map +0 -1
- package/dist/generated/client/types.gen.d.ts.map +0 -1
- package/dist/generated/client/types.gen.js +0 -3
- package/dist/generated/client/types.gen.js.map +0 -1
- package/dist/generated/client/utils.gen.d.ts.map +0 -1
- package/dist/generated/client/utils.gen.js +0 -234
- package/dist/generated/client/utils.gen.js.map +0 -1
- package/dist/generated/client.gen.d.ts.map +0 -1
- package/dist/generated/client.gen.js +0 -4
- package/dist/generated/client.gen.js.map +0 -1
- package/dist/generated/core/auth.gen.d.ts.map +0 -1
- package/dist/generated/core/auth.gen.js +0 -15
- package/dist/generated/core/auth.gen.js.map +0 -1
- package/dist/generated/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/bodySerializer.gen.js +0 -58
- package/dist/generated/core/bodySerializer.gen.js.map +0 -1
- package/dist/generated/core/params.gen.d.ts.map +0 -1
- package/dist/generated/core/params.gen.js +0 -101
- package/dist/generated/core/params.gen.js.map +0 -1
- package/dist/generated/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/pathSerializer.gen.js +0 -115
- package/dist/generated/core/pathSerializer.gen.js.map +0 -1
- package/dist/generated/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/queryKeySerializer.gen.js +0 -100
- package/dist/generated/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/generated/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/generated/core/serverSentEvents.gen.js +0 -138
- package/dist/generated/core/serverSentEvents.gen.js.map +0 -1
- package/dist/generated/core/types.gen.d.ts.map +0 -1
- package/dist/generated/core/types.gen.js +0 -3
- package/dist/generated/core/types.gen.js.map +0 -1
- package/dist/generated/core/utils.gen.d.ts.map +0 -1
- package/dist/generated/core/utils.gen.js +0 -88
- package/dist/generated/core/utils.gen.js.map +0 -1
- package/dist/generated/index.d.ts +0 -3
- package/dist/generated/index.d.ts.map +0 -1
- package/dist/generated/index.js +0 -3
- package/dist/generated/index.js.map +0 -1
- package/dist/generated/sdk.gen.d.ts +0 -97
- package/dist/generated/sdk.gen.d.ts.map +0 -1
- package/dist/generated/sdk.gen.js +0 -132
- package/dist/generated/sdk.gen.js.map +0 -1
- package/dist/generated/types.gen.d.ts +0 -726
- package/dist/generated/types.gen.d.ts.map +0 -1
- package/dist/generated/types.gen.js +0 -3
- package/dist/generated/types.gen.js.map +0 -1
- package/dist/nadeshiko.d.ts +0 -70
- package/dist/nadeshiko.d.ts.map +0 -1
- package/dist/nadeshiko.js +0 -84
- package/dist/nadeshiko.js.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
|
@@ -1,726 +0,0 @@
|
|
|
1
|
-
export type ClientOptions = {
|
|
2
|
-
baseUrl: 'http://localhost:5000/api' | 'https://api.brigadasos.xyz/api' | (string & {});
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* Search result statistics grouped by anime/media
|
|
6
|
-
*/
|
|
7
|
-
export type Statistic = {
|
|
8
|
-
/**
|
|
9
|
-
* Unique identifier for the anime/media
|
|
10
|
-
*/
|
|
11
|
-
anime_id?: number;
|
|
12
|
-
/**
|
|
13
|
-
* Media category (1=Anime, 2=Unknown, 3=J-Drama, 4=Audiobook)
|
|
14
|
-
*/
|
|
15
|
-
category?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Romaji transliteration of the anime name
|
|
18
|
-
*/
|
|
19
|
-
name_anime_romaji?: string;
|
|
20
|
-
/**
|
|
21
|
-
* English translation of the anime name
|
|
22
|
-
*/
|
|
23
|
-
name_anime_en?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Original Japanese name of the anime
|
|
26
|
-
*/
|
|
27
|
-
name_anime_jp?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Total number of sentences found for this anime
|
|
30
|
-
*/
|
|
31
|
-
amount_sentences_found?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Nested object mapping seasons to episodes with hit counts
|
|
34
|
-
*/
|
|
35
|
-
season_with_episode_hits?: {
|
|
36
|
-
[key: string]: {
|
|
37
|
-
[key: string]: number;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Statistics grouped by media category
|
|
43
|
-
*/
|
|
44
|
-
export type CategoryStatistic = {
|
|
45
|
-
/**
|
|
46
|
-
* Media category (1=Anime, 2=Unknown, 3=J-Drama, 4=Audiobook)
|
|
47
|
-
*/
|
|
48
|
-
category?: number;
|
|
49
|
-
/**
|
|
50
|
-
* Number of entries in this category
|
|
51
|
-
*/
|
|
52
|
-
count?: number;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Basic anime/media information included in search results
|
|
56
|
-
*/
|
|
57
|
-
export type BasicInfo = {
|
|
58
|
-
/**
|
|
59
|
-
* Unique identifier for the anime/media
|
|
60
|
-
*/
|
|
61
|
-
id_anime: number;
|
|
62
|
-
/**
|
|
63
|
-
* Romaji transliteration of the anime name
|
|
64
|
-
*/
|
|
65
|
-
name_anime_romaji: string;
|
|
66
|
-
/**
|
|
67
|
-
* English translation of the anime name
|
|
68
|
-
*/
|
|
69
|
-
name_anime_en?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Original Japanese name of the anime
|
|
72
|
-
*/
|
|
73
|
-
name_anime_jp?: string;
|
|
74
|
-
/**
|
|
75
|
-
* URL to the cover image
|
|
76
|
-
*/
|
|
77
|
-
cover?: string;
|
|
78
|
-
/**
|
|
79
|
-
* URL to the banner image
|
|
80
|
-
*/
|
|
81
|
-
banner?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Episode number where the segment appears
|
|
84
|
-
*/
|
|
85
|
-
episode: number;
|
|
86
|
-
/**
|
|
87
|
-
* Season number where the segment appears
|
|
88
|
-
*/
|
|
89
|
-
season: number;
|
|
90
|
-
/**
|
|
91
|
-
* Media category (1=Anime, 2=Unknown, 3=J-Drama, 4=Audiobook)
|
|
92
|
-
*/
|
|
93
|
-
category: number;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Detailed information about a subtitle segment
|
|
97
|
-
*/
|
|
98
|
-
export type SegmentInfo = {
|
|
99
|
-
/**
|
|
100
|
-
* Segment status (0=Deleted, 1=Active, 2=Suspended, 3=Verified, 100=Invalid Sentence, 101=Sentence Too Long)
|
|
101
|
-
*/
|
|
102
|
-
status: number;
|
|
103
|
-
/**
|
|
104
|
-
* Unique identifier for the segment
|
|
105
|
-
*/
|
|
106
|
-
uuid: string;
|
|
107
|
-
/**
|
|
108
|
-
* Position of the segment within the episode
|
|
109
|
-
*/
|
|
110
|
-
position: number;
|
|
111
|
-
/**
|
|
112
|
-
* Timestamp in H:MM:SS.ffffff format (variable-length hours, microseconds) indicating when the segment starts
|
|
113
|
-
*/
|
|
114
|
-
start_time: string;
|
|
115
|
-
/**
|
|
116
|
-
* Timestamp in H:MM:SS.ffffff format (variable-length hours, microseconds) indicating when the segment ends
|
|
117
|
-
*/
|
|
118
|
-
end_time: string;
|
|
119
|
-
/**
|
|
120
|
-
* Original Japanese content of the segment
|
|
121
|
-
*/
|
|
122
|
-
content_jp: string;
|
|
123
|
-
/**
|
|
124
|
-
* Japanese content with search terms highlighted
|
|
125
|
-
*/
|
|
126
|
-
content_jp_highlight?: string;
|
|
127
|
-
/**
|
|
128
|
-
* English translation of the segment content
|
|
129
|
-
*/
|
|
130
|
-
content_en?: string;
|
|
131
|
-
/**
|
|
132
|
-
* English content with search terms highlighted
|
|
133
|
-
*/
|
|
134
|
-
content_en_highlight?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Indicates whether the English translation was machine-translated
|
|
137
|
-
*/
|
|
138
|
-
content_en_mt: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Spanish translation of the segment content
|
|
141
|
-
*/
|
|
142
|
-
content_es?: string;
|
|
143
|
-
/**
|
|
144
|
-
* Spanish content with search terms highlighted
|
|
145
|
-
*/
|
|
146
|
-
content_es_highlight?: string;
|
|
147
|
-
/**
|
|
148
|
-
* Indicates whether the Spanish translation was machine-translated
|
|
149
|
-
*/
|
|
150
|
-
content_es_mt: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Indicates whether the segment contains NSFW (Not Safe For Work) content
|
|
153
|
-
*/
|
|
154
|
-
is_nsfw: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Name of the Japanese voice actor for this segment
|
|
157
|
-
*/
|
|
158
|
-
actor_ja?: string;
|
|
159
|
-
/**
|
|
160
|
-
* Name of the English voice actor for this segment
|
|
161
|
-
*/
|
|
162
|
-
actor_en?: string;
|
|
163
|
-
/**
|
|
164
|
-
* Name of the Spanish voice actor for this segment
|
|
165
|
-
*/
|
|
166
|
-
actor_es?: string;
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* URLs to media resources for a segment
|
|
170
|
-
*/
|
|
171
|
-
export type MediaInfoPath = {
|
|
172
|
-
/**
|
|
173
|
-
* URL to the subtitle image snapshot
|
|
174
|
-
*/
|
|
175
|
-
path_image?: string;
|
|
176
|
-
/**
|
|
177
|
-
* URL to the audio clip for this segment
|
|
178
|
-
*/
|
|
179
|
-
path_audio?: string;
|
|
180
|
-
/**
|
|
181
|
-
* URL to the video clip for this segment
|
|
182
|
-
*/
|
|
183
|
-
path_video?: string;
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* A complete sentence result combining basic info, segment details, and media paths
|
|
187
|
-
*/
|
|
188
|
-
export type Sentence = {
|
|
189
|
-
/**
|
|
190
|
-
* Basic anime/media information
|
|
191
|
-
*/
|
|
192
|
-
basic_info: BasicInfo;
|
|
193
|
-
/**
|
|
194
|
-
* Detailed segment information including translations
|
|
195
|
-
*/
|
|
196
|
-
segment_info: SegmentInfo;
|
|
197
|
-
/**
|
|
198
|
-
* URLs to media resources (images, audio, video)
|
|
199
|
-
*/
|
|
200
|
-
media_info: MediaInfoPath;
|
|
201
|
-
};
|
|
202
|
-
export type SearchHealthCheckResponse = {
|
|
203
|
-
statistics?: Array<Statistic>;
|
|
204
|
-
categoryStatistics?: Array<CategoryStatistic>;
|
|
205
|
-
sentences?: Array<Sentence>;
|
|
206
|
-
/**
|
|
207
|
-
* Cursor for pagination
|
|
208
|
-
*/
|
|
209
|
-
cursor?: Array<number>;
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* Error Response schema for all cases
|
|
213
|
-
*/
|
|
214
|
-
export type Error = {
|
|
215
|
-
/**
|
|
216
|
-
* Specific error code for programmatic handling
|
|
217
|
-
*/
|
|
218
|
-
code: string;
|
|
219
|
-
/**
|
|
220
|
-
* A short, human-readable summary of the problem
|
|
221
|
-
*/
|
|
222
|
-
title: string;
|
|
223
|
-
/**
|
|
224
|
-
* A human-readable explanation specific to this occurrence
|
|
225
|
-
*/
|
|
226
|
-
detail: string;
|
|
227
|
-
/**
|
|
228
|
-
* A URI reference that identifies the problem type (e.g., GitHub issues link)
|
|
229
|
-
*/
|
|
230
|
-
type?: string;
|
|
231
|
-
/**
|
|
232
|
-
* A URI reference that identifies the specific occurrence (e.g., trace ID)
|
|
233
|
-
*/
|
|
234
|
-
instance?: string;
|
|
235
|
-
/**
|
|
236
|
-
* The HTTP status code
|
|
237
|
-
*/
|
|
238
|
-
status: number;
|
|
239
|
-
/**
|
|
240
|
-
* Optional map of field names to their error messages (for validation errors)
|
|
241
|
-
*/
|
|
242
|
-
errors?: {
|
|
243
|
-
[key: string]: string;
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
export type SearchRequest = {
|
|
247
|
-
/**
|
|
248
|
-
* Text or sentence to search (null to search without query)
|
|
249
|
-
*/
|
|
250
|
-
query?: string;
|
|
251
|
-
/**
|
|
252
|
-
* Max amount of entries by response
|
|
253
|
-
*/
|
|
254
|
-
limit?: number;
|
|
255
|
-
/**
|
|
256
|
-
* Unique ID from sentence (Useful to get a specific sentence)
|
|
257
|
-
*/
|
|
258
|
-
uuid?: string;
|
|
259
|
-
/**
|
|
260
|
-
* Media category filter (1=Anime, 2=Unknown, 3=J-Drama, 4=Audiobook)
|
|
261
|
-
*/
|
|
262
|
-
category?: Array<number>;
|
|
263
|
-
/**
|
|
264
|
-
* Unique ID from media
|
|
265
|
-
*/
|
|
266
|
-
anime_id?: number;
|
|
267
|
-
/**
|
|
268
|
-
* Array of seasons to get
|
|
269
|
-
*/
|
|
270
|
-
season?: Array<number>;
|
|
271
|
-
/**
|
|
272
|
-
* Array of episodes to get
|
|
273
|
-
*/
|
|
274
|
-
episode?: Array<number>;
|
|
275
|
-
/**
|
|
276
|
-
* A value from 0 to 1 for random sorting
|
|
277
|
-
*/
|
|
278
|
-
random_seed?: number;
|
|
279
|
-
/**
|
|
280
|
-
* Order by amount of characters
|
|
281
|
-
*/
|
|
282
|
-
content_sort?: 'asc' | 'desc' | 'none' | 'time_asc' | 'time_desc' | 'random';
|
|
283
|
-
/**
|
|
284
|
-
* Current page of search
|
|
285
|
-
*/
|
|
286
|
-
cursor?: Array<number>;
|
|
287
|
-
/**
|
|
288
|
-
* Whether to use exact phrase matching
|
|
289
|
-
*/
|
|
290
|
-
exact_match?: boolean;
|
|
291
|
-
/**
|
|
292
|
-
* Include extra content
|
|
293
|
-
*/
|
|
294
|
-
extra?: boolean;
|
|
295
|
-
/**
|
|
296
|
-
* Minimum content length
|
|
297
|
-
*/
|
|
298
|
-
min_length?: number;
|
|
299
|
-
/**
|
|
300
|
-
* Maximum content length
|
|
301
|
-
*/
|
|
302
|
-
max_length?: number;
|
|
303
|
-
/**
|
|
304
|
-
* Anime IDs to exclude from results
|
|
305
|
-
*/
|
|
306
|
-
excluded_anime_ids?: Array<number>;
|
|
307
|
-
/**
|
|
308
|
-
* Segment status filter
|
|
309
|
-
*/
|
|
310
|
-
status?: Array<number>;
|
|
311
|
-
/**
|
|
312
|
-
* Media filter with seasons and episodes
|
|
313
|
-
*/
|
|
314
|
-
media?: Array<{
|
|
315
|
-
media_id: string;
|
|
316
|
-
seasons: Array<{
|
|
317
|
-
season: number;
|
|
318
|
-
episodes: Array<number>;
|
|
319
|
-
}>;
|
|
320
|
-
}>;
|
|
321
|
-
};
|
|
322
|
-
export type SearchResponse = {
|
|
323
|
-
statistics?: Array<Statistic>;
|
|
324
|
-
categoryStatistics?: Array<CategoryStatistic>;
|
|
325
|
-
sentences?: Array<Sentence>;
|
|
326
|
-
/**
|
|
327
|
-
* Cursor for pagination
|
|
328
|
-
*/
|
|
329
|
-
cursor?: Array<number>;
|
|
330
|
-
};
|
|
331
|
-
export type SearchMultipleRequest = {
|
|
332
|
-
/**
|
|
333
|
-
* List of words to search for
|
|
334
|
-
*/
|
|
335
|
-
words: Array<string>;
|
|
336
|
-
/**
|
|
337
|
-
* Whether to use exact matching
|
|
338
|
-
*/
|
|
339
|
-
exact_match?: boolean;
|
|
340
|
-
};
|
|
341
|
-
/**
|
|
342
|
-
* Media entry containing word matches
|
|
343
|
-
*/
|
|
344
|
-
export type WordMatchMedia = {
|
|
345
|
-
/**
|
|
346
|
-
* Unique identifier for the media
|
|
347
|
-
*/
|
|
348
|
-
media_id?: number;
|
|
349
|
-
/**
|
|
350
|
-
* English translation of the media name
|
|
351
|
-
*/
|
|
352
|
-
english_name?: string;
|
|
353
|
-
/**
|
|
354
|
-
* Original Japanese name of the media
|
|
355
|
-
*/
|
|
356
|
-
japanese_name?: string;
|
|
357
|
-
/**
|
|
358
|
-
* Romaji transliteration of the media name
|
|
359
|
-
*/
|
|
360
|
-
romaji_name?: string;
|
|
361
|
-
/**
|
|
362
|
-
* Number of times the word appears in this media
|
|
363
|
-
*/
|
|
364
|
-
matches?: number;
|
|
365
|
-
};
|
|
366
|
-
/**
|
|
367
|
-
* Word matching result with occurrences across media
|
|
368
|
-
*/
|
|
369
|
-
export type WordMatch = {
|
|
370
|
-
/**
|
|
371
|
-
* The word that was searched for
|
|
372
|
-
*/
|
|
373
|
-
word?: string;
|
|
374
|
-
/**
|
|
375
|
-
* Indicates whether the word was found in any segment
|
|
376
|
-
*/
|
|
377
|
-
is_match?: boolean;
|
|
378
|
-
/**
|
|
379
|
-
* Total number of times this word appears across all media
|
|
380
|
-
*/
|
|
381
|
-
total_matches?: number;
|
|
382
|
-
/**
|
|
383
|
-
* List of media containing this word
|
|
384
|
-
*/
|
|
385
|
-
media?: Array<WordMatchMedia>;
|
|
386
|
-
};
|
|
387
|
-
export type SearchMultipleResponse = {
|
|
388
|
-
results?: Array<WordMatch>;
|
|
389
|
-
};
|
|
390
|
-
export type FetchSentenceContextRequest = {
|
|
391
|
-
/**
|
|
392
|
-
* Media ID
|
|
393
|
-
*/
|
|
394
|
-
media_id: number;
|
|
395
|
-
/**
|
|
396
|
-
* Season number
|
|
397
|
-
*/
|
|
398
|
-
season: number;
|
|
399
|
-
/**
|
|
400
|
-
* Episode number
|
|
401
|
-
*/
|
|
402
|
-
episode: number;
|
|
403
|
-
/**
|
|
404
|
-
* Segment position in the episode
|
|
405
|
-
*/
|
|
406
|
-
segment_position: number;
|
|
407
|
-
/**
|
|
408
|
-
* Number of surrounding segments to retrieve
|
|
409
|
-
*/
|
|
410
|
-
limit?: number;
|
|
411
|
-
};
|
|
412
|
-
export type FetchSentenceContextResponse = {
|
|
413
|
-
sentences: Array<Sentence>;
|
|
414
|
-
};
|
|
415
|
-
/**
|
|
416
|
-
* Statistics about media and segments in the database
|
|
417
|
-
*/
|
|
418
|
-
export type MediaInfoStats = {
|
|
419
|
-
/**
|
|
420
|
-
* Number of anime/media entries in the current result set
|
|
421
|
-
*/
|
|
422
|
-
total_animes?: number;
|
|
423
|
-
/**
|
|
424
|
-
* Number of subtitle segments in the current result set
|
|
425
|
-
*/
|
|
426
|
-
total_segments?: number;
|
|
427
|
-
/**
|
|
428
|
-
* Total number of anime/media entries in the entire database
|
|
429
|
-
*/
|
|
430
|
-
full_total_animes?: number;
|
|
431
|
-
/**
|
|
432
|
-
* Total number of subtitle segments in the entire database
|
|
433
|
-
*/
|
|
434
|
-
full_total_segments?: number;
|
|
435
|
-
};
|
|
436
|
-
/**
|
|
437
|
-
* Complete information about a media/anime entry
|
|
438
|
-
*/
|
|
439
|
-
export type MediaInfoData = {
|
|
440
|
-
/**
|
|
441
|
-
* Unique identifier for the media
|
|
442
|
-
*/
|
|
443
|
-
id: number;
|
|
444
|
-
/**
|
|
445
|
-
* AniList database ID for the media
|
|
446
|
-
*/
|
|
447
|
-
id_anilist?: number;
|
|
448
|
-
/**
|
|
449
|
-
* TMDB (The Movie Database) ID for the media
|
|
450
|
-
*/
|
|
451
|
-
id_tmdb?: number;
|
|
452
|
-
/**
|
|
453
|
-
* Media category (1=Anime, 2=Unknown, 3=J-Drama, 4=Audiobook)
|
|
454
|
-
*/
|
|
455
|
-
category?: number;
|
|
456
|
-
/**
|
|
457
|
-
* Timestamp when the media entry was created in the database
|
|
458
|
-
*/
|
|
459
|
-
created_at?: string;
|
|
460
|
-
/**
|
|
461
|
-
* Timestamp when the media entry was last updated
|
|
462
|
-
*/
|
|
463
|
-
updated_at?: number;
|
|
464
|
-
/**
|
|
465
|
-
* Romaji transliteration of the media name
|
|
466
|
-
*/
|
|
467
|
-
romaji_name?: string;
|
|
468
|
-
/**
|
|
469
|
-
* English translation of the media name
|
|
470
|
-
*/
|
|
471
|
-
english_name?: string;
|
|
472
|
-
/**
|
|
473
|
-
* Original Japanese name of the media
|
|
474
|
-
*/
|
|
475
|
-
japanese_name?: string;
|
|
476
|
-
/**
|
|
477
|
-
* Format of the media release (e.g., TV, OVA, Movie)
|
|
478
|
-
*/
|
|
479
|
-
airing_format?: string;
|
|
480
|
-
/**
|
|
481
|
-
* Current airing status (FINISHED, RELEASING)
|
|
482
|
-
*/
|
|
483
|
-
airing_status?: string;
|
|
484
|
-
/**
|
|
485
|
-
* Original release date of the media (null if unknown)
|
|
486
|
-
*/
|
|
487
|
-
release_date?: string;
|
|
488
|
-
/**
|
|
489
|
-
* Folder name used for storing media files
|
|
490
|
-
*/
|
|
491
|
-
folder_media_name?: string;
|
|
492
|
-
/**
|
|
493
|
-
* List of genres associated with the media
|
|
494
|
-
*/
|
|
495
|
-
genres?: Array<string>;
|
|
496
|
-
/**
|
|
497
|
-
* URL to the cover image
|
|
498
|
-
*/
|
|
499
|
-
cover?: string;
|
|
500
|
-
/**
|
|
501
|
-
* URL to the banner image
|
|
502
|
-
*/
|
|
503
|
-
banner?: string;
|
|
504
|
-
/**
|
|
505
|
-
* Version identifier for the media entry
|
|
506
|
-
*/
|
|
507
|
-
version?: string;
|
|
508
|
-
/**
|
|
509
|
-
* Total number of subtitle segments available
|
|
510
|
-
*/
|
|
511
|
-
num_segments?: number;
|
|
512
|
-
/**
|
|
513
|
-
* Total number of seasons available
|
|
514
|
-
*/
|
|
515
|
-
num_seasons?: number;
|
|
516
|
-
/**
|
|
517
|
-
* Total number of episodes available
|
|
518
|
-
*/
|
|
519
|
-
num_episodes?: number;
|
|
520
|
-
};
|
|
521
|
-
export type FetchMediaInfoResponse = {
|
|
522
|
-
stats?: MediaInfoStats;
|
|
523
|
-
results?: Array<MediaInfoData>;
|
|
524
|
-
/**
|
|
525
|
-
* Next cursor for pagination
|
|
526
|
-
*/
|
|
527
|
-
cursor?: number;
|
|
528
|
-
/**
|
|
529
|
-
* Whether more results are available
|
|
530
|
-
*/
|
|
531
|
-
hasMoreResults?: boolean;
|
|
532
|
-
};
|
|
533
|
-
export type SearchHealthCheckData = {
|
|
534
|
-
body?: never;
|
|
535
|
-
path?: never;
|
|
536
|
-
query?: never;
|
|
537
|
-
url: '/v1/search/health';
|
|
538
|
-
};
|
|
539
|
-
export type SearchHealthCheckErrors = {
|
|
540
|
-
/**
|
|
541
|
-
* Unauthorized
|
|
542
|
-
*/
|
|
543
|
-
401: Error;
|
|
544
|
-
/**
|
|
545
|
-
* Forbidden
|
|
546
|
-
*/
|
|
547
|
-
403: Error;
|
|
548
|
-
/**
|
|
549
|
-
* Too Many Requests
|
|
550
|
-
*/
|
|
551
|
-
429: Error;
|
|
552
|
-
/**
|
|
553
|
-
* Internal Server Error
|
|
554
|
-
*/
|
|
555
|
-
500: Error;
|
|
556
|
-
};
|
|
557
|
-
export type SearchHealthCheckError = SearchHealthCheckErrors[keyof SearchHealthCheckErrors];
|
|
558
|
-
export type SearchHealthCheckResponses = {
|
|
559
|
-
/**
|
|
560
|
-
* OK
|
|
561
|
-
*/
|
|
562
|
-
200: SearchHealthCheckResponse;
|
|
563
|
-
};
|
|
564
|
-
export type SearchHealthCheckResponse2 = SearchHealthCheckResponses[keyof SearchHealthCheckResponses];
|
|
565
|
-
export type SearchData = {
|
|
566
|
-
body?: SearchRequest;
|
|
567
|
-
path?: never;
|
|
568
|
-
query?: never;
|
|
569
|
-
url: '/v1/search/media/sentence';
|
|
570
|
-
};
|
|
571
|
-
export type SearchErrors = {
|
|
572
|
-
/**
|
|
573
|
-
* Bad Request
|
|
574
|
-
*/
|
|
575
|
-
400: Error;
|
|
576
|
-
/**
|
|
577
|
-
* Unauthorized
|
|
578
|
-
*/
|
|
579
|
-
401: Error;
|
|
580
|
-
/**
|
|
581
|
-
* Forbidden
|
|
582
|
-
*/
|
|
583
|
-
403: Error;
|
|
584
|
-
/**
|
|
585
|
-
* Too Many Requests
|
|
586
|
-
*/
|
|
587
|
-
429: Error;
|
|
588
|
-
/**
|
|
589
|
-
* Internal Server Error
|
|
590
|
-
*/
|
|
591
|
-
500: Error;
|
|
592
|
-
};
|
|
593
|
-
export type SearchError = SearchErrors[keyof SearchErrors];
|
|
594
|
-
export type SearchResponses = {
|
|
595
|
-
/**
|
|
596
|
-
* OK
|
|
597
|
-
*/
|
|
598
|
-
200: SearchResponse;
|
|
599
|
-
};
|
|
600
|
-
export type SearchResponse2 = SearchResponses[keyof SearchResponses];
|
|
601
|
-
export type SearchMultipleData = {
|
|
602
|
-
body: SearchMultipleRequest;
|
|
603
|
-
path?: never;
|
|
604
|
-
query?: never;
|
|
605
|
-
url: '/v1/search/media/match/words';
|
|
606
|
-
};
|
|
607
|
-
export type SearchMultipleErrors = {
|
|
608
|
-
/**
|
|
609
|
-
* Bad Request
|
|
610
|
-
*/
|
|
611
|
-
400: Error;
|
|
612
|
-
/**
|
|
613
|
-
* Unauthorized
|
|
614
|
-
*/
|
|
615
|
-
401: Error;
|
|
616
|
-
/**
|
|
617
|
-
* Forbidden
|
|
618
|
-
*/
|
|
619
|
-
403: Error;
|
|
620
|
-
/**
|
|
621
|
-
* Too Many Requests
|
|
622
|
-
*/
|
|
623
|
-
429: Error;
|
|
624
|
-
/**
|
|
625
|
-
* Internal Server Error
|
|
626
|
-
*/
|
|
627
|
-
500: Error;
|
|
628
|
-
};
|
|
629
|
-
export type SearchMultipleError = SearchMultipleErrors[keyof SearchMultipleErrors];
|
|
630
|
-
export type SearchMultipleResponses = {
|
|
631
|
-
/**
|
|
632
|
-
* OK
|
|
633
|
-
*/
|
|
634
|
-
200: SearchMultipleResponse;
|
|
635
|
-
};
|
|
636
|
-
export type SearchMultipleResponse2 = SearchMultipleResponses[keyof SearchMultipleResponses];
|
|
637
|
-
export type FetchSentenceContextData = {
|
|
638
|
-
body: FetchSentenceContextRequest;
|
|
639
|
-
path?: never;
|
|
640
|
-
query?: never;
|
|
641
|
-
url: '/v1/search/media/context';
|
|
642
|
-
};
|
|
643
|
-
export type FetchSentenceContextErrors = {
|
|
644
|
-
/**
|
|
645
|
-
* Bad Request
|
|
646
|
-
*/
|
|
647
|
-
400: Error;
|
|
648
|
-
/**
|
|
649
|
-
* Unauthorized
|
|
650
|
-
*/
|
|
651
|
-
401: Error;
|
|
652
|
-
/**
|
|
653
|
-
* Forbidden
|
|
654
|
-
*/
|
|
655
|
-
403: Error;
|
|
656
|
-
/**
|
|
657
|
-
* Not Found
|
|
658
|
-
*/
|
|
659
|
-
404: Error;
|
|
660
|
-
/**
|
|
661
|
-
* Too Many Requests
|
|
662
|
-
*/
|
|
663
|
-
429: Error;
|
|
664
|
-
/**
|
|
665
|
-
* Internal Server Error
|
|
666
|
-
*/
|
|
667
|
-
500: Error;
|
|
668
|
-
};
|
|
669
|
-
export type FetchSentenceContextError = FetchSentenceContextErrors[keyof FetchSentenceContextErrors];
|
|
670
|
-
export type FetchSentenceContextResponses = {
|
|
671
|
-
/**
|
|
672
|
-
* OK
|
|
673
|
-
*/
|
|
674
|
-
200: FetchSentenceContextResponse;
|
|
675
|
-
};
|
|
676
|
-
export type FetchSentenceContextResponse2 = FetchSentenceContextResponses[keyof FetchSentenceContextResponses];
|
|
677
|
-
export type FetchMediaInfoData = {
|
|
678
|
-
body?: never;
|
|
679
|
-
path?: never;
|
|
680
|
-
query?: {
|
|
681
|
-
/**
|
|
682
|
-
* Number of results per page
|
|
683
|
-
*/
|
|
684
|
-
size?: number;
|
|
685
|
-
/**
|
|
686
|
-
* Pagination cursor offset
|
|
687
|
-
*/
|
|
688
|
-
cursor?: number;
|
|
689
|
-
/**
|
|
690
|
-
* Search query for filtering media
|
|
691
|
-
*/
|
|
692
|
-
query?: string;
|
|
693
|
-
/**
|
|
694
|
-
* Filter by media category
|
|
695
|
-
*/
|
|
696
|
-
type?: 'anime' | 'liveaction' | 'audiobook';
|
|
697
|
-
};
|
|
698
|
-
url: '/v1/search/media/info';
|
|
699
|
-
};
|
|
700
|
-
export type FetchMediaInfoErrors = {
|
|
701
|
-
/**
|
|
702
|
-
* Unauthorized
|
|
703
|
-
*/
|
|
704
|
-
401: Error;
|
|
705
|
-
/**
|
|
706
|
-
* Forbidden
|
|
707
|
-
*/
|
|
708
|
-
403: Error;
|
|
709
|
-
/**
|
|
710
|
-
* Too Many Requests
|
|
711
|
-
*/
|
|
712
|
-
429: Error;
|
|
713
|
-
/**
|
|
714
|
-
* Internal Server Error
|
|
715
|
-
*/
|
|
716
|
-
500: Error;
|
|
717
|
-
};
|
|
718
|
-
export type FetchMediaInfoError = FetchMediaInfoErrors[keyof FetchMediaInfoErrors];
|
|
719
|
-
export type FetchMediaInfoResponses = {
|
|
720
|
-
/**
|
|
721
|
-
* OK
|
|
722
|
-
*/
|
|
723
|
-
200: FetchMediaInfoResponse;
|
|
724
|
-
};
|
|
725
|
-
export type FetchMediaInfoResponse2 = FetchMediaInfoResponses[keyof FetchMediaInfoResponses];
|
|
726
|
-
//# sourceMappingURL=types.gen.d.ts.map
|