@book000/pixivts 0.63.0-beta.20 → 0.63.0-beta.22
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.cjs +60 -4
- package/dist/index.d.cts +102 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +102 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +60 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -218,6 +218,15 @@ function apiError(status, body) {
|
|
|
218
218
|
body
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
+
/** Creates a parse error. */
|
|
222
|
+
function parseError(message, body, cause) {
|
|
223
|
+
return {
|
|
224
|
+
type: "parse_error",
|
|
225
|
+
message,
|
|
226
|
+
body,
|
|
227
|
+
cause
|
|
228
|
+
};
|
|
229
|
+
}
|
|
221
230
|
//#endregion
|
|
222
231
|
//#region src/paginated.ts
|
|
223
232
|
/**
|
|
@@ -1202,6 +1211,45 @@ var IllustResource = class {
|
|
|
1202
1211
|
}
|
|
1203
1212
|
};
|
|
1204
1213
|
//#endregion
|
|
1214
|
+
//#region src/webview-novel.ts
|
|
1215
|
+
/**
|
|
1216
|
+
* Parses the structured novel data embedded in the WebView HTML page
|
|
1217
|
+
* (GET /webview/v2/novel).
|
|
1218
|
+
*/
|
|
1219
|
+
const NOVEL_JSON_PATTERN = /novel:\s*({.+}),\s*isOwnWork/s;
|
|
1220
|
+
/**
|
|
1221
|
+
* Verifies that a parsed value has the fields a `WebviewNovel` requires,
|
|
1222
|
+
* so a syntactically valid but wrong-span capture (see `NOVEL_JSON_PATTERN`)
|
|
1223
|
+
* is rejected instead of silently returned as if it were the requested novel.
|
|
1224
|
+
*/
|
|
1225
|
+
function isWebviewNovelShape(value) {
|
|
1226
|
+
if (typeof value !== "object" || value === null) return false;
|
|
1227
|
+
const candidate = value;
|
|
1228
|
+
return typeof candidate.id === "string" && typeof candidate.title === "string" && typeof candidate.userId === "string" && typeof candidate.text === "string";
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Extracts and parses the `WebviewNovel` object embedded in a WebView novel
|
|
1232
|
+
* HTML page.
|
|
1233
|
+
*
|
|
1234
|
+
* @param html - Raw HTML body returned by GET /webview/v2/novel
|
|
1235
|
+
* @returns `Result<WebviewNovel, PixivError>` — `err` with `type: 'parse_error'`
|
|
1236
|
+
* if the embedded JSON cannot be located, parsed, or does not have the
|
|
1237
|
+
* expected `WebviewNovel` shape
|
|
1238
|
+
*/
|
|
1239
|
+
function parseWebviewNovel(html) {
|
|
1240
|
+
const match = NOVEL_JSON_PATTERN.exec(html);
|
|
1241
|
+
if (!match) return err(parseError("Could not find embedded novel JSON in WebView HTML", html));
|
|
1242
|
+
let parsed;
|
|
1243
|
+
try {
|
|
1244
|
+
parsed = JSON.parse(match[1]);
|
|
1245
|
+
} catch (error) {
|
|
1246
|
+
return err(parseError(`Failed to parse embedded novel JSON: ${String(error)}`, html, error));
|
|
1247
|
+
}
|
|
1248
|
+
const camelized = camelizeKeys(parsed);
|
|
1249
|
+
if (!isWebviewNovelShape(camelized)) return err(parseError("Embedded novel JSON does not match the expected WebviewNovel shape", html));
|
|
1250
|
+
return ok(camelized);
|
|
1251
|
+
}
|
|
1252
|
+
//#endregion
|
|
1205
1253
|
//#region src/resources/novels.ts
|
|
1206
1254
|
/** Methods for the novel API namespace. */
|
|
1207
1255
|
var NovelResource = class {
|
|
@@ -1229,16 +1277,23 @@ var NovelResource = class {
|
|
|
1229
1277
|
return this.#http.get("/v2/novel/detail", buildParams({ novelId: params.novelId }));
|
|
1230
1278
|
}
|
|
1231
1279
|
/**
|
|
1232
|
-
* Fetches the
|
|
1280
|
+
* Fetches the structured content of a novel's WebView page.
|
|
1233
1281
|
* GET /webview/v2/novel
|
|
1234
1282
|
*
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1283
|
+
* The endpoint itself returns an HTML page that the pixiv app renders in a
|
|
1284
|
+
* WebView; this method extracts the `WebviewNovel` object embedded in that
|
|
1285
|
+
* page (body text, rating counters, series navigation, etc.) so callers
|
|
1286
|
+
* don't need to parse HTML themselves.
|
|
1237
1287
|
*
|
|
1238
1288
|
* @param params - Request parameters
|
|
1289
|
+
* @returns `Err` with `type: 'parse_error'` if the embedded data cannot be
|
|
1290
|
+
* located or parsed
|
|
1239
1291
|
*/
|
|
1240
1292
|
text(params) {
|
|
1241
|
-
return this.#http.get("/webview/v2/novel", buildParams({
|
|
1293
|
+
return this.#http.get("/webview/v2/novel", buildParams({
|
|
1294
|
+
id: params.novelId,
|
|
1295
|
+
viewerVersion: "20221031_ai"
|
|
1296
|
+
})).andThen(parseWebviewNovel);
|
|
1242
1297
|
}
|
|
1243
1298
|
/**
|
|
1244
1299
|
* Fetches related novels for a given novel.
|
|
@@ -1827,5 +1882,6 @@ exports.err = err;
|
|
|
1827
1882
|
exports.failedPaginated = failedPaginated;
|
|
1828
1883
|
exports.networkError = networkError;
|
|
1829
1884
|
exports.ok = ok;
|
|
1885
|
+
exports.parseError = parseError;
|
|
1830
1886
|
exports.parseNextUrl = parseNextUrl;
|
|
1831
1887
|
exports.rateLimitError = rateLimitError;
|
package/dist/index.d.cts
CHANGED
|
@@ -274,6 +274,15 @@ type PixivError = {
|
|
|
274
274
|
status: number;
|
|
275
275
|
/** Parsed response body (object if JSON, string otherwise). */
|
|
276
276
|
body: unknown;
|
|
277
|
+
} | {
|
|
278
|
+
/** Structured data embedded in a non-JSON response could not be extracted or parsed. */
|
|
279
|
+
type: 'parse_error';
|
|
280
|
+
/** Description of what failed to parse. */
|
|
281
|
+
message: string;
|
|
282
|
+
/** Raw response body that failed to parse. */
|
|
283
|
+
body: string;
|
|
284
|
+
/** The underlying error thrown during parsing, if any (e.g. a `SyntaxError` from `JSON.parse`). */
|
|
285
|
+
cause?: unknown;
|
|
277
286
|
};
|
|
278
287
|
/**
|
|
279
288
|
* An `Error` subclass that wraps a `PixivError` for use in thrown contexts
|
|
@@ -306,6 +315,8 @@ declare function authFailedError(status: number): PixivError;
|
|
|
306
315
|
declare function networkError(cause: unknown): PixivError;
|
|
307
316
|
/** Creates an API error. */
|
|
308
317
|
declare function apiError(status: number, body: unknown): PixivError;
|
|
318
|
+
/** Creates a parse error. */
|
|
319
|
+
declare function parseError(message: string, body: string, cause?: unknown): PixivError;
|
|
309
320
|
//#endregion
|
|
310
321
|
//#region src/http.d.ts
|
|
311
322
|
/** Options for controlling retry behaviour on rate-limited requests. */
|
|
@@ -1248,6 +1259,88 @@ interface NovelSeriesPage {
|
|
|
1248
1259
|
/** URL to the next page, or `null` when this is the last page. */
|
|
1249
1260
|
nextUrl: string | null;
|
|
1250
1261
|
}
|
|
1262
|
+
/** Bookmark / view counters embedded in a WebView novel page. */
|
|
1263
|
+
interface WebviewNovelRating {
|
|
1264
|
+
/** Number of "likes" (lightweight reactions). */
|
|
1265
|
+
like: number;
|
|
1266
|
+
/** Number of bookmarks. */
|
|
1267
|
+
bookmark: number;
|
|
1268
|
+
/** Number of views. */
|
|
1269
|
+
view: number;
|
|
1270
|
+
}
|
|
1271
|
+
/** Navigation info for a sibling novel in a series, as embedded in the WebView novel page. */
|
|
1272
|
+
interface WebviewNovelNavigationInfo {
|
|
1273
|
+
/** Work ID of the sibling novel. */
|
|
1274
|
+
id: number;
|
|
1275
|
+
/** Whether the authenticated user is allowed to view this novel. */
|
|
1276
|
+
viewable: boolean;
|
|
1277
|
+
/** Position of the novel within the series' reading order. */
|
|
1278
|
+
contentOrder: string;
|
|
1279
|
+
/** Title of the sibling novel. */
|
|
1280
|
+
title: string;
|
|
1281
|
+
/** Cover image URL of the sibling novel. */
|
|
1282
|
+
coverUrl: string;
|
|
1283
|
+
/** Reason the novel is not viewable (present only when `viewable` is `false`). */
|
|
1284
|
+
viewableMessage?: string | null;
|
|
1285
|
+
}
|
|
1286
|
+
/** Prev/next navigation for a novel that belongs to a series, as embedded in the WebView novel page. */
|
|
1287
|
+
interface WebviewNovelSeriesNavigation {
|
|
1288
|
+
/** Previous novel in the series (`null` or absent if this is the first). */
|
|
1289
|
+
prev?: WebviewNovelNavigationInfo | null;
|
|
1290
|
+
/** Next novel in the series (`null` or absent if this is the latest). */
|
|
1291
|
+
next?: WebviewNovelNavigationInfo | null;
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* Structured novel content parsed from the WebView HTML page.
|
|
1295
|
+
*
|
|
1296
|
+
* Returned by `client.novels.text()` (GET /webview/v2/novel). pixiv embeds
|
|
1297
|
+
* this data as a JavaScript object literal inside the HTML page rather than
|
|
1298
|
+
* returning JSON directly, so several id-like fields are strings rather than
|
|
1299
|
+
* numbers — unlike the numeric ids used throughout the rest of this library.
|
|
1300
|
+
*/
|
|
1301
|
+
interface WebviewNovel {
|
|
1302
|
+
/** Work ID, as a string. */
|
|
1303
|
+
id: string;
|
|
1304
|
+
/** Title of the novel. */
|
|
1305
|
+
title: string;
|
|
1306
|
+
/** Series ID (`null` or absent if the novel does not belong to a series). */
|
|
1307
|
+
seriesId?: string | null;
|
|
1308
|
+
/** Series title (`null` or absent if the novel does not belong to a series). */
|
|
1309
|
+
seriesTitle?: string | null;
|
|
1310
|
+
/**
|
|
1311
|
+
* Whether the authenticated user is watching (following) the series
|
|
1312
|
+
* (`null` or absent if the novel does not belong to a series).
|
|
1313
|
+
*/
|
|
1314
|
+
seriesIsWatched?: boolean | null;
|
|
1315
|
+
/** Author's user ID, as a string. */
|
|
1316
|
+
userId: string;
|
|
1317
|
+
/** Cover image URL. */
|
|
1318
|
+
coverUrl: string;
|
|
1319
|
+
/** Tags attached to the novel. */
|
|
1320
|
+
tags: string[];
|
|
1321
|
+
/** Synopsis / caption (may contain HTML). */
|
|
1322
|
+
caption: string;
|
|
1323
|
+
/** ISO 8601 date-time string of when the novel was posted. */
|
|
1324
|
+
cdate: string;
|
|
1325
|
+
/** Like / bookmark / view counters. */
|
|
1326
|
+
rating: WebviewNovelRating;
|
|
1327
|
+
/** Full novel body text. */
|
|
1328
|
+
text: string;
|
|
1329
|
+
/** Reading-position marker for the authenticated user (`null` or absent if none). */
|
|
1330
|
+
marker?: string | null;
|
|
1331
|
+
/**
|
|
1332
|
+
* Prev/next navigation for the series this novel belongs to.
|
|
1333
|
+
*
|
|
1334
|
+
* `null` if the novel does not belong to a series (confirmed against real
|
|
1335
|
+
* WebView responses — pixiv sends this field as `null`, not `{}`, in that
|
|
1336
|
+
* case).
|
|
1337
|
+
*/
|
|
1338
|
+
seriesNavigation: WebviewNovelSeriesNavigation | null;
|
|
1339
|
+
/** AI-generated content flag: 0 = no AI, 1 = partial AI, 2 = fully AI */
|
|
1340
|
+
aiType: number;
|
|
1341
|
+
/** Whether the novel is an original work (not fan fiction). */
|
|
1342
|
+
isOriginal: boolean;
|
|
1343
|
+
}
|
|
1251
1344
|
/** Response shape for GET /v1/user/detail. */
|
|
1252
1345
|
interface UserDetailResponse {
|
|
1253
1346
|
/** Basic user info with self-introduction. */
|
|
@@ -1754,15 +1847,19 @@ declare class NovelResource {
|
|
|
1754
1847
|
*/
|
|
1755
1848
|
detail(params: NovelDetailParams): ResultAsync<NovelDetailResponse, PixivError>;
|
|
1756
1849
|
/**
|
|
1757
|
-
* Fetches the
|
|
1850
|
+
* Fetches the structured content of a novel's WebView page.
|
|
1758
1851
|
* GET /webview/v2/novel
|
|
1759
1852
|
*
|
|
1760
|
-
*
|
|
1761
|
-
*
|
|
1853
|
+
* The endpoint itself returns an HTML page that the pixiv app renders in a
|
|
1854
|
+
* WebView; this method extracts the `WebviewNovel` object embedded in that
|
|
1855
|
+
* page (body text, rating counters, series navigation, etc.) so callers
|
|
1856
|
+
* don't need to parse HTML themselves.
|
|
1762
1857
|
*
|
|
1763
1858
|
* @param params - Request parameters
|
|
1859
|
+
* @returns `Err` with `type: 'parse_error'` if the embedded data cannot be
|
|
1860
|
+
* located or parsed
|
|
1764
1861
|
*/
|
|
1765
|
-
text(params: NovelTextParams): ResultAsync<
|
|
1862
|
+
text(params: NovelTextParams): ResultAsync<WebviewNovel, PixivError>;
|
|
1766
1863
|
/**
|
|
1767
1864
|
* Fetches related novels for a given novel.
|
|
1768
1865
|
* GET /v1/novel/related
|
|
@@ -2288,5 +2385,5 @@ declare class PixivClient {
|
|
|
2288
2385
|
static of(refreshToken: string, options?: PixivClientOptions): Promise<PixivClient>;
|
|
2289
2386
|
}
|
|
2290
2387
|
//#endregion
|
|
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 };
|
|
2388
|
+
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 WebviewNovel, type WebviewNovelNavigationInfo, type WebviewNovelRating, type WebviewNovelSeriesNavigation, type ZipUrls, apiError, authFailedError, err, failedPaginated, networkError, ok, parseError, parseNextUrl, rateLimitError };
|
|
2292
2389
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","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":";;;;;;;;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;;EAc5C,OAAO,GAAG,KAAK,OAAO,MAAM,IAAI,YAAY,GAAG;;;;;;;;EAa/C,QAAQ,GAAG,GACT,KAAK,OAAO,MAAM,YAAY,GAAG,KAAK,OAAO,GAAG,KAC/C,YAAY,GAAG,IAAI;;;;;;;;EAoBhB,MAAM,GACV,OAAO,OAAO,MAAM,IAAI,QAAQ,IAChC,QAAQ,OAAO,MAAM,IAAI,QAAQ,KAChC,QAAQ;;;;;;EAWL,SAAS,UAAU,IAAI,QAAQ;;;;;;;;;;;;;;;UC3QtB;;EAEf;;EAEA;;EAEA;;;;;;;;;cAwJW;;EAGX;EAEY,YAAA,aAAa;;MAOrB;;MAKA;;;;;;;EAUE,WAAW;;;;;;;SAgDJ,MAAM,uBAAuB,QAAQ;;;;;;;;;;;;;;;;;;;KCrOxC;;;;;UAMK;;EAEf,QAAQ;;EAGR;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;;;;;;;;KAUU,uBACV,QAAQ,0BACE;;;;;;;;;;;;;;KCjDA;;EAGN;;EAEA;;;EAIA;;EAEA;;;EAIA;;EAEA;;;EAIA;;EAEA;;EAEA;;;;;;;;;;;;;;;;;;;;cAyBO,wBAAwB;;WAE1B,YAAY;EAET,YAAA,YAAY;;;iBAeV,eAAe,qBAAqB;;iBAKpC,gBAAgB,iBAAiB;;iBAKjC,aAAa,iBAAiB;;iBAK9B,SAAS,gBAAgB,gBAAgB;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","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,OA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AwBH;;;;;;;;;;EAiBJ;;;;;;;;;EAYA;;;;;;;;SAWa,GACX,sBACA,UAAU,qBACT,QAAQ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -274,6 +274,15 @@ type PixivError = {
|
|
|
274
274
|
status: number;
|
|
275
275
|
/** Parsed response body (object if JSON, string otherwise). */
|
|
276
276
|
body: unknown;
|
|
277
|
+
} | {
|
|
278
|
+
/** Structured data embedded in a non-JSON response could not be extracted or parsed. */
|
|
279
|
+
type: 'parse_error';
|
|
280
|
+
/** Description of what failed to parse. */
|
|
281
|
+
message: string;
|
|
282
|
+
/** Raw response body that failed to parse. */
|
|
283
|
+
body: string;
|
|
284
|
+
/** The underlying error thrown during parsing, if any (e.g. a `SyntaxError` from `JSON.parse`). */
|
|
285
|
+
cause?: unknown;
|
|
277
286
|
};
|
|
278
287
|
/**
|
|
279
288
|
* An `Error` subclass that wraps a `PixivError` for use in thrown contexts
|
|
@@ -306,6 +315,8 @@ declare function authFailedError(status: number): PixivError;
|
|
|
306
315
|
declare function networkError(cause: unknown): PixivError;
|
|
307
316
|
/** Creates an API error. */
|
|
308
317
|
declare function apiError(status: number, body: unknown): PixivError;
|
|
318
|
+
/** Creates a parse error. */
|
|
319
|
+
declare function parseError(message: string, body: string, cause?: unknown): PixivError;
|
|
309
320
|
//#endregion
|
|
310
321
|
//#region src/http.d.ts
|
|
311
322
|
/** Options for controlling retry behaviour on rate-limited requests. */
|
|
@@ -1248,6 +1259,88 @@ interface NovelSeriesPage {
|
|
|
1248
1259
|
/** URL to the next page, or `null` when this is the last page. */
|
|
1249
1260
|
nextUrl: string | null;
|
|
1250
1261
|
}
|
|
1262
|
+
/** Bookmark / view counters embedded in a WebView novel page. */
|
|
1263
|
+
interface WebviewNovelRating {
|
|
1264
|
+
/** Number of "likes" (lightweight reactions). */
|
|
1265
|
+
like: number;
|
|
1266
|
+
/** Number of bookmarks. */
|
|
1267
|
+
bookmark: number;
|
|
1268
|
+
/** Number of views. */
|
|
1269
|
+
view: number;
|
|
1270
|
+
}
|
|
1271
|
+
/** Navigation info for a sibling novel in a series, as embedded in the WebView novel page. */
|
|
1272
|
+
interface WebviewNovelNavigationInfo {
|
|
1273
|
+
/** Work ID of the sibling novel. */
|
|
1274
|
+
id: number;
|
|
1275
|
+
/** Whether the authenticated user is allowed to view this novel. */
|
|
1276
|
+
viewable: boolean;
|
|
1277
|
+
/** Position of the novel within the series' reading order. */
|
|
1278
|
+
contentOrder: string;
|
|
1279
|
+
/** Title of the sibling novel. */
|
|
1280
|
+
title: string;
|
|
1281
|
+
/** Cover image URL of the sibling novel. */
|
|
1282
|
+
coverUrl: string;
|
|
1283
|
+
/** Reason the novel is not viewable (present only when `viewable` is `false`). */
|
|
1284
|
+
viewableMessage?: string | null;
|
|
1285
|
+
}
|
|
1286
|
+
/** Prev/next navigation for a novel that belongs to a series, as embedded in the WebView novel page. */
|
|
1287
|
+
interface WebviewNovelSeriesNavigation {
|
|
1288
|
+
/** Previous novel in the series (`null` or absent if this is the first). */
|
|
1289
|
+
prev?: WebviewNovelNavigationInfo | null;
|
|
1290
|
+
/** Next novel in the series (`null` or absent if this is the latest). */
|
|
1291
|
+
next?: WebviewNovelNavigationInfo | null;
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* Structured novel content parsed from the WebView HTML page.
|
|
1295
|
+
*
|
|
1296
|
+
* Returned by `client.novels.text()` (GET /webview/v2/novel). pixiv embeds
|
|
1297
|
+
* this data as a JavaScript object literal inside the HTML page rather than
|
|
1298
|
+
* returning JSON directly, so several id-like fields are strings rather than
|
|
1299
|
+
* numbers — unlike the numeric ids used throughout the rest of this library.
|
|
1300
|
+
*/
|
|
1301
|
+
interface WebviewNovel {
|
|
1302
|
+
/** Work ID, as a string. */
|
|
1303
|
+
id: string;
|
|
1304
|
+
/** Title of the novel. */
|
|
1305
|
+
title: string;
|
|
1306
|
+
/** Series ID (`null` or absent if the novel does not belong to a series). */
|
|
1307
|
+
seriesId?: string | null;
|
|
1308
|
+
/** Series title (`null` or absent if the novel does not belong to a series). */
|
|
1309
|
+
seriesTitle?: string | null;
|
|
1310
|
+
/**
|
|
1311
|
+
* Whether the authenticated user is watching (following) the series
|
|
1312
|
+
* (`null` or absent if the novel does not belong to a series).
|
|
1313
|
+
*/
|
|
1314
|
+
seriesIsWatched?: boolean | null;
|
|
1315
|
+
/** Author's user ID, as a string. */
|
|
1316
|
+
userId: string;
|
|
1317
|
+
/** Cover image URL. */
|
|
1318
|
+
coverUrl: string;
|
|
1319
|
+
/** Tags attached to the novel. */
|
|
1320
|
+
tags: string[];
|
|
1321
|
+
/** Synopsis / caption (may contain HTML). */
|
|
1322
|
+
caption: string;
|
|
1323
|
+
/** ISO 8601 date-time string of when the novel was posted. */
|
|
1324
|
+
cdate: string;
|
|
1325
|
+
/** Like / bookmark / view counters. */
|
|
1326
|
+
rating: WebviewNovelRating;
|
|
1327
|
+
/** Full novel body text. */
|
|
1328
|
+
text: string;
|
|
1329
|
+
/** Reading-position marker for the authenticated user (`null` or absent if none). */
|
|
1330
|
+
marker?: string | null;
|
|
1331
|
+
/**
|
|
1332
|
+
* Prev/next navigation for the series this novel belongs to.
|
|
1333
|
+
*
|
|
1334
|
+
* `null` if the novel does not belong to a series (confirmed against real
|
|
1335
|
+
* WebView responses — pixiv sends this field as `null`, not `{}`, in that
|
|
1336
|
+
* case).
|
|
1337
|
+
*/
|
|
1338
|
+
seriesNavigation: WebviewNovelSeriesNavigation | null;
|
|
1339
|
+
/** AI-generated content flag: 0 = no AI, 1 = partial AI, 2 = fully AI */
|
|
1340
|
+
aiType: number;
|
|
1341
|
+
/** Whether the novel is an original work (not fan fiction). */
|
|
1342
|
+
isOriginal: boolean;
|
|
1343
|
+
}
|
|
1251
1344
|
/** Response shape for GET /v1/user/detail. */
|
|
1252
1345
|
interface UserDetailResponse {
|
|
1253
1346
|
/** Basic user info with self-introduction. */
|
|
@@ -1754,15 +1847,19 @@ declare class NovelResource {
|
|
|
1754
1847
|
*/
|
|
1755
1848
|
detail(params: NovelDetailParams): ResultAsync<NovelDetailResponse, PixivError>;
|
|
1756
1849
|
/**
|
|
1757
|
-
* Fetches the
|
|
1850
|
+
* Fetches the structured content of a novel's WebView page.
|
|
1758
1851
|
* GET /webview/v2/novel
|
|
1759
1852
|
*
|
|
1760
|
-
*
|
|
1761
|
-
*
|
|
1853
|
+
* The endpoint itself returns an HTML page that the pixiv app renders in a
|
|
1854
|
+
* WebView; this method extracts the `WebviewNovel` object embedded in that
|
|
1855
|
+
* page (body text, rating counters, series navigation, etc.) so callers
|
|
1856
|
+
* don't need to parse HTML themselves.
|
|
1762
1857
|
*
|
|
1763
1858
|
* @param params - Request parameters
|
|
1859
|
+
* @returns `Err` with `type: 'parse_error'` if the embedded data cannot be
|
|
1860
|
+
* located or parsed
|
|
1764
1861
|
*/
|
|
1765
|
-
text(params: NovelTextParams): ResultAsync<
|
|
1862
|
+
text(params: NovelTextParams): ResultAsync<WebviewNovel, PixivError>;
|
|
1766
1863
|
/**
|
|
1767
1864
|
* Fetches related novels for a given novel.
|
|
1768
1865
|
* GET /v1/novel/related
|
|
@@ -2288,5 +2385,5 @@ declare class PixivClient {
|
|
|
2288
2385
|
static of(refreshToken: string, options?: PixivClientOptions): Promise<PixivClient>;
|
|
2289
2386
|
}
|
|
2290
2387
|
//#endregion
|
|
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 };
|
|
2388
|
+
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 WebviewNovel, type WebviewNovelNavigationInfo, type WebviewNovelRating, type WebviewNovelSeriesNavigation, type ZipUrls, apiError, authFailedError, err, failedPaginated, networkError, ok, parseError, parseNextUrl, rateLimitError };
|
|
2292
2389
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,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;EAIA;;EAEA;;;EAIA;;EAEA;;;EAIA;;EAEA;;EAEA;;;;;;;;;;;;;;;;;;;;cAyBO,wBAAwB;;WAE1B,YAAY;EAET,YAAA,YAAY;;;iBAeV,eAAe,qBAAqB;;iBAKpC,gBAAgB,iBAAiB;;iBAKjC,aAAa,iBAAiB;;iBAK9B,SAAS,gBAAgB,gBAAgB;;;;
|
|
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,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AqB,cAAc;;;;;;;EAqBtC,mBACE,QAAQ,+BACP,qBAAqB,4BAA4B;;;;;;;EAqBpD,mBACE,QAAQ,+BACP,YAAY,uBAAuB;;;;;UC/kBvB;;EAEf,iBAAiB,uBAAuB;;EAExC;;;cAIW;;EAGC,YAAA,MAAM;;;;;;;EAUlB,YACE,SAAQ,yBACP,qBAAqB,sBAAsB;;;;;UCvB/B;;EAEf;;;cAIW;;EAGC,YAAA,MAAM;;;;;;;EAUlB,SACE,QAAQ,uBACP,YAAY,wBAAwB;;;;;cCvB5B;;EAGC,YAAA,MAAM;;;;;;;;;EAYlB,MAAM,mBAAmB,YAAY,UAAU;;;;;UCAhC;;EAEf,QAAQ,QAAQ;;EAEhB,aAAa;;;;;;;;cASF;;;WAEF,SAAS;;WAET,QAAQ;;WAER,OAAO;;WAEP,OAAO;;WAEP,QAAQ;;WAER,QAAQ;UAIV;;;;;;;;;;;;;;;MAwBH;;;;;;;;;;EAiBJ;;;;;;;;;EAYA;;;;;;;;SAWa,GACX,sBACA,UAAU,qBACT,QAAQ"}
|
package/dist/index.js
CHANGED
|
@@ -217,6 +217,15 @@ function apiError(status, body) {
|
|
|
217
217
|
body
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
|
+
/** Creates a parse error. */
|
|
221
|
+
function parseError(message, body, cause) {
|
|
222
|
+
return {
|
|
223
|
+
type: "parse_error",
|
|
224
|
+
message,
|
|
225
|
+
body,
|
|
226
|
+
cause
|
|
227
|
+
};
|
|
228
|
+
}
|
|
220
229
|
//#endregion
|
|
221
230
|
//#region src/paginated.ts
|
|
222
231
|
/**
|
|
@@ -1201,6 +1210,45 @@ var IllustResource = class {
|
|
|
1201
1210
|
}
|
|
1202
1211
|
};
|
|
1203
1212
|
//#endregion
|
|
1213
|
+
//#region src/webview-novel.ts
|
|
1214
|
+
/**
|
|
1215
|
+
* Parses the structured novel data embedded in the WebView HTML page
|
|
1216
|
+
* (GET /webview/v2/novel).
|
|
1217
|
+
*/
|
|
1218
|
+
const NOVEL_JSON_PATTERN = /novel:\s*({.+}),\s*isOwnWork/s;
|
|
1219
|
+
/**
|
|
1220
|
+
* Verifies that a parsed value has the fields a `WebviewNovel` requires,
|
|
1221
|
+
* so a syntactically valid but wrong-span capture (see `NOVEL_JSON_PATTERN`)
|
|
1222
|
+
* is rejected instead of silently returned as if it were the requested novel.
|
|
1223
|
+
*/
|
|
1224
|
+
function isWebviewNovelShape(value) {
|
|
1225
|
+
if (typeof value !== "object" || value === null) return false;
|
|
1226
|
+
const candidate = value;
|
|
1227
|
+
return typeof candidate.id === "string" && typeof candidate.title === "string" && typeof candidate.userId === "string" && typeof candidate.text === "string";
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* Extracts and parses the `WebviewNovel` object embedded in a WebView novel
|
|
1231
|
+
* HTML page.
|
|
1232
|
+
*
|
|
1233
|
+
* @param html - Raw HTML body returned by GET /webview/v2/novel
|
|
1234
|
+
* @returns `Result<WebviewNovel, PixivError>` — `err` with `type: 'parse_error'`
|
|
1235
|
+
* if the embedded JSON cannot be located, parsed, or does not have the
|
|
1236
|
+
* expected `WebviewNovel` shape
|
|
1237
|
+
*/
|
|
1238
|
+
function parseWebviewNovel(html) {
|
|
1239
|
+
const match = NOVEL_JSON_PATTERN.exec(html);
|
|
1240
|
+
if (!match) return err(parseError("Could not find embedded novel JSON in WebView HTML", html));
|
|
1241
|
+
let parsed;
|
|
1242
|
+
try {
|
|
1243
|
+
parsed = JSON.parse(match[1]);
|
|
1244
|
+
} catch (error) {
|
|
1245
|
+
return err(parseError(`Failed to parse embedded novel JSON: ${String(error)}`, html, error));
|
|
1246
|
+
}
|
|
1247
|
+
const camelized = camelizeKeys(parsed);
|
|
1248
|
+
if (!isWebviewNovelShape(camelized)) return err(parseError("Embedded novel JSON does not match the expected WebviewNovel shape", html));
|
|
1249
|
+
return ok(camelized);
|
|
1250
|
+
}
|
|
1251
|
+
//#endregion
|
|
1204
1252
|
//#region src/resources/novels.ts
|
|
1205
1253
|
/** Methods for the novel API namespace. */
|
|
1206
1254
|
var NovelResource = class {
|
|
@@ -1228,16 +1276,23 @@ var NovelResource = class {
|
|
|
1228
1276
|
return this.#http.get("/v2/novel/detail", buildParams({ novelId: params.novelId }));
|
|
1229
1277
|
}
|
|
1230
1278
|
/**
|
|
1231
|
-
* Fetches the
|
|
1279
|
+
* Fetches the structured content of a novel's WebView page.
|
|
1232
1280
|
* GET /webview/v2/novel
|
|
1233
1281
|
*
|
|
1234
|
-
*
|
|
1235
|
-
*
|
|
1282
|
+
* The endpoint itself returns an HTML page that the pixiv app renders in a
|
|
1283
|
+
* WebView; this method extracts the `WebviewNovel` object embedded in that
|
|
1284
|
+
* page (body text, rating counters, series navigation, etc.) so callers
|
|
1285
|
+
* don't need to parse HTML themselves.
|
|
1236
1286
|
*
|
|
1237
1287
|
* @param params - Request parameters
|
|
1288
|
+
* @returns `Err` with `type: 'parse_error'` if the embedded data cannot be
|
|
1289
|
+
* located or parsed
|
|
1238
1290
|
*/
|
|
1239
1291
|
text(params) {
|
|
1240
|
-
return this.#http.get("/webview/v2/novel", buildParams({
|
|
1292
|
+
return this.#http.get("/webview/v2/novel", buildParams({
|
|
1293
|
+
id: params.novelId,
|
|
1294
|
+
viewerVersion: "20221031_ai"
|
|
1295
|
+
})).andThen(parseWebviewNovel);
|
|
1241
1296
|
}
|
|
1242
1297
|
/**
|
|
1243
1298
|
* Fetches related novels for a given novel.
|
|
@@ -1807,6 +1862,6 @@ var PixivClient = class PixivClient {
|
|
|
1807
1862
|
}
|
|
1808
1863
|
};
|
|
1809
1864
|
//#endregion
|
|
1810
|
-
export { BookmarkRestrict, FollowRestrict, NovelRankingMode, OSFilter, PaginatedResultAsync, PixivClient, PixivFetchError, RankingMode, ResultAsync, SearchDuration, SearchSort, SearchTarget, UserIllustType, apiError, authFailedError, err, failedPaginated, networkError, ok, parseNextUrl, rateLimitError };
|
|
1865
|
+
export { BookmarkRestrict, FollowRestrict, NovelRankingMode, OSFilter, PaginatedResultAsync, PixivClient, PixivFetchError, RankingMode, ResultAsync, SearchDuration, SearchSort, SearchTarget, UserIllustType, apiError, authFailedError, err, failedPaginated, networkError, ok, parseError, parseNextUrl, rateLimitError };
|
|
1811
1866
|
|
|
1812
1867
|
//# sourceMappingURL=index.js.map
|