@brigadasos/nadeshiko-sdk 1.5.0-dev.be49703 → 1.5.0-dev.ca1fe65

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.
@@ -6,9 +6,9 @@ export type ClientOptions = {
6
6
  */
7
7
  export type MediaFilterItem = {
8
8
  /**
9
- * Media ID to filter
9
+ * Media identifier (publicId or AniList external ID)
10
10
  */
11
- mediaId: number;
11
+ mediaId: string;
12
12
  /**
13
13
  * Specific episodes (omit for all episodes)
14
14
  */
@@ -132,6 +132,35 @@ export type SearchRequest = {
132
132
  */
133
133
  include?: Array<IncludeExpansion>;
134
134
  };
135
+ /**
136
+ * Morphological token from Japanese text analysis
137
+ */
138
+ export type Token = {
139
+ /**
140
+ * Surface form (the text as it appears in the sentence)
141
+ */
142
+ s: string;
143
+ /**
144
+ * Dictionary form (base/lemma form for search)
145
+ */
146
+ d: string;
147
+ /**
148
+ * Reading in katakana
149
+ */
150
+ r: string;
151
+ /**
152
+ * Begin character offset in textJa.content
153
+ */
154
+ b: number;
155
+ /**
156
+ * End character offset in textJa.content
157
+ */
158
+ e: number;
159
+ /**
160
+ * Primary part-of-speech tag
161
+ */
162
+ p: string;
163
+ };
135
164
  /**
136
165
  * Segment with content, optional highlights, and media URLs
137
166
  */
@@ -144,6 +173,10 @@ export type Segment = {
144
173
  * Unique identifier for the segment
145
174
  */
146
175
  uuid: string;
176
+ /**
177
+ * Public identifier for the segment (use this instead of uuid in public URLs)
178
+ */
179
+ publicId: string;
147
180
  /**
148
181
  * Position of the segment within the episode
149
182
  */
@@ -169,6 +202,10 @@ export type Segment = {
169
202
  * Media ID this segment belongs to
170
203
  */
171
204
  mediaId: number;
205
+ /**
206
+ * Public ID of the media this segment belongs to
207
+ */
208
+ mediaPublicId: string;
172
209
  textJa: {
173
210
  /**
174
211
  * Original Japanese content
@@ -178,6 +215,10 @@ export type Segment = {
178
215
  * Japanese content with search terms highlighted
179
216
  */
180
217
  highlight?: string;
218
+ /**
219
+ * Morphological tokens for interactive display (Labs feature)
220
+ */
221
+ tokens?: Array<Token>;
181
222
  };
182
223
  textEn: {
183
224
  /**
@@ -241,6 +282,10 @@ export type ExternalId = {
241
282
  * TVDB ID
242
283
  */
243
284
  tvdb?: string;
285
+ /**
286
+ * TMDB ID
287
+ */
288
+ tmdb?: string;
244
289
  };
245
290
  /**
246
291
  * Japanese voice actor (seiyuu)
@@ -250,6 +295,10 @@ export type Seiyuu = {
250
295
  * Internal seiyuu ID
251
296
  */
252
297
  id: number;
298
+ /**
299
+ * Public identifier for the seiyuu (use this in public URLs)
300
+ */
301
+ publicId: string;
253
302
  externalIds: ExternalId;
254
303
  /**
255
304
  * Japanese name of the voice actor
@@ -295,9 +344,13 @@ export type MediaCharacter = {
295
344
  */
296
345
  export type Media = {
297
346
  /**
298
- * Unique identifier for the media
347
+ * Internal unique identifier for the media
299
348
  */
300
349
  id: number;
350
+ /**
351
+ * Public identifier for the media (use this in public URLs)
352
+ */
353
+ publicId: string;
301
354
  externalIds: ExternalId;
302
355
  /**
303
356
  * Original Japanese name of the media
@@ -351,7 +404,7 @@ export type Media = {
351
404
  /**
352
405
  * Animation studio that produced the media
353
406
  */
354
- studio: string;
407
+ studio?: string;
355
408
  /**
356
409
  * Airing season label for the media
357
410
  */
@@ -390,7 +443,7 @@ export type SearchResponse = {
390
443
  segments: Array<Segment>;
391
444
  includes: {
392
445
  /**
393
- * Media objects keyed by mediaId
446
+ * Media objects keyed by media publicId
394
447
  */
395
448
  media: {
396
449
  [key: string]: Media;
@@ -601,6 +654,10 @@ export type MediaSearchStats = {
601
654
  * Media identifier (look up full details in includes.media)
602
655
  */
603
656
  mediaId: number;
657
+ /**
658
+ * Public identifier for use in URLs and filters
659
+ */
660
+ publicId: string;
604
661
  /**
605
662
  * Number of matching segments found in this media
606
663
  */
@@ -627,7 +684,7 @@ export type SearchStatsResponse = {
627
684
  categories: Array<CategoryCount>;
628
685
  includes: {
629
686
  /**
630
- * Media objects keyed by mediaId
687
+ * Media objects keyed by media publicId
631
688
  */
632
689
  media: {
633
690
  [key: string]: Media;
@@ -719,6 +776,20 @@ export type OpaqueCursorPagination = {
719
776
  export type MediaListResponse = {
720
777
  media: Array<Media>;
721
778
  pagination: OpaqueCursorPagination;
779
+ stats: {
780
+ /**
781
+ * Total number of media across all pages
782
+ */
783
+ totalMedia: number;
784
+ /**
785
+ * Total number of non-deleted segments
786
+ */
787
+ totalSegments: number;
788
+ /**
789
+ * Total number of episodes
790
+ */
791
+ totalEpisodes: number;
792
+ };
722
793
  };
723
794
  /**
724
795
  * Character data for creating/updating media
@@ -813,7 +884,7 @@ export type MediaCreateRequest = {
813
884
  /**
814
885
  * Animation studio that produced the media
815
886
  */
816
- studio: string;
887
+ studio?: string;
817
888
  /**
818
889
  * Airing season label for the media
819
890
  */
@@ -1072,6 +1143,10 @@ export type Series = {
1072
1143
  * Series ID
1073
1144
  */
1074
1145
  id: number;
1146
+ /**
1147
+ * Public identifier for the series
1148
+ */
1149
+ publicId: string;
1075
1150
  /**
1076
1151
  * Japanese name of the series
1077
1152
  */
@@ -1128,6 +1203,10 @@ export type Character = {
1128
1203
  * Internal character ID
1129
1204
  */
1130
1205
  id: number;
1206
+ /**
1207
+ * Public identifier for the character (use this in public URLs)
1208
+ */
1209
+ publicId: string;
1131
1210
  externalIds: ExternalId;
1132
1211
  /**
1133
1212
  * Japanese name of the character
@@ -1484,39 +1563,39 @@ export type ReportTargetMedia = {
1484
1563
  */
1485
1564
  type: 'MEDIA';
1486
1565
  /**
1487
- * Media ID this report targets
1566
+ * Public ID of the media this report targets
1488
1567
  */
1489
- mediaId: number;
1568
+ mediaId: string;
1490
1569
  };
1491
- export type ReportTargetSegment = {
1570
+ export type ReportTargetSegmentInput = {
1492
1571
  /**
1493
1572
  * Report target type
1494
1573
  */
1495
1574
  type: 'SEGMENT';
1496
1575
  /**
1497
- * Media ID this report targets
1576
+ * Public ID of the media this report targets
1498
1577
  */
1499
- mediaId: number;
1578
+ mediaId: string;
1500
1579
  /**
1501
1580
  * Episode number containing the segment
1502
1581
  */
1503
1582
  episodeNumber?: number;
1504
1583
  /**
1505
- * Segment UUID this report targets
1584
+ * Segment public ID or UUID
1506
1585
  */
1507
- segmentUuid: string;
1586
+ segmentId: string;
1508
1587
  };
1509
1588
  export type UserReportTarget = ({
1510
1589
  type: 'MEDIA';
1511
1590
  } & ReportTargetMedia) | ({
1512
1591
  type: 'SEGMENT';
1513
- } & ReportTargetSegment);
1592
+ } & ReportTargetSegmentInput);
1514
1593
  export type CreateReportRequest = {
1515
1594
  target: UserReportTarget;
1516
1595
  /**
1517
1596
  * Reason for the report
1518
1597
  */
1519
- reason: 'WRONG_TRANSLATION' | 'WRONG_TIMING' | 'WRONG_AUDIO' | 'NSFW_NOT_TAGGED' | 'DUPLICATE_SEGMENT' | 'WRONG_METADATA' | 'MISSING_EPISODES' | 'WRONG_COVER_IMAGE' | 'INAPPROPRIATE_CONTENT' | 'OTHER';
1598
+ 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';
1520
1599
  /**
1521
1600
  * Optional description with additional details
1522
1601
  */
@@ -1528,14 +1607,32 @@ export type ReportTargetEpisode = {
1528
1607
  */
1529
1608
  type: 'EPISODE';
1530
1609
  /**
1531
- * Media ID this report targets
1610
+ * Public ID of the media this report targets
1532
1611
  */
1533
- mediaId: number;
1612
+ mediaId: string;
1534
1613
  /**
1535
1614
  * Episode number this report targets
1536
1615
  */
1537
1616
  episodeNumber: number;
1538
1617
  };
1618
+ export type ReportTargetSegment = {
1619
+ /**
1620
+ * Report target type
1621
+ */
1622
+ type: 'SEGMENT';
1623
+ /**
1624
+ * Public ID of the media this report targets
1625
+ */
1626
+ mediaId: string;
1627
+ /**
1628
+ * Episode number containing the segment
1629
+ */
1630
+ episodeNumber?: number;
1631
+ /**
1632
+ * Segment public ID or UUID
1633
+ */
1634
+ segmentId: string;
1635
+ };
1539
1636
  export type ReportTarget = ({
1540
1637
  type: 'MEDIA';
1541
1638
  } & ReportTargetMedia) | ({
@@ -1560,7 +1657,7 @@ export type Report = {
1560
1657
  /**
1561
1658
  * Reason for the report
1562
1659
  */
1563
- 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';
1660
+ 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';
1564
1661
  /**
1565
1662
  * Optional description with additional details
1566
1663
  */
@@ -1643,7 +1740,7 @@ export type ActivityType = 'SEARCH' | 'ANKI_EXPORT' | 'SEGMENT_PLAY' | 'SHARE';
1643
1740
  export type UserActivity = {
1644
1741
  id: number;
1645
1742
  activityType: ActivityType;
1646
- segmentUuid: string;
1743
+ segmentId: string;
1647
1744
  mediaId: number;
1648
1745
  searchQuery: string;
1649
1746
  mediaName: string;
@@ -1667,6 +1764,10 @@ export type Collection = {
1667
1764
  * Collection ID
1668
1765
  */
1669
1766
  id: number;
1767
+ /**
1768
+ * Public identifier for the collection
1769
+ */
1770
+ publicId: string;
1670
1771
  /**
1671
1772
  * Name of the collection
1672
1773
  */
@@ -1694,9 +1795,9 @@ export type Collection = {
1694
1795
  };
1695
1796
  export type UserExportCollection = Collection & {
1696
1797
  /**
1697
- * Segment UUIDs in saved order
1798
+ * Segment IDs in saved order
1698
1799
  */
1699
- segmentUuids: Array<string>;
1800
+ segmentIds: Array<number>;
1700
1801
  };
1701
1802
  /**
1702
1803
  * User data export payload (identifier-oriented references)
@@ -2270,7 +2371,7 @@ export type GetSegmentByUuidData = {
2270
2371
  body?: never;
2271
2372
  path: {
2272
2373
  /**
2273
- * Segment UUID
2374
+ * Segment UUID or publicId
2274
2375
  */
2275
2376
  uuid: string;
2276
2377
  };
@@ -2320,7 +2421,7 @@ export type UpdateSegmentByUuidData = {
2320
2421
  body: SegmentUpdateRequest;
2321
2422
  path: {
2322
2423
  /**
2323
- * Segment UUID
2424
+ * Segment UUID or publicId
2324
2425
  */
2325
2426
  uuid: string;
2326
2427
  };
@@ -2365,7 +2466,7 @@ export type GetSegmentContextData = {
2365
2466
  body?: never;
2366
2467
  path: {
2367
2468
  /**
2368
- * Segment UUID
2469
+ * Segment UUID or publicId
2369
2470
  */
2370
2471
  uuid: string;
2371
2472
  };
@@ -2419,7 +2520,7 @@ export type ListSegmentRevisionsData = {
2419
2520
  body?: never;
2420
2521
  path: {
2421
2522
  /**
2422
- * Segment UUID
2523
+ * Segment UUID or publicId
2423
2524
  */
2424
2525
  uuid: string;
2425
2526
  };
@@ -2564,9 +2665,9 @@ export type DeleteSeriesData = {
2564
2665
  body?: never;
2565
2666
  path: {
2566
2667
  /**
2567
- * Series ID
2668
+ * Series public ID
2568
2669
  */
2569
- id: number;
2670
+ id: string;
2570
2671
  };
2571
2672
  query?: never;
2572
2673
  url: '/v1/media/series/{id}';
@@ -2609,9 +2710,9 @@ export type GetSeriesData = {
2609
2710
  body?: never;
2610
2711
  path: {
2611
2712
  /**
2612
- * Series ID
2713
+ * Series public ID
2613
2714
  */
2614
- id: number;
2715
+ id: string;
2615
2716
  };
2616
2717
  query?: {
2617
2718
  /**
@@ -2672,9 +2773,9 @@ export type UpdateSeriesData = {
2672
2773
  };
2673
2774
  path: {
2674
2775
  /**
2675
- * Series ID
2776
+ * Series public ID
2676
2777
  */
2677
- id: number;
2778
+ id: string;
2678
2779
  };
2679
2780
  query?: never;
2680
2781
  url: '/v1/media/series/{id}';
@@ -2716,9 +2817,9 @@ export type UpdateSeriesResponse = UpdateSeriesResponses[keyof UpdateSeriesRespo
2716
2817
  export type AddMediaToSeriesData = {
2717
2818
  body: {
2718
2819
  /**
2719
- * Media ID to add
2820
+ * Media public ID to add
2720
2821
  */
2721
- mediaId: number;
2822
+ mediaId: string;
2722
2823
  /**
2723
2824
  * Position in the series (1-indexed)
2724
2825
  */
@@ -2726,9 +2827,9 @@ export type AddMediaToSeriesData = {
2726
2827
  };
2727
2828
  path: {
2728
2829
  /**
2729
- * Series ID
2830
+ * Series public ID
2730
2831
  */
2731
- id: number;
2832
+ id: string;
2732
2833
  };
2733
2834
  query?: never;
2734
2835
  url: '/v1/media/series/{id}/media';
@@ -2771,13 +2872,13 @@ export type RemoveMediaFromSeriesData = {
2771
2872
  body?: never;
2772
2873
  path: {
2773
2874
  /**
2774
- * Series ID
2875
+ * Series public ID
2775
2876
  */
2776
- id: number;
2877
+ id: string;
2777
2878
  /**
2778
- * Media ID
2879
+ * Media public ID
2779
2880
  */
2780
- mediaId: number;
2881
+ mediaId: string;
2781
2882
  };
2782
2883
  query?: never;
2783
2884
  url: '/v1/media/series/{id}/media/{mediaId}';
@@ -2825,13 +2926,13 @@ export type UpdateSeriesMediaData = {
2825
2926
  };
2826
2927
  path: {
2827
2928
  /**
2828
- * Series ID
2929
+ * Series public ID
2829
2930
  */
2830
- id: number;
2931
+ id: string;
2831
2932
  /**
2832
- * Media ID
2933
+ * Media public ID
2833
2934
  */
2834
- mediaId: number;
2935
+ mediaId: string;
2835
2936
  };
2836
2937
  query?: never;
2837
2938
  url: '/v1/media/series/{id}/media/{mediaId}';
@@ -2874,7 +2975,7 @@ export type GetCharacterData = {
2874
2975
  body?: never;
2875
2976
  path: {
2876
2977
  /**
2877
- * Internal character ID
2978
+ * Character ID
2878
2979
  */
2879
2980
  id: number;
2880
2981
  };
@@ -2964,9 +3065,9 @@ export type DeleteMediaData = {
2964
3065
  body?: never;
2965
3066
  path: {
2966
3067
  /**
2967
- * Media ID
3068
+ * Media public ID
2968
3069
  */
2969
- id: number;
3070
+ id: string;
2970
3071
  };
2971
3072
  query?: never;
2972
3073
  url: '/v1/media/{id}';
@@ -3009,9 +3110,9 @@ export type GetMediaData = {
3009
3110
  body?: never;
3010
3111
  path: {
3011
3112
  /**
3012
- * Media ID
3113
+ * Media public ID
3013
3114
  */
3014
- id: number;
3115
+ id: string;
3015
3116
  };
3016
3117
  query?: {
3017
3118
  /**
@@ -3059,9 +3160,9 @@ export type UpdateMediaData = {
3059
3160
  body: MediaUpdateRequest;
3060
3161
  path: {
3061
3162
  /**
3062
- * Media ID
3163
+ * Media public ID
3063
3164
  */
3064
- id: number;
3165
+ id: string;
3065
3166
  };
3066
3167
  query?: never;
3067
3168
  url: '/v1/media/{id}';
@@ -3104,9 +3205,9 @@ export type ListEpisodesData = {
3104
3205
  body?: never;
3105
3206
  path: {
3106
3207
  /**
3107
- * ID of the media
3208
+ * Public ID of the media
3108
3209
  */
3109
- mediaId: number;
3210
+ mediaId: string;
3110
3211
  };
3111
3212
  query?: {
3112
3213
  /**
@@ -3158,9 +3259,9 @@ export type CreateEpisodeData = {
3158
3259
  body: EpisodeCreateRequest;
3159
3260
  path: {
3160
3261
  /**
3161
- * ID of the media
3262
+ * Public ID of the media
3162
3263
  */
3163
- mediaId: number;
3264
+ mediaId: string;
3164
3265
  };
3165
3266
  query?: never;
3166
3267
  url: '/v1/media/{mediaId}/episodes';
@@ -3207,9 +3308,9 @@ export type DeleteEpisodeData = {
3207
3308
  body?: never;
3208
3309
  path: {
3209
3310
  /**
3210
- * ID of the media
3311
+ * Public ID of the media
3211
3312
  */
3212
- mediaId: number;
3313
+ mediaId: string;
3213
3314
  /**
3214
3315
  * Episode number
3215
3316
  */
@@ -3256,9 +3357,9 @@ export type GetEpisodeData = {
3256
3357
  body?: never;
3257
3358
  path: {
3258
3359
  /**
3259
- * ID of the media
3360
+ * Public ID of the media
3260
3361
  */
3261
- mediaId: number;
3362
+ mediaId: string;
3262
3363
  /**
3263
3364
  * Episode number
3264
3365
  */
@@ -3305,9 +3406,9 @@ export type UpdateEpisodeData = {
3305
3406
  body: EpisodeUpdateRequest;
3306
3407
  path: {
3307
3408
  /**
3308
- * ID of the media
3409
+ * Public ID of the media
3309
3410
  */
3310
- mediaId: number;
3411
+ mediaId: string;
3311
3412
  /**
3312
3413
  * Episode number
3313
3414
  */
@@ -3354,9 +3455,9 @@ export type ListSegmentsData = {
3354
3455
  body?: never;
3355
3456
  path: {
3356
3457
  /**
3357
- * ID of the media
3458
+ * Public ID of the media
3358
3459
  */
3359
- mediaId: number;
3460
+ mediaId: string;
3360
3461
  /**
3361
3462
  * Episode number
3362
3463
  */
@@ -3418,9 +3519,9 @@ export type CreateSegmentData = {
3418
3519
  body: SegmentCreateRequest;
3419
3520
  path: {
3420
3521
  /**
3421
- * ID of the media
3522
+ * Public ID of the media
3422
3523
  */
3423
- mediaId: number;
3524
+ mediaId: string;
3424
3525
  /**
3425
3526
  * Episode number
3426
3527
  */
@@ -3471,9 +3572,9 @@ export type CreateSegmentsBatchData = {
3471
3572
  body: SegmentBatchCreateRequest;
3472
3573
  path: {
3473
3574
  /**
3474
- * ID of the media
3575
+ * Public ID of the media
3475
3576
  */
3476
- mediaId: number;
3577
+ mediaId: string;
3477
3578
  /**
3478
3579
  * Episode number
3479
3580
  */
@@ -3529,9 +3630,9 @@ export type DeleteSegmentData = {
3529
3630
  body?: never;
3530
3631
  path: {
3531
3632
  /**
3532
- * ID of the media
3633
+ * Public ID of the media
3533
3634
  */
3534
- mediaId: number;
3635
+ mediaId: string;
3535
3636
  /**
3536
3637
  * Episode number
3537
3638
  */
@@ -3582,9 +3683,9 @@ export type GetSegmentData = {
3582
3683
  body?: never;
3583
3684
  path: {
3584
3685
  /**
3585
- * ID of the media
3686
+ * Public ID of the media
3586
3687
  */
3587
- mediaId: number;
3688
+ mediaId: string;
3588
3689
  /**
3589
3690
  * Episode number
3590
3691
  */
@@ -3635,9 +3736,9 @@ export type UpdateSegmentData = {
3635
3736
  body: SegmentUpdateRequest;
3636
3737
  path: {
3637
3738
  /**
3638
- * ID of the media
3739
+ * Public ID of the media
3639
3740
  */
3640
- mediaId: number;
3741
+ mediaId: string;
3641
3742
  /**
3642
3743
  * Episode number
3643
3744
  */
@@ -3873,11 +3974,12 @@ export type ListUserActivityResponses = {
3873
3974
  export type ListUserActivityResponse = ListUserActivityResponses[keyof ListUserActivityResponses];
3874
3975
  export type TrackUserActivityData = {
3875
3976
  body: {
3876
- activityType: 'SEGMENT_PLAY' | 'SHARE';
3877
- segmentUuid?: string;
3977
+ activityType: 'SEARCH' | 'SEGMENT_PLAY' | 'SHARE';
3978
+ segmentId?: string;
3878
3979
  mediaId?: number;
3879
3980
  mediaName?: string;
3880
3981
  japaneseText?: string;
3982
+ searchQuery?: string;
3881
3983
  };
3882
3984
  path?: never;
3883
3985
  query?: never;
@@ -4247,9 +4349,9 @@ export type DeleteCollectionData = {
4247
4349
  body?: never;
4248
4350
  path: {
4249
4351
  /**
4250
- * Collection ID
4352
+ * Collection public ID
4251
4353
  */
4252
- id: number;
4354
+ id: string;
4253
4355
  };
4254
4356
  query?: never;
4255
4357
  url: '/v1/collections/{id}';
@@ -4292,9 +4394,9 @@ export type GetCollectionData = {
4292
4394
  body?: never;
4293
4395
  path: {
4294
4396
  /**
4295
- * Collection ID
4397
+ * Collection public ID
4296
4398
  */
4297
- id: number;
4399
+ id: string;
4298
4400
  };
4299
4401
  query?: {
4300
4402
  /**
@@ -4349,9 +4451,9 @@ export type UpdateCollectionData = {
4349
4451
  };
4350
4452
  path: {
4351
4453
  /**
4352
- * Collection ID
4454
+ * Collection public ID
4353
4455
  */
4354
- id: number;
4456
+ id: string;
4355
4457
  };
4356
4458
  query?: never;
4357
4459
  url: '/v1/collections/{id}';
@@ -4393,9 +4495,9 @@ export type UpdateCollectionResponse = UpdateCollectionResponses[keyof UpdateCol
4393
4495
  export type AddSegmentToCollectionData = {
4394
4496
  body: {
4395
4497
  /**
4396
- * UUID of the segment to add
4498
+ * Public ID or UUID of the segment to add
4397
4499
  */
4398
- segmentUuid: string;
4500
+ segmentId: string;
4399
4501
  /**
4400
4502
  * Optional annotation
4401
4503
  */
@@ -4403,9 +4505,9 @@ export type AddSegmentToCollectionData = {
4403
4505
  };
4404
4506
  path: {
4405
4507
  /**
4406
- * Collection ID
4508
+ * Collection public ID
4407
4509
  */
4408
- id: number;
4510
+ id: string;
4409
4511
  };
4410
4512
  query?: never;
4411
4513
  url: '/v1/collections/{id}/segments';
@@ -4448,16 +4550,16 @@ export type RemoveSegmentFromCollectionData = {
4448
4550
  body?: never;
4449
4551
  path: {
4450
4552
  /**
4451
- * Collection ID
4553
+ * Collection public ID
4452
4554
  */
4453
- id: number;
4555
+ id: string;
4454
4556
  /**
4455
- * Segment UUID
4557
+ * Segment ID
4456
4558
  */
4457
- uuid: string;
4559
+ segmentId: number;
4458
4560
  };
4459
4561
  query?: never;
4460
- url: '/v1/collections/{id}/segments/{uuid}';
4562
+ url: '/v1/collections/{id}/segments/{segmentId}';
4461
4563
  };
4462
4564
  export type RemoveSegmentFromCollectionErrors = {
4463
4565
  /**
@@ -4506,16 +4608,16 @@ export type UpdateCollectionSegmentData = {
4506
4608
  };
4507
4609
  path: {
4508
4610
  /**
4509
- * Collection ID
4611
+ * Collection public ID
4510
4612
  */
4511
- id: number;
4613
+ id: string;
4512
4614
  /**
4513
- * Segment UUID
4615
+ * Segment ID
4514
4616
  */
4515
- uuid: string;
4617
+ segmentId: number;
4516
4618
  };
4517
4619
  query?: never;
4518
- url: '/v1/collections/{id}/segments/{uuid}';
4620
+ url: '/v1/collections/{id}/segments/{segmentId}';
4519
4621
  };
4520
4622
  export type UpdateCollectionSegmentErrors = {
4521
4623
  /**
@@ -4555,9 +4657,9 @@ export type SearchCollectionSegmentsData = {
4555
4657
  body?: never;
4556
4658
  path: {
4557
4659
  /**
4558
- * Collection ID
4660
+ * Collection public ID
4559
4661
  */
4560
- id: number;
4662
+ id: string;
4561
4663
  };
4562
4664
  query?: {
4563
4665
  /**
@@ -4609,9 +4711,9 @@ export type GetCollectionStatsData = {
4609
4711
  body?: never;
4610
4712
  path: {
4611
4713
  /**
4612
- * Collection ID
4714
+ * Collection public ID
4613
4715
  */
4614
- id: number;
4716
+ id: string;
4615
4717
  };
4616
4718
  query?: never;
4617
4719
  url: '/v1/collections/{id}/stats';
@@ -5232,9 +5334,9 @@ export type ListAdminReportsData = {
5232
5334
  */
5233
5335
  'target.episodeNumber'?: number;
5234
5336
  /**
5235
- * Filter by target segment UUID
5337
+ * Filter by target segment ID
5236
5338
  */
5237
- 'target.segmentUuid'?: string;
5339
+ 'target.segmentId'?: number;
5238
5340
  /**
5239
5341
  * Filter by audit run ID
5240
5342
  */
@@ -5539,4 +5641,80 @@ export type GetAdminMediaAuditRunResponses = {
5539
5641
  };
5540
5642
  };
5541
5643
  export type GetAdminMediaAuditRunResponse = GetAdminMediaAuditRunResponses[keyof GetAdminMediaAuditRunResponses];
5644
+ export type GetAnnouncementData = {
5645
+ body?: never;
5646
+ path?: never;
5647
+ query?: never;
5648
+ url: '/v1/admin/announcement';
5649
+ };
5650
+ export type GetAnnouncementErrors = {
5651
+ /**
5652
+ * Too Many Requests
5653
+ */
5654
+ 429: Error429;
5655
+ /**
5656
+ * Internal Server Error
5657
+ */
5658
+ 500: Error500;
5659
+ };
5660
+ export type GetAnnouncementError = GetAnnouncementErrors[keyof GetAnnouncementErrors];
5661
+ export type GetAnnouncementResponses = {
5662
+ /**
5663
+ * OK
5664
+ */
5665
+ 200: {
5666
+ message: string;
5667
+ type: 'info' | 'warning' | 'maintenance';
5668
+ active: boolean;
5669
+ };
5670
+ /**
5671
+ * No announcement set
5672
+ */
5673
+ 204: void;
5674
+ };
5675
+ export type GetAnnouncementResponse = GetAnnouncementResponses[keyof GetAnnouncementResponses];
5676
+ export type UpdateAnnouncementData = {
5677
+ body: {
5678
+ message: string;
5679
+ type: 'info' | 'warning' | 'maintenance';
5680
+ active: boolean;
5681
+ };
5682
+ path?: never;
5683
+ query?: never;
5684
+ url: '/v1/admin/announcement';
5685
+ };
5686
+ export type UpdateAnnouncementErrors = {
5687
+ /**
5688
+ * Bad Request
5689
+ */
5690
+ 400: Error400;
5691
+ /**
5692
+ * Unauthorized (session)
5693
+ */
5694
+ 401: Error401;
5695
+ /**
5696
+ * Forbidden
5697
+ */
5698
+ 403: Error403;
5699
+ /**
5700
+ * Too Many Requests
5701
+ */
5702
+ 429: Error429;
5703
+ /**
5704
+ * Internal Server Error
5705
+ */
5706
+ 500: Error500;
5707
+ };
5708
+ export type UpdateAnnouncementError = UpdateAnnouncementErrors[keyof UpdateAnnouncementErrors];
5709
+ export type UpdateAnnouncementResponses = {
5710
+ /**
5711
+ * Announcement updated
5712
+ */
5713
+ 200: {
5714
+ message: string;
5715
+ type: 'info' | 'warning' | 'maintenance';
5716
+ active: boolean;
5717
+ };
5718
+ };
5719
+ export type UpdateAnnouncementResponse = UpdateAnnouncementResponses[keyof UpdateAnnouncementResponses];
5542
5720
  //# sourceMappingURL=types.gen.d.ts.map