@book000/pixivts 0.62.1-beta.2 → 0.63.0-beta.10

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/dist/index.d.ts CHANGED
@@ -1163,6 +1163,22 @@ interface IllustSeriesPage {
1163
1163
  /** URL to the next page, or `null` when this is the last page. */
1164
1164
  nextUrl: string | null;
1165
1165
  }
1166
+ /**
1167
+ * A single trending tag entry, paired with a representative illust.
1168
+ */
1169
+ interface TrendingTagIllust {
1170
+ /** Tag name in Japanese. */
1171
+ tag: string;
1172
+ /** Translated tag name, or `null` if no translation is available. */
1173
+ translatedName: string | null;
1174
+ /** Representative illust for this tag. */
1175
+ illust: PixivIllustItem;
1176
+ }
1177
+ /** Response shape for GET /v1/trending-tags/illust. */
1178
+ interface TrendingTagsIllustResponse {
1179
+ /** Currently trending tags, each with a representative illust. */
1180
+ trendTags: TrendingTagIllust[];
1181
+ }
1166
1182
  /** Page response for GET /v1/manga/recommended. */
1167
1183
  interface MangaRecommendedPage {
1168
1184
  /** Recommended manga works. */
@@ -1282,6 +1298,74 @@ interface UserFollowingPage {
1282
1298
  /** URL to the next page, or `null` when this is the last page. */
1283
1299
  nextUrl: string | null;
1284
1300
  }
1301
+ /** Page response for GET /v1/user/related. */
1302
+ interface UserRelatedPage {
1303
+ /** User preview items related to the seed user. */
1304
+ userPreviews: PixivUserPreviewItem[];
1305
+ /** URL to the next page, or `null` when this is the last page. */
1306
+ nextUrl: string | null;
1307
+ }
1308
+ /** Page response for GET /v1/user/recommended. */
1309
+ interface UserRecommendedPage {
1310
+ /** Recommended user preview items. */
1311
+ userPreviews: PixivUserPreviewItem[];
1312
+ /** URL to the next page, or `null` when this is the last page. */
1313
+ nextUrl: string | null;
1314
+ }
1315
+ /** Page response for GET /v1/user/follower. */
1316
+ interface UserFollowerPage {
1317
+ /** User preview items on this page. */
1318
+ userPreviews: PixivUserPreviewItem[];
1319
+ /** URL to the next page, or `null` when this is the last page. */
1320
+ nextUrl: string | null;
1321
+ }
1322
+ /** Page response for GET /v1/user/mypixiv. */
1323
+ interface UserMypixivPage {
1324
+ /** User preview items on this page. */
1325
+ userPreviews: PixivUserPreviewItem[];
1326
+ /** URL to the next page, or `null` when this is the last page. */
1327
+ nextUrl: string | null;
1328
+ }
1329
+ /** Page response for GET /v1/search/user. */
1330
+ interface UserSearchPage {
1331
+ /** User preview items matching the search. */
1332
+ userPreviews: PixivUserPreviewItem[];
1333
+ /** URL to the next page, or `null` when this is the last page. */
1334
+ nextUrl: string | null;
1335
+ /** Maximum number of results the search will return across all pages. */
1336
+ searchSpanLimit: number;
1337
+ }
1338
+ /**
1339
+ * Page response for GET /v2/user/list.
1340
+ *
1341
+ * NOTE: unlike sibling endpoints (`following`, `follower`, `mypixiv`, `related`,
1342
+ * `recommended`), the live pixiv API returns this list under a `users` key with
1343
+ * plain `PixivUser` objects, not `user_previews` with `PixivUserPreviewItem`
1344
+ * (confirmed by direct API verification; no `user_previews` wrapper is present
1345
+ * on the wire for this endpoint).
1346
+ */
1347
+ interface UserListPage {
1348
+ /** User items on this page. */
1349
+ users: PixivUser[];
1350
+ /** URL to the next page, or `null` when this is the last page. */
1351
+ nextUrl: string | null;
1352
+ }
1353
+ /** A bookmark tag with usage count, as returned by GET /v1/user/bookmark-tags/illust. */
1354
+ interface BookmarkTag {
1355
+ /** Tag name. */
1356
+ name: string;
1357
+ /** Number of bookmarked illusts carrying this tag. */
1358
+ count: number;
1359
+ /** Whether this tag is registered by the authenticated user (may be absent). */
1360
+ isRegistered?: boolean;
1361
+ }
1362
+ /** Page response for GET /v1/user/bookmark-tags/illust. */
1363
+ interface UserBookmarkTagsIllustPage {
1364
+ /** Bookmark tags on this page. */
1365
+ bookmarkTags: BookmarkTag[];
1366
+ /** URL to the next page, or `null` when this is the last page. */
1367
+ nextUrl: string | null;
1368
+ }
1285
1369
  //#endregion
1286
1370
  //#region src/resources/illusts.d.ts
1287
1371
  /** Parameters for fetching a single illust by ID. */
@@ -1418,6 +1502,11 @@ interface IllustNewParams {
1418
1502
  /** Cursor: fetch illusts posted before this illust ID. */
1419
1503
  maxIllustId?: number;
1420
1504
  }
1505
+ /** Parameters for fetching trending illust tags. */
1506
+ interface IllustTrendingTagsParams {
1507
+ /** OS filter to apply (default: `"for_ios"`). */
1508
+ filter?: (typeof OSFilter)[keyof typeof OSFilter];
1509
+ }
1421
1510
  /** Methods for the illust API namespace. */
1422
1511
  declare class IllustResource {
1423
1512
  #private;
@@ -1530,6 +1619,13 @@ declare class IllustResource {
1530
1619
  * @param params - Request parameters
1531
1620
  */
1532
1621
  new(params?: IllustNewParams): PaginatedResultAsync<IllustListPage, IllustListPage['illusts'][number]>;
1622
+ /**
1623
+ * Fetches currently trending illust tags, each with a representative illust.
1624
+ * GET /v1/trending-tags/illust
1625
+ *
1626
+ * @param params - Request parameters
1627
+ */
1628
+ trendingTags(params?: IllustTrendingTagsParams): ResultAsync<TrendingTagsIllustResponse, PixivError>;
1533
1629
  }
1534
1630
  //#endregion
1535
1631
  //#region src/resources/novels.d.ts
@@ -1832,6 +1928,74 @@ interface UserFollowDeleteParams {
1832
1928
  /** ID of the user to unfollow. */
1833
1929
  userId: number;
1834
1930
  }
1931
+ /** Parameters for fetching users related to a seed user. */
1932
+ interface UserRelatedParams {
1933
+ /** ID of the seed user to base recommendations on. */
1934
+ seedUserId: number;
1935
+ /** OS filter to apply (default: `"for_ios"`). */
1936
+ filter?: (typeof OSFilter)[keyof typeof OSFilter];
1937
+ /** Zero-based offset for pagination. */
1938
+ offset?: number;
1939
+ }
1940
+ /** Parameters for fetching recommended users. */
1941
+ interface UserRecommendedParams {
1942
+ /** OS filter to apply (default: `"for_ios"`). */
1943
+ filter?: (typeof OSFilter)[keyof typeof OSFilter];
1944
+ /** Zero-based offset for pagination. */
1945
+ offset?: number;
1946
+ }
1947
+ /** Parameters for fetching a user's followers. */
1948
+ interface UserFollowerParams {
1949
+ /** ID of the user whose followers to fetch. */
1950
+ userId: number;
1951
+ /** OS filter to apply (default: `"for_ios"`). */
1952
+ filter?: (typeof OSFilter)[keyof typeof OSFilter];
1953
+ /** Zero-based offset for pagination. */
1954
+ offset?: number;
1955
+ }
1956
+ /** Parameters for fetching a user's myPixiv users. */
1957
+ interface UserMypixivParams {
1958
+ /** ID of the user whose myPixiv users to fetch. */
1959
+ userId: number;
1960
+ /** Zero-based offset for pagination. */
1961
+ offset?: number;
1962
+ }
1963
+ /** Parameters for fetching a user list. */
1964
+ interface UserListParams {
1965
+ /** ID of the user whose list to fetch. */
1966
+ userId: number;
1967
+ /** OS filter to apply (default: `"for_ios"`). */
1968
+ filter?: (typeof OSFilter)[keyof typeof OSFilter];
1969
+ /** Zero-based offset for pagination. */
1970
+ offset?: number;
1971
+ }
1972
+ /** Parameters for fetching a user's illust bookmark tags. */
1973
+ interface UserBookmarkTagsIllustParams {
1974
+ /** ID of the user whose bookmark tags to fetch. */
1975
+ userId: number;
1976
+ /** Visibility of the bookmarks to aggregate tags from (default: `"public"`). */
1977
+ restrict?: (typeof BookmarkRestrict)[keyof typeof BookmarkRestrict];
1978
+ /** Zero-based offset for pagination. */
1979
+ offset?: number;
1980
+ }
1981
+ /** Parameters for searching users. */
1982
+ interface UserSearchParams {
1983
+ /** Search keyword. */
1984
+ word: string;
1985
+ /** Sort order for results (default: `"date_desc"`). */
1986
+ sort?: (typeof SearchSort)[keyof typeof SearchSort];
1987
+ /** Date range preset filter (omit for no restriction). */
1988
+ duration?: (typeof SearchDuration)[keyof typeof SearchDuration];
1989
+ /** OS filter to apply (default: `"for_ios"`). */
1990
+ filter?: (typeof OSFilter)[keyof typeof OSFilter];
1991
+ /** Zero-based offset for pagination. */
1992
+ offset?: number;
1993
+ }
1994
+ /** Parameters for editing the AI-generated-work display setting. */
1995
+ interface UserEditAiShowSettingsParams {
1996
+ /** New display setting value: `0` = hide AI works, `1` = show AI works. */
1997
+ setting: 0 | 1;
1998
+ }
1835
1999
  /** Methods for the user bookmarks sub-namespace. */
1836
2000
  declare class UserBookmarksResource {
1837
2001
  #private;
@@ -1891,6 +2055,21 @@ declare class UserResource {
1891
2055
  * @param params - Request parameters
1892
2056
  */
1893
2057
  detail(params: UserDetailParams): ResultAsync<UserDetailResponse, PixivError>;
2058
+ /**
2059
+ * Searches for users.
2060
+ * GET /v1/search/user
2061
+ *
2062
+ * @param params - Request parameters
2063
+ *
2064
+ * @example
2065
+ * ```ts
2066
+ * // Iterate all results across pages
2067
+ * for await (const preview of client.users.search({ word: 'artist' }).items()) {
2068
+ * console.log(preview.user.name)
2069
+ * }
2070
+ * ```
2071
+ */
2072
+ search(params: UserSearchParams): PaginatedResultAsync<UserSearchPage, PixivUserPreviewItem>;
1894
2073
  /**
1895
2074
  * Fetches illusts posted by a user.
1896
2075
  * GET /v1/user/illusts
@@ -1926,6 +2105,58 @@ declare class UserResource {
1926
2105
  * @param params - Request parameters
1927
2106
  */
1928
2107
  followDelete(params: UserFollowDeleteParams): ResultAsync<Record<string, never>, PixivError>;
2108
+ /**
2109
+ * Fetches users related to a seed user.
2110
+ * GET /v1/user/related
2111
+ *
2112
+ * @param params - Request parameters
2113
+ */
2114
+ related(params: UserRelatedParams): PaginatedResultAsync<UserRelatedPage, PixivUserPreviewItem>;
2115
+ /**
2116
+ * Fetches recommended users.
2117
+ * GET /v1/user/recommended
2118
+ *
2119
+ * @param params - Request parameters
2120
+ */
2121
+ recommended(params?: UserRecommendedParams): PaginatedResultAsync<UserRecommendedPage, PixivUserPreviewItem>;
2122
+ /**
2123
+ * Fetches the list of users following a user.
2124
+ * GET /v1/user/follower
2125
+ *
2126
+ * @param params - Request parameters
2127
+ */
2128
+ follower(params: UserFollowerParams): PaginatedResultAsync<UserFollowerPage, PixivUserPreviewItem>;
2129
+ /**
2130
+ * Fetches a user's myPixiv users.
2131
+ * GET /v1/user/mypixiv
2132
+ *
2133
+ * @param params - Request parameters
2134
+ */
2135
+ mypixiv(params: UserMypixivParams): PaginatedResultAsync<UserMypixivPage, PixivUserPreviewItem>;
2136
+ /**
2137
+ * Fetches a user list.
2138
+ * GET /v2/user/list
2139
+ *
2140
+ * Returns plain `PixivUser` objects under a `users` key, unlike sibling
2141
+ * endpoints that return `PixivUserPreviewItem` under `user_previews`.
2142
+ *
2143
+ * @param params - Request parameters
2144
+ */
2145
+ list(params: UserListParams): PaginatedResultAsync<UserListPage, PixivUser>;
2146
+ /**
2147
+ * Fetches a user's illust bookmark tags, with the number of bookmarks under each tag.
2148
+ * GET /v1/user/bookmark-tags/illust
2149
+ *
2150
+ * @param params - Request parameters
2151
+ */
2152
+ bookmarkTagsIllust(params: UserBookmarkTagsIllustParams): PaginatedResultAsync<UserBookmarkTagsIllustPage, BookmarkTag>;
2153
+ /**
2154
+ * Edits the authenticated user's AI-generated-work display setting.
2155
+ * POST /v1/user/ai-show-settings/edit
2156
+ *
2157
+ * @param params - Request parameters
2158
+ */
2159
+ editAiShowSettings(params: UserEditAiShowSettingsParams): ResultAsync<Record<string, never>, PixivError>;
1929
2160
  }
1930
2161
  //#endregion
1931
2162
  //#region src/resources/manga.d.ts
@@ -2057,5 +2288,5 @@ declare class PixivClient {
2057
2288
  static of(refreshToken: string, options?: PixivClientOptions): Promise<PixivClient>;
2058
2289
  }
2059
2290
  //#endregion
2060
- export { type BookmarkDetail, type BookmarkDetailTag, BookmarkRestrict, type ErrResult, FollowRestrict, type Frame, type HttpMethod, type IllustBookmarkAddParams, type IllustBookmarkDeleteParams, type IllustBookmarkDetailParams, type IllustBookmarkDetailResponse, type IllustComment, type IllustCommentsPage, type IllustCommentsParams, type IllustDetailParams, type IllustDetailResponse, type IllustFollowParams, type IllustListPage, type IllustNewParams, type IllustRankingParams, type IllustRecommendedPage, type IllustRecommendedParams, type IllustRelatedParams, type IllustSearchParams, type IllustSeriesDetail, type IllustSeriesPage, type IllustSeriesParams, type ImageUrls, type MangaRecommendedPage, type MetaPages, type MetaSinglePage, type NovelBookmarkAddParams, type NovelBookmarkDeleteParams, type NovelComment, type NovelCommentsPage, type NovelCommentsParams, type NovelDetailParams, type NovelDetailResponse, type NovelFollowParams, type NovelListPage, type NovelNewParams, NovelRankingMode, type NovelRankingParams, type NovelRecommendedPage, type NovelRecommendedParams, type NovelRelatedParams, type NovelSearchParams, type NovelSeriesDetail, type NovelSeriesPage, type NovelSeriesParams, type NovelTextParams, OSFilter, type OkResult, type PagedResponse, PaginatedResultAsync, type ParsedNextUrl, type PixivApiErrorBody, PixivClient, type PixivClientOptions, type PixivError, PixivFetchError, type PixivIllustItem, type PixivNovelItem, type PixivUgoiraItem, type PixivUser, type PixivUserItem, type PixivUserPreviewItem, type PixivUserProfile, type PixivUserProfilePublicity, type PixivUserProfileWorkspace, type PrivacyPolicy, type ProfileImageUrls, RankingMode, type ResponseInterceptor, type ResponseRecord, type Result, ResultAsync, SearchDuration, SearchSort, SearchTarget, type Series, type Tag, type UgoiraMetadataResponse, type UserBookmarksIllustPage, type UserBookmarksIllustParams, type UserBookmarksNovelPage, type UserBookmarksNovelParams, type UserDetailParams, type UserDetailResponse, type UserFollowAddParams, type UserFollowDeleteParams, type UserFollowingPage, type UserFollowingParams, UserIllustType, type UserIllustsPage, type UserIllustsParams, type UserNovelsPage, type UserNovelsParams, type ZipUrls, apiError, authFailedError, err, failedPaginated, networkError, ok, parseNextUrl, rateLimitError };
2291
+ export { type BookmarkDetail, type BookmarkDetailTag, BookmarkRestrict, type BookmarkTag, type ErrResult, FollowRestrict, type Frame, type HttpMethod, type IllustBookmarkAddParams, type IllustBookmarkDeleteParams, type IllustBookmarkDetailParams, type IllustBookmarkDetailResponse, type IllustComment, type IllustCommentsPage, type IllustCommentsParams, type IllustDetailParams, type IllustDetailResponse, type IllustFollowParams, type IllustListPage, type IllustNewParams, type IllustRankingParams, type IllustRecommendedPage, type IllustRecommendedParams, type IllustRelatedParams, type IllustSearchParams, type IllustSeriesDetail, type IllustSeriesPage, type IllustSeriesParams, type IllustTrendingTagsParams, type ImageUrls, type MangaRecommendedPage, type MetaPages, type MetaSinglePage, type NovelBookmarkAddParams, type NovelBookmarkDeleteParams, type NovelComment, type NovelCommentsPage, type NovelCommentsParams, type NovelDetailParams, type NovelDetailResponse, type NovelFollowParams, type NovelListPage, type NovelNewParams, NovelRankingMode, type NovelRankingParams, type NovelRecommendedPage, type NovelRecommendedParams, type NovelRelatedParams, type NovelSearchParams, type NovelSeriesDetail, type NovelSeriesPage, type NovelSeriesParams, type NovelTextParams, OSFilter, type OkResult, type PagedResponse, PaginatedResultAsync, type ParsedNextUrl, type PixivApiErrorBody, PixivClient, type PixivClientOptions, type PixivError, PixivFetchError, type PixivIllustItem, type PixivNovelItem, type PixivUgoiraItem, type PixivUser, type PixivUserItem, type PixivUserPreviewItem, type PixivUserProfile, type PixivUserProfilePublicity, type PixivUserProfileWorkspace, type PrivacyPolicy, type ProfileImageUrls, RankingMode, type ResponseInterceptor, type ResponseRecord, type Result, ResultAsync, SearchDuration, SearchSort, SearchTarget, type Series, type Tag, type TrendingTagIllust, type TrendingTagsIllustResponse, type UgoiraMetadataResponse, type UserBookmarkTagsIllustPage, type UserBookmarkTagsIllustParams, type UserBookmarksIllustPage, type UserBookmarksIllustParams, type UserBookmarksNovelPage, type UserBookmarksNovelParams, type UserDetailParams, type UserDetailResponse, type UserEditAiShowSettingsParams, type UserFollowAddParams, type UserFollowDeleteParams, type UserFollowerPage, type UserFollowerParams, type UserFollowingPage, type UserFollowingParams, UserIllustType, type UserIllustsPage, type UserIllustsParams, type UserListPage, type UserListParams, type UserMypixivPage, type UserMypixivParams, type UserNovelsPage, type UserNovelsParams, type UserRecommendedPage, type UserRecommendedParams, type UserRelatedPage, type UserRelatedParams, type UserSearchPage, type UserSearchParams, type ZipUrls, apiError, authFailedError, err, failedPaginated, networkError, ok, parseNextUrl, rateLimitError };
2061
2292
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/result.ts","../src/auth.ts","../src/interceptor.ts","../src/errors.ts","../src/http.ts","../src/paginated.ts","../src/params.ts","../src/options.ts","../src/types.ts","../src/resources/illusts.ts","../src/resources/novels.ts","../src/resources/users.ts","../src/resources/manga.ts","../src/resources/ugoira.ts","../src/resources/images.ts","../src/client.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UAuBiB,SAAS;;WAEf;;WAEA;;WAEA,OAAO;;EAEhB,IAAI,GAAG,KAAK,OAAO,MAAM,IAAI,SAAS;;EAGtC,OAAO,GAAG,MAAM,iBAAiB,IAAI,SAAS;;EAE9C,QAAQ,GAAG,GAAG,KAAK,OAAO,MAAM,OAAO,GAAG,KAAK,OAAO,GAAG;;EAEzD,MAAM,GAAG,OAAO,OAAO,MAAM,GAAG,SAAS,iBAAiB,IAAI;;EAE9D,SAAS,WAAW,IAAI;;;UAIT,UAAU;;WAEhB;;WAEA;;WAEA,OAAO;;EAGhB,IAAI,GAAG,MAAM,iBAAiB,IAAI,UAAU;;EAE5C,OAAO,GAAG,KAAK,OAAO,MAAM,IAAI,UAAU;;EAE1C,QAAQ,GAAG,GAAG,MAAM,iBAAiB,OAAO,GAAG,KAAK,UAAU;;EAE9D,MAAM,GAAG,QAAQ,iBAAiB,GAAG,QAAQ,OAAO,MAAM,IAAI;;EAE9D,SAAS,GAAG,UAAU,IAAI;;;KAIhB,OAAO,GAAG,KAAK,SAAS,KAAK,UAAU;;;;;;iBAmEnC,GAAG,GAAG,OAAO,IAAI,SAAS;;;;;;iBAS1B,IAAI,GAAG,OAAO,IAAI,UAAU;;;;;;;;;;;;;cAoB/B,YAAY,GAAG,cAAc,YAAY,OAAO,GAAG;mBAC7C;cAEL,SAAS,QAAQ,OAAO,GAAG;EAMvC,KAAK,WAAW,OAAO,GAAG,IAAI,kBAC5B,gBACM,OAAO,OAAO,GAAG,OAAO,WAAW,YAAY,mBAErD,eAAe,oBAAoB,WAAW,YAAY,oBACzD,YAAY,WAAW;;;;;;;;;SAanB,YAAY,GAAG,GACpB,SAAS,QAAQ,IACjB,UAAU,oBAAoB,IAC7B,YAAY,GAAG;;;;;;SAcX,WAA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","../src/interceptor.ts","../src/errors.ts","../src/http.ts","../src/paginated.ts","../src/params.ts","../src/options.ts","../src/types.ts","../src/resources/illusts.ts","../src/resources/novels.ts","../src/resources/users.ts","../src/resources/manga.ts","../src/resources/ugoira.ts","../src/resources/images.ts","../src/client.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UAuBiB,SAAS;;WAEf;;WAEA;;WAEA,OAAO;;EAEhB,IAAI,GAAG,KAAK,OAAO,MAAM,IAAI,SAAS;;EAGtC,OAAO,GAAG,MAAM,iBAAiB,IAAI,SAAS;;EAE9C,QAAQ,GAAG,GAAG,KAAK,OAAO,MAAM,OAAO,GAAG,KAAK,OAAO,GAAG;;EAEzD,MAAM,GAAG,OAAO,OAAO,MAAM,GAAG,SAAS,iBAAiB,IAAI;;EAE9D,SAAS,WAAW,IAAI;;;UAIT,UAAU;;WAEhB;;WAEA;;WAEA,OAAO;;EAGhB,IAAI,GAAG,MAAM,iBAAiB,IAAI,UAAU;;EAE5C,OAAO,GAAG,KAAK,OAAO,MAAM,IAAI,UAAU;;EAE1C,QAAQ,GAAG,GAAG,MAAM,iBAAiB,OAAO,GAAG,KAAK,UAAU;;EAE9D,MAAM,GAAG,QAAQ,iBAAiB,GAAG,QAAQ,OAAO,MAAM,IAAI;;EAE9D,SAAS,GAAG,UAAU,IAAI;;;KAIhB,OAAO,GAAG,KAAK,SAAS,KAAK,UAAU;;;;;;iBAmEnC,GAAG,GAAG,OAAO,IAAI,SAAS;;;;;;iBAS1B,IAAI,GAAG,OAAO,IAAI,UAAU;;;;;;;;;;;;;cAoB/B,YAAY,GAAG,cAAc,YAAY,OAAO,GAAG;mBAC7C;EAEL,YAAA,SAAS,QAAQ,OAAO,GAAG;EAMvC,KAAK,WAAW,OAAO,GAAG,IAAI,kBAC5B,gBACM,OAAO,OAAO,GAAG,OAAO,WAAW,YAAY,mBAErD,eAAe,oBAAoB,WAAW,YAAY,oBACzD,YAAY,WAAW;;;;;;;;;SAanB,YAAY,GAAG,GACpB,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qBACT,QAAQ"}
package/dist/index.js CHANGED
@@ -1190,6 +1190,15 @@ var IllustResource = class {
1190
1190
  maxIllustId: params.maxIllustId
1191
1191
  })), this.#http, (page) => page.illusts);
1192
1192
  }
1193
+ /**
1194
+ * Fetches currently trending illust tags, each with a representative illust.
1195
+ * GET /v1/trending-tags/illust
1196
+ *
1197
+ * @param params - Request parameters
1198
+ */
1199
+ trendingTags(params = {}) {
1200
+ return this.#http.get("/v1/trending-tags/illust", buildParams({ filter: params.filter ?? "for_ios" }));
1201
+ }
1193
1202
  };
1194
1203
  //#endregion
1195
1204
  //#region src/resources/novels.ts
@@ -1465,6 +1474,29 @@ var UserResource = class {
1465
1474
  }));
1466
1475
  }
1467
1476
  /**
1477
+ * Searches for users.
1478
+ * GET /v1/search/user
1479
+ *
1480
+ * @param params - Request parameters
1481
+ *
1482
+ * @example
1483
+ * ```ts
1484
+ * // Iterate all results across pages
1485
+ * for await (const preview of client.users.search({ word: 'artist' }).items()) {
1486
+ * console.log(preview.user.name)
1487
+ * }
1488
+ * ```
1489
+ */
1490
+ search(params) {
1491
+ return PaginatedResultAsync.fromResultAsync(this.#http.get("/v1/search/user", buildParams({
1492
+ word: params.word,
1493
+ sort: params.sort ?? "date_desc",
1494
+ duration: params.duration,
1495
+ filter: params.filter ?? "for_ios",
1496
+ offset: params.offset
1497
+ })), this.#http, (page) => page.userPreviews);
1498
+ }
1499
+ /**
1468
1500
  * Fetches illusts posted by a user.
1469
1501
  * GET /v1/user/illusts
1470
1502
  *
@@ -1527,6 +1559,95 @@ var UserResource = class {
1527
1559
  const body = buildParams({ userId: String(params.userId) });
1528
1560
  return this.#http.post("/v1/user/follow/delete", body.toString());
1529
1561
  }
1562
+ /**
1563
+ * Fetches users related to a seed user.
1564
+ * GET /v1/user/related
1565
+ *
1566
+ * @param params - Request parameters
1567
+ */
1568
+ related(params) {
1569
+ return PaginatedResultAsync.fromResultAsync(this.#http.get("/v1/user/related", buildParams({
1570
+ seedUserId: params.seedUserId,
1571
+ filter: params.filter ?? "for_ios",
1572
+ offset: params.offset
1573
+ })), this.#http, (page) => page.userPreviews);
1574
+ }
1575
+ /**
1576
+ * Fetches recommended users.
1577
+ * GET /v1/user/recommended
1578
+ *
1579
+ * @param params - Request parameters
1580
+ */
1581
+ recommended(params = {}) {
1582
+ return PaginatedResultAsync.fromResultAsync(this.#http.get("/v1/user/recommended", buildParams({
1583
+ filter: params.filter ?? "for_ios",
1584
+ offset: params.offset
1585
+ })), this.#http, (page) => page.userPreviews);
1586
+ }
1587
+ /**
1588
+ * Fetches the list of users following a user.
1589
+ * GET /v1/user/follower
1590
+ *
1591
+ * @param params - Request parameters
1592
+ */
1593
+ follower(params) {
1594
+ return PaginatedResultAsync.fromResultAsync(this.#http.get("/v1/user/follower", buildParams({
1595
+ userId: params.userId,
1596
+ filter: params.filter ?? "for_ios",
1597
+ offset: params.offset
1598
+ })), this.#http, (page) => page.userPreviews);
1599
+ }
1600
+ /**
1601
+ * Fetches a user's myPixiv users.
1602
+ * GET /v1/user/mypixiv
1603
+ *
1604
+ * @param params - Request parameters
1605
+ */
1606
+ mypixiv(params) {
1607
+ return PaginatedResultAsync.fromResultAsync(this.#http.get("/v1/user/mypixiv", buildParams({
1608
+ userId: params.userId,
1609
+ offset: params.offset
1610
+ })), this.#http, (page) => page.userPreviews);
1611
+ }
1612
+ /**
1613
+ * Fetches a user list.
1614
+ * GET /v2/user/list
1615
+ *
1616
+ * Returns plain `PixivUser` objects under a `users` key, unlike sibling
1617
+ * endpoints that return `PixivUserPreviewItem` under `user_previews`.
1618
+ *
1619
+ * @param params - Request parameters
1620
+ */
1621
+ list(params) {
1622
+ return PaginatedResultAsync.fromResultAsync(this.#http.get("/v2/user/list", buildParams({
1623
+ userId: params.userId,
1624
+ filter: params.filter ?? "for_ios",
1625
+ offset: params.offset
1626
+ })), this.#http, (page) => page.users);
1627
+ }
1628
+ /**
1629
+ * Fetches a user's illust bookmark tags, with the number of bookmarks under each tag.
1630
+ * GET /v1/user/bookmark-tags/illust
1631
+ *
1632
+ * @param params - Request parameters
1633
+ */
1634
+ bookmarkTagsIllust(params) {
1635
+ return PaginatedResultAsync.fromResultAsync(this.#http.get("/v1/user/bookmark-tags/illust", buildParams({
1636
+ userId: params.userId,
1637
+ restrict: params.restrict ?? "public",
1638
+ offset: params.offset
1639
+ })), this.#http, (page) => page.bookmarkTags);
1640
+ }
1641
+ /**
1642
+ * Edits the authenticated user's AI-generated-work display setting.
1643
+ * POST /v1/user/ai-show-settings/edit
1644
+ *
1645
+ * @param params - Request parameters
1646
+ */
1647
+ editAiShowSettings(params) {
1648
+ const body = buildParams({ setting: params.setting });
1649
+ return this.#http.post("/v1/user/ai-show-settings/edit", body.toString());
1650
+ }
1530
1651
  };
1531
1652
  //#endregion
1532
1653
  //#region src/resources/manga.ts