@book000/pixivts 0.64.0-beta.11 → 0.64.0-beta.13
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 +3 -3
- package/dist/index.cjs +57 -0
- package/dist/index.d.cts +108 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +108 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1190,6 +1190,16 @@ var IllustResource = class {
|
|
|
1190
1190
|
})), this.#http, (page) => page.illusts);
|
|
1191
1191
|
}
|
|
1192
1192
|
/**
|
|
1193
|
+
* Fetches illusts posted by the authenticated account's mypixiv (mutual
|
|
1194
|
+
* follow) users.
|
|
1195
|
+
* GET /v2/illust/mypixiv
|
|
1196
|
+
*
|
|
1197
|
+
* @param params - Request parameters
|
|
1198
|
+
*/
|
|
1199
|
+
mypixiv(params = {}) {
|
|
1200
|
+
return PaginatedResultAsync.fromResultAsync(this.#http.get("/v2/illust/mypixiv", buildParams({ offset: params.offset })), this.#http, (page) => page.illusts);
|
|
1201
|
+
}
|
|
1202
|
+
/**
|
|
1193
1203
|
* Fetches comments posted on an illust.
|
|
1194
1204
|
* GET /v3/illust/comments
|
|
1195
1205
|
*
|
|
@@ -1513,6 +1523,18 @@ var NovelResource = class {
|
|
|
1513
1523
|
return this.#http.post("/v1/novel/bookmark/delete", body.toString());
|
|
1514
1524
|
}
|
|
1515
1525
|
/**
|
|
1526
|
+
* Fetches the users who bookmarked a novel.
|
|
1527
|
+
* GET /v1/novel/bookmark/users
|
|
1528
|
+
*
|
|
1529
|
+
* @param params - Request parameters
|
|
1530
|
+
*/
|
|
1531
|
+
bookmarkUsers(params) {
|
|
1532
|
+
return PaginatedResultAsync.fromResultAsync(this.#http.get("/v1/novel/bookmark/users", buildParams({
|
|
1533
|
+
novelId: params.novelId,
|
|
1534
|
+
offset: params.offset
|
|
1535
|
+
})), this.#http, (page) => page.users);
|
|
1536
|
+
}
|
|
1537
|
+
/**
|
|
1516
1538
|
* Fetches novels posted by users the authenticated account follows.
|
|
1517
1539
|
* GET /v1/novel/follow
|
|
1518
1540
|
*
|
|
@@ -1525,6 +1547,19 @@ var NovelResource = class {
|
|
|
1525
1547
|
})), this.#http, (page) => page.novels);
|
|
1526
1548
|
}
|
|
1527
1549
|
/**
|
|
1550
|
+
* Fetches novels posted by the authenticated account's mypixiv (mutual
|
|
1551
|
+
* follow) users.
|
|
1552
|
+
* GET /v1/novel/mypixiv
|
|
1553
|
+
*
|
|
1554
|
+
* The endpoint ignores `offset`. Paginate with `maxNovelId`, or follow
|
|
1555
|
+
* `next_url` via `.pages()` / `.items()`.
|
|
1556
|
+
*
|
|
1557
|
+
* @param params - Request parameters
|
|
1558
|
+
*/
|
|
1559
|
+
mypixiv(params = {}) {
|
|
1560
|
+
return PaginatedResultAsync.fromResultAsync(this.#http.get("/v1/novel/mypixiv", buildParams({ maxNovelId: params.maxNovelId })), this.#http, (page) => page.novels);
|
|
1561
|
+
}
|
|
1562
|
+
/**
|
|
1528
1563
|
* Fetches comments posted on a novel.
|
|
1529
1564
|
* GET /v3/novel/comments
|
|
1530
1565
|
*
|
|
@@ -1837,6 +1872,28 @@ var UserResource = class {
|
|
|
1837
1872
|
})), this.#http, (page) => page.bookmarkTags);
|
|
1838
1873
|
}
|
|
1839
1874
|
/**
|
|
1875
|
+
* Fetches a user's novel bookmark tags, with the number of bookmarks under each tag.
|
|
1876
|
+
* GET /v1/user/bookmark-tags/novel
|
|
1877
|
+
*
|
|
1878
|
+
* @param params - Request parameters
|
|
1879
|
+
*/
|
|
1880
|
+
bookmarkTagsNovel(params) {
|
|
1881
|
+
return PaginatedResultAsync.fromResultAsync(this.#http.get("/v1/user/bookmark-tags/novel", buildParams({
|
|
1882
|
+
userId: params.userId,
|
|
1883
|
+
restrict: params.restrict ?? "public",
|
|
1884
|
+
offset: params.offset
|
|
1885
|
+
})), this.#http, (page) => page.bookmarkTags);
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* Fetches whether the authenticated user follows a user, and with which visibility.
|
|
1889
|
+
* GET /v1/user/follow/detail
|
|
1890
|
+
*
|
|
1891
|
+
* @param params - Request parameters
|
|
1892
|
+
*/
|
|
1893
|
+
followDetail(params) {
|
|
1894
|
+
return this.#http.get("/v1/user/follow/detail", buildParams({ userId: params.userId }));
|
|
1895
|
+
}
|
|
1896
|
+
/**
|
|
1840
1897
|
* Edits the authenticated user's AI-generated-work display setting.
|
|
1841
1898
|
* POST /v1/user/ai-show-settings/edit
|
|
1842
1899
|
*
|