api.fluff4.me 1.0.1151 → 1.0.1154
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/index.d.ts +19 -6
- package/openapi.json +88 -20
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -301,6 +301,7 @@ export interface Work {
|
|
|
301
301
|
last_chapter: string
|
|
302
302
|
statistics?: WorkStatistics | null
|
|
303
303
|
recommendation?: Comment | null
|
|
304
|
+
recommendation_reactions: AttributedReaction[]
|
|
304
305
|
}
|
|
305
306
|
|
|
306
307
|
export interface WorkCreateBody {
|
|
@@ -348,6 +349,11 @@ export interface Comment {
|
|
|
348
349
|
replyable: boolean
|
|
349
350
|
}
|
|
350
351
|
|
|
352
|
+
export interface AttributedReaction {
|
|
353
|
+
reaction_type: "love" | "author_heart" | "guest_heart" | "supporter_love"
|
|
354
|
+
author: string
|
|
355
|
+
}
|
|
356
|
+
|
|
351
357
|
export interface WorkUpdateBody {
|
|
352
358
|
name?: string | null
|
|
353
359
|
description?: string | null
|
|
@@ -415,7 +421,7 @@ export interface Chapter {
|
|
|
415
421
|
reacted?: true | null
|
|
416
422
|
guest_reactions?: number | null
|
|
417
423
|
insufficient_pledge?: boolean | null
|
|
418
|
-
supporter_reactions: (
|
|
424
|
+
supporter_reactions: (AttributedReaction | null)[]
|
|
419
425
|
}
|
|
420
426
|
|
|
421
427
|
export interface ChapterCreateBody {
|
|
@@ -440,11 +446,6 @@ export interface ChapterStatistics {
|
|
|
440
446
|
visits: string
|
|
441
447
|
}
|
|
442
448
|
|
|
443
|
-
export interface SupporterReactions {
|
|
444
|
-
reaction_type: "heart"
|
|
445
|
-
author: string
|
|
446
|
-
}
|
|
447
|
-
|
|
448
449
|
export interface ChapterUpdateBody {
|
|
449
450
|
name?: (string | false) | null
|
|
450
451
|
visibility?: ChapterVisibility | null
|
|
@@ -3212,6 +3213,18 @@ export interface Paths {
|
|
|
3212
3213
|
search?: undefined
|
|
3213
3214
|
response: void | ErrorResponse
|
|
3214
3215
|
},
|
|
3216
|
+
"/reactions/work/{author_vanity}/{work_vanity}/add": {
|
|
3217
|
+
method: "post"
|
|
3218
|
+
body?: undefined
|
|
3219
|
+
search?: undefined
|
|
3220
|
+
response: void | ErrorResponse
|
|
3221
|
+
},
|
|
3222
|
+
"/reactions/work/{author_vanity}/{work_vanity}/delete": {
|
|
3223
|
+
method: "post"
|
|
3224
|
+
body?: undefined
|
|
3225
|
+
search?: undefined
|
|
3226
|
+
response: void | ErrorResponse
|
|
3227
|
+
},
|
|
3215
3228
|
"/supporter/status": {
|
|
3216
3229
|
method: "get"
|
|
3217
3230
|
body?: undefined
|
package/openapi.json
CHANGED
|
@@ -1869,6 +1869,12 @@
|
|
|
1869
1869
|
"type": "null"
|
|
1870
1870
|
}
|
|
1871
1871
|
]
|
|
1872
|
+
},
|
|
1873
|
+
"recommendation_reactions": {
|
|
1874
|
+
"type": "array",
|
|
1875
|
+
"items": {
|
|
1876
|
+
"$ref": "#/components/schema/AttributedReaction"
|
|
1877
|
+
}
|
|
1872
1878
|
}
|
|
1873
1879
|
},
|
|
1874
1880
|
"required": [
|
|
@@ -1885,7 +1891,8 @@
|
|
|
1885
1891
|
"recently_updated",
|
|
1886
1892
|
"root_comment",
|
|
1887
1893
|
"synopsis",
|
|
1888
|
-
"last_chapter"
|
|
1894
|
+
"last_chapter",
|
|
1895
|
+
"recommendation_reactions"
|
|
1889
1896
|
]
|
|
1890
1897
|
},
|
|
1891
1898
|
"WorkCreateBody": {
|
|
@@ -2195,6 +2202,27 @@
|
|
|
2195
2202
|
"replyable"
|
|
2196
2203
|
]
|
|
2197
2204
|
},
|
|
2205
|
+
"AttributedReaction": {
|
|
2206
|
+
"type": "object",
|
|
2207
|
+
"properties": {
|
|
2208
|
+
"reaction_type": {
|
|
2209
|
+
"type": "string",
|
|
2210
|
+
"enum": [
|
|
2211
|
+
"love",
|
|
2212
|
+
"author_heart",
|
|
2213
|
+
"guest_heart",
|
|
2214
|
+
"supporter_love"
|
|
2215
|
+
]
|
|
2216
|
+
},
|
|
2217
|
+
"author": {
|
|
2218
|
+
"type": "string"
|
|
2219
|
+
}
|
|
2220
|
+
},
|
|
2221
|
+
"required": [
|
|
2222
|
+
"reaction_type",
|
|
2223
|
+
"author"
|
|
2224
|
+
]
|
|
2225
|
+
},
|
|
2198
2226
|
"WorkUpdateBody": {
|
|
2199
2227
|
"type": "object",
|
|
2200
2228
|
"properties": {
|
|
@@ -2676,7 +2704,7 @@
|
|
|
2676
2704
|
"items": {
|
|
2677
2705
|
"anyOf": [
|
|
2678
2706
|
{
|
|
2679
|
-
"$ref": "#/components/schema/
|
|
2707
|
+
"$ref": "#/components/schema/AttributedReaction"
|
|
2680
2708
|
},
|
|
2681
2709
|
{
|
|
2682
2710
|
"type": "null"
|
|
@@ -2862,24 +2890,6 @@
|
|
|
2862
2890
|
"visits"
|
|
2863
2891
|
]
|
|
2864
2892
|
},
|
|
2865
|
-
"SupporterReactions": {
|
|
2866
|
-
"type": "object",
|
|
2867
|
-
"properties": {
|
|
2868
|
-
"reaction_type": {
|
|
2869
|
-
"type": "string",
|
|
2870
|
-
"enum": [
|
|
2871
|
-
"heart"
|
|
2872
|
-
]
|
|
2873
|
-
},
|
|
2874
|
-
"author": {
|
|
2875
|
-
"type": "string"
|
|
2876
|
-
}
|
|
2877
|
-
},
|
|
2878
|
-
"required": [
|
|
2879
|
-
"reaction_type",
|
|
2880
|
-
"author"
|
|
2881
|
-
]
|
|
2882
|
-
},
|
|
2883
2893
|
"ChapterUpdateBody": {
|
|
2884
2894
|
"type": "object",
|
|
2885
2895
|
"properties": {
|
|
@@ -22563,6 +22573,64 @@
|
|
|
22563
22573
|
}
|
|
22564
22574
|
}
|
|
22565
22575
|
},
|
|
22576
|
+
"/reactions/work/{author_vanity}/{work_vanity}/add": {
|
|
22577
|
+
"parameters": [
|
|
22578
|
+
{
|
|
22579
|
+
"name": "author_vanity",
|
|
22580
|
+
"in": "path"
|
|
22581
|
+
},
|
|
22582
|
+
{
|
|
22583
|
+
"name": "work_vanity",
|
|
22584
|
+
"in": "path"
|
|
22585
|
+
}
|
|
22586
|
+
],
|
|
22587
|
+
"post": {
|
|
22588
|
+
"responses": {
|
|
22589
|
+
"200": {
|
|
22590
|
+
"description": "200 response"
|
|
22591
|
+
},
|
|
22592
|
+
"default": {
|
|
22593
|
+
"description": "Error",
|
|
22594
|
+
"content": {
|
|
22595
|
+
"application/json": {
|
|
22596
|
+
"schema": {
|
|
22597
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
22598
|
+
}
|
|
22599
|
+
}
|
|
22600
|
+
}
|
|
22601
|
+
}
|
|
22602
|
+
}
|
|
22603
|
+
}
|
|
22604
|
+
},
|
|
22605
|
+
"/reactions/work/{author_vanity}/{work_vanity}/delete": {
|
|
22606
|
+
"parameters": [
|
|
22607
|
+
{
|
|
22608
|
+
"name": "author_vanity",
|
|
22609
|
+
"in": "path"
|
|
22610
|
+
},
|
|
22611
|
+
{
|
|
22612
|
+
"name": "work_vanity",
|
|
22613
|
+
"in": "path"
|
|
22614
|
+
}
|
|
22615
|
+
],
|
|
22616
|
+
"post": {
|
|
22617
|
+
"responses": {
|
|
22618
|
+
"200": {
|
|
22619
|
+
"description": "200 response"
|
|
22620
|
+
},
|
|
22621
|
+
"default": {
|
|
22622
|
+
"description": "Error",
|
|
22623
|
+
"content": {
|
|
22624
|
+
"application/json": {
|
|
22625
|
+
"schema": {
|
|
22626
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
22627
|
+
}
|
|
22628
|
+
}
|
|
22629
|
+
}
|
|
22630
|
+
}
|
|
22631
|
+
}
|
|
22632
|
+
}
|
|
22633
|
+
},
|
|
22566
22634
|
"/supporter/status": {
|
|
22567
22635
|
"get": {
|
|
22568
22636
|
"responses": {
|
package/package.json
CHANGED