@brigadasos/nadeshiko-sdk 1.5.0-dev.66d279f → 1.5.0-dev.6f5da09
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/dist/index.cjs +186 -34
- 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 +186 -34
- package/dist/index.js.map +4 -4
- package/dist/internal/admin.gen.d.ts +1 -1
- package/dist/internal/admin.gen.d.ts.map +1 -1
- package/dist/internal/media.gen.d.ts +1 -1
- package/dist/internal/media.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +4 -1
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +31 -9
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +340 -100
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ export type ClientOptions = {
|
|
|
6
6
|
*/
|
|
7
7
|
export type MediaFilterItem = {
|
|
8
8
|
/**
|
|
9
|
-
* Media
|
|
9
|
+
* Media identifier (publicId or AniList external ID)
|
|
10
10
|
*/
|
|
11
|
-
mediaId:
|
|
11
|
+
mediaId: string;
|
|
12
12
|
/**
|
|
13
13
|
* Specific episodes (omit for all episodes)
|
|
14
14
|
*/
|
|
@@ -144,6 +144,10 @@ export type Segment = {
|
|
|
144
144
|
* Unique identifier for the segment
|
|
145
145
|
*/
|
|
146
146
|
uuid: string;
|
|
147
|
+
/**
|
|
148
|
+
* Public identifier for the segment (use this instead of uuid in public URLs)
|
|
149
|
+
*/
|
|
150
|
+
publicId: string;
|
|
147
151
|
/**
|
|
148
152
|
* Position of the segment within the episode
|
|
149
153
|
*/
|
|
@@ -169,6 +173,10 @@ export type Segment = {
|
|
|
169
173
|
* Media ID this segment belongs to
|
|
170
174
|
*/
|
|
171
175
|
mediaId: number;
|
|
176
|
+
/**
|
|
177
|
+
* Public ID of the media this segment belongs to
|
|
178
|
+
*/
|
|
179
|
+
mediaPublicId: string;
|
|
172
180
|
textJa: {
|
|
173
181
|
/**
|
|
174
182
|
* Original Japanese content
|
|
@@ -250,6 +258,10 @@ export type Seiyuu = {
|
|
|
250
258
|
* Internal seiyuu ID
|
|
251
259
|
*/
|
|
252
260
|
id: number;
|
|
261
|
+
/**
|
|
262
|
+
* Public identifier for the seiyuu (use this in public URLs)
|
|
263
|
+
*/
|
|
264
|
+
publicId: string;
|
|
253
265
|
externalIds: ExternalId;
|
|
254
266
|
/**
|
|
255
267
|
* Japanese name of the voice actor
|
|
@@ -295,9 +307,13 @@ export type MediaCharacter = {
|
|
|
295
307
|
*/
|
|
296
308
|
export type Media = {
|
|
297
309
|
/**
|
|
298
|
-
*
|
|
310
|
+
* Internal unique identifier for the media
|
|
299
311
|
*/
|
|
300
312
|
id: number;
|
|
313
|
+
/**
|
|
314
|
+
* Public identifier for the media (use this in public URLs)
|
|
315
|
+
*/
|
|
316
|
+
publicId: string;
|
|
301
317
|
externalIds: ExternalId;
|
|
302
318
|
/**
|
|
303
319
|
* Original Japanese name of the media
|
|
@@ -390,7 +406,7 @@ export type SearchResponse = {
|
|
|
390
406
|
segments: Array<Segment>;
|
|
391
407
|
includes: {
|
|
392
408
|
/**
|
|
393
|
-
* Media objects keyed by
|
|
409
|
+
* Media objects keyed by media publicId
|
|
394
410
|
*/
|
|
395
411
|
media: {
|
|
396
412
|
[key: string]: Media;
|
|
@@ -601,6 +617,10 @@ export type MediaSearchStats = {
|
|
|
601
617
|
* Media identifier (look up full details in includes.media)
|
|
602
618
|
*/
|
|
603
619
|
mediaId: number;
|
|
620
|
+
/**
|
|
621
|
+
* Public identifier for use in URLs and filters
|
|
622
|
+
*/
|
|
623
|
+
publicId: string;
|
|
604
624
|
/**
|
|
605
625
|
* Number of matching segments found in this media
|
|
606
626
|
*/
|
|
@@ -627,7 +647,7 @@ export type SearchStatsResponse = {
|
|
|
627
647
|
categories: Array<CategoryCount>;
|
|
628
648
|
includes: {
|
|
629
649
|
/**
|
|
630
|
-
* Media objects keyed by
|
|
650
|
+
* Media objects keyed by media publicId
|
|
631
651
|
*/
|
|
632
652
|
media: {
|
|
633
653
|
[key: string]: Media;
|
|
@@ -719,6 +739,20 @@ export type OpaqueCursorPagination = {
|
|
|
719
739
|
export type MediaListResponse = {
|
|
720
740
|
media: Array<Media>;
|
|
721
741
|
pagination: OpaqueCursorPagination;
|
|
742
|
+
stats: {
|
|
743
|
+
/**
|
|
744
|
+
* Total number of media across all pages
|
|
745
|
+
*/
|
|
746
|
+
totalMedia: number;
|
|
747
|
+
/**
|
|
748
|
+
* Total number of non-deleted segments
|
|
749
|
+
*/
|
|
750
|
+
totalSegments: number;
|
|
751
|
+
/**
|
|
752
|
+
* Total number of episodes
|
|
753
|
+
*/
|
|
754
|
+
totalEpisodes: number;
|
|
755
|
+
};
|
|
722
756
|
};
|
|
723
757
|
/**
|
|
724
758
|
* Character data for creating/updating media
|
|
@@ -866,8 +900,34 @@ export type Error409 = {
|
|
|
866
900
|
[key: string]: string;
|
|
867
901
|
};
|
|
868
902
|
};
|
|
903
|
+
/**
|
|
904
|
+
* Slim media item returned by autocomplete (names + cover only)
|
|
905
|
+
*/
|
|
906
|
+
export type MediaAutocompleteItem = {
|
|
907
|
+
/**
|
|
908
|
+
* Unique identifier for the media
|
|
909
|
+
*/
|
|
910
|
+
id: number;
|
|
911
|
+
/**
|
|
912
|
+
* Original Japanese name of the media
|
|
913
|
+
*/
|
|
914
|
+
nameJa: string;
|
|
915
|
+
/**
|
|
916
|
+
* Romaji transliteration of the media name
|
|
917
|
+
*/
|
|
918
|
+
nameRomaji: string;
|
|
919
|
+
/**
|
|
920
|
+
* English name of the media
|
|
921
|
+
*/
|
|
922
|
+
nameEn: string;
|
|
923
|
+
/**
|
|
924
|
+
* Full URL to the cover image
|
|
925
|
+
*/
|
|
926
|
+
coverUrl: string;
|
|
927
|
+
category: Category;
|
|
928
|
+
};
|
|
869
929
|
export type MediaAutocompleteResponse = {
|
|
870
|
-
media: Array<
|
|
930
|
+
media: Array<MediaAutocompleteItem>;
|
|
871
931
|
};
|
|
872
932
|
/**
|
|
873
933
|
* Segment with internal fields. For write operations (create, update) all fields are always populated.
|
|
@@ -1014,6 +1074,30 @@ export type SegmentContextResponse = {
|
|
|
1014
1074
|
};
|
|
1015
1075
|
};
|
|
1016
1076
|
};
|
|
1077
|
+
export type SegmentRevision = {
|
|
1078
|
+
/**
|
|
1079
|
+
* Revision ID
|
|
1080
|
+
*/
|
|
1081
|
+
id: number;
|
|
1082
|
+
/**
|
|
1083
|
+
* Sequential revision number per segment
|
|
1084
|
+
*/
|
|
1085
|
+
revisionNumber: number;
|
|
1086
|
+
/**
|
|
1087
|
+
* Snapshot of editable fields at the time of the revision
|
|
1088
|
+
*/
|
|
1089
|
+
snapshot: {
|
|
1090
|
+
[key: string]: unknown;
|
|
1091
|
+
};
|
|
1092
|
+
/**
|
|
1093
|
+
* Name of the user who made the change
|
|
1094
|
+
*/
|
|
1095
|
+
userName?: string;
|
|
1096
|
+
/**
|
|
1097
|
+
* When the revision was created
|
|
1098
|
+
*/
|
|
1099
|
+
createdAt: string;
|
|
1100
|
+
};
|
|
1017
1101
|
/**
|
|
1018
1102
|
* Ordered media series grouping
|
|
1019
1103
|
*/
|
|
@@ -1022,6 +1106,10 @@ export type Series = {
|
|
|
1022
1106
|
* Series ID
|
|
1023
1107
|
*/
|
|
1024
1108
|
id: number;
|
|
1109
|
+
/**
|
|
1110
|
+
* Public identifier for the series
|
|
1111
|
+
*/
|
|
1112
|
+
publicId: string;
|
|
1025
1113
|
/**
|
|
1026
1114
|
* Japanese name of the series
|
|
1027
1115
|
*/
|
|
@@ -1078,6 +1166,10 @@ export type Character = {
|
|
|
1078
1166
|
* Internal character ID
|
|
1079
1167
|
*/
|
|
1080
1168
|
id: number;
|
|
1169
|
+
/**
|
|
1170
|
+
* Public identifier for the character (use this in public URLs)
|
|
1171
|
+
*/
|
|
1172
|
+
publicId: string;
|
|
1081
1173
|
externalIds: ExternalId;
|
|
1082
1174
|
/**
|
|
1083
1175
|
* Japanese name of the character
|
|
@@ -1434,39 +1526,39 @@ export type ReportTargetMedia = {
|
|
|
1434
1526
|
*/
|
|
1435
1527
|
type: 'MEDIA';
|
|
1436
1528
|
/**
|
|
1437
|
-
*
|
|
1529
|
+
* Public ID of the media this report targets
|
|
1438
1530
|
*/
|
|
1439
|
-
mediaId:
|
|
1531
|
+
mediaId: string;
|
|
1440
1532
|
};
|
|
1441
|
-
export type
|
|
1533
|
+
export type ReportTargetSegmentInput = {
|
|
1442
1534
|
/**
|
|
1443
1535
|
* Report target type
|
|
1444
1536
|
*/
|
|
1445
1537
|
type: 'SEGMENT';
|
|
1446
1538
|
/**
|
|
1447
|
-
*
|
|
1539
|
+
* Public ID of the media this report targets
|
|
1448
1540
|
*/
|
|
1449
|
-
mediaId:
|
|
1541
|
+
mediaId: string;
|
|
1450
1542
|
/**
|
|
1451
1543
|
* Episode number containing the segment
|
|
1452
1544
|
*/
|
|
1453
1545
|
episodeNumber?: number;
|
|
1454
1546
|
/**
|
|
1455
|
-
* Segment
|
|
1547
|
+
* Segment public ID or UUID
|
|
1456
1548
|
*/
|
|
1457
|
-
|
|
1549
|
+
segmentId: string;
|
|
1458
1550
|
};
|
|
1459
1551
|
export type UserReportTarget = ({
|
|
1460
1552
|
type: 'MEDIA';
|
|
1461
1553
|
} & ReportTargetMedia) | ({
|
|
1462
1554
|
type: 'SEGMENT';
|
|
1463
|
-
} &
|
|
1555
|
+
} & ReportTargetSegmentInput);
|
|
1464
1556
|
export type CreateReportRequest = {
|
|
1465
1557
|
target: UserReportTarget;
|
|
1466
1558
|
/**
|
|
1467
1559
|
* Reason for the report
|
|
1468
1560
|
*/
|
|
1469
|
-
reason: 'WRONG_TRANSLATION' | 'WRONG_TIMING' | 'WRONG_AUDIO' | 'NSFW_NOT_TAGGED' | 'DUPLICATE_SEGMENT' | '
|
|
1561
|
+
reason: 'WRONG_TRANSLATION' | 'WRONG_TIMING' | 'WRONG_AUDIO' | 'WRONG_JAPANESE_TEXT' | 'LOW_QUALITY_AUDIO' | 'NSFW_NOT_TAGGED' | 'DUPLICATE_SEGMENT' | 'WRONG_TITLE' | 'DUPLICATE_MEDIA' | 'WRONG_EPISODE_NUMBER' | 'IMAGE_ISSUE' | 'MISSING_EPISODES' | 'INAPPROPRIATE_CONTENT' | 'OTHER';
|
|
1470
1562
|
/**
|
|
1471
1563
|
* Optional description with additional details
|
|
1472
1564
|
*/
|
|
@@ -1478,14 +1570,32 @@ export type ReportTargetEpisode = {
|
|
|
1478
1570
|
*/
|
|
1479
1571
|
type: 'EPISODE';
|
|
1480
1572
|
/**
|
|
1481
|
-
*
|
|
1573
|
+
* Public ID of the media this report targets
|
|
1482
1574
|
*/
|
|
1483
|
-
mediaId:
|
|
1575
|
+
mediaId: string;
|
|
1484
1576
|
/**
|
|
1485
1577
|
* Episode number this report targets
|
|
1486
1578
|
*/
|
|
1487
1579
|
episodeNumber: number;
|
|
1488
1580
|
};
|
|
1581
|
+
export type ReportTargetSegment = {
|
|
1582
|
+
/**
|
|
1583
|
+
* Report target type
|
|
1584
|
+
*/
|
|
1585
|
+
type: 'SEGMENT';
|
|
1586
|
+
/**
|
|
1587
|
+
* Public ID of the media this report targets
|
|
1588
|
+
*/
|
|
1589
|
+
mediaId: string;
|
|
1590
|
+
/**
|
|
1591
|
+
* Episode number containing the segment
|
|
1592
|
+
*/
|
|
1593
|
+
episodeNumber?: number;
|
|
1594
|
+
/**
|
|
1595
|
+
* Segment public ID or UUID
|
|
1596
|
+
*/
|
|
1597
|
+
segmentId: string;
|
|
1598
|
+
};
|
|
1489
1599
|
export type ReportTarget = ({
|
|
1490
1600
|
type: 'MEDIA';
|
|
1491
1601
|
} & ReportTargetMedia) | ({
|
|
@@ -1510,7 +1620,7 @@ export type Report = {
|
|
|
1510
1620
|
/**
|
|
1511
1621
|
* Reason for the report
|
|
1512
1622
|
*/
|
|
1513
|
-
reason: 'WRONG_TRANSLATION' | 'WRONG_TIMING' | 'WRONG_AUDIO' | 'NSFW_NOT_TAGGED' | 'DUPLICATE_SEGMENT' | 'WRONG_METADATA' | 'MISSING_EPISODES' | 'WRONG_COVER_IMAGE' | 'INAPPROPRIATE_CONTENT' | 'OTHER' | 'LOW_SEGMENT_MEDIA' | 'EMPTY_EPISODES' | 'MISSING_EPISODES_AUTO' | 'BAD_SEGMENT_RATIO' | 'MEDIA_WITH_NO_EPISODES' | 'MISSING_TRANSLATIONS' | 'DB_ES_SYNC_ISSUES' | 'HIGH_REPORT_DENSITY';
|
|
1623
|
+
reason: 'WRONG_TRANSLATION' | 'WRONG_TIMING' | 'WRONG_AUDIO' | 'WRONG_JAPANESE_TEXT' | 'LOW_QUALITY_AUDIO' | 'NSFW_NOT_TAGGED' | 'DUPLICATE_SEGMENT' | 'WRONG_METADATA' | 'MISSING_EPISODES' | 'WRONG_COVER_IMAGE' | 'WRONG_TITLE' | 'DUPLICATE_MEDIA' | 'WRONG_EPISODE_NUMBER' | 'IMAGE_ISSUE' | 'INAPPROPRIATE_CONTENT' | 'OTHER' | 'LOW_SEGMENT_MEDIA' | 'EMPTY_EPISODES' | 'MISSING_EPISODES_AUTO' | 'BAD_SEGMENT_RATIO' | 'MEDIA_WITH_NO_EPISODES' | 'MISSING_TRANSLATIONS' | 'DB_ES_SYNC_ISSUES' | 'HIGH_REPORT_DENSITY';
|
|
1514
1624
|
/**
|
|
1515
1625
|
* Optional description with additional details
|
|
1516
1626
|
*/
|
|
@@ -1589,11 +1699,11 @@ export type UserPreferences = {
|
|
|
1589
1699
|
/**
|
|
1590
1700
|
* Type of user activity
|
|
1591
1701
|
*/
|
|
1592
|
-
export type ActivityType = 'SEARCH' | 'ANKI_EXPORT' | 'SEGMENT_PLAY' | '
|
|
1702
|
+
export type ActivityType = 'SEARCH' | 'ANKI_EXPORT' | 'SEGMENT_PLAY' | 'SHARE';
|
|
1593
1703
|
export type UserActivity = {
|
|
1594
1704
|
id: number;
|
|
1595
1705
|
activityType: ActivityType;
|
|
1596
|
-
|
|
1706
|
+
segmentId: number;
|
|
1597
1707
|
mediaId: number;
|
|
1598
1708
|
searchQuery: string;
|
|
1599
1709
|
mediaName: string;
|
|
@@ -1607,7 +1717,6 @@ export type HeatmapDayCounts = {
|
|
|
1607
1717
|
SEARCH?: number;
|
|
1608
1718
|
SEGMENT_PLAY?: number;
|
|
1609
1719
|
ANKI_EXPORT?: number;
|
|
1610
|
-
LIST_ADD_SEGMENT?: number;
|
|
1611
1720
|
SHARE?: number;
|
|
1612
1721
|
};
|
|
1613
1722
|
/**
|
|
@@ -1618,10 +1727,18 @@ export type Collection = {
|
|
|
1618
1727
|
* Collection ID
|
|
1619
1728
|
*/
|
|
1620
1729
|
id: number;
|
|
1730
|
+
/**
|
|
1731
|
+
* Public identifier for the collection
|
|
1732
|
+
*/
|
|
1733
|
+
publicId: string;
|
|
1621
1734
|
/**
|
|
1622
1735
|
* Name of the collection
|
|
1623
1736
|
*/
|
|
1624
1737
|
name: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* Type of the collection
|
|
1740
|
+
*/
|
|
1741
|
+
type: 'USER' | 'ANKI_EXPORT';
|
|
1625
1742
|
/**
|
|
1626
1743
|
* Visibility of the collection
|
|
1627
1744
|
*/
|
|
@@ -1641,9 +1758,9 @@ export type Collection = {
|
|
|
1641
1758
|
};
|
|
1642
1759
|
export type UserExportCollection = Collection & {
|
|
1643
1760
|
/**
|
|
1644
|
-
* Segment
|
|
1761
|
+
* Segment IDs in saved order
|
|
1645
1762
|
*/
|
|
1646
|
-
|
|
1763
|
+
segmentIds: Array<number>;
|
|
1647
1764
|
};
|
|
1648
1765
|
/**
|
|
1649
1766
|
* User data export payload (identifier-oriented references)
|
|
@@ -2217,7 +2334,7 @@ export type GetSegmentByUuidData = {
|
|
|
2217
2334
|
body?: never;
|
|
2218
2335
|
path: {
|
|
2219
2336
|
/**
|
|
2220
|
-
* Segment UUID
|
|
2337
|
+
* Segment UUID or publicId
|
|
2221
2338
|
*/
|
|
2222
2339
|
uuid: string;
|
|
2223
2340
|
};
|
|
@@ -2267,7 +2384,7 @@ export type UpdateSegmentByUuidData = {
|
|
|
2267
2384
|
body: SegmentUpdateRequest;
|
|
2268
2385
|
path: {
|
|
2269
2386
|
/**
|
|
2270
|
-
* Segment UUID
|
|
2387
|
+
* Segment UUID or publicId
|
|
2271
2388
|
*/
|
|
2272
2389
|
uuid: string;
|
|
2273
2390
|
};
|
|
@@ -2312,7 +2429,7 @@ export type GetSegmentContextData = {
|
|
|
2312
2429
|
body?: never;
|
|
2313
2430
|
path: {
|
|
2314
2431
|
/**
|
|
2315
|
-
* Segment UUID
|
|
2432
|
+
* Segment UUID or publicId
|
|
2316
2433
|
*/
|
|
2317
2434
|
uuid: string;
|
|
2318
2435
|
};
|
|
@@ -2362,6 +2479,53 @@ export type GetSegmentContextResponses = {
|
|
|
2362
2479
|
200: SegmentContextResponse;
|
|
2363
2480
|
};
|
|
2364
2481
|
export type GetSegmentContextResponse = GetSegmentContextResponses[keyof GetSegmentContextResponses];
|
|
2482
|
+
export type ListSegmentRevisionsData = {
|
|
2483
|
+
body?: never;
|
|
2484
|
+
path: {
|
|
2485
|
+
/**
|
|
2486
|
+
* Segment UUID or publicId
|
|
2487
|
+
*/
|
|
2488
|
+
uuid: string;
|
|
2489
|
+
};
|
|
2490
|
+
query?: never;
|
|
2491
|
+
url: '/v1/media/segments/{uuid}/revisions';
|
|
2492
|
+
};
|
|
2493
|
+
export type ListSegmentRevisionsErrors = {
|
|
2494
|
+
/**
|
|
2495
|
+
* Bad Request
|
|
2496
|
+
*/
|
|
2497
|
+
400: Error400;
|
|
2498
|
+
/**
|
|
2499
|
+
* Unauthorized (API key or session)
|
|
2500
|
+
*/
|
|
2501
|
+
401: Error401;
|
|
2502
|
+
/**
|
|
2503
|
+
* Forbidden
|
|
2504
|
+
*/
|
|
2505
|
+
403: Error403;
|
|
2506
|
+
/**
|
|
2507
|
+
* Not Found
|
|
2508
|
+
*/
|
|
2509
|
+
404: Error404;
|
|
2510
|
+
/**
|
|
2511
|
+
* Too Many Requests
|
|
2512
|
+
*/
|
|
2513
|
+
429: Error429;
|
|
2514
|
+
/**
|
|
2515
|
+
* Internal Server Error
|
|
2516
|
+
*/
|
|
2517
|
+
500: Error500;
|
|
2518
|
+
};
|
|
2519
|
+
export type ListSegmentRevisionsError = ListSegmentRevisionsErrors[keyof ListSegmentRevisionsErrors];
|
|
2520
|
+
export type ListSegmentRevisionsResponses = {
|
|
2521
|
+
/**
|
|
2522
|
+
* List of segment revisions
|
|
2523
|
+
*/
|
|
2524
|
+
200: {
|
|
2525
|
+
revisions: Array<SegmentRevision>;
|
|
2526
|
+
};
|
|
2527
|
+
};
|
|
2528
|
+
export type ListSegmentRevisionsResponse = ListSegmentRevisionsResponses[keyof ListSegmentRevisionsResponses];
|
|
2365
2529
|
export type ListSeriesData = {
|
|
2366
2530
|
body?: never;
|
|
2367
2531
|
path?: never;
|
|
@@ -2464,9 +2628,9 @@ export type DeleteSeriesData = {
|
|
|
2464
2628
|
body?: never;
|
|
2465
2629
|
path: {
|
|
2466
2630
|
/**
|
|
2467
|
-
* Series ID
|
|
2631
|
+
* Series public ID
|
|
2468
2632
|
*/
|
|
2469
|
-
id:
|
|
2633
|
+
id: string;
|
|
2470
2634
|
};
|
|
2471
2635
|
query?: never;
|
|
2472
2636
|
url: '/v1/media/series/{id}';
|
|
@@ -2509,9 +2673,9 @@ export type GetSeriesData = {
|
|
|
2509
2673
|
body?: never;
|
|
2510
2674
|
path: {
|
|
2511
2675
|
/**
|
|
2512
|
-
* Series ID
|
|
2676
|
+
* Series public ID
|
|
2513
2677
|
*/
|
|
2514
|
-
id:
|
|
2678
|
+
id: string;
|
|
2515
2679
|
};
|
|
2516
2680
|
query?: {
|
|
2517
2681
|
/**
|
|
@@ -2572,9 +2736,9 @@ export type UpdateSeriesData = {
|
|
|
2572
2736
|
};
|
|
2573
2737
|
path: {
|
|
2574
2738
|
/**
|
|
2575
|
-
* Series ID
|
|
2739
|
+
* Series public ID
|
|
2576
2740
|
*/
|
|
2577
|
-
id:
|
|
2741
|
+
id: string;
|
|
2578
2742
|
};
|
|
2579
2743
|
query?: never;
|
|
2580
2744
|
url: '/v1/media/series/{id}';
|
|
@@ -2616,9 +2780,9 @@ export type UpdateSeriesResponse = UpdateSeriesResponses[keyof UpdateSeriesRespo
|
|
|
2616
2780
|
export type AddMediaToSeriesData = {
|
|
2617
2781
|
body: {
|
|
2618
2782
|
/**
|
|
2619
|
-
* Media ID to add
|
|
2783
|
+
* Media public ID to add
|
|
2620
2784
|
*/
|
|
2621
|
-
mediaId:
|
|
2785
|
+
mediaId: string;
|
|
2622
2786
|
/**
|
|
2623
2787
|
* Position in the series (1-indexed)
|
|
2624
2788
|
*/
|
|
@@ -2626,9 +2790,9 @@ export type AddMediaToSeriesData = {
|
|
|
2626
2790
|
};
|
|
2627
2791
|
path: {
|
|
2628
2792
|
/**
|
|
2629
|
-
* Series ID
|
|
2793
|
+
* Series public ID
|
|
2630
2794
|
*/
|
|
2631
|
-
id:
|
|
2795
|
+
id: string;
|
|
2632
2796
|
};
|
|
2633
2797
|
query?: never;
|
|
2634
2798
|
url: '/v1/media/series/{id}/media';
|
|
@@ -2671,13 +2835,13 @@ export type RemoveMediaFromSeriesData = {
|
|
|
2671
2835
|
body?: never;
|
|
2672
2836
|
path: {
|
|
2673
2837
|
/**
|
|
2674
|
-
* Series ID
|
|
2838
|
+
* Series public ID
|
|
2675
2839
|
*/
|
|
2676
|
-
id:
|
|
2840
|
+
id: string;
|
|
2677
2841
|
/**
|
|
2678
|
-
* Media ID
|
|
2842
|
+
* Media public ID
|
|
2679
2843
|
*/
|
|
2680
|
-
mediaId:
|
|
2844
|
+
mediaId: string;
|
|
2681
2845
|
};
|
|
2682
2846
|
query?: never;
|
|
2683
2847
|
url: '/v1/media/series/{id}/media/{mediaId}';
|
|
@@ -2725,13 +2889,13 @@ export type UpdateSeriesMediaData = {
|
|
|
2725
2889
|
};
|
|
2726
2890
|
path: {
|
|
2727
2891
|
/**
|
|
2728
|
-
* Series ID
|
|
2892
|
+
* Series public ID
|
|
2729
2893
|
*/
|
|
2730
|
-
id:
|
|
2894
|
+
id: string;
|
|
2731
2895
|
/**
|
|
2732
|
-
* Media ID
|
|
2896
|
+
* Media public ID
|
|
2733
2897
|
*/
|
|
2734
|
-
mediaId:
|
|
2898
|
+
mediaId: string;
|
|
2735
2899
|
};
|
|
2736
2900
|
query?: never;
|
|
2737
2901
|
url: '/v1/media/series/{id}/media/{mediaId}';
|
|
@@ -2774,7 +2938,7 @@ export type GetCharacterData = {
|
|
|
2774
2938
|
body?: never;
|
|
2775
2939
|
path: {
|
|
2776
2940
|
/**
|
|
2777
|
-
*
|
|
2941
|
+
* Character ID
|
|
2778
2942
|
*/
|
|
2779
2943
|
id: number;
|
|
2780
2944
|
};
|
|
@@ -2864,9 +3028,9 @@ export type DeleteMediaData = {
|
|
|
2864
3028
|
body?: never;
|
|
2865
3029
|
path: {
|
|
2866
3030
|
/**
|
|
2867
|
-
* Media ID
|
|
3031
|
+
* Media public ID
|
|
2868
3032
|
*/
|
|
2869
|
-
id:
|
|
3033
|
+
id: string;
|
|
2870
3034
|
};
|
|
2871
3035
|
query?: never;
|
|
2872
3036
|
url: '/v1/media/{id}';
|
|
@@ -2909,9 +3073,9 @@ export type GetMediaData = {
|
|
|
2909
3073
|
body?: never;
|
|
2910
3074
|
path: {
|
|
2911
3075
|
/**
|
|
2912
|
-
* Media ID
|
|
3076
|
+
* Media public ID
|
|
2913
3077
|
*/
|
|
2914
|
-
id:
|
|
3078
|
+
id: string;
|
|
2915
3079
|
};
|
|
2916
3080
|
query?: {
|
|
2917
3081
|
/**
|
|
@@ -2959,9 +3123,9 @@ export type UpdateMediaData = {
|
|
|
2959
3123
|
body: MediaUpdateRequest;
|
|
2960
3124
|
path: {
|
|
2961
3125
|
/**
|
|
2962
|
-
* Media ID
|
|
3126
|
+
* Media public ID
|
|
2963
3127
|
*/
|
|
2964
|
-
id:
|
|
3128
|
+
id: string;
|
|
2965
3129
|
};
|
|
2966
3130
|
query?: never;
|
|
2967
3131
|
url: '/v1/media/{id}';
|
|
@@ -3004,9 +3168,9 @@ export type ListEpisodesData = {
|
|
|
3004
3168
|
body?: never;
|
|
3005
3169
|
path: {
|
|
3006
3170
|
/**
|
|
3007
|
-
* ID of the media
|
|
3171
|
+
* Public ID of the media
|
|
3008
3172
|
*/
|
|
3009
|
-
mediaId:
|
|
3173
|
+
mediaId: string;
|
|
3010
3174
|
};
|
|
3011
3175
|
query?: {
|
|
3012
3176
|
/**
|
|
@@ -3058,9 +3222,9 @@ export type CreateEpisodeData = {
|
|
|
3058
3222
|
body: EpisodeCreateRequest;
|
|
3059
3223
|
path: {
|
|
3060
3224
|
/**
|
|
3061
|
-
* ID of the media
|
|
3225
|
+
* Public ID of the media
|
|
3062
3226
|
*/
|
|
3063
|
-
mediaId:
|
|
3227
|
+
mediaId: string;
|
|
3064
3228
|
};
|
|
3065
3229
|
query?: never;
|
|
3066
3230
|
url: '/v1/media/{mediaId}/episodes';
|
|
@@ -3107,9 +3271,9 @@ export type DeleteEpisodeData = {
|
|
|
3107
3271
|
body?: never;
|
|
3108
3272
|
path: {
|
|
3109
3273
|
/**
|
|
3110
|
-
* ID of the media
|
|
3274
|
+
* Public ID of the media
|
|
3111
3275
|
*/
|
|
3112
|
-
mediaId:
|
|
3276
|
+
mediaId: string;
|
|
3113
3277
|
/**
|
|
3114
3278
|
* Episode number
|
|
3115
3279
|
*/
|
|
@@ -3156,9 +3320,9 @@ export type GetEpisodeData = {
|
|
|
3156
3320
|
body?: never;
|
|
3157
3321
|
path: {
|
|
3158
3322
|
/**
|
|
3159
|
-
* ID of the media
|
|
3323
|
+
* Public ID of the media
|
|
3160
3324
|
*/
|
|
3161
|
-
mediaId:
|
|
3325
|
+
mediaId: string;
|
|
3162
3326
|
/**
|
|
3163
3327
|
* Episode number
|
|
3164
3328
|
*/
|
|
@@ -3205,9 +3369,9 @@ export type UpdateEpisodeData = {
|
|
|
3205
3369
|
body: EpisodeUpdateRequest;
|
|
3206
3370
|
path: {
|
|
3207
3371
|
/**
|
|
3208
|
-
* ID of the media
|
|
3372
|
+
* Public ID of the media
|
|
3209
3373
|
*/
|
|
3210
|
-
mediaId:
|
|
3374
|
+
mediaId: string;
|
|
3211
3375
|
/**
|
|
3212
3376
|
* Episode number
|
|
3213
3377
|
*/
|
|
@@ -3254,9 +3418,9 @@ export type ListSegmentsData = {
|
|
|
3254
3418
|
body?: never;
|
|
3255
3419
|
path: {
|
|
3256
3420
|
/**
|
|
3257
|
-
* ID of the media
|
|
3421
|
+
* Public ID of the media
|
|
3258
3422
|
*/
|
|
3259
|
-
mediaId:
|
|
3423
|
+
mediaId: string;
|
|
3260
3424
|
/**
|
|
3261
3425
|
* Episode number
|
|
3262
3426
|
*/
|
|
@@ -3318,9 +3482,9 @@ export type CreateSegmentData = {
|
|
|
3318
3482
|
body: SegmentCreateRequest;
|
|
3319
3483
|
path: {
|
|
3320
3484
|
/**
|
|
3321
|
-
* ID of the media
|
|
3485
|
+
* Public ID of the media
|
|
3322
3486
|
*/
|
|
3323
|
-
mediaId:
|
|
3487
|
+
mediaId: string;
|
|
3324
3488
|
/**
|
|
3325
3489
|
* Episode number
|
|
3326
3490
|
*/
|
|
@@ -3371,9 +3535,9 @@ export type CreateSegmentsBatchData = {
|
|
|
3371
3535
|
body: SegmentBatchCreateRequest;
|
|
3372
3536
|
path: {
|
|
3373
3537
|
/**
|
|
3374
|
-
* ID of the media
|
|
3538
|
+
* Public ID of the media
|
|
3375
3539
|
*/
|
|
3376
|
-
mediaId:
|
|
3540
|
+
mediaId: string;
|
|
3377
3541
|
/**
|
|
3378
3542
|
* Episode number
|
|
3379
3543
|
*/
|
|
@@ -3429,9 +3593,9 @@ export type DeleteSegmentData = {
|
|
|
3429
3593
|
body?: never;
|
|
3430
3594
|
path: {
|
|
3431
3595
|
/**
|
|
3432
|
-
* ID of the media
|
|
3596
|
+
* Public ID of the media
|
|
3433
3597
|
*/
|
|
3434
|
-
mediaId:
|
|
3598
|
+
mediaId: string;
|
|
3435
3599
|
/**
|
|
3436
3600
|
* Episode number
|
|
3437
3601
|
*/
|
|
@@ -3482,9 +3646,9 @@ export type GetSegmentData = {
|
|
|
3482
3646
|
body?: never;
|
|
3483
3647
|
path: {
|
|
3484
3648
|
/**
|
|
3485
|
-
* ID of the media
|
|
3649
|
+
* Public ID of the media
|
|
3486
3650
|
*/
|
|
3487
|
-
mediaId:
|
|
3651
|
+
mediaId: string;
|
|
3488
3652
|
/**
|
|
3489
3653
|
* Episode number
|
|
3490
3654
|
*/
|
|
@@ -3535,9 +3699,9 @@ export type UpdateSegmentData = {
|
|
|
3535
3699
|
body: SegmentUpdateRequest;
|
|
3536
3700
|
path: {
|
|
3537
3701
|
/**
|
|
3538
|
-
* ID of the media
|
|
3702
|
+
* Public ID of the media
|
|
3539
3703
|
*/
|
|
3540
|
-
mediaId:
|
|
3704
|
+
mediaId: string;
|
|
3541
3705
|
/**
|
|
3542
3706
|
* Episode number
|
|
3543
3707
|
*/
|
|
@@ -3774,7 +3938,7 @@ export type ListUserActivityResponse = ListUserActivityResponses[keyof ListUserA
|
|
|
3774
3938
|
export type TrackUserActivityData = {
|
|
3775
3939
|
body: {
|
|
3776
3940
|
activityType: 'SEGMENT_PLAY' | 'SHARE';
|
|
3777
|
-
|
|
3941
|
+
segmentId?: number;
|
|
3778
3942
|
mediaId?: number;
|
|
3779
3943
|
mediaName?: string;
|
|
3780
3944
|
japaneseText?: string;
|
|
@@ -4147,9 +4311,9 @@ export type DeleteCollectionData = {
|
|
|
4147
4311
|
body?: never;
|
|
4148
4312
|
path: {
|
|
4149
4313
|
/**
|
|
4150
|
-
* Collection ID
|
|
4314
|
+
* Collection public ID
|
|
4151
4315
|
*/
|
|
4152
|
-
id:
|
|
4316
|
+
id: string;
|
|
4153
4317
|
};
|
|
4154
4318
|
query?: never;
|
|
4155
4319
|
url: '/v1/collections/{id}';
|
|
@@ -4192,9 +4356,9 @@ export type GetCollectionData = {
|
|
|
4192
4356
|
body?: never;
|
|
4193
4357
|
path: {
|
|
4194
4358
|
/**
|
|
4195
|
-
* Collection ID
|
|
4359
|
+
* Collection public ID
|
|
4196
4360
|
*/
|
|
4197
|
-
id:
|
|
4361
|
+
id: string;
|
|
4198
4362
|
};
|
|
4199
4363
|
query?: {
|
|
4200
4364
|
/**
|
|
@@ -4249,9 +4413,9 @@ export type UpdateCollectionData = {
|
|
|
4249
4413
|
};
|
|
4250
4414
|
path: {
|
|
4251
4415
|
/**
|
|
4252
|
-
* Collection ID
|
|
4416
|
+
* Collection public ID
|
|
4253
4417
|
*/
|
|
4254
|
-
id:
|
|
4418
|
+
id: string;
|
|
4255
4419
|
};
|
|
4256
4420
|
query?: never;
|
|
4257
4421
|
url: '/v1/collections/{id}';
|
|
@@ -4293,9 +4457,9 @@ export type UpdateCollectionResponse = UpdateCollectionResponses[keyof UpdateCol
|
|
|
4293
4457
|
export type AddSegmentToCollectionData = {
|
|
4294
4458
|
body: {
|
|
4295
4459
|
/**
|
|
4296
|
-
* UUID of the segment to add
|
|
4460
|
+
* Public ID or UUID of the segment to add
|
|
4297
4461
|
*/
|
|
4298
|
-
|
|
4462
|
+
segmentId: string;
|
|
4299
4463
|
/**
|
|
4300
4464
|
* Optional annotation
|
|
4301
4465
|
*/
|
|
@@ -4303,9 +4467,9 @@ export type AddSegmentToCollectionData = {
|
|
|
4303
4467
|
};
|
|
4304
4468
|
path: {
|
|
4305
4469
|
/**
|
|
4306
|
-
* Collection ID
|
|
4470
|
+
* Collection public ID
|
|
4307
4471
|
*/
|
|
4308
|
-
id:
|
|
4472
|
+
id: string;
|
|
4309
4473
|
};
|
|
4310
4474
|
query?: never;
|
|
4311
4475
|
url: '/v1/collections/{id}/segments';
|
|
@@ -4348,16 +4512,16 @@ export type RemoveSegmentFromCollectionData = {
|
|
|
4348
4512
|
body?: never;
|
|
4349
4513
|
path: {
|
|
4350
4514
|
/**
|
|
4351
|
-
* Collection ID
|
|
4515
|
+
* Collection public ID
|
|
4352
4516
|
*/
|
|
4353
|
-
id:
|
|
4517
|
+
id: string;
|
|
4354
4518
|
/**
|
|
4355
|
-
* Segment
|
|
4519
|
+
* Segment ID
|
|
4356
4520
|
*/
|
|
4357
|
-
|
|
4521
|
+
segmentId: number;
|
|
4358
4522
|
};
|
|
4359
4523
|
query?: never;
|
|
4360
|
-
url: '/v1/collections/{id}/segments/{
|
|
4524
|
+
url: '/v1/collections/{id}/segments/{segmentId}';
|
|
4361
4525
|
};
|
|
4362
4526
|
export type RemoveSegmentFromCollectionErrors = {
|
|
4363
4527
|
/**
|
|
@@ -4406,16 +4570,16 @@ export type UpdateCollectionSegmentData = {
|
|
|
4406
4570
|
};
|
|
4407
4571
|
path: {
|
|
4408
4572
|
/**
|
|
4409
|
-
* Collection ID
|
|
4573
|
+
* Collection public ID
|
|
4410
4574
|
*/
|
|
4411
|
-
id:
|
|
4575
|
+
id: string;
|
|
4412
4576
|
/**
|
|
4413
|
-
* Segment
|
|
4577
|
+
* Segment ID
|
|
4414
4578
|
*/
|
|
4415
|
-
|
|
4579
|
+
segmentId: number;
|
|
4416
4580
|
};
|
|
4417
4581
|
query?: never;
|
|
4418
|
-
url: '/v1/collections/{id}/segments/{
|
|
4582
|
+
url: '/v1/collections/{id}/segments/{segmentId}';
|
|
4419
4583
|
};
|
|
4420
4584
|
export type UpdateCollectionSegmentErrors = {
|
|
4421
4585
|
/**
|
|
@@ -4455,9 +4619,9 @@ export type SearchCollectionSegmentsData = {
|
|
|
4455
4619
|
body?: never;
|
|
4456
4620
|
path: {
|
|
4457
4621
|
/**
|
|
4458
|
-
* Collection ID
|
|
4622
|
+
* Collection public ID
|
|
4459
4623
|
*/
|
|
4460
|
-
id:
|
|
4624
|
+
id: string;
|
|
4461
4625
|
};
|
|
4462
4626
|
query?: {
|
|
4463
4627
|
/**
|
|
@@ -4509,9 +4673,9 @@ export type GetCollectionStatsData = {
|
|
|
4509
4673
|
body?: never;
|
|
4510
4674
|
path: {
|
|
4511
4675
|
/**
|
|
4512
|
-
* Collection ID
|
|
4676
|
+
* Collection public ID
|
|
4513
4677
|
*/
|
|
4514
|
-
id:
|
|
4678
|
+
id: string;
|
|
4515
4679
|
};
|
|
4516
4680
|
query?: never;
|
|
4517
4681
|
url: '/v1/collections/{id}/stats';
|
|
@@ -5132,9 +5296,9 @@ export type ListAdminReportsData = {
|
|
|
5132
5296
|
*/
|
|
5133
5297
|
'target.episodeNumber'?: number;
|
|
5134
5298
|
/**
|
|
5135
|
-
* Filter by target segment
|
|
5299
|
+
* Filter by target segment ID
|
|
5136
5300
|
*/
|
|
5137
|
-
'target.
|
|
5301
|
+
'target.segmentId'?: number;
|
|
5138
5302
|
/**
|
|
5139
5303
|
* Filter by audit run ID
|
|
5140
5304
|
*/
|
|
@@ -5439,4 +5603,80 @@ export type GetAdminMediaAuditRunResponses = {
|
|
|
5439
5603
|
};
|
|
5440
5604
|
};
|
|
5441
5605
|
export type GetAdminMediaAuditRunResponse = GetAdminMediaAuditRunResponses[keyof GetAdminMediaAuditRunResponses];
|
|
5606
|
+
export type GetAnnouncementData = {
|
|
5607
|
+
body?: never;
|
|
5608
|
+
path?: never;
|
|
5609
|
+
query?: never;
|
|
5610
|
+
url: '/v1/admin/announcement';
|
|
5611
|
+
};
|
|
5612
|
+
export type GetAnnouncementErrors = {
|
|
5613
|
+
/**
|
|
5614
|
+
* Too Many Requests
|
|
5615
|
+
*/
|
|
5616
|
+
429: Error429;
|
|
5617
|
+
/**
|
|
5618
|
+
* Internal Server Error
|
|
5619
|
+
*/
|
|
5620
|
+
500: Error500;
|
|
5621
|
+
};
|
|
5622
|
+
export type GetAnnouncementError = GetAnnouncementErrors[keyof GetAnnouncementErrors];
|
|
5623
|
+
export type GetAnnouncementResponses = {
|
|
5624
|
+
/**
|
|
5625
|
+
* OK
|
|
5626
|
+
*/
|
|
5627
|
+
200: {
|
|
5628
|
+
message: string;
|
|
5629
|
+
type: 'info' | 'warning' | 'maintenance';
|
|
5630
|
+
active: boolean;
|
|
5631
|
+
};
|
|
5632
|
+
/**
|
|
5633
|
+
* No announcement set
|
|
5634
|
+
*/
|
|
5635
|
+
204: void;
|
|
5636
|
+
};
|
|
5637
|
+
export type GetAnnouncementResponse = GetAnnouncementResponses[keyof GetAnnouncementResponses];
|
|
5638
|
+
export type UpdateAnnouncementData = {
|
|
5639
|
+
body: {
|
|
5640
|
+
message: string;
|
|
5641
|
+
type: 'info' | 'warning' | 'maintenance';
|
|
5642
|
+
active: boolean;
|
|
5643
|
+
};
|
|
5644
|
+
path?: never;
|
|
5645
|
+
query?: never;
|
|
5646
|
+
url: '/v1/admin/announcement';
|
|
5647
|
+
};
|
|
5648
|
+
export type UpdateAnnouncementErrors = {
|
|
5649
|
+
/**
|
|
5650
|
+
* Bad Request
|
|
5651
|
+
*/
|
|
5652
|
+
400: Error400;
|
|
5653
|
+
/**
|
|
5654
|
+
* Unauthorized (session)
|
|
5655
|
+
*/
|
|
5656
|
+
401: Error401;
|
|
5657
|
+
/**
|
|
5658
|
+
* Forbidden
|
|
5659
|
+
*/
|
|
5660
|
+
403: Error403;
|
|
5661
|
+
/**
|
|
5662
|
+
* Too Many Requests
|
|
5663
|
+
*/
|
|
5664
|
+
429: Error429;
|
|
5665
|
+
/**
|
|
5666
|
+
* Internal Server Error
|
|
5667
|
+
*/
|
|
5668
|
+
500: Error500;
|
|
5669
|
+
};
|
|
5670
|
+
export type UpdateAnnouncementError = UpdateAnnouncementErrors[keyof UpdateAnnouncementErrors];
|
|
5671
|
+
export type UpdateAnnouncementResponses = {
|
|
5672
|
+
/**
|
|
5673
|
+
* Announcement updated
|
|
5674
|
+
*/
|
|
5675
|
+
200: {
|
|
5676
|
+
message: string;
|
|
5677
|
+
type: 'info' | 'warning' | 'maintenance';
|
|
5678
|
+
active: boolean;
|
|
5679
|
+
};
|
|
5680
|
+
};
|
|
5681
|
+
export type UpdateAnnouncementResponse = UpdateAnnouncementResponses[keyof UpdateAnnouncementResponses];
|
|
5442
5682
|
//# sourceMappingURL=types.gen.d.ts.map
|