@brigadasos/nadeshiko-sdk 1.5.0-dev.7d15241 → 1.5.0-dev.972aa12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -14
- package/dist/index.cjs +266 -61
- 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 +266 -61
- package/dist/index.js.map +4 -4
- 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 +8 -4
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +32 -11
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +309 -90
- 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
|
*/
|
|
@@ -250,6 +254,10 @@ export type Seiyuu = {
|
|
|
250
254
|
* Internal seiyuu ID
|
|
251
255
|
*/
|
|
252
256
|
id: number;
|
|
257
|
+
/**
|
|
258
|
+
* Public identifier for the seiyuu (use this in public URLs)
|
|
259
|
+
*/
|
|
260
|
+
publicId: string;
|
|
253
261
|
externalIds: ExternalId;
|
|
254
262
|
/**
|
|
255
263
|
* Japanese name of the voice actor
|
|
@@ -295,9 +303,13 @@ export type MediaCharacter = {
|
|
|
295
303
|
*/
|
|
296
304
|
export type Media = {
|
|
297
305
|
/**
|
|
298
|
-
*
|
|
306
|
+
* Internal unique identifier for the media
|
|
299
307
|
*/
|
|
300
308
|
id: number;
|
|
309
|
+
/**
|
|
310
|
+
* Public identifier for the media (use this in public URLs)
|
|
311
|
+
*/
|
|
312
|
+
publicId: string;
|
|
301
313
|
externalIds: ExternalId;
|
|
302
314
|
/**
|
|
303
315
|
* Original Japanese name of the media
|
|
@@ -601,6 +613,10 @@ export type MediaSearchStats = {
|
|
|
601
613
|
* Media identifier (look up full details in includes.media)
|
|
602
614
|
*/
|
|
603
615
|
mediaId: number;
|
|
616
|
+
/**
|
|
617
|
+
* Public identifier for use in URLs and filters
|
|
618
|
+
*/
|
|
619
|
+
publicId: string;
|
|
604
620
|
/**
|
|
605
621
|
* Number of matching segments found in this media
|
|
606
622
|
*/
|
|
@@ -719,6 +735,20 @@ export type OpaqueCursorPagination = {
|
|
|
719
735
|
export type MediaListResponse = {
|
|
720
736
|
media: Array<Media>;
|
|
721
737
|
pagination: OpaqueCursorPagination;
|
|
738
|
+
stats: {
|
|
739
|
+
/**
|
|
740
|
+
* Total number of media across all pages
|
|
741
|
+
*/
|
|
742
|
+
totalMedia: number;
|
|
743
|
+
/**
|
|
744
|
+
* Total number of non-deleted segments
|
|
745
|
+
*/
|
|
746
|
+
totalSegments: number;
|
|
747
|
+
/**
|
|
748
|
+
* Total number of episodes
|
|
749
|
+
*/
|
|
750
|
+
totalEpisodes: number;
|
|
751
|
+
};
|
|
722
752
|
};
|
|
723
753
|
/**
|
|
724
754
|
* Character data for creating/updating media
|
|
@@ -866,8 +896,65 @@ export type Error409 = {
|
|
|
866
896
|
[key: string]: string;
|
|
867
897
|
};
|
|
868
898
|
};
|
|
899
|
+
/**
|
|
900
|
+
* Slim media item returned by autocomplete (names + cover only)
|
|
901
|
+
*/
|
|
902
|
+
export type MediaAutocompleteItem = {
|
|
903
|
+
/**
|
|
904
|
+
* Unique identifier for the media
|
|
905
|
+
*/
|
|
906
|
+
id: number;
|
|
907
|
+
/**
|
|
908
|
+
* Original Japanese name of the media
|
|
909
|
+
*/
|
|
910
|
+
nameJa: string;
|
|
911
|
+
/**
|
|
912
|
+
* Romaji transliteration of the media name
|
|
913
|
+
*/
|
|
914
|
+
nameRomaji: string;
|
|
915
|
+
/**
|
|
916
|
+
* English name of the media
|
|
917
|
+
*/
|
|
918
|
+
nameEn: string;
|
|
919
|
+
/**
|
|
920
|
+
* Full URL to the cover image
|
|
921
|
+
*/
|
|
922
|
+
coverUrl: string;
|
|
923
|
+
category: Category;
|
|
924
|
+
};
|
|
869
925
|
export type MediaAutocompleteResponse = {
|
|
870
|
-
media: Array<
|
|
926
|
+
media: Array<MediaAutocompleteItem>;
|
|
927
|
+
};
|
|
928
|
+
/**
|
|
929
|
+
* Segment with internal fields. For write operations (create, update) all fields are always populated.
|
|
930
|
+
* For GET, optional fields are only populated when requested via include[].
|
|
931
|
+
*
|
|
932
|
+
*/
|
|
933
|
+
export type SegmentInternal = Segment & {
|
|
934
|
+
/**
|
|
935
|
+
* Storage backend for segment assets
|
|
936
|
+
*/
|
|
937
|
+
storage?: 'LOCAL' | 'R2';
|
|
938
|
+
/**
|
|
939
|
+
* Hash identifier for the segment
|
|
940
|
+
*/
|
|
941
|
+
hashedId?: string;
|
|
942
|
+
/**
|
|
943
|
+
* Base path in the storage backend
|
|
944
|
+
*/
|
|
945
|
+
storageBasePath?: string;
|
|
946
|
+
/**
|
|
947
|
+
* Raw WD Tagger v3 classifier output used to derive content rating
|
|
948
|
+
*/
|
|
949
|
+
ratingAnalysis?: {
|
|
950
|
+
[key: string]: unknown;
|
|
951
|
+
};
|
|
952
|
+
/**
|
|
953
|
+
* POS tokenization results keyed by engine (sudachi, unidic)
|
|
954
|
+
*/
|
|
955
|
+
posAnalysis?: {
|
|
956
|
+
[key: string]: unknown;
|
|
957
|
+
};
|
|
871
958
|
};
|
|
872
959
|
/**
|
|
873
960
|
* Not Found error response
|
|
@@ -972,35 +1059,6 @@ export type SegmentUpdateRequest = {
|
|
|
972
1059
|
*/
|
|
973
1060
|
hashedId?: string;
|
|
974
1061
|
};
|
|
975
|
-
/**
|
|
976
|
-
* Segment with internal fields (for internal API responses)
|
|
977
|
-
*/
|
|
978
|
-
export type SegmentInternal = Segment & {
|
|
979
|
-
/**
|
|
980
|
-
* Storage backend for segment assets
|
|
981
|
-
*/
|
|
982
|
-
storage: 'LOCAL' | 'R2';
|
|
983
|
-
/**
|
|
984
|
-
* Hash identifier for the segment
|
|
985
|
-
*/
|
|
986
|
-
hashedId: string;
|
|
987
|
-
/**
|
|
988
|
-
* Base path in the storage backend
|
|
989
|
-
*/
|
|
990
|
-
storageBasePath: string;
|
|
991
|
-
/**
|
|
992
|
-
* Raw WD Tagger v3 classifier output used to derive content rating
|
|
993
|
-
*/
|
|
994
|
-
ratingAnalysis: {
|
|
995
|
-
[key: string]: unknown;
|
|
996
|
-
};
|
|
997
|
-
/**
|
|
998
|
-
* POS tokenization results keyed by engine (sudachi, unidic)
|
|
999
|
-
*/
|
|
1000
|
-
posAnalysis: {
|
|
1001
|
-
[key: string]: unknown;
|
|
1002
|
-
};
|
|
1003
|
-
};
|
|
1004
1062
|
export type SegmentContextResponse = {
|
|
1005
1063
|
segments: Array<Segment>;
|
|
1006
1064
|
includes: {
|
|
@@ -1012,6 +1070,30 @@ export type SegmentContextResponse = {
|
|
|
1012
1070
|
};
|
|
1013
1071
|
};
|
|
1014
1072
|
};
|
|
1073
|
+
export type SegmentRevision = {
|
|
1074
|
+
/**
|
|
1075
|
+
* Revision ID
|
|
1076
|
+
*/
|
|
1077
|
+
id: number;
|
|
1078
|
+
/**
|
|
1079
|
+
* Sequential revision number per segment
|
|
1080
|
+
*/
|
|
1081
|
+
revisionNumber: number;
|
|
1082
|
+
/**
|
|
1083
|
+
* Snapshot of editable fields at the time of the revision
|
|
1084
|
+
*/
|
|
1085
|
+
snapshot: {
|
|
1086
|
+
[key: string]: unknown;
|
|
1087
|
+
};
|
|
1088
|
+
/**
|
|
1089
|
+
* Name of the user who made the change
|
|
1090
|
+
*/
|
|
1091
|
+
userName?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* When the revision was created
|
|
1094
|
+
*/
|
|
1095
|
+
createdAt: string;
|
|
1096
|
+
};
|
|
1015
1097
|
/**
|
|
1016
1098
|
* Ordered media series grouping
|
|
1017
1099
|
*/
|
|
@@ -1076,6 +1158,10 @@ export type Character = {
|
|
|
1076
1158
|
* Internal character ID
|
|
1077
1159
|
*/
|
|
1078
1160
|
id: number;
|
|
1161
|
+
/**
|
|
1162
|
+
* Public identifier for the character (use this in public URLs)
|
|
1163
|
+
*/
|
|
1164
|
+
publicId: string;
|
|
1079
1165
|
externalIds: ExternalId;
|
|
1080
1166
|
/**
|
|
1081
1167
|
* Japanese name of the character
|
|
@@ -1397,6 +1483,9 @@ export type SegmentCreateRequest = {
|
|
|
1397
1483
|
*/
|
|
1398
1484
|
hashedId: string;
|
|
1399
1485
|
};
|
|
1486
|
+
export type SegmentBatchCreateRequest = {
|
|
1487
|
+
segments: Array<SegmentCreateRequest>;
|
|
1488
|
+
};
|
|
1400
1489
|
export type UserQuotaResponse = {
|
|
1401
1490
|
/**
|
|
1402
1491
|
* Number of API requests used in the current billing period.
|
|
@@ -1433,7 +1522,7 @@ export type ReportTargetMedia = {
|
|
|
1433
1522
|
*/
|
|
1434
1523
|
mediaId: number;
|
|
1435
1524
|
};
|
|
1436
|
-
export type
|
|
1525
|
+
export type ReportTargetSegmentInput = {
|
|
1437
1526
|
/**
|
|
1438
1527
|
* Report target type
|
|
1439
1528
|
*/
|
|
@@ -1447,15 +1536,15 @@ export type ReportTargetSegment = {
|
|
|
1447
1536
|
*/
|
|
1448
1537
|
episodeNumber?: number;
|
|
1449
1538
|
/**
|
|
1450
|
-
* Segment
|
|
1539
|
+
* Segment public ID or UUID
|
|
1451
1540
|
*/
|
|
1452
|
-
|
|
1541
|
+
segmentId: string;
|
|
1453
1542
|
};
|
|
1454
1543
|
export type UserReportTarget = ({
|
|
1455
1544
|
type: 'MEDIA';
|
|
1456
1545
|
} & ReportTargetMedia) | ({
|
|
1457
1546
|
type: 'SEGMENT';
|
|
1458
|
-
} &
|
|
1547
|
+
} & ReportTargetSegmentInput);
|
|
1459
1548
|
export type CreateReportRequest = {
|
|
1460
1549
|
target: UserReportTarget;
|
|
1461
1550
|
/**
|
|
@@ -1481,6 +1570,24 @@ export type ReportTargetEpisode = {
|
|
|
1481
1570
|
*/
|
|
1482
1571
|
episodeNumber: number;
|
|
1483
1572
|
};
|
|
1573
|
+
export type ReportTargetSegment = {
|
|
1574
|
+
/**
|
|
1575
|
+
* Report target type
|
|
1576
|
+
*/
|
|
1577
|
+
type: 'SEGMENT';
|
|
1578
|
+
/**
|
|
1579
|
+
* Media ID this report targets
|
|
1580
|
+
*/
|
|
1581
|
+
mediaId: number;
|
|
1582
|
+
/**
|
|
1583
|
+
* Episode number containing the segment
|
|
1584
|
+
*/
|
|
1585
|
+
episodeNumber?: number;
|
|
1586
|
+
/**
|
|
1587
|
+
* Segment ID
|
|
1588
|
+
*/
|
|
1589
|
+
segmentId: number;
|
|
1590
|
+
};
|
|
1484
1591
|
export type ReportTarget = ({
|
|
1485
1592
|
type: 'MEDIA';
|
|
1486
1593
|
} & ReportTargetMedia) | ({
|
|
@@ -1584,17 +1691,26 @@ export type UserPreferences = {
|
|
|
1584
1691
|
/**
|
|
1585
1692
|
* Type of user activity
|
|
1586
1693
|
*/
|
|
1587
|
-
export type ActivityType = 'SEARCH' | 'ANKI_EXPORT' | 'SEGMENT_PLAY' | '
|
|
1694
|
+
export type ActivityType = 'SEARCH' | 'ANKI_EXPORT' | 'SEGMENT_PLAY' | 'SHARE';
|
|
1588
1695
|
export type UserActivity = {
|
|
1589
1696
|
id: number;
|
|
1590
1697
|
activityType: ActivityType;
|
|
1591
|
-
|
|
1698
|
+
segmentId: number;
|
|
1592
1699
|
mediaId: number;
|
|
1593
1700
|
searchQuery: string;
|
|
1594
1701
|
mediaName: string;
|
|
1595
1702
|
japaneseText: string;
|
|
1596
1703
|
createdAt: string;
|
|
1597
1704
|
};
|
|
1705
|
+
/**
|
|
1706
|
+
* Activity counts for a single day, broken down by type. Only types with at least 1 event are present.
|
|
1707
|
+
*/
|
|
1708
|
+
export type HeatmapDayCounts = {
|
|
1709
|
+
SEARCH?: number;
|
|
1710
|
+
SEGMENT_PLAY?: number;
|
|
1711
|
+
ANKI_EXPORT?: number;
|
|
1712
|
+
SHARE?: number;
|
|
1713
|
+
};
|
|
1598
1714
|
/**
|
|
1599
1715
|
* User segment collection
|
|
1600
1716
|
*/
|
|
@@ -1607,6 +1723,10 @@ export type Collection = {
|
|
|
1607
1723
|
* Name of the collection
|
|
1608
1724
|
*/
|
|
1609
1725
|
name: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* Type of the collection
|
|
1728
|
+
*/
|
|
1729
|
+
type: 'USER' | 'ANKI_EXPORT';
|
|
1610
1730
|
/**
|
|
1611
1731
|
* Visibility of the collection
|
|
1612
1732
|
*/
|
|
@@ -1626,9 +1746,9 @@ export type Collection = {
|
|
|
1626
1746
|
};
|
|
1627
1747
|
export type UserExportCollection = Collection & {
|
|
1628
1748
|
/**
|
|
1629
|
-
* Segment
|
|
1749
|
+
* Segment IDs in saved order
|
|
1630
1750
|
*/
|
|
1631
|
-
|
|
1751
|
+
segmentIds: Array<number>;
|
|
1632
1752
|
};
|
|
1633
1753
|
/**
|
|
1634
1754
|
* User data export payload (identifier-oriented references)
|
|
@@ -2202,11 +2322,16 @@ export type GetSegmentByUuidData = {
|
|
|
2202
2322
|
body?: never;
|
|
2203
2323
|
path: {
|
|
2204
2324
|
/**
|
|
2205
|
-
* Segment UUID
|
|
2325
|
+
* Segment UUID or publicId
|
|
2206
2326
|
*/
|
|
2207
2327
|
uuid: string;
|
|
2208
2328
|
};
|
|
2209
|
-
query?:
|
|
2329
|
+
query?: {
|
|
2330
|
+
/**
|
|
2331
|
+
* Additional internal fields to include in the response
|
|
2332
|
+
*/
|
|
2333
|
+
include?: Array<'ratingAnalysis' | 'posAnalysis' | 'hashedId' | 'storageBasePath' | 'storage'>;
|
|
2334
|
+
};
|
|
2210
2335
|
url: '/v1/media/segments/{uuid}';
|
|
2211
2336
|
};
|
|
2212
2337
|
export type GetSegmentByUuidErrors = {
|
|
@@ -2215,7 +2340,7 @@ export type GetSegmentByUuidErrors = {
|
|
|
2215
2340
|
*/
|
|
2216
2341
|
400: Error400;
|
|
2217
2342
|
/**
|
|
2218
|
-
* Unauthorized (API key)
|
|
2343
|
+
* Unauthorized (API key or session)
|
|
2219
2344
|
*/
|
|
2220
2345
|
401: Error401;
|
|
2221
2346
|
/**
|
|
@@ -2238,16 +2363,16 @@ export type GetSegmentByUuidErrors = {
|
|
|
2238
2363
|
export type GetSegmentByUuidError = GetSegmentByUuidErrors[keyof GetSegmentByUuidErrors];
|
|
2239
2364
|
export type GetSegmentByUuidResponses = {
|
|
2240
2365
|
/**
|
|
2241
|
-
*
|
|
2366
|
+
* Single segment response with internal fields
|
|
2242
2367
|
*/
|
|
2243
|
-
200:
|
|
2368
|
+
200: SegmentInternal;
|
|
2244
2369
|
};
|
|
2245
2370
|
export type GetSegmentByUuidResponse = GetSegmentByUuidResponses[keyof GetSegmentByUuidResponses];
|
|
2246
2371
|
export type UpdateSegmentByUuidData = {
|
|
2247
2372
|
body: SegmentUpdateRequest;
|
|
2248
2373
|
path: {
|
|
2249
2374
|
/**
|
|
2250
|
-
* Segment UUID
|
|
2375
|
+
* Segment UUID or publicId
|
|
2251
2376
|
*/
|
|
2252
2377
|
uuid: string;
|
|
2253
2378
|
};
|
|
@@ -2292,7 +2417,7 @@ export type GetSegmentContextData = {
|
|
|
2292
2417
|
body?: never;
|
|
2293
2418
|
path: {
|
|
2294
2419
|
/**
|
|
2295
|
-
* Segment UUID
|
|
2420
|
+
* Segment UUID or publicId
|
|
2296
2421
|
*/
|
|
2297
2422
|
uuid: string;
|
|
2298
2423
|
};
|
|
@@ -2314,7 +2439,7 @@ export type GetSegmentContextErrors = {
|
|
|
2314
2439
|
*/
|
|
2315
2440
|
400: Error400;
|
|
2316
2441
|
/**
|
|
2317
|
-
* Unauthorized (API key)
|
|
2442
|
+
* Unauthorized (API key or session)
|
|
2318
2443
|
*/
|
|
2319
2444
|
401: Error401;
|
|
2320
2445
|
/**
|
|
@@ -2342,6 +2467,53 @@ export type GetSegmentContextResponses = {
|
|
|
2342
2467
|
200: SegmentContextResponse;
|
|
2343
2468
|
};
|
|
2344
2469
|
export type GetSegmentContextResponse = GetSegmentContextResponses[keyof GetSegmentContextResponses];
|
|
2470
|
+
export type ListSegmentRevisionsData = {
|
|
2471
|
+
body?: never;
|
|
2472
|
+
path: {
|
|
2473
|
+
/**
|
|
2474
|
+
* Segment UUID or publicId
|
|
2475
|
+
*/
|
|
2476
|
+
uuid: string;
|
|
2477
|
+
};
|
|
2478
|
+
query?: never;
|
|
2479
|
+
url: '/v1/media/segments/{uuid}/revisions';
|
|
2480
|
+
};
|
|
2481
|
+
export type ListSegmentRevisionsErrors = {
|
|
2482
|
+
/**
|
|
2483
|
+
* Bad Request
|
|
2484
|
+
*/
|
|
2485
|
+
400: Error400;
|
|
2486
|
+
/**
|
|
2487
|
+
* Unauthorized (API key or session)
|
|
2488
|
+
*/
|
|
2489
|
+
401: Error401;
|
|
2490
|
+
/**
|
|
2491
|
+
* Forbidden
|
|
2492
|
+
*/
|
|
2493
|
+
403: Error403;
|
|
2494
|
+
/**
|
|
2495
|
+
* Not Found
|
|
2496
|
+
*/
|
|
2497
|
+
404: Error404;
|
|
2498
|
+
/**
|
|
2499
|
+
* Too Many Requests
|
|
2500
|
+
*/
|
|
2501
|
+
429: Error429;
|
|
2502
|
+
/**
|
|
2503
|
+
* Internal Server Error
|
|
2504
|
+
*/
|
|
2505
|
+
500: Error500;
|
|
2506
|
+
};
|
|
2507
|
+
export type ListSegmentRevisionsError = ListSegmentRevisionsErrors[keyof ListSegmentRevisionsErrors];
|
|
2508
|
+
export type ListSegmentRevisionsResponses = {
|
|
2509
|
+
/**
|
|
2510
|
+
* List of segment revisions
|
|
2511
|
+
*/
|
|
2512
|
+
200: {
|
|
2513
|
+
revisions: Array<SegmentRevision>;
|
|
2514
|
+
};
|
|
2515
|
+
};
|
|
2516
|
+
export type ListSegmentRevisionsResponse = ListSegmentRevisionsResponses[keyof ListSegmentRevisionsResponses];
|
|
2345
2517
|
export type ListSeriesData = {
|
|
2346
2518
|
body?: never;
|
|
2347
2519
|
path?: never;
|
|
@@ -3347,6 +3519,64 @@ export type CreateSegmentResponses = {
|
|
|
3347
3519
|
201: SegmentInternal;
|
|
3348
3520
|
};
|
|
3349
3521
|
export type CreateSegmentResponse = CreateSegmentResponses[keyof CreateSegmentResponses];
|
|
3522
|
+
export type CreateSegmentsBatchData = {
|
|
3523
|
+
body: SegmentBatchCreateRequest;
|
|
3524
|
+
path: {
|
|
3525
|
+
/**
|
|
3526
|
+
* ID of the media
|
|
3527
|
+
*/
|
|
3528
|
+
mediaId: number;
|
|
3529
|
+
/**
|
|
3530
|
+
* Episode number
|
|
3531
|
+
*/
|
|
3532
|
+
episodeNumber: number;
|
|
3533
|
+
};
|
|
3534
|
+
query?: never;
|
|
3535
|
+
url: '/v1/media/{mediaId}/episodes/{episodeNumber}/segments/batch';
|
|
3536
|
+
};
|
|
3537
|
+
export type CreateSegmentsBatchErrors = {
|
|
3538
|
+
/**
|
|
3539
|
+
* Bad Request
|
|
3540
|
+
*/
|
|
3541
|
+
400: Error400;
|
|
3542
|
+
/**
|
|
3543
|
+
* Unauthorized (API key)
|
|
3544
|
+
*/
|
|
3545
|
+
401: Error401;
|
|
3546
|
+
/**
|
|
3547
|
+
* Forbidden
|
|
3548
|
+
*/
|
|
3549
|
+
403: Error403;
|
|
3550
|
+
/**
|
|
3551
|
+
* Not Found
|
|
3552
|
+
*/
|
|
3553
|
+
404: Error404;
|
|
3554
|
+
/**
|
|
3555
|
+
* Too Many Requests
|
|
3556
|
+
*/
|
|
3557
|
+
429: Error429;
|
|
3558
|
+
/**
|
|
3559
|
+
* Internal Server Error
|
|
3560
|
+
*/
|
|
3561
|
+
500: Error500;
|
|
3562
|
+
};
|
|
3563
|
+
export type CreateSegmentsBatchError = CreateSegmentsBatchErrors[keyof CreateSegmentsBatchErrors];
|
|
3564
|
+
export type CreateSegmentsBatchResponses = {
|
|
3565
|
+
/**
|
|
3566
|
+
* Batch segment creation result
|
|
3567
|
+
*/
|
|
3568
|
+
201: {
|
|
3569
|
+
/**
|
|
3570
|
+
* Number of segments successfully created
|
|
3571
|
+
*/
|
|
3572
|
+
created: number;
|
|
3573
|
+
/**
|
|
3574
|
+
* Number of segments skipped due to duplicate UUIDs
|
|
3575
|
+
*/
|
|
3576
|
+
skipped: number;
|
|
3577
|
+
};
|
|
3578
|
+
};
|
|
3579
|
+
export type CreateSegmentsBatchResponse = CreateSegmentsBatchResponses[keyof CreateSegmentsBatchResponses];
|
|
3350
3580
|
export type DeleteSegmentData = {
|
|
3351
3581
|
body?: never;
|
|
3352
3582
|
path: {
|
|
@@ -3695,8 +3925,8 @@ export type ListUserActivityResponses = {
|
|
|
3695
3925
|
export type ListUserActivityResponse = ListUserActivityResponses[keyof ListUserActivityResponses];
|
|
3696
3926
|
export type TrackUserActivityData = {
|
|
3697
3927
|
body: {
|
|
3698
|
-
activityType: 'SEGMENT_PLAY';
|
|
3699
|
-
|
|
3928
|
+
activityType: 'SEGMENT_PLAY' | 'SHARE';
|
|
3929
|
+
segmentId?: number;
|
|
3700
3930
|
mediaId?: number;
|
|
3701
3931
|
mediaName?: string;
|
|
3702
3932
|
japaneseText?: string;
|
|
@@ -3735,10 +3965,6 @@ export type GetUserActivityHeatmapData = {
|
|
|
3735
3965
|
* Number of days to include in the heatmap
|
|
3736
3966
|
*/
|
|
3737
3967
|
days?: number;
|
|
3738
|
-
/**
|
|
3739
|
-
* Filter by activity type
|
|
3740
|
-
*/
|
|
3741
|
-
activityType?: ActivityType;
|
|
3742
3968
|
};
|
|
3743
3969
|
url: '/v1/user/activity/heatmap';
|
|
3744
3970
|
};
|
|
@@ -3759,10 +3985,10 @@ export type GetUserActivityHeatmapResponses = {
|
|
|
3759
3985
|
*/
|
|
3760
3986
|
200: {
|
|
3761
3987
|
/**
|
|
3762
|
-
* Map of YYYY-MM-DD date strings to activity
|
|
3988
|
+
* Map of YYYY-MM-DD date strings to per-type activity counts
|
|
3763
3989
|
*/
|
|
3764
3990
|
activityByDay: {
|
|
3765
|
-
[key: string]:
|
|
3991
|
+
[key: string]: HeatmapDayCounts;
|
|
3766
3992
|
};
|
|
3767
3993
|
};
|
|
3768
3994
|
};
|
|
@@ -3798,6 +4024,7 @@ export type GetUserActivityStatsResponses = {
|
|
|
3798
4024
|
totalExports: number;
|
|
3799
4025
|
totalPlays: number;
|
|
3800
4026
|
totalListAdds: number;
|
|
4027
|
+
totalShares: number;
|
|
3801
4028
|
topMedia: Array<{
|
|
3802
4029
|
mediaId: number;
|
|
3803
4030
|
count: number;
|
|
@@ -4218,9 +4445,9 @@ export type UpdateCollectionResponse = UpdateCollectionResponses[keyof UpdateCol
|
|
|
4218
4445
|
export type AddSegmentToCollectionData = {
|
|
4219
4446
|
body: {
|
|
4220
4447
|
/**
|
|
4221
|
-
* UUID of the segment to add
|
|
4448
|
+
* Public ID or UUID of the segment to add
|
|
4222
4449
|
*/
|
|
4223
|
-
|
|
4450
|
+
segmentId: string;
|
|
4224
4451
|
/**
|
|
4225
4452
|
* Optional annotation
|
|
4226
4453
|
*/
|
|
@@ -4277,12 +4504,12 @@ export type RemoveSegmentFromCollectionData = {
|
|
|
4277
4504
|
*/
|
|
4278
4505
|
id: number;
|
|
4279
4506
|
/**
|
|
4280
|
-
* Segment
|
|
4507
|
+
* Segment ID
|
|
4281
4508
|
*/
|
|
4282
|
-
|
|
4509
|
+
segmentId: number;
|
|
4283
4510
|
};
|
|
4284
4511
|
query?: never;
|
|
4285
|
-
url: '/v1/collections/{id}/segments/{
|
|
4512
|
+
url: '/v1/collections/{id}/segments/{segmentId}';
|
|
4286
4513
|
};
|
|
4287
4514
|
export type RemoveSegmentFromCollectionErrors = {
|
|
4288
4515
|
/**
|
|
@@ -4335,12 +4562,12 @@ export type UpdateCollectionSegmentData = {
|
|
|
4335
4562
|
*/
|
|
4336
4563
|
id: number;
|
|
4337
4564
|
/**
|
|
4338
|
-
* Segment
|
|
4565
|
+
* Segment ID
|
|
4339
4566
|
*/
|
|
4340
|
-
|
|
4567
|
+
segmentId: number;
|
|
4341
4568
|
};
|
|
4342
4569
|
query?: never;
|
|
4343
|
-
url: '/v1/collections/{id}/segments/{
|
|
4570
|
+
url: '/v1/collections/{id}/segments/{segmentId}';
|
|
4344
4571
|
};
|
|
4345
4572
|
export type UpdateCollectionSegmentErrors = {
|
|
4346
4573
|
/**
|
|
@@ -4483,7 +4710,7 @@ export type GetAdminDashboardData = {
|
|
|
4483
4710
|
};
|
|
4484
4711
|
export type GetAdminDashboardErrors = {
|
|
4485
4712
|
/**
|
|
4486
|
-
* Unauthorized (
|
|
4713
|
+
* Unauthorized (session)
|
|
4487
4714
|
*/
|
|
4488
4715
|
401: Error401;
|
|
4489
4716
|
/**
|
|
@@ -4575,7 +4802,7 @@ export type GetAdminHealthData = {
|
|
|
4575
4802
|
};
|
|
4576
4803
|
export type GetAdminHealthErrors = {
|
|
4577
4804
|
/**
|
|
4578
|
-
* Unauthorized (
|
|
4805
|
+
* Unauthorized (session)
|
|
4579
4806
|
*/
|
|
4580
4807
|
401: Error401;
|
|
4581
4808
|
/**
|
|
@@ -4637,7 +4864,7 @@ export type TriggerReindexErrors = {
|
|
|
4637
4864
|
*/
|
|
4638
4865
|
400: Error400;
|
|
4639
4866
|
/**
|
|
4640
|
-
* Unauthorized (
|
|
4867
|
+
* Unauthorized (session)
|
|
4641
4868
|
*/
|
|
4642
4869
|
401: Error401;
|
|
4643
4870
|
/**
|
|
@@ -4673,7 +4900,7 @@ export type ListAdminQueueStatsErrors = {
|
|
|
4673
4900
|
*/
|
|
4674
4901
|
400: Error400;
|
|
4675
4902
|
/**
|
|
4676
|
-
* Unauthorized (
|
|
4903
|
+
* Unauthorized (session)
|
|
4677
4904
|
*/
|
|
4678
4905
|
401: Error401;
|
|
4679
4906
|
/**
|
|
@@ -4724,7 +4951,7 @@ export type GetAdminQueueErrors = {
|
|
|
4724
4951
|
*/
|
|
4725
4952
|
400: Error400;
|
|
4726
4953
|
/**
|
|
4727
|
-
* Unauthorized (
|
|
4954
|
+
* Unauthorized (session)
|
|
4728
4955
|
*/
|
|
4729
4956
|
401: Error401;
|
|
4730
4957
|
/**
|
|
@@ -4809,7 +5036,7 @@ export type ListAdminQueueFailedErrors = {
|
|
|
4809
5036
|
*/
|
|
4810
5037
|
400: Error400;
|
|
4811
5038
|
/**
|
|
4812
|
-
* Unauthorized (
|
|
5039
|
+
* Unauthorized (session)
|
|
4813
5040
|
*/
|
|
4814
5041
|
401: Error401;
|
|
4815
5042
|
/**
|
|
@@ -4867,7 +5094,7 @@ export type RetryAdminQueueFailedErrors = {
|
|
|
4867
5094
|
*/
|
|
4868
5095
|
400: Error400;
|
|
4869
5096
|
/**
|
|
4870
|
-
* Unauthorized (
|
|
5097
|
+
* Unauthorized (session)
|
|
4871
5098
|
*/
|
|
4872
5099
|
401: Error401;
|
|
4873
5100
|
/**
|
|
@@ -4915,7 +5142,7 @@ export type PurgeAdminQueueFailedErrors = {
|
|
|
4915
5142
|
*/
|
|
4916
5143
|
400: Error400;
|
|
4917
5144
|
/**
|
|
4918
|
-
* Unauthorized (
|
|
5145
|
+
* Unauthorized (session)
|
|
4919
5146
|
*/
|
|
4920
5147
|
401: Error401;
|
|
4921
5148
|
/**
|
|
@@ -4953,10 +5180,6 @@ export type ClearAdminImpersonationData = {
|
|
|
4953
5180
|
url: '/v1/admin/impersonation';
|
|
4954
5181
|
};
|
|
4955
5182
|
export type ClearAdminImpersonationErrors = {
|
|
4956
|
-
/**
|
|
4957
|
-
* Unauthorized (session)
|
|
4958
|
-
*/
|
|
4959
|
-
401: Error401;
|
|
4960
5183
|
/**
|
|
4961
5184
|
* Forbidden
|
|
4962
5185
|
*/
|
|
@@ -4996,10 +5219,6 @@ export type ImpersonateAdminUserErrors = {
|
|
|
4996
5219
|
* Bad Request
|
|
4997
5220
|
*/
|
|
4998
5221
|
400: Error400;
|
|
4999
|
-
/**
|
|
5000
|
-
* Unauthorized (session)
|
|
5001
|
-
*/
|
|
5002
|
-
401: Error401;
|
|
5003
5222
|
/**
|
|
5004
5223
|
* Forbidden
|
|
5005
5224
|
*/
|
|
@@ -5065,9 +5284,9 @@ export type ListAdminReportsData = {
|
|
|
5065
5284
|
*/
|
|
5066
5285
|
'target.episodeNumber'?: number;
|
|
5067
5286
|
/**
|
|
5068
|
-
* Filter by target segment
|
|
5287
|
+
* Filter by target segment ID
|
|
5069
5288
|
*/
|
|
5070
|
-
'target.
|
|
5289
|
+
'target.segmentId'?: number;
|
|
5071
5290
|
/**
|
|
5072
5291
|
* Filter by audit run ID
|
|
5073
5292
|
*/
|
|
@@ -5077,7 +5296,7 @@ export type ListAdminReportsData = {
|
|
|
5077
5296
|
};
|
|
5078
5297
|
export type ListAdminReportsErrors = {
|
|
5079
5298
|
/**
|
|
5080
|
-
* Unauthorized (
|
|
5299
|
+
* Unauthorized (session)
|
|
5081
5300
|
*/
|
|
5082
5301
|
401: Error401;
|
|
5083
5302
|
/**
|
|
@@ -5118,7 +5337,7 @@ export type UpdateAdminReportErrors = {
|
|
|
5118
5337
|
*/
|
|
5119
5338
|
400: Error400;
|
|
5120
5339
|
/**
|
|
5121
|
-
* Unauthorized (
|
|
5340
|
+
* Unauthorized (session)
|
|
5122
5341
|
*/
|
|
5123
5342
|
401: Error401;
|
|
5124
5343
|
/**
|
|
@@ -5154,7 +5373,7 @@ export type ListAdminMediaAuditsData = {
|
|
|
5154
5373
|
};
|
|
5155
5374
|
export type ListAdminMediaAuditsErrors = {
|
|
5156
5375
|
/**
|
|
5157
|
-
* Unauthorized (
|
|
5376
|
+
* Unauthorized (session)
|
|
5158
5377
|
*/
|
|
5159
5378
|
401: Error401;
|
|
5160
5379
|
/**
|
|
@@ -5206,7 +5425,7 @@ export type UpdateAdminMediaAuditErrors = {
|
|
|
5206
5425
|
*/
|
|
5207
5426
|
400: Error400;
|
|
5208
5427
|
/**
|
|
5209
|
-
* Unauthorized (
|
|
5428
|
+
* Unauthorized (session)
|
|
5210
5429
|
*/
|
|
5211
5430
|
401: Error401;
|
|
5212
5431
|
/**
|
|
@@ -5252,7 +5471,7 @@ export type RunAdminMediaAuditData = {
|
|
|
5252
5471
|
};
|
|
5253
5472
|
export type RunAdminMediaAuditErrors = {
|
|
5254
5473
|
/**
|
|
5255
|
-
* Unauthorized (
|
|
5474
|
+
* Unauthorized (session)
|
|
5256
5475
|
*/
|
|
5257
5476
|
401: Error401;
|
|
5258
5477
|
/**
|
|
@@ -5301,7 +5520,7 @@ export type ListAdminMediaAuditRunsData = {
|
|
|
5301
5520
|
};
|
|
5302
5521
|
export type ListAdminMediaAuditRunsErrors = {
|
|
5303
5522
|
/**
|
|
5304
|
-
* Unauthorized (
|
|
5523
|
+
* Unauthorized (session)
|
|
5305
5524
|
*/
|
|
5306
5525
|
401: Error401;
|
|
5307
5526
|
/**
|
|
@@ -5341,7 +5560,7 @@ export type GetAdminMediaAuditRunData = {
|
|
|
5341
5560
|
};
|
|
5342
5561
|
export type GetAdminMediaAuditRunErrors = {
|
|
5343
5562
|
/**
|
|
5344
|
-
* Unauthorized (
|
|
5563
|
+
* Unauthorized (session)
|
|
5345
5564
|
*/
|
|
5346
5565
|
401: Error401;
|
|
5347
5566
|
/**
|