api.fluff4.me 1.0.751 → 1.0.753
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 +18 -0
- package/openapi.json +103 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -336,6 +336,7 @@ export interface Chapter {
|
|
|
336
336
|
reacted?: true | null
|
|
337
337
|
guest_reactions?: number | null
|
|
338
338
|
insufficient_pledge?: boolean | null
|
|
339
|
+
supporter_reactions: (SupporterReactions | null)[]
|
|
339
340
|
}
|
|
340
341
|
|
|
341
342
|
export interface ChapterCreateBody {
|
|
@@ -357,6 +358,11 @@ export interface ChapterPatreon {
|
|
|
357
358
|
tiers: PatreonCampaignTier[]
|
|
358
359
|
}
|
|
359
360
|
|
|
361
|
+
export interface SupporterReactions {
|
|
362
|
+
reaction_type: "heart"
|
|
363
|
+
author: string
|
|
364
|
+
}
|
|
365
|
+
|
|
360
366
|
export interface QueuedChapter {
|
|
361
367
|
name: string
|
|
362
368
|
visibility: "Private" | "Public" | "Patreon"
|
|
@@ -1149,12 +1155,24 @@ export interface Paths {
|
|
|
1149
1155
|
search?: undefined
|
|
1150
1156
|
response: void | ErrorResponse
|
|
1151
1157
|
},
|
|
1158
|
+
"/work/{author}/{work}/chapter/{url}/react/supporter/{type}": {
|
|
1159
|
+
method: "post"
|
|
1160
|
+
body?: undefined
|
|
1161
|
+
search?: undefined
|
|
1162
|
+
response: void | ErrorResponse
|
|
1163
|
+
},
|
|
1152
1164
|
"/work/{author}/{work}/chapter/{url}/unreact": {
|
|
1153
1165
|
method: "post"
|
|
1154
1166
|
body?: undefined
|
|
1155
1167
|
search?: undefined
|
|
1156
1168
|
response: void | ErrorResponse
|
|
1157
1169
|
},
|
|
1170
|
+
"/work/{author}/{work}/chapter/{url}/unreact/supporter": {
|
|
1171
|
+
method: "post"
|
|
1172
|
+
body?: undefined
|
|
1173
|
+
search?: undefined
|
|
1174
|
+
response: void | ErrorResponse
|
|
1175
|
+
},
|
|
1158
1176
|
"/work/{author}/{vanity}/chapters/list": {
|
|
1159
1177
|
method: "get"
|
|
1160
1178
|
body?: undefined
|
package/openapi.json
CHANGED
|
@@ -2068,6 +2068,19 @@
|
|
|
2068
2068
|
"type": "null"
|
|
2069
2069
|
}
|
|
2070
2070
|
]
|
|
2071
|
+
},
|
|
2072
|
+
"supporter_reactions": {
|
|
2073
|
+
"type": "array",
|
|
2074
|
+
"items": {
|
|
2075
|
+
"anyOf": [
|
|
2076
|
+
{
|
|
2077
|
+
"$ref": "#/components/schema/SupporterReactions"
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
"type": "null"
|
|
2081
|
+
}
|
|
2082
|
+
]
|
|
2083
|
+
}
|
|
2071
2084
|
}
|
|
2072
2085
|
},
|
|
2073
2086
|
"required": [
|
|
@@ -2080,7 +2093,8 @@
|
|
|
2080
2093
|
"work",
|
|
2081
2094
|
"is_numbered",
|
|
2082
2095
|
"body",
|
|
2083
|
-
"index"
|
|
2096
|
+
"index",
|
|
2097
|
+
"supporter_reactions"
|
|
2084
2098
|
]
|
|
2085
2099
|
},
|
|
2086
2100
|
"ChapterCreateBody": {
|
|
@@ -2213,6 +2227,24 @@
|
|
|
2213
2227
|
"tiers"
|
|
2214
2228
|
]
|
|
2215
2229
|
},
|
|
2230
|
+
"SupporterReactions": {
|
|
2231
|
+
"type": "object",
|
|
2232
|
+
"properties": {
|
|
2233
|
+
"reaction_type": {
|
|
2234
|
+
"type": "string",
|
|
2235
|
+
"enum": [
|
|
2236
|
+
"heart"
|
|
2237
|
+
]
|
|
2238
|
+
},
|
|
2239
|
+
"author": {
|
|
2240
|
+
"type": "string"
|
|
2241
|
+
}
|
|
2242
|
+
},
|
|
2243
|
+
"required": [
|
|
2244
|
+
"reaction_type",
|
|
2245
|
+
"author"
|
|
2246
|
+
]
|
|
2247
|
+
},
|
|
2216
2248
|
"QueuedChapter": {
|
|
2217
2249
|
"type": "object",
|
|
2218
2250
|
"properties": {
|
|
@@ -6507,6 +6539,43 @@
|
|
|
6507
6539
|
}
|
|
6508
6540
|
}
|
|
6509
6541
|
},
|
|
6542
|
+
"/work/{author}/{work}/chapter/{url}/react/supporter/{type}": {
|
|
6543
|
+
"parameters": [
|
|
6544
|
+
{
|
|
6545
|
+
"name": "author",
|
|
6546
|
+
"in": "path"
|
|
6547
|
+
},
|
|
6548
|
+
{
|
|
6549
|
+
"name": "work",
|
|
6550
|
+
"in": "path"
|
|
6551
|
+
},
|
|
6552
|
+
{
|
|
6553
|
+
"name": "url",
|
|
6554
|
+
"in": "path"
|
|
6555
|
+
},
|
|
6556
|
+
{
|
|
6557
|
+
"name": "type",
|
|
6558
|
+
"in": "path"
|
|
6559
|
+
}
|
|
6560
|
+
],
|
|
6561
|
+
"post": {
|
|
6562
|
+
"responses": {
|
|
6563
|
+
"200": {
|
|
6564
|
+
"description": "200 response"
|
|
6565
|
+
},
|
|
6566
|
+
"default": {
|
|
6567
|
+
"description": "Error",
|
|
6568
|
+
"content": {
|
|
6569
|
+
"application/json": {
|
|
6570
|
+
"schema": {
|
|
6571
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
6572
|
+
}
|
|
6573
|
+
}
|
|
6574
|
+
}
|
|
6575
|
+
}
|
|
6576
|
+
}
|
|
6577
|
+
}
|
|
6578
|
+
},
|
|
6510
6579
|
"/work/{author}/{work}/chapter/{url}/unreact": {
|
|
6511
6580
|
"parameters": [
|
|
6512
6581
|
{
|
|
@@ -6540,6 +6609,39 @@
|
|
|
6540
6609
|
}
|
|
6541
6610
|
}
|
|
6542
6611
|
},
|
|
6612
|
+
"/work/{author}/{work}/chapter/{url}/unreact/supporter": {
|
|
6613
|
+
"parameters": [
|
|
6614
|
+
{
|
|
6615
|
+
"name": "author",
|
|
6616
|
+
"in": "path"
|
|
6617
|
+
},
|
|
6618
|
+
{
|
|
6619
|
+
"name": "work",
|
|
6620
|
+
"in": "path"
|
|
6621
|
+
},
|
|
6622
|
+
{
|
|
6623
|
+
"name": "url",
|
|
6624
|
+
"in": "path"
|
|
6625
|
+
}
|
|
6626
|
+
],
|
|
6627
|
+
"post": {
|
|
6628
|
+
"responses": {
|
|
6629
|
+
"200": {
|
|
6630
|
+
"description": "200 response"
|
|
6631
|
+
},
|
|
6632
|
+
"default": {
|
|
6633
|
+
"description": "Error",
|
|
6634
|
+
"content": {
|
|
6635
|
+
"application/json": {
|
|
6636
|
+
"schema": {
|
|
6637
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
6638
|
+
}
|
|
6639
|
+
}
|
|
6640
|
+
}
|
|
6641
|
+
}
|
|
6642
|
+
}
|
|
6643
|
+
}
|
|
6644
|
+
},
|
|
6543
6645
|
"/work/{author}/{vanity}/chapters/list": {
|
|
6544
6646
|
"parameters": [
|
|
6545
6647
|
{
|
package/package.json
CHANGED