@book000/pixivts 0.64.1-beta.4 → 0.64.1-beta.40

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/result.ts
2
+ // src/result.ts
3
3
  var OkResultImpl = class OkResultImpl {
4
4
  value;
5
5
  isOk = true;
@@ -156,8 +156,7 @@ var ResultAsync = class ResultAsync {
156
156
  return r.isOk ? r.value : fallback;
157
157
  }
158
158
  };
159
- //#endregion
160
- //#region src/errors.ts
159
+ // src/errors.ts
161
160
  /**
162
161
  * An `Error` subclass that wraps a `PixivError` for use in thrown contexts
163
162
  * (e.g. async generators that must throw proper `Error` objects).
@@ -186,6 +185,42 @@ var PixivFetchError = class extends Error {
186
185
  Object.assign(this, pixivError);
187
186
  }
188
187
  };
188
+ const MAX_AUTH_BODY_LENGTH = 200;
189
+ /**
190
+ * Replaces control characters, redacts token-like strings and truncates to
191
+ * `MAX_AUTH_BODY_LENGTH` characters, so the result is safe to log on one line.
192
+ */
193
+ function sanitizeAuthBody(raw) {
194
+ const redacted = raw.replaceAll(/\p{Cc}/gu, " ").replaceAll(/[\w-]{20,}/g, "[REDACTED]");
195
+ return redacted.length > MAX_AUTH_BODY_LENGTH ? `${redacted.slice(0, MAX_AUTH_BODY_LENGTH)}...` : redacted;
196
+ }
197
+ /**
198
+ * Thrown by `AuthManager.refresh()` when the token endpoint returns a non-200
199
+ * response. The message keeps the `Failed to refresh pixiv token: HTTP <status>`
200
+ * prefix and appends the error code when one is available (for example
201
+ * `invalid_grant` for a revoked refresh token).
202
+ */
203
+ var PixivAuthError = class extends Error {
204
+ /** HTTP status code of the token endpoint response. */
205
+ status;
206
+ /** OAuth `error` code or pixiv `errors.system.message`, if present in the JSON body. */
207
+ code;
208
+ /** Truncated response body with token-like strings redacted. */
209
+ body;
210
+ constructor(status, rawBody) {
211
+ let code;
212
+ try {
213
+ const json = JSON.parse(rawBody);
214
+ const c = json.error ?? json.errors?.system?.message;
215
+ if (typeof c === "string") code = sanitizeAuthBody(c);
216
+ } catch {}
217
+ super(`Failed to refresh pixiv token: HTTP ${status}${code ? ` (${code})` : ""}`);
218
+ this.name = "PixivAuthError";
219
+ this.status = status;
220
+ this.code = code;
221
+ this.body = sanitizeAuthBody(rawBody);
222
+ }
223
+ };
189
224
  /** Creates a rate-limit error. */
190
225
  function rateLimitError(retryAfter) {
191
226
  return {
@@ -224,8 +259,7 @@ function parseError(message, body, cause) {
224
259
  cause
225
260
  };
226
261
  }
227
- //#endregion
228
- //#region src/paginated.ts
262
+ // src/paginated.ts
229
263
  /**
230
264
  * A `ResultAsync<TPage, PixivError>` with additional `.pages()` / `.items()`
231
265
  * async generators for consuming paginated pixiv list responses.
@@ -303,8 +337,7 @@ var PaginatedResultAsync = class PaginatedResultAsync extends ResultAsync {
303
337
  function failedPaginated(error, http, getItems) {
304
338
  return new PaginatedResultAsync(Promise.resolve(err(error)), http, getItems);
305
339
  }
306
- //#endregion
307
- //#region src/params.ts
340
+ // src/params.ts
308
341
  /**
309
342
  * Parameter building utilities.
310
343
  *
@@ -448,8 +481,7 @@ function parseNextUrl(url) {
448
481
  if (lastOrder !== void 0) result.lastOrder = lastOrder;
449
482
  return result;
450
483
  }
451
- //#endregion
452
- //#region src/options.ts
484
+ // src/options.ts
453
485
  /**
454
486
  * Public option constants for @book000/pixivts.
455
487
  *
@@ -579,8 +611,17 @@ const UserIllustType = {
579
611
  ILLUST: "illust",
580
612
  MANGA: "manga"
581
613
  };
582
- //#endregion
583
- //#region src/auth.ts
614
+ // src/auth.ts
615
+ /**
616
+ * Authentication manager for the pixiv API.
617
+ *
618
+ * Handles the OAuth 2.0 token refresh flow and generates the
619
+ * x-client-hash header required by the pixiv iOS app API.
620
+ *
621
+ * The MD5 implementation is pure TypeScript to ensure Edge/browser compatibility —
622
+ * Node's `crypto.createHash('md5')` is unavailable in Edge runtimes, and
623
+ * `crypto.subtle` does not support MD5 (non-cryptographic hash).
624
+ */
584
625
  const T = Array.from({ length: 64 }, (_, i) => Math.floor(Math.abs(Math.sin(i + 1)) * 2 ** 32));
585
626
  const S = [
586
627
  7,
@@ -764,7 +805,7 @@ var AuthManager = class AuthManager {
764
805
  * Exchanges the stored refresh token for a fresh access token.
765
806
  *
766
807
  * Updates the internal credentials on success.
767
- * Throws if the token endpoint returns a non-200 response.
808
+ * Throws `PixivAuthError` if the token endpoint returns a non-200 response.
768
809
  */
769
810
  async refresh() {
770
811
  const localTime = (/* @__PURE__ */ new Date()).toISOString().replace(/Z$/, "+00:00");
@@ -788,7 +829,7 @@ var AuthManager = class AuthManager {
788
829
  headers,
789
830
  body
790
831
  });
791
- if (response.status !== 200) throw new Error(`Failed to refresh pixiv token: HTTP ${response.status}`);
832
+ if (response.status !== 200) throw new PixivAuthError(response.status, await response.text().catch(() => ""));
792
833
  const data = await response.json();
793
834
  this.#accessToken = data.response.access_token;
794
835
  this.#refreshToken = data.response.refresh_token;
@@ -810,8 +851,7 @@ var AuthManager = class AuthManager {
810
851
  return manager;
811
852
  }
812
853
  };
813
- //#endregion
814
- //#region src/http.ts
854
+ // src/http.ts
815
855
  const DEFAULT_RETRY = {
816
856
  maxRetries: 3,
817
857
  waitMs: 1e4
@@ -898,7 +938,7 @@ var HttpClient = class {
898
938
  "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",
899
939
  Referer: "https://www.pixiv.net/"
900
940
  } }), networkError).andThen((response) => {
901
- return response.ok ? ResultAsync.fromResult(ok(response)) : ResultAsync.fromResult(err(apiError(response.status, null)));
941
+ return ResultAsync.fromResult(response.ok ? ok(response) : err(apiError(response.status, null)));
902
942
  });
903
943
  }
904
944
  /**
@@ -1003,8 +1043,7 @@ var HttpClient = class {
1003
1043
  return err(rateLimitError(lastRetryAfterMs));
1004
1044
  }
1005
1045
  };
1006
- //#endregion
1007
- //#region src/resources/illusts.ts
1046
+ // src/resources/illusts.ts
1008
1047
  /** Methods for the illust API namespace. */
1009
1048
  var IllustResource = class {
1010
1049
  #http;
@@ -1256,8 +1295,7 @@ var IllustResource = class {
1256
1295
  return this.#http.get("/v1/trending-tags/illust", buildParams({ filter: params.filter ?? "for_ios" }));
1257
1296
  }
1258
1297
  };
1259
- //#endregion
1260
- //#region src/webview-novel.ts
1298
+ // src/webview-novel.ts
1261
1299
  /**
1262
1300
  * Parses the structured novel data embedded in the WebView HTML page
1263
1301
  * (GET /webview/v2/novel).
@@ -1294,8 +1332,7 @@ function parseWebviewNovel(html) {
1294
1332
  const camelized = camelizeKeys(parsed);
1295
1333
  return isWebviewNovelShape(camelized) ? ok(camelized) : err(parseError("Embedded novel JSON does not match the expected WebviewNovel shape", html));
1296
1334
  }
1297
- //#endregion
1298
- //#region src/resources/novels.ts
1335
+ // src/resources/novels.ts
1299
1336
  /**
1300
1337
  * Formats a view timestamp as ISO 8601 with milliseconds and the local UTC
1301
1338
  * offset of that instant. Strings are returned unchanged.
@@ -1597,8 +1634,7 @@ var NovelResource = class {
1597
1634
  })), this.#http, (page) => page.novels);
1598
1635
  }
1599
1636
  };
1600
- //#endregion
1601
- //#region src/resources/users.ts
1637
+ // src/resources/users.ts
1602
1638
  /** Methods for the user bookmarks sub-namespace. */
1603
1639
  var UserBookmarksResource = class {
1604
1640
  #http;
@@ -1940,8 +1976,7 @@ var UserResource = class {
1940
1976
  return this.#http.get("/v1/notification/has-unread-notifications");
1941
1977
  }
1942
1978
  };
1943
- //#endregion
1944
- //#region src/resources/manga.ts
1979
+ // src/resources/manga.ts
1945
1980
  /** Methods for the manga API namespace. */
1946
1981
  var MangaResource = class {
1947
1982
  #http;
@@ -1972,8 +2007,7 @@ var MangaResource = class {
1972
2007
  return PaginatedResultAsync.fromResultAsync(this.#http.get("/v1/watchlist/manga"), this.#http, (page) => page.series);
1973
2008
  }
1974
2009
  };
1975
- //#endregion
1976
- //#region src/resources/ugoira.ts
2010
+ // src/resources/ugoira.ts
1977
2011
  /** Methods for the ugoira API namespace. */
1978
2012
  var UgoiraResource = class {
1979
2013
  #http;
@@ -1990,8 +2024,7 @@ var UgoiraResource = class {
1990
2024
  return this.#http.get("/v1/ugoira/metadata", buildParams({ illustId: params.illustId }));
1991
2025
  }
1992
2026
  };
1993
- //#endregion
1994
- //#region src/resources/spotlight.ts
2027
+ // src/resources/spotlight.ts
1995
2028
  /** Methods for the pixivision spotlight API namespace. */
1996
2029
  var SpotlightResource = class {
1997
2030
  #http;
@@ -2012,8 +2045,7 @@ var SpotlightResource = class {
2012
2045
  })), this.#http, (page) => page.spotlightArticles);
2013
2046
  }
2014
2047
  };
2015
- //#endregion
2016
- //#region src/resources/images.ts
2048
+ // src/resources/images.ts
2017
2049
  /** Methods for fetching pixiv images. */
2018
2050
  var ImageResource = class {
2019
2051
  #http;
@@ -2032,8 +2064,7 @@ var ImageResource = class {
2032
2064
  return this.#http.fetchImage(imageUrl);
2033
2065
  }
2034
2066
  };
2035
- //#endregion
2036
- //#region src/client.ts
2067
+ // src/client.ts
2037
2068
  /**
2038
2069
  * PixivClient — main entry point for the @book000/pixivts library.
2039
2070
  *
@@ -2131,12 +2162,12 @@ var PixivClient = class PixivClient {
2131
2162
  return new PixivClient(auth, http);
2132
2163
  }
2133
2164
  };
2134
- //#endregion
2135
2165
  exports.BookmarkRestrict = BookmarkRestrict;
2136
2166
  exports.FollowRestrict = FollowRestrict;
2137
2167
  exports.NovelRankingMode = NovelRankingMode;
2138
2168
  exports.OSFilter = OSFilter;
2139
2169
  exports.PaginatedResultAsync = PaginatedResultAsync;
2170
+ exports.PixivAuthError = PixivAuthError;
2140
2171
  exports.PixivClient = PixivClient;
2141
2172
  exports.PixivFetchError = PixivFetchError;
2142
2173
  exports.RankingMode = RankingMode;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/result.d.ts
2
1
  /**
3
2
  * Zero-dependency Result / ResultAsync implementation.
4
3
  *
@@ -138,8 +137,6 @@ export declare class ResultAsync<T, E> implements PromiseLike<Result<T, E>> {
138
137
  */
139
138
  unwrapOr(fallback: T): Promise<T>;
140
139
  }
141
- //#endregion
142
- //#region src/auth.d.ts
143
140
  /**
144
141
  * Authentication manager for the pixiv API.
145
142
  *
@@ -178,7 +175,7 @@ declare class AuthManager {
178
175
  * Exchanges the stored refresh token for a fresh access token.
179
176
  *
180
177
  * Updates the internal credentials on success.
181
- * Throws if the token endpoint returns a non-200 response.
178
+ * Throws `PixivAuthError` if the token endpoint returns a non-200 response.
182
179
  */
183
180
  refresh(): Promise<void>;
184
181
  /**
@@ -189,8 +186,6 @@ declare class AuthManager {
189
186
  */
190
187
  static login(refreshToken: string): Promise<AuthManager>;
191
188
  }
192
- //#endregion
193
- //#region src/interceptor.d.ts
194
189
  /**
195
190
  * Response interceptor types for the pixiv API client.
196
191
  *
@@ -239,8 +234,6 @@ interface ResponseRecord {
239
234
  * asynchronously if persistence latency matters.
240
235
  */
241
236
  type ResponseInterceptor = (record: ResponseRecord) => void | Promise<void>;
242
- //#endregion
243
- //#region src/errors.d.ts
244
237
  /**
245
238
  * Discriminated union of all errors that can occur when using the pixiv API client.
246
239
  *
@@ -307,6 +300,21 @@ export declare class PixivFetchError extends Error {
307
300
  readonly pixivError: PixivError;
308
301
  constructor(pixivError: PixivError);
309
302
  }
303
+ /**
304
+ * Thrown by `AuthManager.refresh()` when the token endpoint returns a non-200
305
+ * response. The message keeps the `Failed to refresh pixiv token: HTTP <status>`
306
+ * prefix and appends the error code when one is available (for example
307
+ * `invalid_grant` for a revoked refresh token).
308
+ */
309
+ export declare class PixivAuthError extends Error {
310
+ /** HTTP status code of the token endpoint response. */
311
+ readonly status: number;
312
+ /** OAuth `error` code or pixiv `errors.system.message`, if present in the JSON body. */
313
+ readonly code?: string;
314
+ /** Truncated response body with token-like strings redacted. */
315
+ readonly body: string;
316
+ constructor(status: number, rawBody: string);
317
+ }
310
318
  /** Creates a rate-limit error. */
311
319
  export declare function rateLimitError(retryAfter: number): PixivError;
312
320
  /** Creates an auth-failed error. */
@@ -317,8 +325,6 @@ export declare function networkError(cause: unknown): PixivError;
317
325
  export declare function apiError(status: number, body: unknown): PixivError;
318
326
  /** Creates a parse error. */
319
327
  export declare function parseError(message: string, body: string, cause?: unknown): PixivError;
320
- //#endregion
321
- //#region src/http.d.ts
322
328
  /** Options for controlling retry behaviour on rate-limited requests. */
323
329
  interface RateLimitRetryOptions {
324
330
  /** Maximum number of retries when a 429 response is received. Defaults to 3. */
@@ -374,8 +380,6 @@ declare class HttpClient {
374
380
  */
375
381
  getAbsolute<T>(absoluteUrl: string): ResultAsync<T, PixivError>;
376
382
  }
377
- //#endregion
378
- //#region src/paginated.d.ts
379
383
  /**
380
384
  * A page returned by a pixiv list endpoint.
381
385
  *
@@ -439,8 +443,6 @@ export declare class PaginatedResultAsync<TPage extends PagedResponse, TItem> ex
439
443
  * @param getItems - Item extractor (used for signature compatibility)
440
444
  */
441
445
  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
446
  /**
445
447
  * Typed cursor parameters extracted from a pixiv `next_url`.
446
448
  *
@@ -490,8 +492,6 @@ interface ParsedNextUrl {
490
492
  * @returns Typed cursor parameters; fields absent in the URL are `undefined`
491
493
  */
492
494
  export declare function parseNextUrl(url: string): ParsedNextUrl;
493
- //#endregion
494
- //#region src/options.d.ts
495
495
  /**
496
496
  * Public option constants for @book000/pixivts.
497
497
  *
@@ -621,8 +621,6 @@ export declare const UserIllustType: {
621
621
  readonly ILLUST: "illust";
622
622
  readonly MANGA: "manga";
623
623
  };
624
- //#endregion
625
- //#region src/types.d.ts
626
624
  /**
627
625
  * Public types for @book000/pixivts.
628
626
  *
@@ -1870,8 +1868,6 @@ interface UserFollowDetailResponse {
1870
1868
  /** Follow state for the requested user. */
1871
1869
  followDetail: FollowDetail;
1872
1870
  }
1873
- //#endregion
1874
- //#region src/resources/illusts.d.ts
1875
1871
  /** Parameters for fetching a single illust by ID. */
1876
1872
  interface IllustDetailParams {
1877
1873
  /** ID of the illust to fetch. */
@@ -2210,8 +2206,6 @@ declare class IllustResource {
2210
2206
  */
2211
2207
  trendingTags(params?: IllustTrendingTagsParams): ResultAsync<TrendingTagsIllustResponse, PixivError>;
2212
2208
  }
2213
- //#endregion
2214
- //#region src/resources/novels.d.ts
2215
2209
  /** Parameters for fetching a single novel by ID. */
2216
2210
  interface NovelDetailParams {
2217
2211
  /** ID of the novel to fetch. */
@@ -2573,8 +2567,6 @@ declare class NovelResource {
2573
2567
  */
2574
2568
  new(params?: NovelNewParams): PaginatedResultAsync<NovelListPage, PixivNovelItem>;
2575
2569
  }
2576
- //#endregion
2577
- //#region src/resources/users.d.ts
2578
2570
  /** Parameters for fetching a user's bookmarked illusts. */
2579
2571
  interface UserBookmarksIllustParams {
2580
2572
  /** ID of the user whose bookmarks to fetch. */
@@ -2952,8 +2944,6 @@ declare class UserResource {
2952
2944
  */
2953
2945
  hasUnreadNotifications(): ResultAsync<HasUnreadNotificationsResponse, PixivError>;
2954
2946
  }
2955
- //#endregion
2956
- //#region src/resources/spotlight.d.ts
2957
2947
  /** Parameters for fetching spotlight articles. */
2958
2948
  interface SpotlightArticlesParams {
2959
2949
  /**
@@ -2980,8 +2970,6 @@ declare class SpotlightResource {
2980
2970
  */
2981
2971
  articles(params?: SpotlightArticlesParams): PaginatedResultAsync<SpotlightArticlesPage, SpotlightArticle>;
2982
2972
  }
2983
- //#endregion
2984
- //#region src/resources/manga.d.ts
2985
2973
  /** Parameters for fetching recommended manga. */
2986
2974
  interface MangaRecommendedParams {
2987
2975
  /** OS filter to apply (default: `"for_ios"`). */
@@ -3008,8 +2996,6 @@ declare class MangaResource {
3008
2996
  */
3009
2997
  watchlist(): PaginatedResultAsync<WatchlistMangaPage, WatchlistSeries>;
3010
2998
  }
3011
- //#endregion
3012
- //#region src/resources/ugoira.d.ts
3013
2999
  /** Parameters for fetching ugoira metadata. */
3014
3000
  interface UgoiraMetadataParams {
3015
3001
  /** ID of the ugoira illust whose metadata to fetch. */
@@ -3027,8 +3013,6 @@ declare class UgoiraResource {
3027
3013
  */
3028
3014
  metadata(params: UgoiraMetadataParams): ResultAsync<UgoiraMetadataResponse, PixivError>;
3029
3015
  }
3030
- //#endregion
3031
- //#region src/resources/images.d.ts
3032
3016
  /** Methods for fetching pixiv images. */
3033
3017
  declare class ImageResource {
3034
3018
  #private;
@@ -3043,8 +3027,6 @@ declare class ImageResource {
3043
3027
  */
3044
3028
  fetch(imageUrl: string): ResultAsync<Response, PixivError>;
3045
3029
  }
3046
- //#endregion
3047
- //#region src/client.d.ts
3048
3030
  /** Options for constructing a {@link PixivClient}. */
3049
3031
  interface PixivClientOptions {
3050
3032
  /** Rate-limit retry configuration. */
@@ -3118,6 +3100,5 @@ export declare class PixivClient {
3118
3100
  */
3119
3101
  static of(refreshToken: string, options?: PixivClientOptions): Promise<PixivClient>;
3120
3102
  }
3121
- //#endregion
3122
3103
  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 };
3123
3104
  //# sourceMappingURL=index.d.cts.map
@@ -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/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,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;;;;;;wBAkEnC,GAAG,GAAG,OAAO,IAAI,SAAS;;;;;;wBAS1B,IAAI,GAAG,OAAO,IAAI,UAA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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,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;;;;;;wBAkEnC,GAAG,GAAG,OAAO,IAAI,SAAS;;;;;;wBAS1B,IAAI,GAAG,OAAO,IAAI,UAAU;;;;;;;;;;;;;qBAoB/B,YAAY,GAAG,cAAc,YAAY,OAAO,GAAG;mBAC7C;EAEL,YAAA,SAAS,QAAQ,OAAO,GAAG;EAMvC,KAAK,WAAW,OAAO,GAAG,IAAI,kBAC5B,gBACI,OAAO,OAAO,GAAG,OAAO,WAAW,YAAY,mBACnD,eAAe,oBAAoB,WAAW,YAAY,oBAC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qBnD,aACE,QAAQ,yBACP,YAAY,0BAA0B;;;;;;;EAazC,mBACE,QAAQ,+BACP,YAAY,uBAAuB;;;;;EAYtC,kBAAkB,YAAY,wBAAwB;;;;;EAQtD,0BAA0B,YACxB,gCACA;;;;;EAWF,YAAY,YAAY,kBAAkB;;;;;EAQ1C,WAAW,YAAY,qBAAqB;;;;;EAQ5C,0BAA0B,YACxB,gCACA;;;UCttBa;;;;;;;EAOf;;EAEA,iBAAiB,uBAAuB;;EAExC;;;cAIW;;EAGC,YAAA,MAAM;;;;;;;EAUlB,SACE,SAAQ,0BACP,qBAAqB,uBAAuB;;;UCzBhC;;EAEf,iBAAiB,uBAAuB;;EAExC;;;cAIW;;EAGC,YAAA,MAAM;;;;;;;EAUlB,YACE,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"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/result.d.ts
2
1
  /**
3
2
  * Zero-dependency Result / ResultAsync implementation.
4
3
  *
@@ -138,8 +137,6 @@ export declare class ResultAsync<T, E> implements PromiseLike<Result<T, E>> {
138
137
  */
139
138
  unwrapOr(fallback: T): Promise<T>;
140
139
  }
141
- //#endregion
142
- //#region src/auth.d.ts
143
140
  /**
144
141
  * Authentication manager for the pixiv API.
145
142
  *
@@ -178,7 +175,7 @@ declare class AuthManager {
178
175
  * Exchanges the stored refresh token for a fresh access token.
179
176
  *
180
177
  * Updates the internal credentials on success.
181
- * Throws if the token endpoint returns a non-200 response.
178
+ * Throws `PixivAuthError` if the token endpoint returns a non-200 response.
182
179
  */
183
180
  refresh(): Promise<void>;
184
181
  /**
@@ -189,8 +186,6 @@ declare class AuthManager {
189
186
  */
190
187
  static login(refreshToken: string): Promise<AuthManager>;
191
188
  }
192
- //#endregion
193
- //#region src/interceptor.d.ts
194
189
  /**
195
190
  * Response interceptor types for the pixiv API client.
196
191
  *
@@ -239,8 +234,6 @@ interface ResponseRecord {
239
234
  * asynchronously if persistence latency matters.
240
235
  */
241
236
  type ResponseInterceptor = (record: ResponseRecord) => void | Promise<void>;
242
- //#endregion
243
- //#region src/errors.d.ts
244
237
  /**
245
238
  * Discriminated union of all errors that can occur when using the pixiv API client.
246
239
  *
@@ -307,6 +300,21 @@ export declare class PixivFetchError extends Error {
307
300
  readonly pixivError: PixivError;
308
301
  constructor(pixivError: PixivError);
309
302
  }
303
+ /**
304
+ * Thrown by `AuthManager.refresh()` when the token endpoint returns a non-200
305
+ * response. The message keeps the `Failed to refresh pixiv token: HTTP <status>`
306
+ * prefix and appends the error code when one is available (for example
307
+ * `invalid_grant` for a revoked refresh token).
308
+ */
309
+ export declare class PixivAuthError extends Error {
310
+ /** HTTP status code of the token endpoint response. */
311
+ readonly status: number;
312
+ /** OAuth `error` code or pixiv `errors.system.message`, if present in the JSON body. */
313
+ readonly code?: string;
314
+ /** Truncated response body with token-like strings redacted. */
315
+ readonly body: string;
316
+ constructor(status: number, rawBody: string);
317
+ }
310
318
  /** Creates a rate-limit error. */
311
319
  export declare function rateLimitError(retryAfter: number): PixivError;
312
320
  /** Creates an auth-failed error. */
@@ -317,8 +325,6 @@ export declare function networkError(cause: unknown): PixivError;
317
325
  export declare function apiError(status: number, body: unknown): PixivError;
318
326
  /** Creates a parse error. */
319
327
  export declare function parseError(message: string, body: string, cause?: unknown): PixivError;
320
- //#endregion
321
- //#region src/http.d.ts
322
328
  /** Options for controlling retry behaviour on rate-limited requests. */
323
329
  interface RateLimitRetryOptions {
324
330
  /** Maximum number of retries when a 429 response is received. Defaults to 3. */
@@ -374,8 +380,6 @@ declare class HttpClient {
374
380
  */
375
381
  getAbsolute<T>(absoluteUrl: string): ResultAsync<T, PixivError>;
376
382
  }
377
- //#endregion
378
- //#region src/paginated.d.ts
379
383
  /**
380
384
  * A page returned by a pixiv list endpoint.
381
385
  *
@@ -439,8 +443,6 @@ export declare class PaginatedResultAsync<TPage extends PagedResponse, TItem> ex
439
443
  * @param getItems - Item extractor (used for signature compatibility)
440
444
  */
441
445
  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
446
  /**
445
447
  * Typed cursor parameters extracted from a pixiv `next_url`.
446
448
  *
@@ -490,8 +492,6 @@ interface ParsedNextUrl {
490
492
  * @returns Typed cursor parameters; fields absent in the URL are `undefined`
491
493
  */
492
494
  export declare function parseNextUrl(url: string): ParsedNextUrl;
493
- //#endregion
494
- //#region src/options.d.ts
495
495
  /**
496
496
  * Public option constants for @book000/pixivts.
497
497
  *
@@ -621,8 +621,6 @@ export declare const UserIllustType: {
621
621
  readonly ILLUST: "illust";
622
622
  readonly MANGA: "manga";
623
623
  };
624
- //#endregion
625
- //#region src/types.d.ts
626
624
  /**
627
625
  * Public types for @book000/pixivts.
628
626
  *
@@ -1870,8 +1868,6 @@ interface UserFollowDetailResponse {
1870
1868
  /** Follow state for the requested user. */
1871
1869
  followDetail: FollowDetail;
1872
1870
  }
1873
- //#endregion
1874
- //#region src/resources/illusts.d.ts
1875
1871
  /** Parameters for fetching a single illust by ID. */
1876
1872
  interface IllustDetailParams {
1877
1873
  /** ID of the illust to fetch. */
@@ -2210,8 +2206,6 @@ declare class IllustResource {
2210
2206
  */
2211
2207
  trendingTags(params?: IllustTrendingTagsParams): ResultAsync<TrendingTagsIllustResponse, PixivError>;
2212
2208
  }
2213
- //#endregion
2214
- //#region src/resources/novels.d.ts
2215
2209
  /** Parameters for fetching a single novel by ID. */
2216
2210
  interface NovelDetailParams {
2217
2211
  /** ID of the novel to fetch. */
@@ -2573,8 +2567,6 @@ declare class NovelResource {
2573
2567
  */
2574
2568
  new(params?: NovelNewParams): PaginatedResultAsync<NovelListPage, PixivNovelItem>;
2575
2569
  }
2576
- //#endregion
2577
- //#region src/resources/users.d.ts
2578
2570
  /** Parameters for fetching a user's bookmarked illusts. */
2579
2571
  interface UserBookmarksIllustParams {
2580
2572
  /** ID of the user whose bookmarks to fetch. */
@@ -2952,8 +2944,6 @@ declare class UserResource {
2952
2944
  */
2953
2945
  hasUnreadNotifications(): ResultAsync<HasUnreadNotificationsResponse, PixivError>;
2954
2946
  }
2955
- //#endregion
2956
- //#region src/resources/spotlight.d.ts
2957
2947
  /** Parameters for fetching spotlight articles. */
2958
2948
  interface SpotlightArticlesParams {
2959
2949
  /**
@@ -2980,8 +2970,6 @@ declare class SpotlightResource {
2980
2970
  */
2981
2971
  articles(params?: SpotlightArticlesParams): PaginatedResultAsync<SpotlightArticlesPage, SpotlightArticle>;
2982
2972
  }
2983
- //#endregion
2984
- //#region src/resources/manga.d.ts
2985
2973
  /** Parameters for fetching recommended manga. */
2986
2974
  interface MangaRecommendedParams {
2987
2975
  /** OS filter to apply (default: `"for_ios"`). */
@@ -3008,8 +2996,6 @@ declare class MangaResource {
3008
2996
  */
3009
2997
  watchlist(): PaginatedResultAsync<WatchlistMangaPage, WatchlistSeries>;
3010
2998
  }
3011
- //#endregion
3012
- //#region src/resources/ugoira.d.ts
3013
2999
  /** Parameters for fetching ugoira metadata. */
3014
3000
  interface UgoiraMetadataParams {
3015
3001
  /** ID of the ugoira illust whose metadata to fetch. */
@@ -3027,8 +3013,6 @@ declare class UgoiraResource {
3027
3013
  */
3028
3014
  metadata(params: UgoiraMetadataParams): ResultAsync<UgoiraMetadataResponse, PixivError>;
3029
3015
  }
3030
- //#endregion
3031
- //#region src/resources/images.d.ts
3032
3016
  /** Methods for fetching pixiv images. */
3033
3017
  declare class ImageResource {
3034
3018
  #private;
@@ -3043,8 +3027,6 @@ declare class ImageResource {
3043
3027
  */
3044
3028
  fetch(imageUrl: string): ResultAsync<Response, PixivError>;
3045
3029
  }
3046
- //#endregion
3047
- //#region src/client.d.ts
3048
3030
  /** Options for constructing a {@link PixivClient}. */
3049
3031
  interface PixivClientOptions {
3050
3032
  /** Rate-limit retry configuration. */
@@ -3118,6 +3100,5 @@ export declare class PixivClient {
3118
3100
  */
3119
3101
  static of(refreshToken: string, options?: PixivClientOptions): Promise<PixivClient>;
3120
3102
  }
3121
- //#endregion
3122
3103
  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 };
3123
3104
  //# sourceMappingURL=index.d.ts.map