@brigadasos/nadeshiko-sdk 1.5.0-dev.6b48eb7 → 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.
@@ -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
  */
@@ -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
- * Unique identifier for the media
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 mediaId
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 mediaId
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
@@ -1072,6 +1106,10 @@ export type Series = {
1072
1106
  * Series ID
1073
1107
  */
1074
1108
  id: number;
1109
+ /**
1110
+ * Public identifier for the series
1111
+ */
1112
+ publicId: string;
1075
1113
  /**
1076
1114
  * Japanese name of the series
1077
1115
  */
@@ -1128,6 +1166,10 @@ export type Character = {
1128
1166
  * Internal character ID
1129
1167
  */
1130
1168
  id: number;
1169
+ /**
1170
+ * Public identifier for the character (use this in public URLs)
1171
+ */
1172
+ publicId: string;
1131
1173
  externalIds: ExternalId;
1132
1174
  /**
1133
1175
  * Japanese name of the character
@@ -1484,39 +1526,39 @@ export type ReportTargetMedia = {
1484
1526
  */
1485
1527
  type: 'MEDIA';
1486
1528
  /**
1487
- * Media ID this report targets
1529
+ * Public ID of the media this report targets
1488
1530
  */
1489
- mediaId: number;
1531
+ mediaId: string;
1490
1532
  };
1491
- export type ReportTargetSegment = {
1533
+ export type ReportTargetSegmentInput = {
1492
1534
  /**
1493
1535
  * Report target type
1494
1536
  */
1495
1537
  type: 'SEGMENT';
1496
1538
  /**
1497
- * Media ID this report targets
1539
+ * Public ID of the media this report targets
1498
1540
  */
1499
- mediaId: number;
1541
+ mediaId: string;
1500
1542
  /**
1501
1543
  * Episode number containing the segment
1502
1544
  */
1503
1545
  episodeNumber?: number;
1504
1546
  /**
1505
- * Segment UUID this report targets
1547
+ * Segment public ID or UUID
1506
1548
  */
1507
- segmentUuid: string;
1549
+ segmentId: string;
1508
1550
  };
1509
1551
  export type UserReportTarget = ({
1510
1552
  type: 'MEDIA';
1511
1553
  } & ReportTargetMedia) | ({
1512
1554
  type: 'SEGMENT';
1513
- } & ReportTargetSegment);
1555
+ } & ReportTargetSegmentInput);
1514
1556
  export type CreateReportRequest = {
1515
1557
  target: UserReportTarget;
1516
1558
  /**
1517
1559
  * Reason for the report
1518
1560
  */
1519
- reason: 'WRONG_TRANSLATION' | 'WRONG_TIMING' | 'WRONG_AUDIO' | 'NSFW_NOT_TAGGED' | 'DUPLICATE_SEGMENT' | 'WRONG_METADATA' | 'MISSING_EPISODES' | 'WRONG_COVER_IMAGE' | 'INAPPROPRIATE_CONTENT' | 'OTHER';
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';
1520
1562
  /**
1521
1563
  * Optional description with additional details
1522
1564
  */
@@ -1528,14 +1570,32 @@ export type ReportTargetEpisode = {
1528
1570
  */
1529
1571
  type: 'EPISODE';
1530
1572
  /**
1531
- * Media ID this report targets
1573
+ * Public ID of the media this report targets
1532
1574
  */
1533
- mediaId: number;
1575
+ mediaId: string;
1534
1576
  /**
1535
1577
  * Episode number this report targets
1536
1578
  */
1537
1579
  episodeNumber: number;
1538
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
+ };
1539
1599
  export type ReportTarget = ({
1540
1600
  type: 'MEDIA';
1541
1601
  } & ReportTargetMedia) | ({
@@ -1560,7 +1620,7 @@ export type Report = {
1560
1620
  /**
1561
1621
  * Reason for the report
1562
1622
  */
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';
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';
1564
1624
  /**
1565
1625
  * Optional description with additional details
1566
1626
  */
@@ -1643,7 +1703,7 @@ export type ActivityType = 'SEARCH' | 'ANKI_EXPORT' | 'SEGMENT_PLAY' | 'SHARE';
1643
1703
  export type UserActivity = {
1644
1704
  id: number;
1645
1705
  activityType: ActivityType;
1646
- segmentUuid: string;
1706
+ segmentId: number;
1647
1707
  mediaId: number;
1648
1708
  searchQuery: string;
1649
1709
  mediaName: string;
@@ -1667,6 +1727,10 @@ export type Collection = {
1667
1727
  * Collection ID
1668
1728
  */
1669
1729
  id: number;
1730
+ /**
1731
+ * Public identifier for the collection
1732
+ */
1733
+ publicId: string;
1670
1734
  /**
1671
1735
  * Name of the collection
1672
1736
  */
@@ -1694,9 +1758,9 @@ export type Collection = {
1694
1758
  };
1695
1759
  export type UserExportCollection = Collection & {
1696
1760
  /**
1697
- * Segment UUIDs in saved order
1761
+ * Segment IDs in saved order
1698
1762
  */
1699
- segmentUuids: Array<string>;
1763
+ segmentIds: Array<number>;
1700
1764
  };
1701
1765
  /**
1702
1766
  * User data export payload (identifier-oriented references)
@@ -2270,7 +2334,7 @@ export type GetSegmentByUuidData = {
2270
2334
  body?: never;
2271
2335
  path: {
2272
2336
  /**
2273
- * Segment UUID
2337
+ * Segment UUID or publicId
2274
2338
  */
2275
2339
  uuid: string;
2276
2340
  };
@@ -2320,7 +2384,7 @@ export type UpdateSegmentByUuidData = {
2320
2384
  body: SegmentUpdateRequest;
2321
2385
  path: {
2322
2386
  /**
2323
- * Segment UUID
2387
+ * Segment UUID or publicId
2324
2388
  */
2325
2389
  uuid: string;
2326
2390
  };
@@ -2365,7 +2429,7 @@ export type GetSegmentContextData = {
2365
2429
  body?: never;
2366
2430
  path: {
2367
2431
  /**
2368
- * Segment UUID
2432
+ * Segment UUID or publicId
2369
2433
  */
2370
2434
  uuid: string;
2371
2435
  };
@@ -2419,7 +2483,7 @@ export type ListSegmentRevisionsData = {
2419
2483
  body?: never;
2420
2484
  path: {
2421
2485
  /**
2422
- * Segment UUID
2486
+ * Segment UUID or publicId
2423
2487
  */
2424
2488
  uuid: string;
2425
2489
  };
@@ -2564,9 +2628,9 @@ export type DeleteSeriesData = {
2564
2628
  body?: never;
2565
2629
  path: {
2566
2630
  /**
2567
- * Series ID
2631
+ * Series public ID
2568
2632
  */
2569
- id: number;
2633
+ id: string;
2570
2634
  };
2571
2635
  query?: never;
2572
2636
  url: '/v1/media/series/{id}';
@@ -2609,9 +2673,9 @@ export type GetSeriesData = {
2609
2673
  body?: never;
2610
2674
  path: {
2611
2675
  /**
2612
- * Series ID
2676
+ * Series public ID
2613
2677
  */
2614
- id: number;
2678
+ id: string;
2615
2679
  };
2616
2680
  query?: {
2617
2681
  /**
@@ -2672,9 +2736,9 @@ export type UpdateSeriesData = {
2672
2736
  };
2673
2737
  path: {
2674
2738
  /**
2675
- * Series ID
2739
+ * Series public ID
2676
2740
  */
2677
- id: number;
2741
+ id: string;
2678
2742
  };
2679
2743
  query?: never;
2680
2744
  url: '/v1/media/series/{id}';
@@ -2716,9 +2780,9 @@ export type UpdateSeriesResponse = UpdateSeriesResponses[keyof UpdateSeriesRespo
2716
2780
  export type AddMediaToSeriesData = {
2717
2781
  body: {
2718
2782
  /**
2719
- * Media ID to add
2783
+ * Media public ID to add
2720
2784
  */
2721
- mediaId: number;
2785
+ mediaId: string;
2722
2786
  /**
2723
2787
  * Position in the series (1-indexed)
2724
2788
  */
@@ -2726,9 +2790,9 @@ export type AddMediaToSeriesData = {
2726
2790
  };
2727
2791
  path: {
2728
2792
  /**
2729
- * Series ID
2793
+ * Series public ID
2730
2794
  */
2731
- id: number;
2795
+ id: string;
2732
2796
  };
2733
2797
  query?: never;
2734
2798
  url: '/v1/media/series/{id}/media';
@@ -2771,13 +2835,13 @@ export type RemoveMediaFromSeriesData = {
2771
2835
  body?: never;
2772
2836
  path: {
2773
2837
  /**
2774
- * Series ID
2838
+ * Series public ID
2775
2839
  */
2776
- id: number;
2840
+ id: string;
2777
2841
  /**
2778
- * Media ID
2842
+ * Media public ID
2779
2843
  */
2780
- mediaId: number;
2844
+ mediaId: string;
2781
2845
  };
2782
2846
  query?: never;
2783
2847
  url: '/v1/media/series/{id}/media/{mediaId}';
@@ -2825,13 +2889,13 @@ export type UpdateSeriesMediaData = {
2825
2889
  };
2826
2890
  path: {
2827
2891
  /**
2828
- * Series ID
2892
+ * Series public ID
2829
2893
  */
2830
- id: number;
2894
+ id: string;
2831
2895
  /**
2832
- * Media ID
2896
+ * Media public ID
2833
2897
  */
2834
- mediaId: number;
2898
+ mediaId: string;
2835
2899
  };
2836
2900
  query?: never;
2837
2901
  url: '/v1/media/series/{id}/media/{mediaId}';
@@ -2874,7 +2938,7 @@ export type GetCharacterData = {
2874
2938
  body?: never;
2875
2939
  path: {
2876
2940
  /**
2877
- * Internal character ID
2941
+ * Character ID
2878
2942
  */
2879
2943
  id: number;
2880
2944
  };
@@ -2964,9 +3028,9 @@ export type DeleteMediaData = {
2964
3028
  body?: never;
2965
3029
  path: {
2966
3030
  /**
2967
- * Media ID
3031
+ * Media public ID
2968
3032
  */
2969
- id: number;
3033
+ id: string;
2970
3034
  };
2971
3035
  query?: never;
2972
3036
  url: '/v1/media/{id}';
@@ -3009,9 +3073,9 @@ export type GetMediaData = {
3009
3073
  body?: never;
3010
3074
  path: {
3011
3075
  /**
3012
- * Media ID
3076
+ * Media public ID
3013
3077
  */
3014
- id: number;
3078
+ id: string;
3015
3079
  };
3016
3080
  query?: {
3017
3081
  /**
@@ -3059,9 +3123,9 @@ export type UpdateMediaData = {
3059
3123
  body: MediaUpdateRequest;
3060
3124
  path: {
3061
3125
  /**
3062
- * Media ID
3126
+ * Media public ID
3063
3127
  */
3064
- id: number;
3128
+ id: string;
3065
3129
  };
3066
3130
  query?: never;
3067
3131
  url: '/v1/media/{id}';
@@ -3104,9 +3168,9 @@ export type ListEpisodesData = {
3104
3168
  body?: never;
3105
3169
  path: {
3106
3170
  /**
3107
- * ID of the media
3171
+ * Public ID of the media
3108
3172
  */
3109
- mediaId: number;
3173
+ mediaId: string;
3110
3174
  };
3111
3175
  query?: {
3112
3176
  /**
@@ -3158,9 +3222,9 @@ export type CreateEpisodeData = {
3158
3222
  body: EpisodeCreateRequest;
3159
3223
  path: {
3160
3224
  /**
3161
- * ID of the media
3225
+ * Public ID of the media
3162
3226
  */
3163
- mediaId: number;
3227
+ mediaId: string;
3164
3228
  };
3165
3229
  query?: never;
3166
3230
  url: '/v1/media/{mediaId}/episodes';
@@ -3207,9 +3271,9 @@ export type DeleteEpisodeData = {
3207
3271
  body?: never;
3208
3272
  path: {
3209
3273
  /**
3210
- * ID of the media
3274
+ * Public ID of the media
3211
3275
  */
3212
- mediaId: number;
3276
+ mediaId: string;
3213
3277
  /**
3214
3278
  * Episode number
3215
3279
  */
@@ -3256,9 +3320,9 @@ export type GetEpisodeData = {
3256
3320
  body?: never;
3257
3321
  path: {
3258
3322
  /**
3259
- * ID of the media
3323
+ * Public ID of the media
3260
3324
  */
3261
- mediaId: number;
3325
+ mediaId: string;
3262
3326
  /**
3263
3327
  * Episode number
3264
3328
  */
@@ -3305,9 +3369,9 @@ export type UpdateEpisodeData = {
3305
3369
  body: EpisodeUpdateRequest;
3306
3370
  path: {
3307
3371
  /**
3308
- * ID of the media
3372
+ * Public ID of the media
3309
3373
  */
3310
- mediaId: number;
3374
+ mediaId: string;
3311
3375
  /**
3312
3376
  * Episode number
3313
3377
  */
@@ -3354,9 +3418,9 @@ export type ListSegmentsData = {
3354
3418
  body?: never;
3355
3419
  path: {
3356
3420
  /**
3357
- * ID of the media
3421
+ * Public ID of the media
3358
3422
  */
3359
- mediaId: number;
3423
+ mediaId: string;
3360
3424
  /**
3361
3425
  * Episode number
3362
3426
  */
@@ -3418,9 +3482,9 @@ export type CreateSegmentData = {
3418
3482
  body: SegmentCreateRequest;
3419
3483
  path: {
3420
3484
  /**
3421
- * ID of the media
3485
+ * Public ID of the media
3422
3486
  */
3423
- mediaId: number;
3487
+ mediaId: string;
3424
3488
  /**
3425
3489
  * Episode number
3426
3490
  */
@@ -3471,9 +3535,9 @@ export type CreateSegmentsBatchData = {
3471
3535
  body: SegmentBatchCreateRequest;
3472
3536
  path: {
3473
3537
  /**
3474
- * ID of the media
3538
+ * Public ID of the media
3475
3539
  */
3476
- mediaId: number;
3540
+ mediaId: string;
3477
3541
  /**
3478
3542
  * Episode number
3479
3543
  */
@@ -3529,9 +3593,9 @@ export type DeleteSegmentData = {
3529
3593
  body?: never;
3530
3594
  path: {
3531
3595
  /**
3532
- * ID of the media
3596
+ * Public ID of the media
3533
3597
  */
3534
- mediaId: number;
3598
+ mediaId: string;
3535
3599
  /**
3536
3600
  * Episode number
3537
3601
  */
@@ -3582,9 +3646,9 @@ export type GetSegmentData = {
3582
3646
  body?: never;
3583
3647
  path: {
3584
3648
  /**
3585
- * ID of the media
3649
+ * Public ID of the media
3586
3650
  */
3587
- mediaId: number;
3651
+ mediaId: string;
3588
3652
  /**
3589
3653
  * Episode number
3590
3654
  */
@@ -3635,9 +3699,9 @@ export type UpdateSegmentData = {
3635
3699
  body: SegmentUpdateRequest;
3636
3700
  path: {
3637
3701
  /**
3638
- * ID of the media
3702
+ * Public ID of the media
3639
3703
  */
3640
- mediaId: number;
3704
+ mediaId: string;
3641
3705
  /**
3642
3706
  * Episode number
3643
3707
  */
@@ -3874,7 +3938,7 @@ export type ListUserActivityResponse = ListUserActivityResponses[keyof ListUserA
3874
3938
  export type TrackUserActivityData = {
3875
3939
  body: {
3876
3940
  activityType: 'SEGMENT_PLAY' | 'SHARE';
3877
- segmentUuid?: string;
3941
+ segmentId?: number;
3878
3942
  mediaId?: number;
3879
3943
  mediaName?: string;
3880
3944
  japaneseText?: string;
@@ -4247,9 +4311,9 @@ export type DeleteCollectionData = {
4247
4311
  body?: never;
4248
4312
  path: {
4249
4313
  /**
4250
- * Collection ID
4314
+ * Collection public ID
4251
4315
  */
4252
- id: number;
4316
+ id: string;
4253
4317
  };
4254
4318
  query?: never;
4255
4319
  url: '/v1/collections/{id}';
@@ -4292,9 +4356,9 @@ export type GetCollectionData = {
4292
4356
  body?: never;
4293
4357
  path: {
4294
4358
  /**
4295
- * Collection ID
4359
+ * Collection public ID
4296
4360
  */
4297
- id: number;
4361
+ id: string;
4298
4362
  };
4299
4363
  query?: {
4300
4364
  /**
@@ -4349,9 +4413,9 @@ export type UpdateCollectionData = {
4349
4413
  };
4350
4414
  path: {
4351
4415
  /**
4352
- * Collection ID
4416
+ * Collection public ID
4353
4417
  */
4354
- id: number;
4418
+ id: string;
4355
4419
  };
4356
4420
  query?: never;
4357
4421
  url: '/v1/collections/{id}';
@@ -4393,9 +4457,9 @@ export type UpdateCollectionResponse = UpdateCollectionResponses[keyof UpdateCol
4393
4457
  export type AddSegmentToCollectionData = {
4394
4458
  body: {
4395
4459
  /**
4396
- * UUID of the segment to add
4460
+ * Public ID or UUID of the segment to add
4397
4461
  */
4398
- segmentUuid: string;
4462
+ segmentId: string;
4399
4463
  /**
4400
4464
  * Optional annotation
4401
4465
  */
@@ -4403,9 +4467,9 @@ export type AddSegmentToCollectionData = {
4403
4467
  };
4404
4468
  path: {
4405
4469
  /**
4406
- * Collection ID
4470
+ * Collection public ID
4407
4471
  */
4408
- id: number;
4472
+ id: string;
4409
4473
  };
4410
4474
  query?: never;
4411
4475
  url: '/v1/collections/{id}/segments';
@@ -4448,16 +4512,16 @@ export type RemoveSegmentFromCollectionData = {
4448
4512
  body?: never;
4449
4513
  path: {
4450
4514
  /**
4451
- * Collection ID
4515
+ * Collection public ID
4452
4516
  */
4453
- id: number;
4517
+ id: string;
4454
4518
  /**
4455
- * Segment UUID
4519
+ * Segment ID
4456
4520
  */
4457
- uuid: string;
4521
+ segmentId: number;
4458
4522
  };
4459
4523
  query?: never;
4460
- url: '/v1/collections/{id}/segments/{uuid}';
4524
+ url: '/v1/collections/{id}/segments/{segmentId}';
4461
4525
  };
4462
4526
  export type RemoveSegmentFromCollectionErrors = {
4463
4527
  /**
@@ -4506,16 +4570,16 @@ export type UpdateCollectionSegmentData = {
4506
4570
  };
4507
4571
  path: {
4508
4572
  /**
4509
- * Collection ID
4573
+ * Collection public ID
4510
4574
  */
4511
- id: number;
4575
+ id: string;
4512
4576
  /**
4513
- * Segment UUID
4577
+ * Segment ID
4514
4578
  */
4515
- uuid: string;
4579
+ segmentId: number;
4516
4580
  };
4517
4581
  query?: never;
4518
- url: '/v1/collections/{id}/segments/{uuid}';
4582
+ url: '/v1/collections/{id}/segments/{segmentId}';
4519
4583
  };
4520
4584
  export type UpdateCollectionSegmentErrors = {
4521
4585
  /**
@@ -4555,9 +4619,9 @@ export type SearchCollectionSegmentsData = {
4555
4619
  body?: never;
4556
4620
  path: {
4557
4621
  /**
4558
- * Collection ID
4622
+ * Collection public ID
4559
4623
  */
4560
- id: number;
4624
+ id: string;
4561
4625
  };
4562
4626
  query?: {
4563
4627
  /**
@@ -4609,9 +4673,9 @@ export type GetCollectionStatsData = {
4609
4673
  body?: never;
4610
4674
  path: {
4611
4675
  /**
4612
- * Collection ID
4676
+ * Collection public ID
4613
4677
  */
4614
- id: number;
4678
+ id: string;
4615
4679
  };
4616
4680
  query?: never;
4617
4681
  url: '/v1/collections/{id}/stats';
@@ -5232,9 +5296,9 @@ export type ListAdminReportsData = {
5232
5296
  */
5233
5297
  'target.episodeNumber'?: number;
5234
5298
  /**
5235
- * Filter by target segment UUID
5299
+ * Filter by target segment ID
5236
5300
  */
5237
- 'target.segmentUuid'?: string;
5301
+ 'target.segmentId'?: number;
5238
5302
  /**
5239
5303
  * Filter by audit run ID
5240
5304
  */
@@ -5539,4 +5603,80 @@ export type GetAdminMediaAuditRunResponses = {
5539
5603
  };
5540
5604
  };
5541
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];
5542
5682
  //# sourceMappingURL=types.gen.d.ts.map