@brigadasos/nadeshiko-sdk 1.5.0-dev.cd60faf → 1.5.0-dev.e2cd9e3

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
  */
@@ -173,6 +173,10 @@ export type Segment = {
173
173
  * Media ID this segment belongs to
174
174
  */
175
175
  mediaId: number;
176
+ /**
177
+ * Public ID of the media this segment belongs to
178
+ */
179
+ mediaPublicId: string;
176
180
  textJa: {
177
181
  /**
178
182
  * Original Japanese content
@@ -245,6 +249,10 @@ export type ExternalId = {
245
249
  * TVDB ID
246
250
  */
247
251
  tvdb?: string;
252
+ /**
253
+ * TMDB ID
254
+ */
255
+ tmdb?: string;
248
256
  };
249
257
  /**
250
258
  * Japanese voice actor (seiyuu)
@@ -363,7 +371,7 @@ export type Media = {
363
371
  /**
364
372
  * Animation studio that produced the media
365
373
  */
366
- studio: string;
374
+ studio?: string;
367
375
  /**
368
376
  * Airing season label for the media
369
377
  */
@@ -402,7 +410,7 @@ export type SearchResponse = {
402
410
  segments: Array<Segment>;
403
411
  includes: {
404
412
  /**
405
- * Media objects keyed by mediaId
413
+ * Media objects keyed by media publicId
406
414
  */
407
415
  media: {
408
416
  [key: string]: Media;
@@ -613,6 +621,10 @@ export type MediaSearchStats = {
613
621
  * Media identifier (look up full details in includes.media)
614
622
  */
615
623
  mediaId: number;
624
+ /**
625
+ * Public identifier for use in URLs and filters
626
+ */
627
+ publicId: string;
616
628
  /**
617
629
  * Number of matching segments found in this media
618
630
  */
@@ -639,7 +651,7 @@ export type SearchStatsResponse = {
639
651
  categories: Array<CategoryCount>;
640
652
  includes: {
641
653
  /**
642
- * Media objects keyed by mediaId
654
+ * Media objects keyed by media publicId
643
655
  */
644
656
  media: {
645
657
  [key: string]: Media;
@@ -731,6 +743,20 @@ export type OpaqueCursorPagination = {
731
743
  export type MediaListResponse = {
732
744
  media: Array<Media>;
733
745
  pagination: OpaqueCursorPagination;
746
+ stats: {
747
+ /**
748
+ * Total number of media across all pages
749
+ */
750
+ totalMedia: number;
751
+ /**
752
+ * Total number of non-deleted segments
753
+ */
754
+ totalSegments: number;
755
+ /**
756
+ * Total number of episodes
757
+ */
758
+ totalEpisodes: number;
759
+ };
734
760
  };
735
761
  /**
736
762
  * Character data for creating/updating media
@@ -825,7 +851,7 @@ export type MediaCreateRequest = {
825
851
  /**
826
852
  * Animation studio that produced the media
827
853
  */
828
- studio: string;
854
+ studio?: string;
829
855
  /**
830
856
  * Airing season label for the media
831
857
  */
@@ -1084,6 +1110,10 @@ export type Series = {
1084
1110
  * Series ID
1085
1111
  */
1086
1112
  id: number;
1113
+ /**
1114
+ * Public identifier for the series
1115
+ */
1116
+ publicId: string;
1087
1117
  /**
1088
1118
  * Japanese name of the series
1089
1119
  */
@@ -1500,39 +1530,39 @@ export type ReportTargetMedia = {
1500
1530
  */
1501
1531
  type: 'MEDIA';
1502
1532
  /**
1503
- * Media ID this report targets
1533
+ * Public ID of the media this report targets
1504
1534
  */
1505
- mediaId: number;
1535
+ mediaId: string;
1506
1536
  };
1507
- export type ReportTargetSegment = {
1537
+ export type ReportTargetSegmentInput = {
1508
1538
  /**
1509
1539
  * Report target type
1510
1540
  */
1511
1541
  type: 'SEGMENT';
1512
1542
  /**
1513
- * Media ID this report targets
1543
+ * Public ID of the media this report targets
1514
1544
  */
1515
- mediaId: number;
1545
+ mediaId: string;
1516
1546
  /**
1517
1547
  * Episode number containing the segment
1518
1548
  */
1519
1549
  episodeNumber?: number;
1520
1550
  /**
1521
- * Segment UUID this report targets
1551
+ * Segment public ID or UUID
1522
1552
  */
1523
- segmentUuid: string;
1553
+ segmentId: string;
1524
1554
  };
1525
1555
  export type UserReportTarget = ({
1526
1556
  type: 'MEDIA';
1527
1557
  } & ReportTargetMedia) | ({
1528
1558
  type: 'SEGMENT';
1529
- } & ReportTargetSegment);
1559
+ } & ReportTargetSegmentInput);
1530
1560
  export type CreateReportRequest = {
1531
1561
  target: UserReportTarget;
1532
1562
  /**
1533
1563
  * Reason for the report
1534
1564
  */
1535
- reason: 'WRONG_TRANSLATION' | 'WRONG_TIMING' | 'WRONG_AUDIO' | 'NSFW_NOT_TAGGED' | 'DUPLICATE_SEGMENT' | 'WRONG_METADATA' | 'MISSING_EPISODES' | 'WRONG_COVER_IMAGE' | 'INAPPROPRIATE_CONTENT' | 'OTHER';
1565
+ 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';
1536
1566
  /**
1537
1567
  * Optional description with additional details
1538
1568
  */
@@ -1544,14 +1574,32 @@ export type ReportTargetEpisode = {
1544
1574
  */
1545
1575
  type: 'EPISODE';
1546
1576
  /**
1547
- * Media ID this report targets
1577
+ * Public ID of the media this report targets
1548
1578
  */
1549
- mediaId: number;
1579
+ mediaId: string;
1550
1580
  /**
1551
1581
  * Episode number this report targets
1552
1582
  */
1553
1583
  episodeNumber: number;
1554
1584
  };
1585
+ export type ReportTargetSegment = {
1586
+ /**
1587
+ * Report target type
1588
+ */
1589
+ type: 'SEGMENT';
1590
+ /**
1591
+ * Public ID of the media this report targets
1592
+ */
1593
+ mediaId: string;
1594
+ /**
1595
+ * Episode number containing the segment
1596
+ */
1597
+ episodeNumber?: number;
1598
+ /**
1599
+ * Segment public ID or UUID
1600
+ */
1601
+ segmentId: string;
1602
+ };
1555
1603
  export type ReportTarget = ({
1556
1604
  type: 'MEDIA';
1557
1605
  } & ReportTargetMedia) | ({
@@ -1576,7 +1624,7 @@ export type Report = {
1576
1624
  /**
1577
1625
  * Reason for the report
1578
1626
  */
1579
- 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';
1627
+ 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';
1580
1628
  /**
1581
1629
  * Optional description with additional details
1582
1630
  */
@@ -1659,7 +1707,7 @@ export type ActivityType = 'SEARCH' | 'ANKI_EXPORT' | 'SEGMENT_PLAY' | 'SHARE';
1659
1707
  export type UserActivity = {
1660
1708
  id: number;
1661
1709
  activityType: ActivityType;
1662
- segmentUuid: string;
1710
+ segmentId: number;
1663
1711
  mediaId: number;
1664
1712
  searchQuery: string;
1665
1713
  mediaName: string;
@@ -1683,6 +1731,10 @@ export type Collection = {
1683
1731
  * Collection ID
1684
1732
  */
1685
1733
  id: number;
1734
+ /**
1735
+ * Public identifier for the collection
1736
+ */
1737
+ publicId: string;
1686
1738
  /**
1687
1739
  * Name of the collection
1688
1740
  */
@@ -1710,9 +1762,9 @@ export type Collection = {
1710
1762
  };
1711
1763
  export type UserExportCollection = Collection & {
1712
1764
  /**
1713
- * Segment UUIDs in saved order
1765
+ * Segment IDs in saved order
1714
1766
  */
1715
- segmentUuids: Array<string>;
1767
+ segmentIds: Array<number>;
1716
1768
  };
1717
1769
  /**
1718
1770
  * User data export payload (identifier-oriented references)
@@ -2580,9 +2632,9 @@ export type DeleteSeriesData = {
2580
2632
  body?: never;
2581
2633
  path: {
2582
2634
  /**
2583
- * Series ID
2635
+ * Series public ID
2584
2636
  */
2585
- id: number;
2637
+ id: string;
2586
2638
  };
2587
2639
  query?: never;
2588
2640
  url: '/v1/media/series/{id}';
@@ -2625,9 +2677,9 @@ export type GetSeriesData = {
2625
2677
  body?: never;
2626
2678
  path: {
2627
2679
  /**
2628
- * Series ID
2680
+ * Series public ID
2629
2681
  */
2630
- id: number;
2682
+ id: string;
2631
2683
  };
2632
2684
  query?: {
2633
2685
  /**
@@ -2688,9 +2740,9 @@ export type UpdateSeriesData = {
2688
2740
  };
2689
2741
  path: {
2690
2742
  /**
2691
- * Series ID
2743
+ * Series public ID
2692
2744
  */
2693
- id: number;
2745
+ id: string;
2694
2746
  };
2695
2747
  query?: never;
2696
2748
  url: '/v1/media/series/{id}';
@@ -2732,9 +2784,9 @@ export type UpdateSeriesResponse = UpdateSeriesResponses[keyof UpdateSeriesRespo
2732
2784
  export type AddMediaToSeriesData = {
2733
2785
  body: {
2734
2786
  /**
2735
- * Media ID to add
2787
+ * Media public ID to add
2736
2788
  */
2737
- mediaId: number;
2789
+ mediaId: string;
2738
2790
  /**
2739
2791
  * Position in the series (1-indexed)
2740
2792
  */
@@ -2742,9 +2794,9 @@ export type AddMediaToSeriesData = {
2742
2794
  };
2743
2795
  path: {
2744
2796
  /**
2745
- * Series ID
2797
+ * Series public ID
2746
2798
  */
2747
- id: number;
2799
+ id: string;
2748
2800
  };
2749
2801
  query?: never;
2750
2802
  url: '/v1/media/series/{id}/media';
@@ -2787,13 +2839,13 @@ export type RemoveMediaFromSeriesData = {
2787
2839
  body?: never;
2788
2840
  path: {
2789
2841
  /**
2790
- * Series ID
2842
+ * Series public ID
2791
2843
  */
2792
- id: number;
2844
+ id: string;
2793
2845
  /**
2794
- * Media ID
2846
+ * Media public ID
2795
2847
  */
2796
- mediaId: number;
2848
+ mediaId: string;
2797
2849
  };
2798
2850
  query?: never;
2799
2851
  url: '/v1/media/series/{id}/media/{mediaId}';
@@ -2841,13 +2893,13 @@ export type UpdateSeriesMediaData = {
2841
2893
  };
2842
2894
  path: {
2843
2895
  /**
2844
- * Series ID
2896
+ * Series public ID
2845
2897
  */
2846
- id: number;
2898
+ id: string;
2847
2899
  /**
2848
- * Media ID
2900
+ * Media public ID
2849
2901
  */
2850
- mediaId: number;
2902
+ mediaId: string;
2851
2903
  };
2852
2904
  query?: never;
2853
2905
  url: '/v1/media/series/{id}/media/{mediaId}';
@@ -2890,7 +2942,7 @@ export type GetCharacterData = {
2890
2942
  body?: never;
2891
2943
  path: {
2892
2944
  /**
2893
- * Internal character ID
2945
+ * Character ID
2894
2946
  */
2895
2947
  id: number;
2896
2948
  };
@@ -2980,9 +3032,9 @@ export type DeleteMediaData = {
2980
3032
  body?: never;
2981
3033
  path: {
2982
3034
  /**
2983
- * Media ID
3035
+ * Media public ID
2984
3036
  */
2985
- id: number;
3037
+ id: string;
2986
3038
  };
2987
3039
  query?: never;
2988
3040
  url: '/v1/media/{id}';
@@ -3025,9 +3077,9 @@ export type GetMediaData = {
3025
3077
  body?: never;
3026
3078
  path: {
3027
3079
  /**
3028
- * Media ID
3080
+ * Media public ID
3029
3081
  */
3030
- id: number;
3082
+ id: string;
3031
3083
  };
3032
3084
  query?: {
3033
3085
  /**
@@ -3075,9 +3127,9 @@ export type UpdateMediaData = {
3075
3127
  body: MediaUpdateRequest;
3076
3128
  path: {
3077
3129
  /**
3078
- * Media ID
3130
+ * Media public ID
3079
3131
  */
3080
- id: number;
3132
+ id: string;
3081
3133
  };
3082
3134
  query?: never;
3083
3135
  url: '/v1/media/{id}';
@@ -3120,9 +3172,9 @@ export type ListEpisodesData = {
3120
3172
  body?: never;
3121
3173
  path: {
3122
3174
  /**
3123
- * ID of the media
3175
+ * Public ID of the media
3124
3176
  */
3125
- mediaId: number;
3177
+ mediaId: string;
3126
3178
  };
3127
3179
  query?: {
3128
3180
  /**
@@ -3174,9 +3226,9 @@ export type CreateEpisodeData = {
3174
3226
  body: EpisodeCreateRequest;
3175
3227
  path: {
3176
3228
  /**
3177
- * ID of the media
3229
+ * Public ID of the media
3178
3230
  */
3179
- mediaId: number;
3231
+ mediaId: string;
3180
3232
  };
3181
3233
  query?: never;
3182
3234
  url: '/v1/media/{mediaId}/episodes';
@@ -3223,9 +3275,9 @@ export type DeleteEpisodeData = {
3223
3275
  body?: never;
3224
3276
  path: {
3225
3277
  /**
3226
- * ID of the media
3278
+ * Public ID of the media
3227
3279
  */
3228
- mediaId: number;
3280
+ mediaId: string;
3229
3281
  /**
3230
3282
  * Episode number
3231
3283
  */
@@ -3272,9 +3324,9 @@ export type GetEpisodeData = {
3272
3324
  body?: never;
3273
3325
  path: {
3274
3326
  /**
3275
- * ID of the media
3327
+ * Public ID of the media
3276
3328
  */
3277
- mediaId: number;
3329
+ mediaId: string;
3278
3330
  /**
3279
3331
  * Episode number
3280
3332
  */
@@ -3321,9 +3373,9 @@ export type UpdateEpisodeData = {
3321
3373
  body: EpisodeUpdateRequest;
3322
3374
  path: {
3323
3375
  /**
3324
- * ID of the media
3376
+ * Public ID of the media
3325
3377
  */
3326
- mediaId: number;
3378
+ mediaId: string;
3327
3379
  /**
3328
3380
  * Episode number
3329
3381
  */
@@ -3370,9 +3422,9 @@ export type ListSegmentsData = {
3370
3422
  body?: never;
3371
3423
  path: {
3372
3424
  /**
3373
- * ID of the media
3425
+ * Public ID of the media
3374
3426
  */
3375
- mediaId: number;
3427
+ mediaId: string;
3376
3428
  /**
3377
3429
  * Episode number
3378
3430
  */
@@ -3434,9 +3486,9 @@ export type CreateSegmentData = {
3434
3486
  body: SegmentCreateRequest;
3435
3487
  path: {
3436
3488
  /**
3437
- * ID of the media
3489
+ * Public ID of the media
3438
3490
  */
3439
- mediaId: number;
3491
+ mediaId: string;
3440
3492
  /**
3441
3493
  * Episode number
3442
3494
  */
@@ -3487,9 +3539,9 @@ export type CreateSegmentsBatchData = {
3487
3539
  body: SegmentBatchCreateRequest;
3488
3540
  path: {
3489
3541
  /**
3490
- * ID of the media
3542
+ * Public ID of the media
3491
3543
  */
3492
- mediaId: number;
3544
+ mediaId: string;
3493
3545
  /**
3494
3546
  * Episode number
3495
3547
  */
@@ -3545,9 +3597,9 @@ export type DeleteSegmentData = {
3545
3597
  body?: never;
3546
3598
  path: {
3547
3599
  /**
3548
- * ID of the media
3600
+ * Public ID of the media
3549
3601
  */
3550
- mediaId: number;
3602
+ mediaId: string;
3551
3603
  /**
3552
3604
  * Episode number
3553
3605
  */
@@ -3598,9 +3650,9 @@ export type GetSegmentData = {
3598
3650
  body?: never;
3599
3651
  path: {
3600
3652
  /**
3601
- * ID of the media
3653
+ * Public ID of the media
3602
3654
  */
3603
- mediaId: number;
3655
+ mediaId: string;
3604
3656
  /**
3605
3657
  * Episode number
3606
3658
  */
@@ -3651,9 +3703,9 @@ export type UpdateSegmentData = {
3651
3703
  body: SegmentUpdateRequest;
3652
3704
  path: {
3653
3705
  /**
3654
- * ID of the media
3706
+ * Public ID of the media
3655
3707
  */
3656
- mediaId: number;
3708
+ mediaId: string;
3657
3709
  /**
3658
3710
  * Episode number
3659
3711
  */
@@ -3890,7 +3942,7 @@ export type ListUserActivityResponse = ListUserActivityResponses[keyof ListUserA
3890
3942
  export type TrackUserActivityData = {
3891
3943
  body: {
3892
3944
  activityType: 'SEGMENT_PLAY' | 'SHARE';
3893
- segmentUuid?: string;
3945
+ segmentId?: number;
3894
3946
  mediaId?: number;
3895
3947
  mediaName?: string;
3896
3948
  japaneseText?: string;
@@ -4263,9 +4315,9 @@ export type DeleteCollectionData = {
4263
4315
  body?: never;
4264
4316
  path: {
4265
4317
  /**
4266
- * Collection ID
4318
+ * Collection public ID
4267
4319
  */
4268
- id: number;
4320
+ id: string;
4269
4321
  };
4270
4322
  query?: never;
4271
4323
  url: '/v1/collections/{id}';
@@ -4308,9 +4360,9 @@ export type GetCollectionData = {
4308
4360
  body?: never;
4309
4361
  path: {
4310
4362
  /**
4311
- * Collection ID
4363
+ * Collection public ID
4312
4364
  */
4313
- id: number;
4365
+ id: string;
4314
4366
  };
4315
4367
  query?: {
4316
4368
  /**
@@ -4365,9 +4417,9 @@ export type UpdateCollectionData = {
4365
4417
  };
4366
4418
  path: {
4367
4419
  /**
4368
- * Collection ID
4420
+ * Collection public ID
4369
4421
  */
4370
- id: number;
4422
+ id: string;
4371
4423
  };
4372
4424
  query?: never;
4373
4425
  url: '/v1/collections/{id}';
@@ -4409,9 +4461,9 @@ export type UpdateCollectionResponse = UpdateCollectionResponses[keyof UpdateCol
4409
4461
  export type AddSegmentToCollectionData = {
4410
4462
  body: {
4411
4463
  /**
4412
- * UUID of the segment to add
4464
+ * Public ID or UUID of the segment to add
4413
4465
  */
4414
- segmentUuid: string;
4466
+ segmentId: string;
4415
4467
  /**
4416
4468
  * Optional annotation
4417
4469
  */
@@ -4419,9 +4471,9 @@ export type AddSegmentToCollectionData = {
4419
4471
  };
4420
4472
  path: {
4421
4473
  /**
4422
- * Collection ID
4474
+ * Collection public ID
4423
4475
  */
4424
- id: number;
4476
+ id: string;
4425
4477
  };
4426
4478
  query?: never;
4427
4479
  url: '/v1/collections/{id}/segments';
@@ -4464,16 +4516,16 @@ export type RemoveSegmentFromCollectionData = {
4464
4516
  body?: never;
4465
4517
  path: {
4466
4518
  /**
4467
- * Collection ID
4519
+ * Collection public ID
4468
4520
  */
4469
- id: number;
4521
+ id: string;
4470
4522
  /**
4471
- * Segment UUID
4523
+ * Segment ID
4472
4524
  */
4473
- uuid: string;
4525
+ segmentId: number;
4474
4526
  };
4475
4527
  query?: never;
4476
- url: '/v1/collections/{id}/segments/{uuid}';
4528
+ url: '/v1/collections/{id}/segments/{segmentId}';
4477
4529
  };
4478
4530
  export type RemoveSegmentFromCollectionErrors = {
4479
4531
  /**
@@ -4522,16 +4574,16 @@ export type UpdateCollectionSegmentData = {
4522
4574
  };
4523
4575
  path: {
4524
4576
  /**
4525
- * Collection ID
4577
+ * Collection public ID
4526
4578
  */
4527
- id: number;
4579
+ id: string;
4528
4580
  /**
4529
- * Segment UUID
4581
+ * Segment ID
4530
4582
  */
4531
- uuid: string;
4583
+ segmentId: number;
4532
4584
  };
4533
4585
  query?: never;
4534
- url: '/v1/collections/{id}/segments/{uuid}';
4586
+ url: '/v1/collections/{id}/segments/{segmentId}';
4535
4587
  };
4536
4588
  export type UpdateCollectionSegmentErrors = {
4537
4589
  /**
@@ -4571,9 +4623,9 @@ export type SearchCollectionSegmentsData = {
4571
4623
  body?: never;
4572
4624
  path: {
4573
4625
  /**
4574
- * Collection ID
4626
+ * Collection public ID
4575
4627
  */
4576
- id: number;
4628
+ id: string;
4577
4629
  };
4578
4630
  query?: {
4579
4631
  /**
@@ -4625,9 +4677,9 @@ export type GetCollectionStatsData = {
4625
4677
  body?: never;
4626
4678
  path: {
4627
4679
  /**
4628
- * Collection ID
4680
+ * Collection public ID
4629
4681
  */
4630
- id: number;
4682
+ id: string;
4631
4683
  };
4632
4684
  query?: never;
4633
4685
  url: '/v1/collections/{id}/stats';
@@ -5248,9 +5300,9 @@ export type ListAdminReportsData = {
5248
5300
  */
5249
5301
  'target.episodeNumber'?: number;
5250
5302
  /**
5251
- * Filter by target segment UUID
5303
+ * Filter by target segment ID
5252
5304
  */
5253
- 'target.segmentUuid'?: string;
5305
+ 'target.segmentId'?: number;
5254
5306
  /**
5255
5307
  * Filter by audit run ID
5256
5308
  */
@@ -5555,4 +5607,80 @@ export type GetAdminMediaAuditRunResponses = {
5555
5607
  };
5556
5608
  };
5557
5609
  export type GetAdminMediaAuditRunResponse = GetAdminMediaAuditRunResponses[keyof GetAdminMediaAuditRunResponses];
5610
+ export type GetAnnouncementData = {
5611
+ body?: never;
5612
+ path?: never;
5613
+ query?: never;
5614
+ url: '/v1/admin/announcement';
5615
+ };
5616
+ export type GetAnnouncementErrors = {
5617
+ /**
5618
+ * Too Many Requests
5619
+ */
5620
+ 429: Error429;
5621
+ /**
5622
+ * Internal Server Error
5623
+ */
5624
+ 500: Error500;
5625
+ };
5626
+ export type GetAnnouncementError = GetAnnouncementErrors[keyof GetAnnouncementErrors];
5627
+ export type GetAnnouncementResponses = {
5628
+ /**
5629
+ * OK
5630
+ */
5631
+ 200: {
5632
+ message: string;
5633
+ type: 'info' | 'warning' | 'maintenance';
5634
+ active: boolean;
5635
+ };
5636
+ /**
5637
+ * No announcement set
5638
+ */
5639
+ 204: void;
5640
+ };
5641
+ export type GetAnnouncementResponse = GetAnnouncementResponses[keyof GetAnnouncementResponses];
5642
+ export type UpdateAnnouncementData = {
5643
+ body: {
5644
+ message: string;
5645
+ type: 'info' | 'warning' | 'maintenance';
5646
+ active: boolean;
5647
+ };
5648
+ path?: never;
5649
+ query?: never;
5650
+ url: '/v1/admin/announcement';
5651
+ };
5652
+ export type UpdateAnnouncementErrors = {
5653
+ /**
5654
+ * Bad Request
5655
+ */
5656
+ 400: Error400;
5657
+ /**
5658
+ * Unauthorized (session)
5659
+ */
5660
+ 401: Error401;
5661
+ /**
5662
+ * Forbidden
5663
+ */
5664
+ 403: Error403;
5665
+ /**
5666
+ * Too Many Requests
5667
+ */
5668
+ 429: Error429;
5669
+ /**
5670
+ * Internal Server Error
5671
+ */
5672
+ 500: Error500;
5673
+ };
5674
+ export type UpdateAnnouncementError = UpdateAnnouncementErrors[keyof UpdateAnnouncementErrors];
5675
+ export type UpdateAnnouncementResponses = {
5676
+ /**
5677
+ * Announcement updated
5678
+ */
5679
+ 200: {
5680
+ message: string;
5681
+ type: 'info' | 'warning' | 'maintenance';
5682
+ active: boolean;
5683
+ };
5684
+ };
5685
+ export type UpdateAnnouncementResponse = UpdateAnnouncementResponses[keyof UpdateAnnouncementResponses];
5558
5686
  //# sourceMappingURL=types.gen.d.ts.map