@brigadasos/nadeshiko-sdk 1.4.2-dev.a13aba0 → 1.4.3-dev.09dcbc3
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 +34 -10
- package/dist/index.cjs +65 -47
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +65 -47
- 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/internal/user.gen.d.ts +1 -1
- package/dist/internal/user.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +24 -14
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +23 -12
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +134 -55
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -77,6 +77,15 @@ export type SearchFilters = {
|
|
|
77
77
|
*/
|
|
78
78
|
max?: number;
|
|
79
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
* Language inclusion/exclusion for search matching
|
|
82
|
+
*/
|
|
83
|
+
languages?: {
|
|
84
|
+
/**
|
|
85
|
+
* Language codes to exclude from search matching (e.g., ["en"], ["es"], ["en","es"])
|
|
86
|
+
*/
|
|
87
|
+
exclude?: Array<'en' | 'es'>;
|
|
88
|
+
};
|
|
80
89
|
};
|
|
81
90
|
/**
|
|
82
91
|
* Resource to expand in the response includes block
|
|
@@ -127,6 +136,10 @@ export type SearchRequest = {
|
|
|
127
136
|
* Segment with content, optional highlights, and media URLs
|
|
128
137
|
*/
|
|
129
138
|
export type Segment = {
|
|
139
|
+
/**
|
|
140
|
+
* Numeric identifier for the segment
|
|
141
|
+
*/
|
|
142
|
+
id: number;
|
|
130
143
|
/**
|
|
131
144
|
* Unique identifier for the segment
|
|
132
145
|
*/
|
|
@@ -856,6 +869,9 @@ export type Error409 = {
|
|
|
856
869
|
[key: string]: string;
|
|
857
870
|
};
|
|
858
871
|
};
|
|
872
|
+
export type MediaAutocompleteResponse = {
|
|
873
|
+
media: Array<Media>;
|
|
874
|
+
};
|
|
859
875
|
/**
|
|
860
876
|
* Not Found error response
|
|
861
877
|
*/
|
|
@@ -1586,6 +1602,8 @@ export type UserActivity = {
|
|
|
1586
1602
|
segmentUuid?: string;
|
|
1587
1603
|
mediaId?: number;
|
|
1588
1604
|
searchQuery?: string;
|
|
1605
|
+
animeName?: string;
|
|
1606
|
+
japaneseText?: string;
|
|
1589
1607
|
createdAt: string;
|
|
1590
1608
|
};
|
|
1591
1609
|
/**
|
|
@@ -1608,6 +1626,18 @@ export type Collection = {
|
|
|
1608
1626
|
* Visibility of the collection
|
|
1609
1627
|
*/
|
|
1610
1628
|
visibility: 'PUBLIC' | 'PRIVATE';
|
|
1629
|
+
/**
|
|
1630
|
+
* Number of segments in the collection
|
|
1631
|
+
*/
|
|
1632
|
+
segmentCount?: number;
|
|
1633
|
+
/**
|
|
1634
|
+
* When the collection was created
|
|
1635
|
+
*/
|
|
1636
|
+
createdAt?: string;
|
|
1637
|
+
/**
|
|
1638
|
+
* When the collection was last updated
|
|
1639
|
+
*/
|
|
1640
|
+
updatedAt?: string;
|
|
1611
1641
|
};
|
|
1612
1642
|
export type UserExportCollection = Collection & {
|
|
1613
1643
|
/**
|
|
@@ -2152,6 +2182,55 @@ export type CreateMediaResponses = {
|
|
|
2152
2182
|
201: Media;
|
|
2153
2183
|
};
|
|
2154
2184
|
export type CreateMediaResponse = CreateMediaResponses[keyof CreateMediaResponses];
|
|
2185
|
+
export type AutocompleteMediaData = {
|
|
2186
|
+
body?: never;
|
|
2187
|
+
path?: never;
|
|
2188
|
+
query: {
|
|
2189
|
+
/**
|
|
2190
|
+
* Search term to match against media names (English, Japanese, romaji)
|
|
2191
|
+
*/
|
|
2192
|
+
query: string;
|
|
2193
|
+
/**
|
|
2194
|
+
* Maximum number of results to return
|
|
2195
|
+
*/
|
|
2196
|
+
limit?: number;
|
|
2197
|
+
/**
|
|
2198
|
+
* Filter by media category
|
|
2199
|
+
*/
|
|
2200
|
+
category?: 'ANIME' | 'JDRAMA';
|
|
2201
|
+
};
|
|
2202
|
+
url: '/v1/media/autocomplete';
|
|
2203
|
+
};
|
|
2204
|
+
export type AutocompleteMediaErrors = {
|
|
2205
|
+
/**
|
|
2206
|
+
* Bad Request
|
|
2207
|
+
*/
|
|
2208
|
+
400: Error400;
|
|
2209
|
+
/**
|
|
2210
|
+
* Unauthorized
|
|
2211
|
+
*/
|
|
2212
|
+
401: Error401;
|
|
2213
|
+
/**
|
|
2214
|
+
* Forbidden
|
|
2215
|
+
*/
|
|
2216
|
+
403: Error403;
|
|
2217
|
+
/**
|
|
2218
|
+
* Too Many Requests
|
|
2219
|
+
*/
|
|
2220
|
+
429: Error429;
|
|
2221
|
+
/**
|
|
2222
|
+
* Internal Server Error
|
|
2223
|
+
*/
|
|
2224
|
+
500: Error500;
|
|
2225
|
+
};
|
|
2226
|
+
export type AutocompleteMediaError = AutocompleteMediaErrors[keyof AutocompleteMediaErrors];
|
|
2227
|
+
export type AutocompleteMediaResponses = {
|
|
2228
|
+
/**
|
|
2229
|
+
* OK
|
|
2230
|
+
*/
|
|
2231
|
+
200: MediaAutocompleteResponse;
|
|
2232
|
+
};
|
|
2233
|
+
export type AutocompleteMediaResponse = AutocompleteMediaResponses[keyof AutocompleteMediaResponses];
|
|
2155
2234
|
export type DeleteMediaData = {
|
|
2156
2235
|
body?: never;
|
|
2157
2236
|
path: {
|
|
@@ -3421,13 +3500,13 @@ export type GetSeiyuuResponses = {
|
|
|
3421
3500
|
200: SeiyuuWithRoles;
|
|
3422
3501
|
};
|
|
3423
3502
|
export type GetSeiyuuResponse = GetSeiyuuResponses[keyof GetSeiyuuResponses];
|
|
3424
|
-
export type
|
|
3503
|
+
export type GetUserQuotaData = {
|
|
3425
3504
|
body?: never;
|
|
3426
3505
|
path?: never;
|
|
3427
3506
|
query?: never;
|
|
3428
3507
|
url: '/v1/user/quota';
|
|
3429
3508
|
};
|
|
3430
|
-
export type
|
|
3509
|
+
export type GetUserQuotaErrors = {
|
|
3431
3510
|
/**
|
|
3432
3511
|
* Unauthorized
|
|
3433
3512
|
*/
|
|
@@ -3441,15 +3520,15 @@ export type GetQuotaErrors = {
|
|
|
3441
3520
|
*/
|
|
3442
3521
|
500: Error500;
|
|
3443
3522
|
};
|
|
3444
|
-
export type
|
|
3445
|
-
export type
|
|
3523
|
+
export type GetUserQuotaError = GetUserQuotaErrors[keyof GetUserQuotaErrors];
|
|
3524
|
+
export type GetUserQuotaResponses = {
|
|
3446
3525
|
/**
|
|
3447
3526
|
* OK
|
|
3448
3527
|
*/
|
|
3449
3528
|
200: UserQuotaResponse;
|
|
3450
3529
|
};
|
|
3451
|
-
export type
|
|
3452
|
-
export type
|
|
3530
|
+
export type GetUserQuotaResponse = GetUserQuotaResponses[keyof GetUserQuotaResponses];
|
|
3531
|
+
export type ListUserReportsData = {
|
|
3453
3532
|
body?: never;
|
|
3454
3533
|
path?: never;
|
|
3455
3534
|
query?: {
|
|
@@ -3468,7 +3547,7 @@ export type ListReportsData = {
|
|
|
3468
3547
|
};
|
|
3469
3548
|
url: '/v1/user/reports';
|
|
3470
3549
|
};
|
|
3471
|
-
export type
|
|
3550
|
+
export type ListUserReportsErrors = {
|
|
3472
3551
|
/**
|
|
3473
3552
|
* Unauthorized
|
|
3474
3553
|
*/
|
|
@@ -3478,21 +3557,21 @@ export type ListReportsErrors = {
|
|
|
3478
3557
|
*/
|
|
3479
3558
|
500: Error500;
|
|
3480
3559
|
};
|
|
3481
|
-
export type
|
|
3482
|
-
export type
|
|
3560
|
+
export type ListUserReportsError = ListUserReportsErrors[keyof ListUserReportsErrors];
|
|
3561
|
+
export type ListUserReportsResponses = {
|
|
3483
3562
|
/**
|
|
3484
3563
|
* OK
|
|
3485
3564
|
*/
|
|
3486
3565
|
200: ReportListResponse;
|
|
3487
3566
|
};
|
|
3488
|
-
export type
|
|
3489
|
-
export type
|
|
3567
|
+
export type ListUserReportsResponse = ListUserReportsResponses[keyof ListUserReportsResponses];
|
|
3568
|
+
export type CreateUserReportData = {
|
|
3490
3569
|
body: CreateReportRequest;
|
|
3491
3570
|
path?: never;
|
|
3492
3571
|
query?: never;
|
|
3493
3572
|
url: '/v1/user/reports';
|
|
3494
3573
|
};
|
|
3495
|
-
export type
|
|
3574
|
+
export type CreateUserReportErrors = {
|
|
3496
3575
|
/**
|
|
3497
3576
|
* Bad Request
|
|
3498
3577
|
*/
|
|
@@ -3510,21 +3589,21 @@ export type CreateReportErrors = {
|
|
|
3510
3589
|
*/
|
|
3511
3590
|
500: Error500;
|
|
3512
3591
|
};
|
|
3513
|
-
export type
|
|
3514
|
-
export type
|
|
3592
|
+
export type CreateUserReportError = CreateUserReportErrors[keyof CreateUserReportErrors];
|
|
3593
|
+
export type CreateUserReportResponses = {
|
|
3515
3594
|
/**
|
|
3516
3595
|
* Report created successfully
|
|
3517
3596
|
*/
|
|
3518
3597
|
201: Report;
|
|
3519
3598
|
};
|
|
3520
|
-
export type
|
|
3521
|
-
export type
|
|
3599
|
+
export type CreateUserReportResponse = CreateUserReportResponses[keyof CreateUserReportResponses];
|
|
3600
|
+
export type GetUserPreferencesData = {
|
|
3522
3601
|
body?: never;
|
|
3523
3602
|
path?: never;
|
|
3524
3603
|
query?: never;
|
|
3525
3604
|
url: '/v1/user/preferences';
|
|
3526
3605
|
};
|
|
3527
|
-
export type
|
|
3606
|
+
export type GetUserPreferencesErrors = {
|
|
3528
3607
|
/**
|
|
3529
3608
|
* Unauthorized
|
|
3530
3609
|
*/
|
|
@@ -3534,21 +3613,21 @@ export type GetPreferencesErrors = {
|
|
|
3534
3613
|
*/
|
|
3535
3614
|
500: Error500;
|
|
3536
3615
|
};
|
|
3537
|
-
export type
|
|
3538
|
-
export type
|
|
3616
|
+
export type GetUserPreferencesError = GetUserPreferencesErrors[keyof GetUserPreferencesErrors];
|
|
3617
|
+
export type GetUserPreferencesResponses = {
|
|
3539
3618
|
/**
|
|
3540
3619
|
* OK
|
|
3541
3620
|
*/
|
|
3542
3621
|
200: UserPreferences;
|
|
3543
3622
|
};
|
|
3544
|
-
export type
|
|
3545
|
-
export type
|
|
3623
|
+
export type GetUserPreferencesResponse = GetUserPreferencesResponses[keyof GetUserPreferencesResponses];
|
|
3624
|
+
export type UpdateUserPreferencesData = {
|
|
3546
3625
|
body: UserPreferences;
|
|
3547
3626
|
path?: never;
|
|
3548
3627
|
query?: never;
|
|
3549
3628
|
url: '/v1/user/preferences';
|
|
3550
3629
|
};
|
|
3551
|
-
export type
|
|
3630
|
+
export type UpdateUserPreferencesErrors = {
|
|
3552
3631
|
/**
|
|
3553
3632
|
* Unauthorized
|
|
3554
3633
|
*/
|
|
@@ -3558,15 +3637,15 @@ export type UpdatePreferencesErrors = {
|
|
|
3558
3637
|
*/
|
|
3559
3638
|
500: Error500;
|
|
3560
3639
|
};
|
|
3561
|
-
export type
|
|
3562
|
-
export type
|
|
3640
|
+
export type UpdateUserPreferencesError = UpdateUserPreferencesErrors[keyof UpdateUserPreferencesErrors];
|
|
3641
|
+
export type UpdateUserPreferencesResponses = {
|
|
3563
3642
|
/**
|
|
3564
3643
|
* OK
|
|
3565
3644
|
*/
|
|
3566
3645
|
200: UserPreferences;
|
|
3567
3646
|
};
|
|
3568
|
-
export type
|
|
3569
|
-
export type
|
|
3647
|
+
export type UpdateUserPreferencesResponse = UpdateUserPreferencesResponses[keyof UpdateUserPreferencesResponses];
|
|
3648
|
+
export type DeleteUserActivityData = {
|
|
3570
3649
|
body?: never;
|
|
3571
3650
|
path?: never;
|
|
3572
3651
|
query?: {
|
|
@@ -3577,7 +3656,7 @@ export type DeleteActivityData = {
|
|
|
3577
3656
|
};
|
|
3578
3657
|
url: '/v1/user/activity';
|
|
3579
3658
|
};
|
|
3580
|
-
export type
|
|
3659
|
+
export type DeleteUserActivityErrors = {
|
|
3581
3660
|
/**
|
|
3582
3661
|
* Unauthorized
|
|
3583
3662
|
*/
|
|
@@ -3587,8 +3666,8 @@ export type DeleteActivityErrors = {
|
|
|
3587
3666
|
*/
|
|
3588
3667
|
500: Error500;
|
|
3589
3668
|
};
|
|
3590
|
-
export type
|
|
3591
|
-
export type
|
|
3669
|
+
export type DeleteUserActivityError = DeleteUserActivityErrors[keyof DeleteUserActivityErrors];
|
|
3670
|
+
export type DeleteUserActivityResponses = {
|
|
3592
3671
|
/**
|
|
3593
3672
|
* OK
|
|
3594
3673
|
*/
|
|
@@ -3597,8 +3676,8 @@ export type DeleteActivityResponses = {
|
|
|
3597
3676
|
deletedCount: number;
|
|
3598
3677
|
};
|
|
3599
3678
|
};
|
|
3600
|
-
export type
|
|
3601
|
-
export type
|
|
3679
|
+
export type DeleteUserActivityResponse = DeleteUserActivityResponses[keyof DeleteUserActivityResponses];
|
|
3680
|
+
export type ListUserActivityData = {
|
|
3602
3681
|
body?: never;
|
|
3603
3682
|
path?: never;
|
|
3604
3683
|
query?: {
|
|
@@ -3621,7 +3700,7 @@ export type ListActivityData = {
|
|
|
3621
3700
|
};
|
|
3622
3701
|
url: '/v1/user/activity';
|
|
3623
3702
|
};
|
|
3624
|
-
export type
|
|
3703
|
+
export type ListUserActivityErrors = {
|
|
3625
3704
|
/**
|
|
3626
3705
|
* Unauthorized
|
|
3627
3706
|
*/
|
|
@@ -3631,8 +3710,8 @@ export type ListActivityErrors = {
|
|
|
3631
3710
|
*/
|
|
3632
3711
|
500: Error500;
|
|
3633
3712
|
};
|
|
3634
|
-
export type
|
|
3635
|
-
export type
|
|
3713
|
+
export type ListUserActivityError = ListUserActivityErrors[keyof ListUserActivityErrors];
|
|
3714
|
+
export type ListUserActivityResponses = {
|
|
3636
3715
|
/**
|
|
3637
3716
|
* OK
|
|
3638
3717
|
*/
|
|
@@ -3641,8 +3720,8 @@ export type ListActivityResponses = {
|
|
|
3641
3720
|
pagination: CursorPagination;
|
|
3642
3721
|
};
|
|
3643
3722
|
};
|
|
3644
|
-
export type
|
|
3645
|
-
export type
|
|
3723
|
+
export type ListUserActivityResponse = ListUserActivityResponses[keyof ListUserActivityResponses];
|
|
3724
|
+
export type GetUserActivityHeatmapData = {
|
|
3646
3725
|
body?: never;
|
|
3647
3726
|
path?: never;
|
|
3648
3727
|
query?: {
|
|
@@ -3657,7 +3736,7 @@ export type GetActivityHeatmapData = {
|
|
|
3657
3736
|
};
|
|
3658
3737
|
url: '/v1/user/activity/heatmap';
|
|
3659
3738
|
};
|
|
3660
|
-
export type
|
|
3739
|
+
export type GetUserActivityHeatmapErrors = {
|
|
3661
3740
|
/**
|
|
3662
3741
|
* Unauthorized
|
|
3663
3742
|
*/
|
|
@@ -3667,8 +3746,8 @@ export type GetActivityHeatmapErrors = {
|
|
|
3667
3746
|
*/
|
|
3668
3747
|
500: Error500;
|
|
3669
3748
|
};
|
|
3670
|
-
export type
|
|
3671
|
-
export type
|
|
3749
|
+
export type GetUserActivityHeatmapError = GetUserActivityHeatmapErrors[keyof GetUserActivityHeatmapErrors];
|
|
3750
|
+
export type GetUserActivityHeatmapResponses = {
|
|
3672
3751
|
/**
|
|
3673
3752
|
* OK
|
|
3674
3753
|
*/
|
|
@@ -3681,8 +3760,8 @@ export type GetActivityHeatmapResponses = {
|
|
|
3681
3760
|
};
|
|
3682
3761
|
};
|
|
3683
3762
|
};
|
|
3684
|
-
export type
|
|
3685
|
-
export type
|
|
3763
|
+
export type GetUserActivityHeatmapResponse = GetUserActivityHeatmapResponses[keyof GetUserActivityHeatmapResponses];
|
|
3764
|
+
export type GetUserActivityStatsData = {
|
|
3686
3765
|
body?: never;
|
|
3687
3766
|
path?: never;
|
|
3688
3767
|
query?: {
|
|
@@ -3693,7 +3772,7 @@ export type GetActivityStatsData = {
|
|
|
3693
3772
|
};
|
|
3694
3773
|
url: '/v1/user/activity/stats';
|
|
3695
3774
|
};
|
|
3696
|
-
export type
|
|
3775
|
+
export type GetUserActivityStatsErrors = {
|
|
3697
3776
|
/**
|
|
3698
3777
|
* Unauthorized
|
|
3699
3778
|
*/
|
|
@@ -3703,8 +3782,8 @@ export type GetActivityStatsErrors = {
|
|
|
3703
3782
|
*/
|
|
3704
3783
|
500: Error500;
|
|
3705
3784
|
};
|
|
3706
|
-
export type
|
|
3707
|
-
export type
|
|
3785
|
+
export type GetUserActivityStatsError = GetUserActivityStatsErrors[keyof GetUserActivityStatsErrors];
|
|
3786
|
+
export type GetUserActivityStatsResponses = {
|
|
3708
3787
|
/**
|
|
3709
3788
|
* OK
|
|
3710
3789
|
*/
|
|
@@ -3723,14 +3802,14 @@ export type GetActivityStatsResponses = {
|
|
|
3723
3802
|
}>;
|
|
3724
3803
|
};
|
|
3725
3804
|
};
|
|
3726
|
-
export type
|
|
3727
|
-
export type
|
|
3805
|
+
export type GetUserActivityStatsResponse = GetUserActivityStatsResponses[keyof GetUserActivityStatsResponses];
|
|
3806
|
+
export type ExportUserDataData = {
|
|
3728
3807
|
body?: never;
|
|
3729
3808
|
path?: never;
|
|
3730
3809
|
query?: never;
|
|
3731
3810
|
url: '/v1/user/export';
|
|
3732
3811
|
};
|
|
3733
|
-
export type
|
|
3812
|
+
export type ExportUserDataErrors = {
|
|
3734
3813
|
/**
|
|
3735
3814
|
* Unauthorized
|
|
3736
3815
|
*/
|
|
@@ -3740,21 +3819,21 @@ export type ExportDataErrors = {
|
|
|
3740
3819
|
*/
|
|
3741
3820
|
500: Error500;
|
|
3742
3821
|
};
|
|
3743
|
-
export type
|
|
3744
|
-
export type
|
|
3822
|
+
export type ExportUserDataError = ExportUserDataErrors[keyof ExportUserDataErrors];
|
|
3823
|
+
export type ExportUserDataResponses = {
|
|
3745
3824
|
/**
|
|
3746
3825
|
* OK
|
|
3747
3826
|
*/
|
|
3748
3827
|
200: UserExportResponse;
|
|
3749
3828
|
};
|
|
3750
|
-
export type
|
|
3751
|
-
export type
|
|
3829
|
+
export type ExportUserDataResponse = ExportUserDataResponses[keyof ExportUserDataResponses];
|
|
3830
|
+
export type ListUserLabsData = {
|
|
3752
3831
|
body?: never;
|
|
3753
3832
|
path?: never;
|
|
3754
3833
|
query?: never;
|
|
3755
3834
|
url: '/v1/user/labs';
|
|
3756
3835
|
};
|
|
3757
|
-
export type
|
|
3836
|
+
export type ListUserLabsErrors = {
|
|
3758
3837
|
/**
|
|
3759
3838
|
* Unauthorized
|
|
3760
3839
|
*/
|
|
@@ -3764,14 +3843,14 @@ export type ListLabsErrors = {
|
|
|
3764
3843
|
*/
|
|
3765
3844
|
500: Error500;
|
|
3766
3845
|
};
|
|
3767
|
-
export type
|
|
3768
|
-
export type
|
|
3846
|
+
export type ListUserLabsError = ListUserLabsErrors[keyof ListUserLabsErrors];
|
|
3847
|
+
export type ListUserLabsResponses = {
|
|
3769
3848
|
/**
|
|
3770
3849
|
* OK
|
|
3771
3850
|
*/
|
|
3772
3851
|
200: Array<UserLabFeature>;
|
|
3773
3852
|
};
|
|
3774
|
-
export type
|
|
3853
|
+
export type ListUserLabsResponse = ListUserLabsResponses[keyof ListUserLabsResponses];
|
|
3775
3854
|
export type ListCollectionsData = {
|
|
3776
3855
|
body?: never;
|
|
3777
3856
|
path?: never;
|