@book000/pixivts 0.51.2 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/dist/checks.js +9 -9
- package/dist/checks.js.map +1 -1
- package/dist/checks.test.js +28 -28
- package/dist/checks.test.js.map +1 -1
- package/dist/http-client.d.ts +20 -20
- package/dist/http-client.d.ts.map +1 -1
- package/dist/http-client.js +28 -27
- package/dist/http-client.js.map +1 -1
- package/dist/http-client.test.js +11 -11
- package/dist/http-client.test.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/options.d.ts +89 -59
- package/dist/options.d.ts.map +1 -1
- package/dist/options.js +57 -35
- package/dist/options.js.map +1 -1
- package/dist/pixiv.d.ts +121 -97
- package/dist/pixiv.d.ts.map +1 -1
- package/dist/pixiv.js +161 -104
- package/dist/pixiv.js.map +1 -1
- package/dist/pixiv.test.js +114 -47
- package/dist/pixiv.test.js.map +1 -1
- package/dist/saving-responses/index.d.ts +33 -33
- package/dist/saving-responses/index.js +31 -31
- package/dist/saving-responses/index.js.map +1 -1
- package/dist/saving-responses/index.test.js +20 -20
- package/dist/saving-responses/index.test.js.map +1 -1
- package/dist/saving-responses/response-entity.js +12 -12
- package/dist/saving-responses/response-entity.js.map +1 -1
- package/dist/types/endpoints/v1/illust/bookmark/delete.d.ts +3 -3
- package/dist/types/endpoints/v1/illust/detail.d.ts +4 -4
- package/dist/types/endpoints/v1/illust/ranking.d.ts +11 -11
- package/dist/types/endpoints/v1/illust/ranking.js +3 -3
- package/dist/types/endpoints/v1/illust/recommended.d.ts +13 -13
- package/dist/types/endpoints/v1/illust/series.d.ts +8 -8
- package/dist/types/endpoints/v1/illust/ugoira/metadata.d.ts +4 -4
- package/dist/types/endpoints/v1/manga/recommended.d.ts +11 -11
- package/dist/types/endpoints/v1/novel/bookmark/delete.d.ts +3 -3
- package/dist/types/endpoints/v1/novel/ranking.d.ts +10 -10
- package/dist/types/endpoints/v1/novel/ranking.js +3 -3
- package/dist/types/endpoints/v1/novel/recommended.d.ts +11 -11
- package/dist/types/endpoints/v1/novel/related.d.ts +7 -7
- package/dist/types/endpoints/v1/search/illust.d.ts +15 -15
- package/dist/types/endpoints/v1/search/novel.d.ts +15 -15
- package/dist/types/endpoints/v1/user/bookmarks/illust.d.ts +9 -9
- package/dist/types/endpoints/v1/user/bookmarks/novel.d.ts +8 -8
- package/dist/types/endpoints/v1/user/detail.d.ts +8 -8
- package/dist/types/endpoints/v1/user/follow/add.d.ts +24 -0
- package/dist/types/endpoints/v1/user/follow/add.d.ts.map +1 -0
- package/dist/types/endpoints/v1/user/follow/add.js +3 -0
- package/dist/types/endpoints/v1/user/follow/add.js.map +1 -0
- package/dist/types/endpoints/v1/user/follow/delete.d.ts +14 -0
- package/dist/types/endpoints/v1/user/follow/delete.d.ts.map +1 -0
- package/dist/types/endpoints/v1/user/follow/delete.js +3 -0
- package/dist/types/endpoints/v1/user/follow/delete.js.map +1 -0
- package/dist/types/endpoints/v1/user/following.d.ts +38 -0
- package/dist/types/endpoints/v1/user/following.d.ts.map +1 -0
- package/dist/types/endpoints/v1/user/following.js +26 -0
- package/dist/types/endpoints/v1/user/following.js.map +1 -0
- package/dist/types/endpoints/v2/illust/bookmark/add.d.ts +7 -7
- package/dist/types/endpoints/v2/illust/related.d.ts +8 -8
- package/dist/types/endpoints/v2/novel/bookmark/add.d.ts +7 -7
- package/dist/types/endpoints/v2/novel/detail.d.ts +4 -4
- package/dist/types/endpoints/v2/novel/series.d.ts +9 -9
- package/dist/types/endpoints/webview/v2/novel.d.ts +4 -4
- package/dist/types/error-response.d.ts +7 -7
- package/dist/types/errors.d.ts +1 -1
- package/dist/types/errors.js +1 -1
- package/dist/types/pixiv-common.d.ts +25 -25
- package/dist/types/pixiv-common.d.ts.map +1 -1
- package/dist/types/pixiv-illust-series.d.ts +12 -12
- package/dist/types/pixiv-illust.d.ts +53 -52
- package/dist/types/pixiv-illust.d.ts.map +1 -1
- package/dist/types/pixiv-illust.js.map +1 -1
- package/dist/types/pixiv-novel-series.d.ts +18 -18
- package/dist/types/pixiv-novel.d.ts +34 -33
- package/dist/types/pixiv-novel.d.ts.map +1 -1
- package/dist/types/pixiv-novel.js.map +1 -1
- package/dist/types/pixiv-ugoira.d.ts +10 -10
- package/dist/types/pixiv-user.d.ts +108 -89
- package/dist/types/pixiv-user.d.ts.map +1 -1
- package/dist/types/pixiv-user.js +16 -1
- package/dist/types/pixiv-user.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,15 +2,15 @@ import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
|
2
2
|
import { PixivNovelItem } from '../../../pixiv-novel';
|
|
3
3
|
import { NovelSeriesDetail } from '../../../pixiv-novel-series';
|
|
4
4
|
/**
|
|
5
|
-
* GET /v2/novel/series
|
|
5
|
+
* Request for GET /v2/novel/series
|
|
6
6
|
*/
|
|
7
7
|
export interface GetV2NovelSeriesRequest {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Novel series ID
|
|
10
10
|
*/
|
|
11
11
|
series_id: number;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Novel offset? It seems 30 items can be retrieved per request
|
|
14
14
|
*
|
|
15
15
|
* @default undefined
|
|
16
16
|
* @beta
|
|
@@ -18,27 +18,27 @@ export interface GetV2NovelSeriesRequest {
|
|
|
18
18
|
last_order?: number;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* GET /v2/novel/series
|
|
21
|
+
* Response for GET /v2/novel/series
|
|
22
22
|
*/
|
|
23
23
|
export interface GetV2NovelSeriesResponse {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Series details
|
|
26
26
|
*/
|
|
27
27
|
novel_series_detail: NovelSeriesDetail;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* First novel data in the series
|
|
30
30
|
*/
|
|
31
31
|
novel_series_first_novel: PixivNovelItem;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Latest novel data in the series
|
|
34
34
|
*/
|
|
35
35
|
novel_series_latest_novel: PixivNovelItem;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* List of novels in the series
|
|
38
38
|
*/
|
|
39
39
|
novels: PixivNovelItem[];
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Next URL
|
|
42
42
|
*/
|
|
43
43
|
next_url: string | null;
|
|
44
44
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { BaseMultipleCheck, CheckFunctions } from '../../../../checks';
|
|
2
2
|
/**
|
|
3
|
-
* GET /webview/v2/novel
|
|
3
|
+
* Request for GET /webview/v2/novel
|
|
4
4
|
*/
|
|
5
5
|
export interface GetWebViewV2NovelRequest {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Novel ID
|
|
8
8
|
*/
|
|
9
9
|
id: number;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* GET /webview/v2/novel
|
|
12
|
+
* Response for GET /webview/v2/novel
|
|
13
13
|
*
|
|
14
|
-
* HTML
|
|
14
|
+
* Returns HTML.
|
|
15
15
|
*/
|
|
16
16
|
export type GetWebViewV2NovelResponse = string;
|
|
17
17
|
export declare class GetWebViewV2NovelCheck extends BaseMultipleCheck<GetWebViewV2NovelRequest, GetWebViewV2NovelResponse> {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* pixiv API
|
|
2
|
+
* Detailed error information returned by the pixiv API
|
|
3
3
|
*/
|
|
4
4
|
export interface PixivErrorDetail {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Error message for the user
|
|
7
7
|
*/
|
|
8
8
|
user_message: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Error message
|
|
11
11
|
*/
|
|
12
12
|
message: string;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Cause of the error
|
|
15
15
|
*/
|
|
16
16
|
reason: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Details of the error message for the user
|
|
19
19
|
*/
|
|
20
20
|
user_message_details?: unknown;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* pixiv
|
|
23
|
+
* Error response returned by pixiv
|
|
24
24
|
*/
|
|
25
25
|
export interface PixivApiError {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Error details
|
|
28
28
|
*/
|
|
29
29
|
error: PixivErrorDetail;
|
|
30
30
|
}
|
package/dist/types/errors.d.ts
CHANGED
package/dist/types/errors.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PixivRateLimitError = void 0;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Error thrown when a rate limit error is not resolved even after retrying the configured number of times
|
|
6
6
|
*/
|
|
7
7
|
class PixivRateLimitError extends Error {
|
|
8
8
|
constructor(message) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { BaseSimpleCheck, CheckFunctions } from '../checks';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Image URLs for a work
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* For a single image, the original image can be obtained from {@link MetaSinglePage.original_image_url}
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Accessing the images requires an appropriate referer to be set
|
|
8
8
|
*/
|
|
9
9
|
export interface ImageUrls {
|
|
10
10
|
/** 360x360 */
|
|
11
11
|
square_medium: string;
|
|
12
|
-
/**
|
|
12
|
+
/** Long side is at most 540px */
|
|
13
13
|
medium: string;
|
|
14
|
-
/**
|
|
14
|
+
/** Width is at most 600px, height is at most 1200px */
|
|
15
15
|
large: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Original image
|
|
18
18
|
*
|
|
19
|
-
* {@link MetaPages.image_urls}
|
|
19
|
+
* Only present for {@link MetaPages.image_urls}?
|
|
20
20
|
*/
|
|
21
21
|
original?: string;
|
|
22
22
|
}
|
|
@@ -24,53 +24,53 @@ export declare class ImageUrlsCheck extends BaseSimpleCheck<ImageUrls> {
|
|
|
24
24
|
checks(): CheckFunctions<ImageUrls>;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Profile image URLs
|
|
28
28
|
*/
|
|
29
29
|
export interface ProfileImageUrls {
|
|
30
|
-
/**
|
|
30
|
+
/** Medium size */
|
|
31
31
|
medium: string;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* User information
|
|
35
35
|
*/
|
|
36
36
|
export interface PixivUser {
|
|
37
|
-
/**
|
|
37
|
+
/** Internal user ID */
|
|
38
38
|
id: number;
|
|
39
|
-
/**
|
|
39
|
+
/** Username */
|
|
40
40
|
name: string;
|
|
41
|
-
/** pixiv ID (URL
|
|
41
|
+
/** pixiv ID (used in the URL) */
|
|
42
42
|
account: string;
|
|
43
|
-
/**
|
|
43
|
+
/** Profile image URLs */
|
|
44
44
|
profile_image_urls: ProfileImageUrls;
|
|
45
|
-
/**
|
|
45
|
+
/** Whether the user is followed */
|
|
46
46
|
is_followed?: boolean;
|
|
47
|
-
/**
|
|
47
|
+
/** Whether this user has blocked access */
|
|
48
48
|
is_access_blocking_user?: boolean;
|
|
49
49
|
}
|
|
50
50
|
export declare class PixivUserCheck extends BaseSimpleCheck<PixivUser> {
|
|
51
51
|
checks(): CheckFunctions<PixivUser>;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Tag information
|
|
55
55
|
*/
|
|
56
56
|
export interface Tag {
|
|
57
|
-
/**
|
|
57
|
+
/** Tag name */
|
|
58
58
|
name: string;
|
|
59
|
-
/**
|
|
59
|
+
/** Translated tag name */
|
|
60
60
|
translated_name: string | null;
|
|
61
|
-
/**
|
|
61
|
+
/** Whether the tag was added by the uploader */
|
|
62
62
|
added_by_uploaded_user?: boolean;
|
|
63
63
|
}
|
|
64
64
|
export declare class TagCheck extends BaseSimpleCheck<Tag> {
|
|
65
65
|
checks(): CheckFunctions<Tag>;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Series information
|
|
69
69
|
*/
|
|
70
70
|
export interface Series {
|
|
71
|
-
/**
|
|
71
|
+
/** Series ID */
|
|
72
72
|
id: number;
|
|
73
|
-
/**
|
|
73
|
+
/** Series title */
|
|
74
74
|
title: string;
|
|
75
75
|
}
|
|
76
76
|
export declare class SeriesCheck extends BaseSimpleCheck<Series> {
|
|
@@ -78,11 +78,11 @@ export declare class SeriesCheck extends BaseSimpleCheck<Series> {
|
|
|
78
78
|
}
|
|
79
79
|
export interface PrivacyPolicy {
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Version
|
|
82
82
|
*/
|
|
83
83
|
version?: string;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* Message
|
|
86
86
|
*/
|
|
87
87
|
message?: string;
|
|
88
88
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pixiv-common.d.ts","sourceRoot":"","sources":["../../src/types/pixiv-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,cAAc;IACd,aAAa,EAAE,MAAM,CAAA;IAErB,
|
|
1
|
+
{"version":3,"file":"pixiv-common.d.ts","sourceRoot":"","sources":["../../src/types/pixiv-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,cAAc;IACd,aAAa,EAAE,MAAM,C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CAAC;IACtD,MAAM,IAAI,cAAc,CAAC,MAAM,CAAC;CAMjC;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,qBAAa,kBAAmB,SAAQ,eAAe,CAAC,aAAa,CAAC;IACpE,MAAM,IAAI,cAAc,CAAC,aAAa,CAAC;CASxC"}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { BaseSimpleCheck, CheckFunctions } from '../checks';
|
|
2
2
|
import { PixivUser } from './pixiv-common';
|
|
3
3
|
/**
|
|
4
|
-
* pixiv
|
|
4
|
+
* pixiv illust series details
|
|
5
5
|
*/
|
|
6
6
|
export interface IllustSeriesDetail {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Series ID
|
|
9
9
|
*/
|
|
10
10
|
id: number;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Series title
|
|
13
13
|
*/
|
|
14
14
|
title: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Series description
|
|
17
17
|
*/
|
|
18
18
|
caption: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Cover image URLs
|
|
21
21
|
*/
|
|
22
22
|
cover_image_urls: {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Medium-sized cover image URL
|
|
25
25
|
*/
|
|
26
26
|
medium: string;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Number of works in the series
|
|
30
30
|
*/
|
|
31
31
|
series_work_count: number;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Series creation date and time
|
|
34
34
|
*/
|
|
35
35
|
create_date: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Width of the series cover image
|
|
38
38
|
*/
|
|
39
39
|
width: number;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Height of the series cover image
|
|
42
42
|
*/
|
|
43
43
|
height: number;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Series creator information
|
|
46
46
|
*/
|
|
47
47
|
user: PixivUser;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Whether it has been added to the watchlist
|
|
50
50
|
*/
|
|
51
51
|
watchlist_added: boolean;
|
|
52
52
|
}
|
|
@@ -1,161 +1,162 @@
|
|
|
1
1
|
import { BaseSimpleCheck, CheckFunctions } from '../checks';
|
|
2
2
|
import { ImageUrls, PixivUser, Tag, Series } from './pixiv-common';
|
|
3
|
-
/**
|
|
3
|
+
/** Single-illust details */
|
|
4
4
|
export interface MetaSinglePage {
|
|
5
|
-
/**
|
|
5
|
+
/** Original image URL */
|
|
6
6
|
original_image_url: string;
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
8
|
+
/** Multi-illust details */
|
|
9
9
|
export interface MetaPages {
|
|
10
|
-
/**
|
|
10
|
+
/** Image URLs */
|
|
11
11
|
image_urls: Required<ImageUrls>;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* pixiv
|
|
14
|
+
* pixiv illust item
|
|
15
15
|
*/
|
|
16
16
|
export interface PixivIllustItem {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Work ID
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* Note that illusts and novels are numbered separately, so the same ID can appear in both.
|
|
21
21
|
*/
|
|
22
22
|
id: number;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Work title
|
|
25
25
|
*/
|
|
26
26
|
title: string;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Work type
|
|
29
29
|
*
|
|
30
|
-
* illust:
|
|
31
|
-
* manga:
|
|
32
|
-
* ugoira:
|
|
30
|
+
* illust: Illust
|
|
31
|
+
* manga: Manga
|
|
32
|
+
* ugoira: Ugoira
|
|
33
33
|
*/
|
|
34
34
|
type: 'illust' | 'manga' | 'ugoira';
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Image URLs for the work
|
|
37
37
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
38
|
+
* For illusts and manga, this contains the first image.
|
|
39
|
+
* The second and subsequent images are contained in {@link meta_pages}.
|
|
40
40
|
*/
|
|
41
41
|
image_urls: ImageUrls;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Caption (description)
|
|
44
44
|
*/
|
|
45
45
|
caption: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Visibility
|
|
48
48
|
*
|
|
49
|
-
*
|
|
49
|
+
* Details unknown. 0 is confirmed to mean public
|
|
50
50
|
*/
|
|
51
51
|
restrict: number;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Information about the work's poster
|
|
54
54
|
*/
|
|
55
55
|
user: PixivUser;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Work tags
|
|
58
58
|
*/
|
|
59
59
|
tags: Tag[];
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Tools used
|
|
62
62
|
*
|
|
63
|
-
* SAI, CLIP STUDIO PAINT
|
|
63
|
+
* Such as SAI, CLIP STUDIO PAINT, etc. The poster can register up to 3, selected from a list.
|
|
64
64
|
*/
|
|
65
65
|
tools: string[];
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Posted date and time
|
|
68
68
|
*
|
|
69
|
-
* ISO 8601
|
|
69
|
+
* ISO 8601 format. YYYY-MM-DD'T'HH:mm:ss+09:00
|
|
70
70
|
*/
|
|
71
71
|
create_date: string;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Number of pages
|
|
74
74
|
*/
|
|
75
75
|
page_count: number;
|
|
76
|
-
/**
|
|
76
|
+
/** Image width */
|
|
77
77
|
width: number;
|
|
78
|
-
/**
|
|
78
|
+
/** Image height */
|
|
79
79
|
height: number;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Sanity level? (Content rating setting?)
|
|
82
82
|
*
|
|
83
|
-
*
|
|
83
|
+
* Details unknown. Can be 2, 4, or 6. 2 is all-ages, 6 is R-18?
|
|
84
84
|
*
|
|
85
85
|
* @beta
|
|
86
86
|
*/
|
|
87
87
|
sanity_level: number;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Age restriction
|
|
90
90
|
*
|
|
91
|
-
* 0
|
|
91
|
+
* 0 is all-ages, 1 is R-18, 2 is R-18G
|
|
92
92
|
*/
|
|
93
93
|
x_restrict: number;
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
95
|
+
* Series information
|
|
96
96
|
*
|
|
97
|
-
*
|
|
97
|
+
* For illusts and manga, this is null if the work does not belong to a series.
|
|
98
98
|
*/
|
|
99
99
|
series: Series | null;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Single-illust details
|
|
102
102
|
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
103
|
+
* Used only for single-page works. For multi-page works, use {@link meta_pages}.
|
|
104
|
+
* For multi-page works, this property contains an empty object.
|
|
105
105
|
*/
|
|
106
106
|
meta_single_page: MetaSinglePage | Record<string, never>;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Multi-illust details
|
|
109
109
|
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
110
|
+
* Used only for multi-page works. For single-page works, use {@link meta_single_page}.
|
|
111
|
+
* For single-page works, this property contains an empty array.
|
|
112
112
|
*/
|
|
113
113
|
meta_pages: MetaPages[];
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* View count
|
|
116
116
|
*/
|
|
117
117
|
total_view: number;
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Bookmark count
|
|
120
120
|
*/
|
|
121
121
|
total_bookmarks: number;
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* Whether it is bookmarked
|
|
124
124
|
*/
|
|
125
125
|
is_bookmarked: boolean;
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* Whether it is visible
|
|
128
128
|
*/
|
|
129
129
|
visible: boolean;
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* Whether this work is muted
|
|
132
132
|
*/
|
|
133
133
|
is_muted: boolean;
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
135
|
+
* Number of users who commented on this work
|
|
136
136
|
*/
|
|
137
137
|
total_comments?: number;
|
|
138
138
|
/**
|
|
139
|
-
* AI
|
|
139
|
+
* AI usage flag
|
|
140
140
|
*
|
|
141
|
-
* 0:
|
|
142
|
-
* 1:
|
|
143
|
-
* 2:
|
|
141
|
+
* 0: Not used
|
|
142
|
+
* 1: Used to a supplementary extent
|
|
143
|
+
* 2: Used
|
|
144
144
|
*
|
|
145
|
-
* 2022/11/02
|
|
145
|
+
* As of 2022/11/02, the posting screen does not appear to have a UI to select "used to a supplementary extent",
|
|
146
|
+
* but there are works that actually have 1 set.
|
|
146
147
|
*
|
|
147
148
|
* @see https://www.pixiv.help/hc/ja/articles/11866194231577
|
|
148
149
|
* @see https://github.com/ArkoClub/async-pixiv/blob/fa45c81093a5c6f4eabfcc942915fc479e42174f/src/async_pixiv/model/other.py#L40-L48
|
|
149
150
|
*/
|
|
150
151
|
illust_ai_type: number;
|
|
151
152
|
/**
|
|
152
|
-
*
|
|
153
|
+
* The work's style?
|
|
153
154
|
*
|
|
154
155
|
* @beta
|
|
155
156
|
*/
|
|
156
157
|
illust_book_style: number;
|
|
157
158
|
/**
|
|
158
|
-
*
|
|
159
|
+
* Comment visibility control?
|
|
159
160
|
*
|
|
160
161
|
* @beta
|
|
161
162
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pixiv-illust.d.ts","sourceRoot":"","sources":["../../src/types/pixiv-illust.ts"],"names":[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,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;;;;OAKG;IACH,gBAAgB,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;IAExD;;;;;OAKG;IACH,UAAU,EAAE,SAAS,EAAE,CAAA;IAEvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;;;;;;;;;OAYG;IACH,cAAc,EAAE,MAAM,CAAA;IAEtB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC;AAED,qBAAa,oBAAqB,SAAQ,eAAe,CAAC,eAAe,CAAC;IACxE,MAAM,IAAI,cAAc,CAAC,eAAe,CAAC;CAmE1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pixiv-illust.js","sourceRoot":"","sources":["../../src/types/pixiv-illust.ts"],"names":[],"mappings":";;;AAAA,oCAAwC;AACxC,sCAA2D;AAC3D,iDAQuB;
|
|
1
|
+
{"version":3,"file":"pixiv-illust.js","sourceRoot":"","sources":["../../src/types/pixiv-illust.ts"],"names":[],"mappings":";;;AAAA,oCAAwC;AACxC,sCAA2D;AAC3D,iDAQuB;AAiMvB,MAAa,oBAAqB,SAAQ,wBAAgC;IACxE,MAAM;QACJ,OAAO;YACL,EAAE,EAAE,CAAC,IAAqB,EAAW,EAAE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rC,eAAe,EAAE,CAAC,IAAqB,EAAW,EAAE,CAClD,OAAO,IAAI,CAAC,eAAe,KAAK,QAAQ;YAC1C,aAAa,EAAE,CAAC,IAAqB,EAAW,EAAE,CAChD,OAAO,IAAI,CAAC,aAAa,KAAK,SAAS;YACzC,OAAO,EAAE,CAAC,IAAqB,EAAW,EAAE,CAC1C,OAAO,IAAI,CAAC,OAAO,KAAK,SAAS;YACnC,QAAQ,EAAE,CAAC,IAAqB,EAAW,EAAE,CAC3C,OAAO,IAAI,CAAC,QAAQ,KAAK,SAAS;YACpC,cAAc,EAAE,CAAC,IAAqB,EAAW,EAAE,CACjD,IAAI,CAAC,cAAc,KAAK,SAAS;gBACjC,OAAO,IAAI,CAAC,cAAc,KAAK,QAAQ;YACzC,cAAc,EAAE,CAAC,IAAqB,EAAW,EAAE,CACjD,OAAO,IAAI,CAAC,cAAc,KAAK,QAAQ;YACzC,iBAAiB,EAAE,CAAC,IAAqB,EAAW,EAAE,CACpD,OAAO,IAAI,CAAC,iBAAiB,KAAK,QAAQ;SAC7C,CAAA;IACH,CAAC;CACF;AApED,oDAoEC"}
|
|
@@ -2,51 +2,51 @@ import { BaseSimpleCheck, CheckFunctions } from '../checks';
|
|
|
2
2
|
import { PixivUser } from './pixiv-common';
|
|
3
3
|
import { PixivNovelItem } from './pixiv-novel';
|
|
4
4
|
/**
|
|
5
|
-
* pixiv
|
|
5
|
+
* pixiv novel series details
|
|
6
6
|
*/
|
|
7
7
|
export interface NovelSeriesDetail {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Series ID
|
|
10
10
|
*/
|
|
11
11
|
id: number;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Series title
|
|
14
14
|
*/
|
|
15
15
|
title: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Series description
|
|
18
18
|
*/
|
|
19
19
|
caption: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Whether it is an original work
|
|
22
22
|
*/
|
|
23
23
|
is_original: boolean;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Whether it has concluded
|
|
26
26
|
*/
|
|
27
27
|
is_concluded: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Number of contents
|
|
30
30
|
*/
|
|
31
31
|
content_count: number;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Total character count
|
|
34
34
|
*/
|
|
35
35
|
total_character_count: number;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* User information
|
|
38
38
|
*/
|
|
39
39
|
user: PixivUser;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Series display text
|
|
42
42
|
*/
|
|
43
43
|
display_text: string;
|
|
44
44
|
/**
|
|
45
|
-
* AI
|
|
45
|
+
* AI usage flag
|
|
46
46
|
*/
|
|
47
47
|
novel_ai_type: number;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Whether it has been added to the watchlist
|
|
50
50
|
*/
|
|
51
51
|
watchlist_added: boolean;
|
|
52
52
|
}
|
|
@@ -54,27 +54,27 @@ export declare class NovelSeriesDetailCheck extends BaseSimpleCheck<NovelSeriesD
|
|
|
54
54
|
checks(): CheckFunctions<NovelSeriesDetail>;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* pixiv
|
|
57
|
+
* pixiv novel series item
|
|
58
58
|
*/
|
|
59
59
|
export interface PixivNovelSeriesItem {
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Series details
|
|
62
62
|
*/
|
|
63
63
|
novel_series_detail: NovelSeriesDetail;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* First novel data in the series
|
|
66
66
|
*/
|
|
67
67
|
novel_series_first_novel: PixivNovelItem;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Latest novel data in the series
|
|
70
70
|
*/
|
|
71
71
|
novel_series_latest_novel: PixivNovelItem;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* List of novels in the series
|
|
74
74
|
*/
|
|
75
75
|
novels: PixivNovelItem[];
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Next URL
|
|
78
78
|
*/
|
|
79
79
|
next_url: string | null;
|
|
80
80
|
}
|