@book000/pixivts 0.64.1-beta.9 → 0.65.0-beta.1

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
@@ -1,4 +1,15 @@
1
- //#region src/result.d.ts
1
+ /**
2
+ * @book000/pixivts — pixiv Unofficial API Library for TypeScript
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * import { PixivClient } from '@book000/pixivts'
7
+ *
8
+ * const client = await PixivClient.of(process.env.PIXIV_REFRESH_TOKEN!)
9
+ * const result = await client.illusts.detail({ illustId: 12345 })
10
+ * if (result.isOk) console.log(result.value.illust.title)
11
+ * ```
12
+ */
2
13
  /**
3
14
  * Zero-dependency Result / ResultAsync implementation.
4
15
  *
@@ -138,8 +149,6 @@ export declare class ResultAsync<T, E> implements PromiseLike<Result<T, E>> {
138
149
  */
139
150
  unwrapOr(fallback: T): Promise<T>;
140
151
  }
141
- //#endregion
142
- //#region src/auth.d.ts
143
152
  /**
144
153
  * Authentication manager for the pixiv API.
145
154
  *
@@ -148,7 +157,7 @@ export declare class ResultAsync<T, E> implements PromiseLike<Result<T, E>> {
148
157
  *
149
158
  * The MD5 implementation is pure TypeScript to ensure Edge/browser compatibility —
150
159
  * Node's `crypto.createHash('md5')` is unavailable in Edge runtimes, and
151
- * `crypto.subtle` does not support MD5 (non-cryptographic hash).
160
+ * `crypto.subtle` does not support MD5.
152
161
  */
153
162
  /** Auth credentials returned by the pixiv token endpoint. */
154
163
  interface AuthCredentials {
@@ -178,7 +187,7 @@ declare class AuthManager {
178
187
  * Exchanges the stored refresh token for a fresh access token.
179
188
  *
180
189
  * Updates the internal credentials on success.
181
- * Throws if the token endpoint returns a non-200 response.
190
+ * Throws `PixivAuthError` if the token endpoint returns a non-200 response.
182
191
  */
183
192
  refresh(): Promise<void>;
184
193
  /**
@@ -189,8 +198,6 @@ declare class AuthManager {
189
198
  */
190
199
  static login(refreshToken: string): Promise<AuthManager>;
191
200
  }
192
- //#endregion
193
- //#region src/interceptor.d.ts
194
201
  /**
195
202
  * Response interceptor types for the pixiv API client.
196
203
  *
@@ -232,15 +239,14 @@ interface ResponseRecord {
232
239
  responseBody: string;
233
240
  }
234
241
  /**
235
- * A callback invoked after every successful API response.
242
+ * A callback invoked after every successful (2xx) API response.
236
243
  *
237
- * Implementations should be non-blocking — awaiting a slow DB write here will
238
- * add latency to every API call. Consider queueing the record and writing
239
- * asynchronously if persistence latency matters.
244
+ * The HTTP client does not await the returned promise, so a slow callback does
245
+ * not delay the API call. A rejected promise is silently discarded and does
246
+ * not fail the request, so implementations must handle and report their own
247
+ * errors.
240
248
  */
241
249
  type ResponseInterceptor = (record: ResponseRecord) => void | Promise<void>;
242
- //#endregion
243
- //#region src/errors.d.ts
244
250
  /**
245
251
  * Discriminated union of all errors that can occur when using the pixiv API client.
246
252
  *
@@ -307,6 +313,21 @@ export declare class PixivFetchError extends Error {
307
313
  readonly pixivError: PixivError;
308
314
  constructor(pixivError: PixivError);
309
315
  }
316
+ /**
317
+ * Thrown by `AuthManager.refresh()` when the token endpoint returns a non-200
318
+ * response. The message keeps the `Failed to refresh pixiv token: HTTP <status>`
319
+ * prefix and appends the error code when one is available (for example
320
+ * `invalid_grant` for a revoked refresh token).
321
+ */
322
+ export declare class PixivAuthError extends Error {
323
+ /** HTTP status code of the token endpoint response. */
324
+ readonly status: number;
325
+ /** OAuth `error` code or pixiv `errors.system.message`, if present in the JSON body. */
326
+ readonly code?: string;
327
+ /** Truncated response body with token-like strings redacted. */
328
+ readonly body: string;
329
+ constructor(status: number, rawBody: string);
330
+ }
310
331
  /** Creates a rate-limit error. */
311
332
  export declare function rateLimitError(retryAfter: number): PixivError;
312
333
  /** Creates an auth-failed error. */
@@ -317,8 +338,6 @@ export declare function networkError(cause: unknown): PixivError;
317
338
  export declare function apiError(status: number, body: unknown): PixivError;
318
339
  /** Creates a parse error. */
319
340
  export declare function parseError(message: string, body: string, cause?: unknown): PixivError;
320
- //#endregion
321
- //#region src/http.d.ts
322
341
  /** Options for controlling retry behaviour on rate-limited requests. */
323
342
  interface RateLimitRetryOptions {
324
343
  /** Maximum number of retries when a 429 response is received. Defaults to 3. */
@@ -374,8 +393,6 @@ declare class HttpClient {
374
393
  */
375
394
  getAbsolute<T>(absoluteUrl: string): ResultAsync<T, PixivError>;
376
395
  }
377
- //#endregion
378
- //#region src/paginated.d.ts
379
396
  /**
380
397
  * A page returned by a pixiv list endpoint.
381
398
  *
@@ -439,8 +456,6 @@ export declare class PaginatedResultAsync<TPage extends PagedResponse, TItem> ex
439
456
  * @param getItems - Item extractor (used for signature compatibility)
440
457
  */
441
458
  export declare function failedPaginated<TPage extends PagedResponse, TItem>(error: PixivError, http: HttpClient, getItems: (page: TPage) => TItem[]): PaginatedResultAsync<TPage, TItem>;
442
- //#endregion
443
- //#region src/params.d.ts
444
459
  /**
445
460
  * Typed cursor parameters extracted from a pixiv `next_url`.
446
461
  *
@@ -490,8 +505,6 @@ interface ParsedNextUrl {
490
505
  * @returns Typed cursor parameters; fields absent in the URL are `undefined`
491
506
  */
492
507
  export declare function parseNextUrl(url: string): ParsedNextUrl;
493
- //#endregion
494
- //#region src/options.d.ts
495
508
  /**
496
509
  * Public option constants for @book000/pixivts.
497
510
  *
@@ -621,8 +634,6 @@ export declare const UserIllustType: {
621
634
  readonly ILLUST: "illust";
622
635
  readonly MANGA: "manga";
623
636
  };
624
- //#endregion
625
- //#region src/types.d.ts
626
637
  /**
627
638
  * Public types for @book000/pixivts.
628
639
  *
@@ -1870,8 +1881,6 @@ interface UserFollowDetailResponse {
1870
1881
  /** Follow state for the requested user. */
1871
1882
  followDetail: FollowDetail;
1872
1883
  }
1873
- //#endregion
1874
- //#region src/resources/illusts.d.ts
1875
1884
  /** Parameters for fetching a single illust by ID. */
1876
1885
  interface IllustDetailParams {
1877
1886
  /** ID of the illust to fetch. */
@@ -2210,8 +2219,6 @@ declare class IllustResource {
2210
2219
  */
2211
2220
  trendingTags(params?: IllustTrendingTagsParams): ResultAsync<TrendingTagsIllustResponse, PixivError>;
2212
2221
  }
2213
- //#endregion
2214
- //#region src/resources/novels.d.ts
2215
2222
  /** Parameters for fetching a single novel by ID. */
2216
2223
  interface NovelDetailParams {
2217
2224
  /** ID of the novel to fetch. */
@@ -2573,8 +2580,6 @@ declare class NovelResource {
2573
2580
  */
2574
2581
  new(params?: NovelNewParams): PaginatedResultAsync<NovelListPage, PixivNovelItem>;
2575
2582
  }
2576
- //#endregion
2577
- //#region src/resources/users.d.ts
2578
2583
  /** Parameters for fetching a user's bookmarked illusts. */
2579
2584
  interface UserBookmarksIllustParams {
2580
2585
  /** ID of the user whose bookmarks to fetch. */
@@ -2952,8 +2957,6 @@ declare class UserResource {
2952
2957
  */
2953
2958
  hasUnreadNotifications(): ResultAsync<HasUnreadNotificationsResponse, PixivError>;
2954
2959
  }
2955
- //#endregion
2956
- //#region src/resources/spotlight.d.ts
2957
2960
  /** Parameters for fetching spotlight articles. */
2958
2961
  interface SpotlightArticlesParams {
2959
2962
  /**
@@ -2980,8 +2983,6 @@ declare class SpotlightResource {
2980
2983
  */
2981
2984
  articles(params?: SpotlightArticlesParams): PaginatedResultAsync<SpotlightArticlesPage, SpotlightArticle>;
2982
2985
  }
2983
- //#endregion
2984
- //#region src/resources/manga.d.ts
2985
2986
  /** Parameters for fetching recommended manga. */
2986
2987
  interface MangaRecommendedParams {
2987
2988
  /** OS filter to apply (default: `"for_ios"`). */
@@ -3008,8 +3009,6 @@ declare class MangaResource {
3008
3009
  */
3009
3010
  watchlist(): PaginatedResultAsync<WatchlistMangaPage, WatchlistSeries>;
3010
3011
  }
3011
- //#endregion
3012
- //#region src/resources/ugoira.d.ts
3013
3012
  /** Parameters for fetching ugoira metadata. */
3014
3013
  interface UgoiraMetadataParams {
3015
3014
  /** ID of the ugoira illust whose metadata to fetch. */
@@ -3027,8 +3026,6 @@ declare class UgoiraResource {
3027
3026
  */
3028
3027
  metadata(params: UgoiraMetadataParams): ResultAsync<UgoiraMetadataResponse, PixivError>;
3029
3028
  }
3030
- //#endregion
3031
- //#region src/resources/images.d.ts
3032
3029
  /** Methods for fetching pixiv images. */
3033
3030
  declare class ImageResource {
3034
3031
  #private;
@@ -3043,8 +3040,6 @@ declare class ImageResource {
3043
3040
  */
3044
3041
  fetch(imageUrl: string): ResultAsync<Response, PixivError>;
3045
3042
  }
3046
- //#endregion
3047
- //#region src/client.d.ts
3048
3043
  /** Options for constructing a {@link PixivClient}. */
3049
3044
  interface PixivClientOptions {
3050
3045
  /** Rate-limit retry configuration. */
@@ -3118,6 +3113,5 @@ export declare class PixivClient {
3118
3113
  */
3119
3114
  static of(refreshToken: string, options?: PixivClientOptions): Promise<PixivClient>;
3120
3115
  }
3121
- //#endregion
3122
- export type { AiShowSettingsResponse, BookmarkDetail, BookmarkDetailTag, BookmarkTag, ErrResult, FollowDetail, Frame, HasUnreadNotificationsResponse, HttpMethod, IllustBookmarkAddParams, IllustBookmarkDeleteParams, IllustBookmarkDetailParams, IllustBookmarkDetailResponse, IllustComment, IllustCommentRepliesPage, IllustCommentRepliesParams, IllustCommentStamp, IllustCommentsPage, IllustCommentsParams, IllustDetailParams, IllustDetailResponse, IllustFollowParams, IllustListPage, IllustMypixivParams, IllustNewParams, IllustPopularPreviewParams, IllustPopularPreviewResponse, IllustRankingParams, IllustRecommendedPage, IllustRecommendedParams, IllustRelatedParams, IllustRequest, IllustRequestCollaborateStatus, IllustRequestCollaborateUserSample, IllustRequestInfo, IllustRequestUser, IllustSearchParams, IllustSeriesDetail, IllustSeriesPage, IllustSeriesParams, IllustTrendingTagsParams, ImageUrls, MangaRecommendedPage, MarkedNovel, MetaPages, MetaSinglePage, MuteListResponse, MutedTag, NovelBookmarkAddParams, NovelBookmarkDeleteParams, NovelBookmarkUsersPage, NovelBookmarkUsersParams, NovelComment, NovelCommentRepliesPage, NovelCommentRepliesParams, NovelCommentsPage, NovelCommentsParams, NovelDetailParams, NovelDetailResponse, NovelFollowParams, NovelListPage, NovelMarker, NovelMarkersPage, NovelMypixivParams, NovelNewParams, NovelPopularPreviewParams, NovelPopularPreviewResponse, NovelRankingParams, NovelRecommendedPage, NovelRecommendedParams, NovelRelatedParams, NovelSearchParams, NovelSeriesDetail, NovelSeriesPage, NovelSeriesParams, NovelTextParams, NovelViewedEntry, OkResult, PagedResponse, ParsedNextUrl, PixivApiErrorBody, PixivClientOptions, PixivError, PixivIllustItem, PixivNovelItem, PixivUgoiraItem, PixivUser, PixivUserItem, PixivUserPreviewItem, PixivUserProfile, PixivUserProfileBadge, PixivUserProfilePublicity, PixivUserProfilePublicityV2, PixivUserProfileV2, PixivUserProfileWorkspace, PixivUserProfileWorkspaceV2, PrivacyPolicy, ProfileImageUrls, ResponseInterceptor, ResponseRecord, RestrictedModeSettingsResponse, Result, Series, SpotlightArticle, SpotlightArticlesPage, SpotlightArticlesParams, Tag, TrendingTagIllust, TrendingTagsIllustResponse, TrendingTagsNovelResponse, UgoiraMetadataResponse, UserBookmarkTagsIllustPage, UserBookmarkTagsIllustParams, UserBookmarkTagsNovelPage, UserBookmarkTagsNovelParams, UserBookmarksIllustPage, UserBookmarksIllustParams, UserBookmarksNovelPage, UserBookmarksNovelParams, UserDetailParams, UserDetailResponse, UserDetailV2Response, UserEditAiShowSettingsParams, UserFollowAddParams, UserFollowDeleteParams, UserFollowDetailParams, UserFollowDetailResponse, UserFollowerPage, UserFollowerParams, UserFollowingPage, UserFollowingParams, UserIllustsPage, UserIllustsParams, UserListPage, UserListParams, UserMeProfile, UserMeState, UserMeStateResponse, UserMypixivPage, UserMypixivParams, UserNovelsPage, UserNovelsParams, UserRecommendedPage, UserRecommendedParams, UserRelatedPage, UserRelatedParams, UserSearchPage, UserSearchParams, WatchlistMangaPage, WatchlistNovelPage, WatchlistSeries, WebviewNovel, WebviewNovelNavigationInfo, WebviewNovelRating, WebviewNovelSeriesNavigation, ZipUrls };
3116
+ export type { AiShowSettingsResponse, BookmarkDetail, BookmarkDetailTag, BookmarkTag, ErrResult, FollowDetail, Frame, HasUnreadNotificationsResponse, HttpMethod, IllustBookmarkAddParams, IllustBookmarkDeleteParams, IllustBookmarkDetailParams, IllustBookmarkDetailResponse, IllustComment, IllustCommentRepliesPage, IllustCommentRepliesParams, IllustCommentStamp, IllustCommentsPage, IllustCommentsParams, IllustDetailParams, IllustDetailResponse, IllustFollowParams, IllustListPage, IllustMypixivParams, IllustNewParams, IllustPopularPreviewParams, IllustPopularPreviewResponse, IllustRankingParams, IllustRecommendedPage, IllustRecommendedParams, IllustRelatedParams, IllustRequest, IllustRequestCollaborateStatus, IllustRequestCollaborateUserSample, IllustRequestInfo, IllustRequestUser, IllustResource, IllustSearchParams, IllustSeriesDetail, IllustSeriesPage, IllustSeriesParams, IllustTrendingTagsParams, ImageResource, ImageUrls, MangaRecommendedPage, MangaRecommendedParams, MangaResource, MarkedNovel, MetaPages, MetaSinglePage, MuteListResponse, MutedTag, NovelBookmarkAddParams, NovelBookmarkDeleteParams, NovelBookmarkUsersPage, NovelBookmarkUsersParams, NovelComment, NovelCommentRepliesPage, NovelCommentRepliesParams, NovelCommentsPage, NovelCommentsParams, NovelDetailParams, NovelDetailResponse, NovelFollowParams, NovelListPage, NovelMarker, NovelMarkersPage, NovelMypixivParams, NovelNewParams, NovelPopularPreviewParams, NovelPopularPreviewResponse, NovelRankingParams, NovelRecommendedPage, NovelRecommendedParams, NovelRelatedParams, NovelResource, NovelSearchParams, NovelSeriesDetail, NovelSeriesPage, NovelSeriesParams, NovelTextParams, NovelViewedEntry, OkResult, PagedResponse, ParsedNextUrl, PixivApiErrorBody, PixivClientOptions, PixivError, PixivIllustItem, PixivNovelItem, PixivUgoiraItem, PixivUser, PixivUserItem, PixivUserPreviewItem, PixivUserProfile, PixivUserProfileBadge, PixivUserProfilePublicity, PixivUserProfilePublicityV2, PixivUserProfileV2, PixivUserProfileWorkspace, PixivUserProfileWorkspaceV2, PrivacyPolicy, ProfileImageUrls, RateLimitRetryOptions, ResponseInterceptor, ResponseRecord, RestrictedModeSettingsResponse, Result, Series, SpotlightArticle, SpotlightArticlesPage, SpotlightArticlesParams, SpotlightResource, Tag, TrendingTagIllust, TrendingTagsIllustResponse, TrendingTagsNovelResponse, UgoiraMetadataParams, UgoiraMetadataResponse, UgoiraResource, UserBookmarkTagsIllustPage, UserBookmarkTagsIllustParams, UserBookmarkTagsNovelPage, UserBookmarkTagsNovelParams, UserBookmarksIllustPage, UserBookmarksIllustParams, UserBookmarksNovelPage, UserBookmarksNovelParams, UserBookmarksResource, UserDetailParams, UserDetailResponse, UserDetailV2Response, UserEditAiShowSettingsParams, UserFollowAddParams, UserFollowDeleteParams, UserFollowDetailParams, UserFollowDetailResponse, UserFollowerPage, UserFollowerParams, UserFollowingPage, UserFollowingParams, UserIllustsPage, UserIllustsParams, UserListPage, UserListParams, UserMeProfile, UserMeState, UserMeStateResponse, UserMypixivPage, UserMypixivParams, UserNovelsPage, UserNovelsParams, UserRecommendedPage, UserRecommendedParams, UserRelatedPage, UserRelatedParams, UserResource, UserSearchPage, UserSearchParams, WatchlistMangaPage, WatchlistNovelPage, WatchlistSeries, WebviewNovel, WebviewNovelNavigationInfo, WebviewNovelRating, WebviewNovelSeriesNavigation, ZipUrls };
3123
3117
  //# 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/spotlight.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,OAA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ACE,SAAQ,yBACP,qBAAqB,sBAAsB;;;;;;;EAsB9C,aAAa,qBAAqB,oBAAoB;;;;;UClDvC;;EAEf;;;cAIW;;EAGC,YAAA,MAAM;;;;;;;EAUlB,SACE,QAAQ,uBACP,YAAY,wBAAwB;;;;;cCvB5B;;EAGC,YAAA,MAAM;;;;;;;;;EAYlB,MAAM,mBAAmB,YAAY,UAAU;;;;;UCChC;;EAEf,QAAQ,QAAQ;;EAEhB,aAAa;;;;;;;;qBASF;;;WAEF,SAAS;;WAET,QAAQ;;WAER,OAAO;;WAEP,OAAO;;WAEP,QAAQ;;WAER,WAAW;;WAEX,QAAQ;UAIV;;;;;;;;;;;;;;;MAyBH;;;;;;;;;;EAiBJ;;;;;;;;;EAYA;;;;;;;;SAWa,GACX,sBACA,UAAU,qBACT,QAAQ"}
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/spotlight.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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BAAmB,YAAY,UAAU;;;UCChC;;EAEf,QAAQ,QAAQ;;EAEhB,aAAa;;;;;;;;qBASF;;;WAEF,SAAS;;WAET,QAAQ;;WAER,OAAO;;WAEP,OAAO;;WAEP,QAAQ;;WAER,WAAW;;WAEX,QAAQ;UAIV;;;;;;;;;;;;;;;MAyBH;;;;;;;;;;EAiBJ;;;;;;;;;EAYA;;;;;;;;SAWa,GACX,sBACA,UAAU,qBACT,QAAQ"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/result.ts
1
+ // src/result.ts
2
2
  var OkResultImpl = class OkResultImpl {
3
3
  value;
4
4
  isOk = true;
@@ -155,8 +155,7 @@ var ResultAsync = class ResultAsync {
155
155
  return r.isOk ? r.value : fallback;
156
156
  }
157
157
  };
158
- //#endregion
159
- //#region src/errors.ts
158
+ // src/errors.ts
160
159
  /**
161
160
  * An `Error` subclass that wraps a `PixivError` for use in thrown contexts
162
161
  * (e.g. async generators that must throw proper `Error` objects).
@@ -185,6 +184,42 @@ var PixivFetchError = class extends Error {
185
184
  Object.assign(this, pixivError);
186
185
  }
187
186
  };
187
+ const MAX_AUTH_BODY_LENGTH = 200;
188
+ /**
189
+ * Replaces control characters, redacts token-like strings and truncates to
190
+ * `MAX_AUTH_BODY_LENGTH` characters, so the result is safe to log on one line.
191
+ */
192
+ function sanitizeAuthBody(raw) {
193
+ const redacted = raw.replaceAll(/\p{Cc}/gu, " ").replaceAll(/[\w-]{20,}/g, "[REDACTED]");
194
+ return redacted.length > MAX_AUTH_BODY_LENGTH ? `${redacted.slice(0, MAX_AUTH_BODY_LENGTH)}...` : redacted;
195
+ }
196
+ /**
197
+ * Thrown by `AuthManager.refresh()` when the token endpoint returns a non-200
198
+ * response. The message keeps the `Failed to refresh pixiv token: HTTP <status>`
199
+ * prefix and appends the error code when one is available (for example
200
+ * `invalid_grant` for a revoked refresh token).
201
+ */
202
+ var PixivAuthError = class extends Error {
203
+ /** HTTP status code of the token endpoint response. */
204
+ status;
205
+ /** OAuth `error` code or pixiv `errors.system.message`, if present in the JSON body. */
206
+ code;
207
+ /** Truncated response body with token-like strings redacted. */
208
+ body;
209
+ constructor(status, rawBody) {
210
+ let code;
211
+ try {
212
+ const json = JSON.parse(rawBody);
213
+ const c = json.error ?? json.errors?.system?.message;
214
+ if (typeof c === "string") code = sanitizeAuthBody(c);
215
+ } catch {}
216
+ super(`Failed to refresh pixiv token: HTTP ${status}${code ? ` (${code})` : ""}`);
217
+ this.name = "PixivAuthError";
218
+ this.status = status;
219
+ this.code = code;
220
+ this.body = sanitizeAuthBody(rawBody);
221
+ }
222
+ };
188
223
  /** Creates a rate-limit error. */
189
224
  function rateLimitError(retryAfter) {
190
225
  return {
@@ -223,8 +258,7 @@ function parseError(message, body, cause) {
223
258
  cause
224
259
  };
225
260
  }
226
- //#endregion
227
- //#region src/paginated.ts
261
+ // src/paginated.ts
228
262
  /**
229
263
  * A `ResultAsync<TPage, PixivError>` with additional `.pages()` / `.items()`
230
264
  * async generators for consuming paginated pixiv list responses.
@@ -302,14 +336,13 @@ var PaginatedResultAsync = class PaginatedResultAsync extends ResultAsync {
302
336
  function failedPaginated(error, http, getItems) {
303
337
  return new PaginatedResultAsync(Promise.resolve(err(error)), http, getItems);
304
338
  }
305
- //#endregion
306
- //#region src/params.ts
339
+ // src/params.ts
307
340
  /**
308
341
  * Parameter building utilities.
309
342
  *
310
- * Provides camelCase → snake_case conversion and a URLSearchParams builder
311
- * that replicates the behaviour of the `qs` library used in the legacy code
312
- * (without the `qs` runtime dependency).
343
+ * Provides camelCase ↔ snake_case key conversion, a `URLSearchParams` builder
344
+ * that serialises arrays as `key[]=value` (the Rails convention the pixiv API
345
+ * expects), and `parseNextUrl` for extracting pagination cursors.
313
346
  */
314
347
  /**
315
348
  * Converts a camelCase string to snake_case.
@@ -447,8 +480,7 @@ function parseNextUrl(url) {
447
480
  if (lastOrder !== void 0) result.lastOrder = lastOrder;
448
481
  return result;
449
482
  }
450
- //#endregion
451
- //#region src/options.ts
483
+ // src/options.ts
452
484
  /**
453
485
  * Public option constants for @book000/pixivts.
454
486
  *
@@ -578,8 +610,17 @@ const UserIllustType = {
578
610
  ILLUST: "illust",
579
611
  MANGA: "manga"
580
612
  };
581
- //#endregion
582
- //#region src/auth.ts
613
+ // src/auth.ts
614
+ /**
615
+ * Authentication manager for the pixiv API.
616
+ *
617
+ * Handles the OAuth 2.0 token refresh flow and generates the
618
+ * x-client-hash header required by the pixiv iOS app API.
619
+ *
620
+ * The MD5 implementation is pure TypeScript to ensure Edge/browser compatibility —
621
+ * Node's `crypto.createHash('md5')` is unavailable in Edge runtimes, and
622
+ * `crypto.subtle` does not support MD5.
623
+ */
583
624
  const T = Array.from({ length: 64 }, (_, i) => Math.floor(Math.abs(Math.sin(i + 1)) * 2 ** 32));
584
625
  const S = [
585
626
  7,
@@ -711,21 +752,15 @@ function md5Bytes(bytes) {
711
752
  /**
712
753
  * Produces a hex-encoded MD5 digest of `input`.
713
754
  *
714
- * This is a minimal, spec-compliant implementation (RFC 1321) that avoids
715
- * any runtime platform dependency.
755
+ * This is a minimal, spec-compliant implementation (RFC 1321) that uses no
756
+ * Node-specific APIs; the only platform requirement is the standard
757
+ * `TextEncoder` global for UTF-8 encoding.
716
758
  *
717
759
  * @param input - UTF-8 string to hash
718
760
  * @returns Lowercase hex-encoded MD5 digest
719
761
  */
720
762
  function md5(input) {
721
- const bytes = [];
722
- for (let i = 0; i < input.length; i++) {
723
- const code = input.codePointAt(i) ?? 0;
724
- if (code < 128) bytes.push(code);
725
- else if (code < 2048) bytes.push(192 | code >> 6, 128 | code & 63);
726
- else bytes.push(224 | code >> 12, 128 | code >> 6 & 63, 128 | code & 63);
727
- }
728
- return md5Bytes(bytes);
763
+ return md5Bytes([...new TextEncoder().encode(input)]);
729
764
  }
730
765
  const CLIENT_ID = "MOBrBDS8blbauoSck0ZfDbtuzpyT";
731
766
  const CLIENT_SECRET = "lsACyCD94FhDUtGTXi3QzcFE2uU1hqtDaKeqrdwj";
@@ -763,7 +798,7 @@ var AuthManager = class AuthManager {
763
798
  * Exchanges the stored refresh token for a fresh access token.
764
799
  *
765
800
  * Updates the internal credentials on success.
766
- * Throws if the token endpoint returns a non-200 response.
801
+ * Throws `PixivAuthError` if the token endpoint returns a non-200 response.
767
802
  */
768
803
  async refresh() {
769
804
  const localTime = (/* @__PURE__ */ new Date()).toISOString().replace(/Z$/, "+00:00");
@@ -787,7 +822,7 @@ var AuthManager = class AuthManager {
787
822
  headers,
788
823
  body
789
824
  });
790
- if (response.status !== 200) throw new Error(`Failed to refresh pixiv token: HTTP ${response.status}`);
825
+ if (response.status !== 200) throw new PixivAuthError(response.status, await response.text().catch(() => ""));
791
826
  const data = await response.json();
792
827
  this.#accessToken = data.response.access_token;
793
828
  this.#refreshToken = data.response.refresh_token;
@@ -809,8 +844,7 @@ var AuthManager = class AuthManager {
809
844
  return manager;
810
845
  }
811
846
  };
812
- //#endregion
813
- //#region src/http.ts
847
+ // src/http.ts
814
848
  const DEFAULT_RETRY = {
815
849
  maxRetries: 3,
816
850
  waitMs: 1e4
@@ -897,7 +931,7 @@ var HttpClient = class {
897
931
  "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36",
898
932
  Referer: "https://www.pixiv.net/"
899
933
  } }), networkError).andThen((response) => {
900
- return response.ok ? ResultAsync.fromResult(ok(response)) : ResultAsync.fromResult(err(apiError(response.status, null)));
934
+ return ResultAsync.fromResult(response.ok ? ok(response) : err(apiError(response.status, null)));
901
935
  });
902
936
  }
903
937
  /**
@@ -983,7 +1017,8 @@ var HttpClient = class {
983
1017
  responseUrl: response.url || void 0,
984
1018
  endpoint
985
1019
  };
986
- if (this.#interceptor) {
1020
+ const interceptor = this.#interceptor;
1021
+ if (interceptor) {
987
1022
  const record = {
988
1023
  method,
989
1024
  endpoint,
@@ -995,15 +1030,16 @@ var HttpClient = class {
995
1030
  responseHeaders: JSON.stringify(responseHeaders),
996
1031
  responseBody: text
997
1032
  };
998
- Promise.resolve(this.#interceptor(record)).catch(() => void 0);
1033
+ new Promise((resolve) => {
1034
+ resolve(interceptor(record));
1035
+ }).catch(() => void 0);
999
1036
  }
1000
1037
  return ok(httpResponse.data);
1001
1038
  }
1002
1039
  return err(rateLimitError(lastRetryAfterMs));
1003
1040
  }
1004
1041
  };
1005
- //#endregion
1006
- //#region src/resources/illusts.ts
1042
+ // src/resources/illusts.ts
1007
1043
  /** Methods for the illust API namespace. */
1008
1044
  var IllustResource = class {
1009
1045
  #http;
@@ -1255,8 +1291,7 @@ var IllustResource = class {
1255
1291
  return this.#http.get("/v1/trending-tags/illust", buildParams({ filter: params.filter ?? "for_ios" }));
1256
1292
  }
1257
1293
  };
1258
- //#endregion
1259
- //#region src/webview-novel.ts
1294
+ // src/webview-novel.ts
1260
1295
  /**
1261
1296
  * Parses the structured novel data embedded in the WebView HTML page
1262
1297
  * (GET /webview/v2/novel).
@@ -1293,8 +1328,7 @@ function parseWebviewNovel(html) {
1293
1328
  const camelized = camelizeKeys(parsed);
1294
1329
  return isWebviewNovelShape(camelized) ? ok(camelized) : err(parseError("Embedded novel JSON does not match the expected WebviewNovel shape", html));
1295
1330
  }
1296
- //#endregion
1297
- //#region src/resources/novels.ts
1331
+ // src/resources/novels.ts
1298
1332
  /**
1299
1333
  * Formats a view timestamp as ISO 8601 with milliseconds and the local UTC
1300
1334
  * offset of that instant. Strings are returned unchanged.
@@ -1596,8 +1630,7 @@ var NovelResource = class {
1596
1630
  })), this.#http, (page) => page.novels);
1597
1631
  }
1598
1632
  };
1599
- //#endregion
1600
- //#region src/resources/users.ts
1633
+ // src/resources/users.ts
1601
1634
  /** Methods for the user bookmarks sub-namespace. */
1602
1635
  var UserBookmarksResource = class {
1603
1636
  #http;
@@ -1939,8 +1972,7 @@ var UserResource = class {
1939
1972
  return this.#http.get("/v1/notification/has-unread-notifications");
1940
1973
  }
1941
1974
  };
1942
- //#endregion
1943
- //#region src/resources/manga.ts
1975
+ // src/resources/manga.ts
1944
1976
  /** Methods for the manga API namespace. */
1945
1977
  var MangaResource = class {
1946
1978
  #http;
@@ -1971,8 +2003,7 @@ var MangaResource = class {
1971
2003
  return PaginatedResultAsync.fromResultAsync(this.#http.get("/v1/watchlist/manga"), this.#http, (page) => page.series);
1972
2004
  }
1973
2005
  };
1974
- //#endregion
1975
- //#region src/resources/ugoira.ts
2006
+ // src/resources/ugoira.ts
1976
2007
  /** Methods for the ugoira API namespace. */
1977
2008
  var UgoiraResource = class {
1978
2009
  #http;
@@ -1989,8 +2020,7 @@ var UgoiraResource = class {
1989
2020
  return this.#http.get("/v1/ugoira/metadata", buildParams({ illustId: params.illustId }));
1990
2021
  }
1991
2022
  };
1992
- //#endregion
1993
- //#region src/resources/spotlight.ts
2023
+ // src/resources/spotlight.ts
1994
2024
  /** Methods for the pixivision spotlight API namespace. */
1995
2025
  var SpotlightResource = class {
1996
2026
  #http;
@@ -2011,8 +2041,7 @@ var SpotlightResource = class {
2011
2041
  })), this.#http, (page) => page.spotlightArticles);
2012
2042
  }
2013
2043
  };
2014
- //#endregion
2015
- //#region src/resources/images.ts
2044
+ // src/resources/images.ts
2016
2045
  /** Methods for fetching pixiv images. */
2017
2046
  var ImageResource = class {
2018
2047
  #http;
@@ -2031,8 +2060,7 @@ var ImageResource = class {
2031
2060
  return this.#http.fetchImage(imageUrl);
2032
2061
  }
2033
2062
  };
2034
- //#endregion
2035
- //#region src/client.ts
2063
+ // src/client.ts
2036
2064
  /**
2037
2065
  * PixivClient — main entry point for the @book000/pixivts library.
2038
2066
  *
@@ -2130,7 +2158,6 @@ var PixivClient = class PixivClient {
2130
2158
  return new PixivClient(auth, http);
2131
2159
  }
2132
2160
  };
2133
- //#endregion
2134
- export { BookmarkRestrict, FollowRestrict, NovelRankingMode, OSFilter, PaginatedResultAsync, PixivClient, PixivFetchError, RankingMode, ResultAsync, SearchDuration, SearchSort, SearchTarget, UserIllustType, apiError, authFailedError, err, failedPaginated, networkError, ok, parseError, parseNextUrl, rateLimitError };
2161
+ export { BookmarkRestrict, FollowRestrict, NovelRankingMode, OSFilter, PaginatedResultAsync, PixivAuthError, PixivClient, PixivFetchError, RankingMode, ResultAsync, SearchDuration, SearchSort, SearchTarget, UserIllustType, apiError, authFailedError, err, failedPaginated, networkError, ok, parseError, parseNextUrl, rateLimitError };
2135
2162
 
2136
2163
  //# sourceMappingURL=index.js.map