@brigadasos/nadeshiko-sdk 1.3.0 → 1.4.0-dev.28a0384

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +105 -2
  2. package/dist/client/client.gen.d.ts.map +1 -0
  3. package/dist/client/index.d.ts.map +1 -0
  4. package/dist/client/types.gen.d.ts.map +1 -0
  5. package/dist/client/utils.gen.d.ts.map +1 -0
  6. package/dist/client.gen.d.ts.map +1 -0
  7. package/dist/core/auth.gen.d.ts.map +1 -0
  8. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  9. package/dist/core/params.gen.d.ts.map +1 -0
  10. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  11. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  12. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  13. package/dist/core/types.gen.d.ts.map +1 -0
  14. package/dist/core/utils.gen.d.ts.map +1 -0
  15. package/dist/index.cjs +622 -55
  16. package/dist/index.cjs.map +5 -5
  17. package/dist/index.d.ts +6 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +629 -51
  20. package/dist/index.js.map +5 -5
  21. package/dist/internal/admin.gen.d.ts +2 -0
  22. package/dist/internal/admin.gen.d.ts.map +1 -0
  23. package/dist/internal/media.gen.d.ts +2 -0
  24. package/dist/internal/media.gen.d.ts.map +1 -0
  25. package/dist/internal/user.gen.d.ts +2 -0
  26. package/dist/internal/user.gen.d.ts.map +1 -0
  27. package/dist/internal.gen.d.ts +4 -0
  28. package/dist/internal.gen.d.ts.map +1 -0
  29. package/dist/nadeshiko.gen.d.ts +79 -0
  30. package/dist/nadeshiko.gen.d.ts.map +1 -0
  31. package/dist/sdk.gen.d.ts +660 -0
  32. package/dist/sdk.gen.d.ts.map +1 -0
  33. package/dist/types.gen.d.ts +5121 -0
  34. package/dist/types.gen.d.ts.map +1 -0
  35. package/package.json +4 -8
  36. package/dist/generated/client/client.gen.d.ts.map +0 -1
  37. package/dist/generated/client/index.d.ts.map +0 -1
  38. package/dist/generated/client/types.gen.d.ts.map +0 -1
  39. package/dist/generated/client/utils.gen.d.ts.map +0 -1
  40. package/dist/generated/client.gen.d.ts.map +0 -1
  41. package/dist/generated/core/auth.gen.d.ts.map +0 -1
  42. package/dist/generated/core/bodySerializer.gen.d.ts.map +0 -1
  43. package/dist/generated/core/params.gen.d.ts.map +0 -1
  44. package/dist/generated/core/pathSerializer.gen.d.ts.map +0 -1
  45. package/dist/generated/core/queryKeySerializer.gen.d.ts.map +0 -1
  46. package/dist/generated/core/serverSentEvents.gen.d.ts.map +0 -1
  47. package/dist/generated/core/types.gen.d.ts.map +0 -1
  48. package/dist/generated/core/utils.gen.d.ts.map +0 -1
  49. package/dist/generated/index.d.ts +0 -6
  50. package/dist/generated/index.d.ts.map +0 -1
  51. package/dist/generated/nadeshiko.gen.d.ts +0 -27
  52. package/dist/generated/nadeshiko.gen.d.ts.map +0 -1
  53. package/dist/generated/sdk.gen.d.ts +0 -257
  54. package/dist/generated/sdk.gen.d.ts.map +0 -1
  55. package/dist/generated/types.gen.d.ts +0 -2001
  56. package/dist/generated/types.gen.d.ts.map +0 -1
  57. /package/dist/{generated/client → client}/client.gen.d.ts +0 -0
  58. /package/dist/{generated/client → client}/index.d.ts +0 -0
  59. /package/dist/{generated/client → client}/types.gen.d.ts +0 -0
  60. /package/dist/{generated/client → client}/utils.gen.d.ts +0 -0
  61. /package/dist/{generated/client.gen.d.ts → client.gen.d.ts} +0 -0
  62. /package/dist/{generated/core → core}/auth.gen.d.ts +0 -0
  63. /package/dist/{generated/core → core}/bodySerializer.gen.d.ts +0 -0
  64. /package/dist/{generated/core → core}/params.gen.d.ts +0 -0
  65. /package/dist/{generated/core → core}/pathSerializer.gen.d.ts +0 -0
  66. /package/dist/{generated/core → core}/queryKeySerializer.gen.d.ts +0 -0
  67. /package/dist/{generated/core → core}/serverSentEvents.gen.d.ts +0 -0
  68. /package/dist/{generated/core → core}/types.gen.d.ts +0 -0
  69. /package/dist/{generated/core → core}/utils.gen.d.ts +0 -0
@@ -0,0 +1,660 @@
1
+ import type { Client, Options as Options2, TDataShape } from './client';
2
+ import type { AdminDashboardShowData, AdminDashboardShowErrors, AdminDashboardShowResponses, AdminHealthShowData, AdminHealthShowErrors, AdminHealthShowResponses, AdminQueueFailedDestroyData, AdminQueueFailedDestroyErrors, AdminQueueFailedDestroyResponses, AdminQueueFailedIndexData, AdminQueueFailedIndexErrors, AdminQueueFailedIndexResponses, AdminQueueRetryCreateData, AdminQueueRetryCreateErrors, AdminQueueRetryCreateResponses, AdminQueueShowData, AdminQueueShowErrors, AdminQueueShowResponses, AdminQueueStatsIndexData, AdminQueueStatsIndexErrors, AdminQueueStatsIndexResponses, AdminReindexCreateData, AdminReindexCreateErrors, AdminReindexCreateResponses, AdminReportIndexData, AdminReportIndexErrors, AdminReportIndexResponses, AdminReportUpdateData, AdminReportUpdateErrors, AdminReportUpdateResponses, AdminReviewAllowlistCreateData, AdminReviewAllowlistCreateErrors, AdminReviewAllowlistCreateResponses, AdminReviewAllowlistDestroyData, AdminReviewAllowlistDestroyErrors, AdminReviewAllowlistDestroyResponses, AdminReviewAllowlistIndexData, AdminReviewAllowlistIndexErrors, AdminReviewAllowlistIndexResponses, AdminReviewCheckIndexData, AdminReviewCheckIndexErrors, AdminReviewCheckIndexResponses, AdminReviewCheckUpdateData, AdminReviewCheckUpdateErrors, AdminReviewCheckUpdateResponses, AdminReviewRunCreateData, AdminReviewRunCreateErrors, AdminReviewRunCreateResponses, AdminReviewRunIndexData, AdminReviewRunIndexErrors, AdminReviewRunIndexResponses, AdminReviewRunShowData, AdminReviewRunShowErrors, AdminReviewRunShowResponses, CharacterShowData, CharacterShowErrors, CharacterShowResponses, CollectionAddSegmentData, CollectionAddSegmentErrors, CollectionAddSegmentResponses, CollectionCreateData, CollectionCreateErrors, CollectionCreateResponses, CollectionDestroyData, CollectionDestroyErrors, CollectionDestroyResponses, CollectionIndexData, CollectionIndexErrors, CollectionIndexResponses, CollectionRemoveSegmentData, CollectionRemoveSegmentErrors, CollectionRemoveSegmentResponses, CollectionShowData, CollectionShowErrors, CollectionShowResponses, CollectionUpdateData, CollectionUpdateErrors, CollectionUpdateResponses, CollectionUpdateSegmentData, CollectionUpdateSegmentErrors, CollectionUpdateSegmentResponses, EpisodeCreateData, EpisodeCreateErrors, EpisodeCreateResponses, EpisodeDestroyData, EpisodeDestroyErrors, EpisodeDestroyResponses, EpisodeIndexData, EpisodeIndexErrors, EpisodeIndexResponses, EpisodeShowData, EpisodeShowErrors, EpisodeShowResponses, EpisodeUpdateData, EpisodeUpdateErrors, EpisodeUpdateResponses, MediaCreateData, MediaCreateErrors, MediaCreateResponses, MediaDestroyData, MediaDestroyErrors, MediaDestroyResponses, MediaIndexData, MediaIndexErrors, MediaIndexResponses, MediaShowData, MediaShowErrors, MediaShowResponses, MediaUpdateData, MediaUpdateErrors, MediaUpdateResponses, SearchIndexData, SearchIndexErrors, SearchIndexResponses, SearchStatsData, SearchStatsErrors, SearchStatsResponses, SearchWordsData, SearchWordsErrors, SearchWordsResponses, SegmentContextShowData, SegmentContextShowErrors, SegmentContextShowResponses, SegmentCreateData, SegmentCreateErrors, SegmentCreateResponses, SegmentDestroyData, SegmentDestroyErrors, SegmentDestroyResponses, SegmentIndexData, SegmentIndexErrors, SegmentIndexResponses, SegmentShowByUuidData, SegmentShowByUuidErrors, SegmentShowByUuidResponses, SegmentShowData, SegmentShowErrors, SegmentShowResponses, SegmentUpdateData, SegmentUpdateErrors, SegmentUpdateResponses, SeiyuuShowData, SeiyuuShowErrors, SeiyuuShowResponses, SeriesAddMediaData, SeriesAddMediaErrors, SeriesAddMediaResponses, SeriesCreateData, SeriesCreateErrors, SeriesCreateResponses, SeriesDestroyData, SeriesDestroyErrors, SeriesDestroyResponses, SeriesIndexData, SeriesIndexErrors, SeriesIndexResponses, SeriesRemoveMediaData, SeriesRemoveMediaErrors, SeriesRemoveMediaResponses, SeriesShowData, SeriesShowErrors, SeriesShowResponses, SeriesUpdateData, SeriesUpdateErrors, SeriesUpdateMediaData, SeriesUpdateMediaErrors, SeriesUpdateMediaResponses, SeriesUpdateResponses, UserActivityDestroyData, UserActivityDestroyErrors, UserActivityDestroyResponses, UserActivityHeatmapShowData, UserActivityHeatmapShowErrors, UserActivityHeatmapShowResponses, UserActivityIndexData, UserActivityIndexErrors, UserActivityIndexResponses, UserActivityStatsShowData, UserActivityStatsShowErrors, UserActivityStatsShowResponses, UserExportShowData, UserExportShowErrors, UserExportShowResponses, UserLabsIndexData, UserLabsIndexErrors, UserLabsIndexResponses, UserPreferencesShowData, UserPreferencesShowErrors, UserPreferencesShowResponses, UserPreferencesUpdateData, UserPreferencesUpdateErrors, UserPreferencesUpdateResponses, UserQuotaShowData, UserQuotaShowErrors, UserQuotaShowResponses, UserReportCreateData, UserReportCreateErrors, UserReportCreateResponses, UserReportIndexData, UserReportIndexErrors, UserReportIndexResponses } from './types.gen';
3
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
+ /**
5
+ * You can provide a client instance returned by `createClient()` instead of
6
+ * individual options. This might be also useful if you want to implement a
7
+ * custom client.
8
+ */
9
+ client?: Client;
10
+ /**
11
+ * You can pass arbitrary values through the `meta` object. This can be
12
+ * used to access values that aren't defined as part of the SDK function.
13
+ */
14
+ meta?: Record<string, unknown>;
15
+ };
16
+ /**
17
+ * Search segments by query
18
+ *
19
+ * The primary search endpoint for finding Japanese segments and their translations across indexed media (anime, J-Drama, audiobooks).
20
+ *
21
+ * This endpoint uses Elasticsearch with advanced Japanese text analysis supporting multiple input types (romaji, kanji, kana) and providing intelligent field-based boosting.
22
+ *
23
+ * **Query Features**
24
+ * - **Multi-language Support:** Search using Japanese (kanji/kana), Romaji, or English/Spanish
25
+ * - **Boolean Operators:** `AND`, `OR`, `NOT` supported (e.g., `(cat OR dog) AND bird`)
26
+ * - **Phrase Matching:** Use quotes for exact phrases (e.g., `"good morning"`), or pass `exact_match: true` to the request body
27
+ * - **Wildcards:** `te*t` format (leading wildcards not supported)
28
+ * - **Smart Field Selection:** Automatically chooses optimal search fields based on input type
29
+ *
30
+ * **Input Type Handling**
31
+ * | Input Type | Search Strategy |
32
+ * |------------|-----------------|
33
+ * | **Romaji** (`go`, `taberu`) | Boosts EN/ES translations, reading form (pronunciation), and base form |
34
+ * | **Kanji** (`食べる`, `彼女`) | Searches content and base form (dictionary form). Ignores matches by reading (homophones). |
35
+ * | **Kana** (`たべる`, `かのじょ`) | Standard search across content, base form, and reading form |
36
+ * | **English/Spanish** | Direct translation search |
37
+ *
38
+ * **Permissions:** `READ_MEDIA`
39
+ *
40
+ */
41
+ export declare const searchIndex: <ThrowOnError extends boolean = false>(options?: Options<SearchIndexData, ThrowOnError>) => import("./client").RequestResult<SearchIndexResponses, SearchIndexErrors, ThrowOnError, "fields">;
42
+ /**
43
+ * Get search statistics
44
+ *
45
+ * Returns statistics for search filters and category tabs without fetching segment rows.
46
+ *
47
+ * This endpoint is optimized for UI filter panels:
48
+ * - `media` powers the media dropdown on the right side.
49
+ * - `categories` powers category tabs below the search bar.
50
+ *
51
+ * The stats are scoped by query and category filters, but are not narrowed by a selected media/episode.
52
+ *
53
+ * **Permissions:** `READ_MEDIA`
54
+ *
55
+ */
56
+ export declare const searchStats: <ThrowOnError extends boolean = false>(options?: Options<SearchStatsData, ThrowOnError>) => import("./client").RequestResult<SearchStatsResponses, SearchStatsErrors, ThrowOnError, "fields">;
57
+ /**
58
+ * Search by multiple words
59
+ *
60
+ * Searches for multiple words simultaneously and aggregates results by media.
61
+ *
62
+ * Unlike the main search endpoint, this returns a summary of matches per media rather than individual segments.
63
+ *
64
+ * **Use Cases**
65
+ * - Vocabulary discovery across media library
66
+ * - Finding anime/dramas that use specific words
67
+ * - Comparing word usage across different titles
68
+ *
69
+ * **Permissions:** `READ_MEDIA`
70
+ *
71
+ */
72
+ export declare const searchWords: <ThrowOnError extends boolean = false>(options: Options<SearchWordsData, ThrowOnError>) => import("./client").RequestResult<SearchWordsResponses, SearchWordsErrors, ThrowOnError, "fields">;
73
+ /**
74
+ * List all media
75
+ *
76
+ * Returns a paginated list of media with full metadata, including cover/banner images, episode counts, and genres.
77
+ * Supports filtering by category and text search.
78
+ *
79
+ * **Permissions:** `READ_MEDIA`
80
+ *
81
+ */
82
+ export declare const mediaIndex: <ThrowOnError extends boolean = false>(options?: Options<MediaIndexData, ThrowOnError>) => import("./client").RequestResult<MediaIndexResponses, MediaIndexErrors, ThrowOnError, "fields">;
83
+ /**
84
+ * Create new media
85
+ *
86
+ * Creates a new media entry in the database.
87
+ *
88
+ * **Permissions:** `ADD_MEDIA`
89
+ *
90
+ */
91
+ export declare const mediaCreate: <ThrowOnError extends boolean = false>(options: Options<MediaCreateData, ThrowOnError>) => import("./client").RequestResult<MediaCreateResponses, MediaCreateErrors, ThrowOnError, "fields">;
92
+ /**
93
+ * Delete media (soft delete)
94
+ *
95
+ * Soft-deletes a media entry by setting the `deletedAt` timestamp. The media remains in the database but is excluded from query results.
96
+ *
97
+ * **Permissions:** `REMOVE_MEDIA`
98
+ *
99
+ */
100
+ export declare const mediaDestroy: <ThrowOnError extends boolean = false>(options: Options<MediaDestroyData, ThrowOnError>) => import("./client").RequestResult<MediaDestroyResponses, MediaDestroyErrors, ThrowOnError, "fields">;
101
+ /**
102
+ * Get single media
103
+ *
104
+ * Returns a single media entry by its ID with full metadata.
105
+ *
106
+ * **Permissions:** `READ_MEDIA`
107
+ *
108
+ */
109
+ export declare const mediaShow: <ThrowOnError extends boolean = false>(options: Options<MediaShowData, ThrowOnError>) => import("./client").RequestResult<MediaShowResponses, MediaShowErrors, ThrowOnError, "fields">;
110
+ /**
111
+ * Update media
112
+ *
113
+ * Updates an existing media entry. Only provided fields will be updated.
114
+ *
115
+ * **Permissions:** `UPDATE_MEDIA`
116
+ *
117
+ */
118
+ export declare const mediaUpdate: <ThrowOnError extends boolean = false>(options: Options<MediaUpdateData, ThrowOnError>) => import("./client").RequestResult<MediaUpdateResponses, MediaUpdateErrors, ThrowOnError, "fields">;
119
+ /**
120
+ * List episodes for a media
121
+ *
122
+ * Returns a paginated list of episodes for a specific media.
123
+ *
124
+ * **Permissions:** `READ_MEDIA`
125
+ *
126
+ */
127
+ export declare const episodeIndex: <ThrowOnError extends boolean = false>(options: Options<EpisodeIndexData, ThrowOnError>) => import("./client").RequestResult<EpisodeIndexResponses, EpisodeIndexErrors, ThrowOnError, "fields">;
128
+ /**
129
+ * Create new episode
130
+ *
131
+ * Creates a new episode for a specific media.
132
+ *
133
+ * **Permissions:** `ADD_MEDIA`
134
+ *
135
+ */
136
+ export declare const episodeCreate: <ThrowOnError extends boolean = false>(options: Options<EpisodeCreateData, ThrowOnError>) => import("./client").RequestResult<EpisodeCreateResponses, EpisodeCreateErrors, ThrowOnError, "fields">;
137
+ /**
138
+ * Delete an episode
139
+ *
140
+ * Soft-deletes an episode. Segments are not cascade deleted — this only hides the episode from results.
141
+ *
142
+ * **Permissions:** `REMOVE_MEDIA`
143
+ *
144
+ */
145
+ export declare const episodeDestroy: <ThrowOnError extends boolean = false>(options: Options<EpisodeDestroyData, ThrowOnError>) => import("./client").RequestResult<EpisodeDestroyResponses, EpisodeDestroyErrors, ThrowOnError, "fields">;
146
+ /**
147
+ * Get single episode
148
+ *
149
+ * Returns a specific episode by media ID and episode number.
150
+ *
151
+ * **Permissions:** `READ_MEDIA`
152
+ *
153
+ */
154
+ export declare const episodeShow: <ThrowOnError extends boolean = false>(options: Options<EpisodeShowData, ThrowOnError>) => import("./client").RequestResult<EpisodeShowResponses, EpisodeShowErrors, ThrowOnError, "fields">;
155
+ /**
156
+ * Update episode
157
+ *
158
+ * Updates an existing episode. Only provided fields will be updated.
159
+ *
160
+ * **Permissions:** `UPDATE_MEDIA`
161
+ *
162
+ */
163
+ export declare const episodeUpdate: <ThrowOnError extends boolean = false>(options: Options<EpisodeUpdateData, ThrowOnError>) => import("./client").RequestResult<EpisodeUpdateResponses, EpisodeUpdateErrors, ThrowOnError, "fields">;
164
+ /**
165
+ * List segments for an episode
166
+ *
167
+ * Returns a paginated list of segments for a specific episode.
168
+ *
169
+ * **Permissions:** `READ_MEDIA`
170
+ *
171
+ */
172
+ export declare const segmentIndex: <ThrowOnError extends boolean = false>(options: Options<SegmentIndexData, ThrowOnError>) => import("./client").RequestResult<SegmentIndexResponses, SegmentIndexErrors, ThrowOnError, "fields">;
173
+ /**
174
+ * Create new segment
175
+ *
176
+ * Creates a new segment for a specific episode.
177
+ *
178
+ * **Permissions:** `UPDATE_MEDIA`
179
+ *
180
+ */
181
+ export declare const segmentCreate: <ThrowOnError extends boolean = false>(options: Options<SegmentCreateData, ThrowOnError>) => import("./client").RequestResult<SegmentCreateResponses, SegmentCreateErrors, ThrowOnError, "fields">;
182
+ /**
183
+ * Delete segment
184
+ *
185
+ * Soft-deletes a segment by setting its status to DELETED.
186
+ *
187
+ * **Permissions:** `REMOVE_MEDIA`
188
+ *
189
+ */
190
+ export declare const segmentDestroy: <ThrowOnError extends boolean = false>(options: Options<SegmentDestroyData, ThrowOnError>) => import("./client").RequestResult<SegmentDestroyResponses, SegmentDestroyErrors, ThrowOnError, "fields">;
191
+ /**
192
+ * Get single segment
193
+ *
194
+ * Returns a specific segment by its ID within the media/episode hierarchy.
195
+ *
196
+ * **Permissions:** `READ_MEDIA`
197
+ *
198
+ */
199
+ export declare const segmentShow: <ThrowOnError extends boolean = false>(options: Options<SegmentShowData, ThrowOnError>) => import("./client").RequestResult<SegmentShowResponses, SegmentShowErrors, ThrowOnError, "fields">;
200
+ /**
201
+ * Update segment
202
+ *
203
+ * Updates an existing segment. Only provided fields will be updated.
204
+ *
205
+ * **Permissions:** `UPDATE_MEDIA`
206
+ *
207
+ */
208
+ export declare const segmentUpdate: <ThrowOnError extends boolean = false>(options: Options<SegmentUpdateData, ThrowOnError>) => import("./client").RequestResult<SegmentUpdateResponses, SegmentUpdateErrors, ThrowOnError, "fields">;
209
+ /**
210
+ * Get segment by UUID
211
+ *
212
+ * Returns a specific segment by its UUID. A shortcut alternative to the nested `/media/{mediaId}/episodes/{episodeNumber}/segments/{id}` path.
213
+ *
214
+ * **Permissions:** `READ_MEDIA`
215
+ *
216
+ */
217
+ export declare const segmentShowByUuid: <ThrowOnError extends boolean = false>(options: Options<SegmentShowByUuidData, ThrowOnError>) => import("./client").RequestResult<SegmentShowByUuidResponses, SegmentShowByUuidErrors, ThrowOnError, "fields">;
218
+ /**
219
+ * Get surrounding context for a segment
220
+ *
221
+ * Retrieves segments surrounding a specific segment within an episode.
222
+ * Returns segments both before and after the target, providing dialogue context for how a sentence is used.
223
+ *
224
+ * **Permissions:** `READ_MEDIA`
225
+ *
226
+ */
227
+ export declare const segmentContextShow: <ThrowOnError extends boolean = false>(options: Options<SegmentContextShowData, ThrowOnError>) => import("./client").RequestResult<SegmentContextShowResponses, SegmentContextShowErrors, ThrowOnError, "fields">;
228
+ /**
229
+ * List all series
230
+ *
231
+ * Returns a paginated list of media series groupings.
232
+ *
233
+ */
234
+ export declare const seriesIndex: <ThrowOnError extends boolean = false>(options?: Options<SeriesIndexData, ThrowOnError>) => import("./client").RequestResult<SeriesIndexResponses, SeriesIndexErrors, ThrowOnError, "fields">;
235
+ /**
236
+ * Create series
237
+ *
238
+ * Creates a new media series grouping.
239
+ *
240
+ */
241
+ export declare const seriesCreate: <ThrowOnError extends boolean = false>(options: Options<SeriesCreateData, ThrowOnError>) => import("./client").RequestResult<SeriesCreateResponses, SeriesCreateErrors, ThrowOnError, "fields">;
242
+ /**
243
+ * Delete series
244
+ *
245
+ * Deletes a series and all its media associations.
246
+ *
247
+ */
248
+ export declare const seriesDestroy: <ThrowOnError extends boolean = false>(options: Options<SeriesDestroyData, ThrowOnError>) => import("./client").RequestResult<SeriesDestroyResponses, SeriesDestroyErrors, ThrowOnError, "fields">;
249
+ /**
250
+ * Get series details
251
+ *
252
+ * Returns a series with all media entries sorted by position.
253
+ *
254
+ */
255
+ export declare const seriesShow: <ThrowOnError extends boolean = false>(options: Options<SeriesShowData, ThrowOnError>) => import("./client").RequestResult<SeriesShowResponses, SeriesShowErrors, ThrowOnError, "fields">;
256
+ /**
257
+ * Update series metadata
258
+ *
259
+ * Updates series localized names.
260
+ *
261
+ */
262
+ export declare const seriesUpdate: <ThrowOnError extends boolean = false>(options: Options<SeriesUpdateData, ThrowOnError>) => import("./client").RequestResult<SeriesUpdateResponses, SeriesUpdateErrors, ThrowOnError, "fields">;
263
+ /**
264
+ * Add media to series
265
+ *
266
+ * Adds a media entry to a series at a specific position.
267
+ *
268
+ */
269
+ export declare const seriesAddMedia: <ThrowOnError extends boolean = false>(options: Options<SeriesAddMediaData, ThrowOnError>) => import("./client").RequestResult<SeriesAddMediaResponses, SeriesAddMediaErrors, ThrowOnError, "fields">;
270
+ /**
271
+ * Remove media from series
272
+ *
273
+ * Removes a media entry from a series.
274
+ *
275
+ */
276
+ export declare const seriesRemoveMedia: <ThrowOnError extends boolean = false>(options: Options<SeriesRemoveMediaData, ThrowOnError>) => import("./client").RequestResult<SeriesRemoveMediaResponses, SeriesRemoveMediaErrors, ThrowOnError, "fields">;
277
+ /**
278
+ * Update media position in series
279
+ *
280
+ * Updates the position of a media entry in a series.
281
+ *
282
+ */
283
+ export declare const seriesUpdateMedia: <ThrowOnError extends boolean = false>(options: Options<SeriesUpdateMediaData, ThrowOnError>) => import("./client").RequestResult<SeriesUpdateMediaResponses, SeriesUpdateMediaErrors, ThrowOnError, "fields">;
284
+ /**
285
+ * Get character details
286
+ *
287
+ * Returns a character with their voice actors (seiyuu) and all media appearances.
288
+ *
289
+ * **Permissions:** `READ_MEDIA`
290
+ *
291
+ */
292
+ export declare const characterShow: <ThrowOnError extends boolean = false>(options: Options<CharacterShowData, ThrowOnError>) => import("./client").RequestResult<CharacterShowResponses, CharacterShowErrors, ThrowOnError, "fields">;
293
+ /**
294
+ * Get seiyuu details
295
+ *
296
+ * Returns a voice actor (seiyuu) with all characters they voiced and their media appearances.
297
+ *
298
+ * **Permissions:** `READ_MEDIA`
299
+ *
300
+ */
301
+ export declare const seiyuuShow: <ThrowOnError extends boolean = false>(options: Options<SeiyuuShowData, ThrowOnError>) => import("./client").RequestResult<SeiyuuShowResponses, SeiyuuShowErrors, ThrowOnError, "fields">;
302
+ /**
303
+ * Get current monthly API quota
304
+ *
305
+ * Returns the API quota usage for the current billing period.
306
+ * Accepts both session cookie and API key authentication.
307
+ *
308
+ * **Permissions:** Session authentication (cookie-based) or API key (`READ_MEDIA`).
309
+ *
310
+ */
311
+ export declare const userQuotaShow: <ThrowOnError extends boolean = false>(options?: Options<UserQuotaShowData, ThrowOnError>) => import("./client").RequestResult<UserQuotaShowResponses, UserQuotaShowErrors, ThrowOnError, "fields">;
312
+ /**
313
+ * List user's own reports
314
+ *
315
+ * Returns the authenticated user's submitted reports with cursor pagination.
316
+ *
317
+ * **Permissions:** Session authentication (cookie-based).
318
+ *
319
+ */
320
+ export declare const userReportIndex: <ThrowOnError extends boolean = false>(options?: Options<UserReportIndexData, ThrowOnError>) => import("./client").RequestResult<UserReportIndexResponses, UserReportIndexErrors, ThrowOnError, "fields">;
321
+ /**
322
+ * Create a new report
323
+ *
324
+ * Submit a report for a segment or media entry.
325
+ *
326
+ * **Permissions:** Session authentication (cookie-based).
327
+ *
328
+ */
329
+ export declare const userReportCreate: <ThrowOnError extends boolean = false>(options: Options<UserReportCreateData, ThrowOnError>) => import("./client").RequestResult<UserReportCreateResponses, UserReportCreateErrors, ThrowOnError, "fields">;
330
+ /**
331
+ * Get user preferences
332
+ *
333
+ * Returns the authenticated user's full preferences object.
334
+ *
335
+ * **Permissions:** Session authentication (cookie-based).
336
+ *
337
+ */
338
+ export declare const userPreferencesShow: <ThrowOnError extends boolean = false>(options?: Options<UserPreferencesShowData, ThrowOnError>) => import("./client").RequestResult<UserPreferencesShowResponses, UserPreferencesShowErrors, ThrowOnError, "fields">;
339
+ /**
340
+ * Update user preferences
341
+ *
342
+ * Deep-merges a partial preferences update into the user's existing preferences.
343
+ * Only the provided keys are updated; all other keys are preserved.
344
+ *
345
+ * **Permissions:** Session authentication (cookie-based).
346
+ *
347
+ */
348
+ export declare const userPreferencesUpdate: <ThrowOnError extends boolean = false>(options: Options<UserPreferencesUpdateData, ThrowOnError>) => import("./client").RequestResult<UserPreferencesUpdateResponses, UserPreferencesUpdateErrors, ThrowOnError, "fields">;
349
+ /**
350
+ * Clear user activity history
351
+ *
352
+ * Deletes the authenticated user's activity history. Optionally filter by activity type.
353
+ *
354
+ * **Permissions:** Session authentication (cookie-based).
355
+ *
356
+ */
357
+ export declare const userActivityDestroy: <ThrowOnError extends boolean = false>(options?: Options<UserActivityDestroyData, ThrowOnError>) => import("./client").RequestResult<UserActivityDestroyResponses, UserActivityDestroyErrors, ThrowOnError, "fields">;
358
+ /**
359
+ * Get user activity history
360
+ *
361
+ * Returns the authenticated user's activity history with cursor-based pagination.
362
+ *
363
+ * **Permissions:** Session authentication (cookie-based).
364
+ *
365
+ */
366
+ export declare const userActivityIndex: <ThrowOnError extends boolean = false>(options?: Options<UserActivityIndexData, ThrowOnError>) => import("./client").RequestResult<UserActivityIndexResponses, UserActivityIndexErrors, ThrowOnError, "fields">;
367
+ /**
368
+ * Get activity heatmap data
369
+ *
370
+ * Returns daily activity counts for the authenticated user, grouped by date.
371
+ * Designed for rendering a GitHub-style contribution heatmap.
372
+ *
373
+ * **Permissions:** Session authentication (cookie-based).
374
+ *
375
+ */
376
+ export declare const userActivityHeatmapShow: <ThrowOnError extends boolean = false>(options?: Options<UserActivityHeatmapShowData, ThrowOnError>) => import("./client").RequestResult<UserActivityHeatmapShowResponses, UserActivityHeatmapShowErrors, ThrowOnError, "fields">;
377
+ /**
378
+ * Get user activity statistics
379
+ *
380
+ * Returns aggregate statistics about the authenticated user's activity:
381
+ * total searches, exports, plays, and study streak.
382
+ *
383
+ * **Permissions:** Session authentication (cookie-based).
384
+ *
385
+ */
386
+ export declare const userActivityStatsShow: <ThrowOnError extends boolean = false>(options?: Options<UserActivityStatsShowData, ThrowOnError>) => import("./client").RequestResult<UserActivityStatsShowResponses, UserActivityStatsShowErrors, ThrowOnError, "fields">;
387
+ /**
388
+ * Export all user data
389
+ *
390
+ * Returns a full JSON export of all user-related data for GDPR data portability.
391
+ * Includes profile, preferences, activity history, collections, and reports.
392
+ *
393
+ * **Permissions:** Session authentication (cookie-based).
394
+ *
395
+ */
396
+ export declare const userExportShow: <ThrowOnError extends boolean = false>(options?: Options<UserExportShowData, ThrowOnError>) => import("./client").RequestResult<UserExportShowResponses, UserExportShowErrors, ThrowOnError, "fields">;
397
+ /**
398
+ * List lab features with user opt-in status
399
+ *
400
+ * Returns all available lab features merged with the authenticated user's
401
+ * opt-in status. Features gated by role are excluded if the user lacks
402
+ * the required role.
403
+ *
404
+ * **Permissions:** Session authentication (cookie-based).
405
+ *
406
+ */
407
+ export declare const userLabsIndex: <ThrowOnError extends boolean = false>(options?: Options<UserLabsIndexData, ThrowOnError>) => import("./client").RequestResult<UserLabsIndexResponses, UserLabsIndexErrors, ThrowOnError, "fields">;
408
+ /**
409
+ * List user's collections
410
+ *
411
+ * Returns all collections for the authenticated user. Can filter by visibility.
412
+ *
413
+ */
414
+ export declare const collectionIndex: <ThrowOnError extends boolean = false>(options?: Options<CollectionIndexData, ThrowOnError>) => import("./client").RequestResult<CollectionIndexResponses, CollectionIndexErrors, ThrowOnError, "fields">;
415
+ /**
416
+ * Create collection
417
+ *
418
+ * Creates a new segment collection for the authenticated user.
419
+ *
420
+ */
421
+ export declare const collectionCreate: <ThrowOnError extends boolean = false>(options: Options<CollectionCreateData, ThrowOnError>) => import("./client").RequestResult<CollectionCreateResponses, CollectionCreateErrors, ThrowOnError, "fields">;
422
+ /**
423
+ * Delete collection
424
+ *
425
+ * Deletes a collection and all its segment entries. Requires collection ownership.
426
+ *
427
+ */
428
+ export declare const collectionDestroy: <ThrowOnError extends boolean = false>(options: Options<CollectionDestroyData, ThrowOnError>) => import("./client").RequestResult<CollectionDestroyResponses, CollectionDestroyErrors, ThrowOnError, "fields">;
429
+ /**
430
+ * Get collection details
431
+ *
432
+ * Returns a collection with paginated segments and their search result data.
433
+ *
434
+ */
435
+ export declare const collectionShow: <ThrowOnError extends boolean = false>(options: Options<CollectionShowData, ThrowOnError>) => import("./client").RequestResult<CollectionShowResponses, CollectionShowErrors, ThrowOnError, "fields">;
436
+ /**
437
+ * Update collection metadata
438
+ *
439
+ * Updates collection name or visibility. Requires collection ownership.
440
+ *
441
+ */
442
+ export declare const collectionUpdate: <ThrowOnError extends boolean = false>(options: Options<CollectionUpdateData, ThrowOnError>) => import("./client").RequestResult<CollectionUpdateResponses, CollectionUpdateErrors, ThrowOnError, "fields">;
443
+ /**
444
+ * Add segment to collection
445
+ *
446
+ * Adds a segment to a collection. Requires collection ownership.
447
+ *
448
+ */
449
+ export declare const collectionAddSegment: <ThrowOnError extends boolean = false>(options: Options<CollectionAddSegmentData, ThrowOnError>) => import("./client").RequestResult<CollectionAddSegmentResponses, CollectionAddSegmentErrors, ThrowOnError, "fields">;
450
+ /**
451
+ * Remove segment from collection
452
+ *
453
+ * Removes a segment from a collection. Requires collection ownership.
454
+ *
455
+ */
456
+ export declare const collectionRemoveSegment: <ThrowOnError extends boolean = false>(options: Options<CollectionRemoveSegmentData, ThrowOnError>) => import("./client").RequestResult<CollectionRemoveSegmentResponses, CollectionRemoveSegmentErrors, ThrowOnError, "fields">;
457
+ /**
458
+ * Update segment in collection
459
+ *
460
+ * Updates the note or position of a segment in a collection. Requires collection ownership.
461
+ *
462
+ */
463
+ export declare const collectionUpdateSegment: <ThrowOnError extends boolean = false>(options: Options<CollectionUpdateSegmentData, ThrowOnError>) => import("./client").RequestResult<CollectionUpdateSegmentResponses, CollectionUpdateSegmentErrors, ThrowOnError, "fields">;
464
+ /**
465
+ * Admin dashboard statistics
466
+ *
467
+ * Returns at-a-glance statistics for the admin dashboard including media counts,
468
+ * user counts, and system health information.
469
+ *
470
+ * **Permissions:** `ADD_MEDIA`
471
+ *
472
+ */
473
+ export declare const adminDashboardShow: <ThrowOnError extends boolean = false>(options?: Options<AdminDashboardShowData, ThrowOnError>) => import("./client").RequestResult<AdminDashboardShowResponses, AdminDashboardShowErrors, ThrowOnError, "fields">;
474
+ /**
475
+ * System health check
476
+ *
477
+ * Returns connectivity status and version information for all backend subsystems
478
+ * (Elasticsearch, PostgreSQL, application).
479
+ *
480
+ * **Permissions:** `ADD_MEDIA`
481
+ *
482
+ */
483
+ export declare const adminHealthShow: <ThrowOnError extends boolean = false>(options?: Options<AdminHealthShowData, ThrowOnError>) => import("./client").RequestResult<AdminHealthShowResponses, AdminHealthShowErrors, ThrowOnError, "fields">;
484
+ /**
485
+ * Reindex database into Elasticsearch
486
+ *
487
+ * Reindexes segments from the PostgreSQL database into Elasticsearch.
488
+ * Allows filtering by specific media IDs or episodes.
489
+ *
490
+ * **Behavior:**
491
+ * - If no filters provided, reindexes all segments
492
+ * - If `mediaIds` provided, reindexes all segments from those media
493
+ * - If `episodes` provided, reindexes only the specified episodes
494
+ *
495
+ * **Permissions:** `ADD_MEDIA`
496
+ *
497
+ */
498
+ export declare const adminReindexCreate: <ThrowOnError extends boolean = false>(options?: Options<AdminReindexCreateData, ThrowOnError>) => import("./client").RequestResult<AdminReindexCreateResponses, AdminReindexCreateErrors, ThrowOnError, "fields">;
499
+ /**
500
+ * Get queue statistics
501
+ *
502
+ * Returns statistics for all ES sync queues including pending and failed job counts.
503
+ *
504
+ * **Use cases:**
505
+ * - Monitor queue health
506
+ * - Detect stuck jobs
507
+ * - Check backlog size
508
+ *
509
+ * **Permissions:** `ADD_MEDIA`
510
+ *
511
+ */
512
+ export declare const adminQueueStatsIndex: <ThrowOnError extends boolean = false>(options?: Options<AdminQueueStatsIndexData, ThrowOnError>) => import("./client").RequestResult<AdminQueueStatsIndexResponses, AdminQueueStatsIndexErrors, ThrowOnError, "fields">;
513
+ /**
514
+ * Get detailed queue information
515
+ *
516
+ * Returns live queue stats and queue metadata from PgBoss for a specific queue.
517
+ *
518
+ * **Queue names:**
519
+ * - `es-sync-create` - Jobs to create new segments in Elasticsearch
520
+ * - `es-sync-update` - Jobs to update existing segments
521
+ * - `es-sync-delete` - Jobs to delete segments
522
+ *
523
+ * **Permissions:** `ADD_MEDIA`
524
+ *
525
+ */
526
+ export declare const adminQueueShow: <ThrowOnError extends boolean = false>(options: Options<AdminQueueShowData, ThrowOnError>) => import("./client").RequestResult<AdminQueueShowResponses, AdminQueueShowErrors, ThrowOnError, "fields">;
527
+ /**
528
+ * Get failed jobs from a queue
529
+ *
530
+ * Returns jobs that have exceeded their retry limit and permanently failed.
531
+ *
532
+ * **Use cases:**
533
+ * - Identify segments that failed to sync to Elasticsearch
534
+ * - Debug persistent sync issues
535
+ * - Decide whether to retry or purge failed jobs
536
+ *
537
+ * **Permissions:** `ADD_MEDIA`
538
+ *
539
+ */
540
+ export declare const adminQueueFailedIndex: <ThrowOnError extends boolean = false>(options: Options<AdminQueueFailedIndexData, ThrowOnError>) => import("./client").RequestResult<AdminQueueFailedIndexResponses, AdminQueueFailedIndexErrors, ThrowOnError, "fields">;
541
+ /**
542
+ * Retry failed jobs from a queue
543
+ *
544
+ * Re-enqueues all failed jobs from a specific queue for another attempt.
545
+ *
546
+ * **Use cases:**
547
+ * - Retry jobs that failed due to temporary Elasticsearch issues
548
+ * - Recover from network blips
549
+ *
550
+ * **Permissions:** `ADD_MEDIA`
551
+ *
552
+ */
553
+ export declare const adminQueueRetryCreate: <ThrowOnError extends boolean = false>(options: Options<AdminQueueRetryCreateData, ThrowOnError>) => import("./client").RequestResult<AdminQueueRetryCreateResponses, AdminQueueRetryCreateErrors, ThrowOnError, "fields">;
554
+ /**
555
+ * Purge failed jobs from a queue
556
+ *
557
+ * Permanently deletes all failed jobs from a queue.
558
+ * This does **not** re-sync the affected segments — use the reindex endpoint for that.
559
+ *
560
+ * **Use cases:**
561
+ * - Clean up old failed jobs after investigating
562
+ * - Reset a queue after fixing the underlying issue
563
+ *
564
+ * **Permissions:** `ADD_MEDIA`
565
+ *
566
+ */
567
+ export declare const adminQueueFailedDestroy: <ThrowOnError extends boolean = false>(options: Options<AdminQueueFailedDestroyData, ThrowOnError>) => import("./client").RequestResult<AdminQueueFailedDestroyResponses, AdminQueueFailedDestroyErrors, ThrowOnError, "fields">;
568
+ /**
569
+ * List all reports
570
+ *
571
+ * Returns all reports with filtering and cursor pagination.
572
+ * Supports filtering by source (USER/AUTO) to separate user reports from auto-check findings.
573
+ *
574
+ * **Permissions:** `ADD_MEDIA`
575
+ *
576
+ */
577
+ export declare const adminReportIndex: <ThrowOnError extends boolean = false>(options?: Options<AdminReportIndexData, ThrowOnError>) => import("./client").RequestResult<AdminReportIndexResponses, AdminReportIndexErrors, ThrowOnError, "fields">;
578
+ /**
579
+ * Update a report
580
+ *
581
+ * Updates the status and/or admin notes of a report.
582
+ * Works for both USER and AUTO reports.
583
+ *
584
+ * **Permissions:** `ADD_MEDIA`
585
+ *
586
+ */
587
+ export declare const adminReportUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminReportUpdateData, ThrowOnError>) => import("./client").RequestResult<AdminReportUpdateResponses, AdminReportUpdateErrors, ThrowOnError, "fields">;
588
+ /**
589
+ * Run auto-checks
590
+ *
591
+ * Triggers all enabled auto-checks. Creates ReviewCheckRun records and AUTO reports for any findings.
592
+ *
593
+ * **Permissions:** `ADD_MEDIA`
594
+ *
595
+ */
596
+ export declare const adminReviewRunCreate: <ThrowOnError extends boolean = false>(options?: Options<AdminReviewRunCreateData, ThrowOnError>) => import("./client").RequestResult<AdminReviewRunCreateResponses, AdminReviewRunCreateErrors, ThrowOnError, "fields">;
597
+ /**
598
+ * List all review checks
599
+ *
600
+ * Returns all check definitions with current config, threshold schema, and latest run info.
601
+ *
602
+ * **Permissions:** `ADD_MEDIA`
603
+ *
604
+ */
605
+ export declare const adminReviewCheckIndex: <ThrowOnError extends boolean = false>(options?: Options<AdminReviewCheckIndexData, ThrowOnError>) => import("./client").RequestResult<AdminReviewCheckIndexResponses, AdminReviewCheckIndexErrors, ThrowOnError, "fields">;
606
+ /**
607
+ * Update a review check config
608
+ *
609
+ * Updates the threshold values or enabled status of a check.
610
+ *
611
+ * **Permissions:** `ADD_MEDIA`
612
+ *
613
+ */
614
+ export declare const adminReviewCheckUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminReviewCheckUpdateData, ThrowOnError>) => import("./client").RequestResult<AdminReviewCheckUpdateResponses, AdminReviewCheckUpdateErrors, ThrowOnError, "fields">;
615
+ /**
616
+ * List past check runs
617
+ *
618
+ * Returns past review check runs with summary stats. Supports filtering by check name and cursor pagination.
619
+ *
620
+ * **Permissions:** `ADD_MEDIA`
621
+ *
622
+ */
623
+ export declare const adminReviewRunIndex: <ThrowOnError extends boolean = false>(options?: Options<AdminReviewRunIndexData, ThrowOnError>) => import("./client").RequestResult<AdminReviewRunIndexResponses, AdminReviewRunIndexErrors, ThrowOnError, "fields">;
624
+ /**
625
+ * Get a specific run's details
626
+ *
627
+ * Returns a specific review check run record with its linked reports.
628
+ *
629
+ * **Permissions:** `ADD_MEDIA`
630
+ *
631
+ */
632
+ export declare const adminReviewRunShow: <ThrowOnError extends boolean = false>(options: Options<AdminReviewRunShowData, ThrowOnError>) => import("./client").RequestResult<AdminReviewRunShowResponses, AdminReviewRunShowErrors, ThrowOnError, "fields">;
633
+ /**
634
+ * List allowlisted items
635
+ *
636
+ * Returns all allowlisted items (media/episodes) that are excluded from auto-check runs.
637
+ *
638
+ * **Permissions:** `ADD_MEDIA`
639
+ *
640
+ */
641
+ export declare const adminReviewAllowlistIndex: <ThrowOnError extends boolean = false>(options?: Options<AdminReviewAllowlistIndexData, ThrowOnError>) => import("./client").RequestResult<AdminReviewAllowlistIndexResponses, AdminReviewAllowlistIndexErrors, ThrowOnError, "fields">;
642
+ /**
643
+ * Add to allowlist
644
+ *
645
+ * Adds a media or episode to the allowlist for a specific check, excluding it from future auto-check runs.
646
+ *
647
+ * **Permissions:** `ADD_MEDIA`
648
+ *
649
+ */
650
+ export declare const adminReviewAllowlistCreate: <ThrowOnError extends boolean = false>(options: Options<AdminReviewAllowlistCreateData, ThrowOnError>) => import("./client").RequestResult<AdminReviewAllowlistCreateResponses, AdminReviewAllowlistCreateErrors, ThrowOnError, "fields">;
651
+ /**
652
+ * Remove from allowlist
653
+ *
654
+ * Removes an item from the review allowlist, re-enabling auto-checks for that media/episode.
655
+ *
656
+ * **Permissions:** `ADD_MEDIA`
657
+ *
658
+ */
659
+ export declare const adminReviewAllowlistDestroy: <ThrowOnError extends boolean = false>(options: Options<AdminReviewAllowlistDestroyData, ThrowOnError>) => import("./client").RequestResult<AdminReviewAllowlistDestroyResponses, AdminReviewAllowlistDestroyErrors, ThrowOnError, "fields">;
660
+ //# sourceMappingURL=sdk.gen.d.ts.map