api.fluff4.me 1.0.246 → 1.0.250
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 -28
- package/openapi.json +125 -159
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -200,19 +200,6 @@ export interface CommentCreateBody {
|
|
|
200
200
|
parent_id?: string | null
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
export interface Comments {
|
|
204
|
-
comments: Comment[]
|
|
205
|
-
authors: Author[]
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export interface Comment {
|
|
209
|
-
parent_id?: string | null
|
|
210
|
-
body?: string | null
|
|
211
|
-
created_time?: string | null
|
|
212
|
-
edited_time?: string | null
|
|
213
|
-
author?: string | null
|
|
214
|
-
}
|
|
215
|
-
|
|
216
203
|
export type Chapters = ChapterLite[]
|
|
217
204
|
|
|
218
205
|
export interface ChapterLite {
|
|
@@ -286,16 +273,20 @@ export interface RoleReorderBody {
|
|
|
286
273
|
}
|
|
287
274
|
|
|
288
275
|
export interface CommentUpdateBody {
|
|
289
|
-
comment_id: string
|
|
290
276
|
body: string
|
|
291
277
|
}
|
|
292
278
|
|
|
293
|
-
export interface
|
|
294
|
-
|
|
279
|
+
export interface Comments {
|
|
280
|
+
comments: Comment[]
|
|
281
|
+
authors: Author[]
|
|
295
282
|
}
|
|
296
283
|
|
|
297
|
-
export interface
|
|
298
|
-
|
|
284
|
+
export interface Comment {
|
|
285
|
+
parent_id?: string | null
|
|
286
|
+
body?: string | null
|
|
287
|
+
created_time?: string | null
|
|
288
|
+
edited_time?: string | null
|
|
289
|
+
author?: string | null
|
|
299
290
|
}
|
|
300
291
|
|
|
301
292
|
export type Tiers = {
|
|
@@ -575,11 +566,6 @@ export interface Paths {
|
|
|
575
566
|
body: CommentCreateBody
|
|
576
567
|
response: Response<CommentWithAuthor> | ErrorResponse
|
|
577
568
|
},
|
|
578
|
-
"/work/{author}/{vanity}/chapter/{url}/comments": {
|
|
579
|
-
method: "get"
|
|
580
|
-
body?: undefined
|
|
581
|
-
response: Response<Comments> | ErrorResponse
|
|
582
|
-
},
|
|
583
569
|
"/work/{author}/{vanity}/chapters/list": {
|
|
584
570
|
method: "get"
|
|
585
571
|
body?: undefined
|
|
@@ -735,21 +721,26 @@ export interface Paths {
|
|
|
735
721
|
body: RoleReorderBody
|
|
736
722
|
response: void | ErrorResponse
|
|
737
723
|
},
|
|
738
|
-
"/comment/update
|
|
724
|
+
"/comment/{id}/update": {
|
|
739
725
|
method: "post"
|
|
740
726
|
body: CommentUpdateBody
|
|
741
727
|
response: Response<CommentWithAuthor> | ErrorResponse
|
|
742
728
|
},
|
|
743
|
-
"/comment/remove
|
|
729
|
+
"/comment/{id}/remove": {
|
|
744
730
|
method: "post"
|
|
745
|
-
body
|
|
731
|
+
body?: undefined
|
|
746
732
|
response: void | ErrorResponse
|
|
747
733
|
},
|
|
748
|
-
"/comment/
|
|
734
|
+
"/comment/{id}": {
|
|
749
735
|
method: "get"
|
|
750
|
-
body
|
|
736
|
+
body?: undefined
|
|
751
737
|
response: Response<CommentWithAuthor> | ErrorResponse
|
|
752
738
|
},
|
|
739
|
+
"/comments/{under}": {
|
|
740
|
+
method: "get"
|
|
741
|
+
body?: undefined
|
|
742
|
+
response: Response<Comments> | ErrorResponse
|
|
743
|
+
},
|
|
753
744
|
"/patreon/campaign/tiers/get": {
|
|
754
745
|
method: "get"
|
|
755
746
|
body?: undefined
|
package/openapi.json
CHANGED
|
@@ -1146,83 +1146,6 @@
|
|
|
1146
1146
|
"body"
|
|
1147
1147
|
]
|
|
1148
1148
|
},
|
|
1149
|
-
"Comments": {
|
|
1150
|
-
"type": "object",
|
|
1151
|
-
"properties": {
|
|
1152
|
-
"comments": {
|
|
1153
|
-
"type": "array",
|
|
1154
|
-
"items": {
|
|
1155
|
-
"$ref": "#/components/schema/Comment"
|
|
1156
|
-
}
|
|
1157
|
-
},
|
|
1158
|
-
"authors": {
|
|
1159
|
-
"type": "array",
|
|
1160
|
-
"items": {
|
|
1161
|
-
"$ref": "#/components/schema/Author"
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
},
|
|
1165
|
-
"required": [
|
|
1166
|
-
"comments",
|
|
1167
|
-
"authors"
|
|
1168
|
-
]
|
|
1169
|
-
},
|
|
1170
|
-
"Comment": {
|
|
1171
|
-
"type": "object",
|
|
1172
|
-
"properties": {
|
|
1173
|
-
"parent_id": {
|
|
1174
|
-
"anyOf": [
|
|
1175
|
-
{
|
|
1176
|
-
"type": "string"
|
|
1177
|
-
},
|
|
1178
|
-
{
|
|
1179
|
-
"type": "null"
|
|
1180
|
-
}
|
|
1181
|
-
]
|
|
1182
|
-
},
|
|
1183
|
-
"body": {
|
|
1184
|
-
"anyOf": [
|
|
1185
|
-
{
|
|
1186
|
-
"type": "string",
|
|
1187
|
-
"maxLength": 1024
|
|
1188
|
-
},
|
|
1189
|
-
{
|
|
1190
|
-
"type": "null"
|
|
1191
|
-
}
|
|
1192
|
-
]
|
|
1193
|
-
},
|
|
1194
|
-
"created_time": {
|
|
1195
|
-
"anyOf": [
|
|
1196
|
-
{
|
|
1197
|
-
"type": "string"
|
|
1198
|
-
},
|
|
1199
|
-
{
|
|
1200
|
-
"type": "null"
|
|
1201
|
-
}
|
|
1202
|
-
]
|
|
1203
|
-
},
|
|
1204
|
-
"edited_time": {
|
|
1205
|
-
"anyOf": [
|
|
1206
|
-
{
|
|
1207
|
-
"type": "string"
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
"type": "null"
|
|
1211
|
-
}
|
|
1212
|
-
]
|
|
1213
|
-
},
|
|
1214
|
-
"author": {
|
|
1215
|
-
"anyOf": [
|
|
1216
|
-
{
|
|
1217
|
-
"type": "string"
|
|
1218
|
-
},
|
|
1219
|
-
{
|
|
1220
|
-
"type": "null"
|
|
1221
|
-
}
|
|
1222
|
-
]
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
},
|
|
1226
1149
|
"Chapters": {
|
|
1227
1150
|
"type": "array",
|
|
1228
1151
|
"items": {
|
|
@@ -1574,40 +1497,91 @@
|
|
|
1574
1497
|
"CommentUpdateBody": {
|
|
1575
1498
|
"type": "object",
|
|
1576
1499
|
"properties": {
|
|
1577
|
-
"comment_id": {
|
|
1578
|
-
"type": "string"
|
|
1579
|
-
},
|
|
1580
1500
|
"body": {
|
|
1581
1501
|
"type": "string",
|
|
1582
1502
|
"maxLength": 1024
|
|
1583
1503
|
}
|
|
1584
1504
|
},
|
|
1585
1505
|
"required": [
|
|
1586
|
-
"comment_id",
|
|
1587
1506
|
"body"
|
|
1588
1507
|
]
|
|
1589
1508
|
},
|
|
1590
|
-
"
|
|
1509
|
+
"Comments": {
|
|
1591
1510
|
"type": "object",
|
|
1592
1511
|
"properties": {
|
|
1593
|
-
"
|
|
1594
|
-
"type": "
|
|
1512
|
+
"comments": {
|
|
1513
|
+
"type": "array",
|
|
1514
|
+
"items": {
|
|
1515
|
+
"$ref": "#/components/schema/Comment"
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
"authors": {
|
|
1519
|
+
"type": "array",
|
|
1520
|
+
"items": {
|
|
1521
|
+
"$ref": "#/components/schema/Author"
|
|
1522
|
+
}
|
|
1595
1523
|
}
|
|
1596
1524
|
},
|
|
1597
1525
|
"required": [
|
|
1598
|
-
"
|
|
1526
|
+
"comments",
|
|
1527
|
+
"authors"
|
|
1599
1528
|
]
|
|
1600
1529
|
},
|
|
1601
|
-
"
|
|
1530
|
+
"Comment": {
|
|
1602
1531
|
"type": "object",
|
|
1603
1532
|
"properties": {
|
|
1604
|
-
"
|
|
1605
|
-
"
|
|
1533
|
+
"parent_id": {
|
|
1534
|
+
"anyOf": [
|
|
1535
|
+
{
|
|
1536
|
+
"type": "string"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"type": "null"
|
|
1540
|
+
}
|
|
1541
|
+
]
|
|
1542
|
+
},
|
|
1543
|
+
"body": {
|
|
1544
|
+
"anyOf": [
|
|
1545
|
+
{
|
|
1546
|
+
"type": "string",
|
|
1547
|
+
"maxLength": 1024
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"type": "null"
|
|
1551
|
+
}
|
|
1552
|
+
]
|
|
1553
|
+
},
|
|
1554
|
+
"created_time": {
|
|
1555
|
+
"anyOf": [
|
|
1556
|
+
{
|
|
1557
|
+
"type": "string"
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"type": "null"
|
|
1561
|
+
}
|
|
1562
|
+
]
|
|
1563
|
+
},
|
|
1564
|
+
"edited_time": {
|
|
1565
|
+
"anyOf": [
|
|
1566
|
+
{
|
|
1567
|
+
"type": "string"
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
"type": "null"
|
|
1571
|
+
}
|
|
1572
|
+
]
|
|
1573
|
+
},
|
|
1574
|
+
"author": {
|
|
1575
|
+
"anyOf": [
|
|
1576
|
+
{
|
|
1577
|
+
"type": "string"
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
"type": "null"
|
|
1581
|
+
}
|
|
1582
|
+
]
|
|
1606
1583
|
}
|
|
1607
|
-
}
|
|
1608
|
-
"required": [
|
|
1609
|
-
"comment_id"
|
|
1610
|
-
]
|
|
1584
|
+
}
|
|
1611
1585
|
},
|
|
1612
1586
|
"Tiers": {
|
|
1613
1587
|
"type": "array",
|
|
@@ -3206,54 +3180,6 @@
|
|
|
3206
3180
|
}
|
|
3207
3181
|
}
|
|
3208
3182
|
},
|
|
3209
|
-
"/work/{author}/{vanity}/chapter/{url}/comments": {
|
|
3210
|
-
"parameters": [
|
|
3211
|
-
{
|
|
3212
|
-
"name": "author",
|
|
3213
|
-
"in": "path"
|
|
3214
|
-
},
|
|
3215
|
-
{
|
|
3216
|
-
"name": "vanity",
|
|
3217
|
-
"in": "path"
|
|
3218
|
-
},
|
|
3219
|
-
{
|
|
3220
|
-
"name": "url",
|
|
3221
|
-
"in": "path"
|
|
3222
|
-
}
|
|
3223
|
-
],
|
|
3224
|
-
"get": {
|
|
3225
|
-
"responses": {
|
|
3226
|
-
"200": {
|
|
3227
|
-
"description": "200 response",
|
|
3228
|
-
"content": {
|
|
3229
|
-
"application/json": {
|
|
3230
|
-
"schema": {
|
|
3231
|
-
"type": "object",
|
|
3232
|
-
"properties": {
|
|
3233
|
-
"data": {
|
|
3234
|
-
"$ref": "#/components/schemas/Comments"
|
|
3235
|
-
}
|
|
3236
|
-
},
|
|
3237
|
-
"required": [
|
|
3238
|
-
"data"
|
|
3239
|
-
]
|
|
3240
|
-
}
|
|
3241
|
-
}
|
|
3242
|
-
}
|
|
3243
|
-
},
|
|
3244
|
-
"default": {
|
|
3245
|
-
"description": "Error",
|
|
3246
|
-
"content": {
|
|
3247
|
-
"application/json": {
|
|
3248
|
-
"schema": {
|
|
3249
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
3250
|
-
}
|
|
3251
|
-
}
|
|
3252
|
-
}
|
|
3253
|
-
}
|
|
3254
|
-
}
|
|
3255
|
-
}
|
|
3256
|
-
},
|
|
3257
3183
|
"/work/{author}/{vanity}/chapters/list": {
|
|
3258
3184
|
"parameters": [
|
|
3259
3185
|
{
|
|
@@ -4765,7 +4691,13 @@
|
|
|
4765
4691
|
}
|
|
4766
4692
|
}
|
|
4767
4693
|
},
|
|
4768
|
-
"/comment/update
|
|
4694
|
+
"/comment/{id}/update": {
|
|
4695
|
+
"parameters": [
|
|
4696
|
+
{
|
|
4697
|
+
"name": "id",
|
|
4698
|
+
"in": "path"
|
|
4699
|
+
}
|
|
4700
|
+
],
|
|
4769
4701
|
"post": {
|
|
4770
4702
|
"requestBody": {
|
|
4771
4703
|
"content": {
|
|
@@ -4808,17 +4740,14 @@
|
|
|
4808
4740
|
}
|
|
4809
4741
|
}
|
|
4810
4742
|
},
|
|
4811
|
-
"/comment/remove
|
|
4743
|
+
"/comment/{id}/remove": {
|
|
4744
|
+
"parameters": [
|
|
4745
|
+
{
|
|
4746
|
+
"name": "id",
|
|
4747
|
+
"in": "path"
|
|
4748
|
+
}
|
|
4749
|
+
],
|
|
4812
4750
|
"post": {
|
|
4813
|
-
"requestBody": {
|
|
4814
|
-
"content": {
|
|
4815
|
-
"application/json": {
|
|
4816
|
-
"schema": {
|
|
4817
|
-
"$ref": "#/components/schemas/CommentRemoveBody"
|
|
4818
|
-
}
|
|
4819
|
-
}
|
|
4820
|
-
}
|
|
4821
|
-
},
|
|
4822
4751
|
"responses": {
|
|
4823
4752
|
"200": {
|
|
4824
4753
|
"description": "200 response"
|
|
@@ -4836,17 +4765,54 @@
|
|
|
4836
4765
|
}
|
|
4837
4766
|
}
|
|
4838
4767
|
},
|
|
4839
|
-
"/comment/
|
|
4768
|
+
"/comment/{id}": {
|
|
4769
|
+
"parameters": [
|
|
4770
|
+
{
|
|
4771
|
+
"name": "id",
|
|
4772
|
+
"in": "path"
|
|
4773
|
+
}
|
|
4774
|
+
],
|
|
4840
4775
|
"get": {
|
|
4841
|
-
"
|
|
4842
|
-
"
|
|
4843
|
-
"
|
|
4844
|
-
|
|
4845
|
-
|
|
4776
|
+
"responses": {
|
|
4777
|
+
"200": {
|
|
4778
|
+
"description": "200 response",
|
|
4779
|
+
"content": {
|
|
4780
|
+
"application/json": {
|
|
4781
|
+
"schema": {
|
|
4782
|
+
"type": "object",
|
|
4783
|
+
"properties": {
|
|
4784
|
+
"data": {
|
|
4785
|
+
"$ref": "#/components/schemas/CommentWithAuthor"
|
|
4786
|
+
}
|
|
4787
|
+
},
|
|
4788
|
+
"required": [
|
|
4789
|
+
"data"
|
|
4790
|
+
]
|
|
4791
|
+
}
|
|
4792
|
+
}
|
|
4793
|
+
}
|
|
4794
|
+
},
|
|
4795
|
+
"default": {
|
|
4796
|
+
"description": "Error",
|
|
4797
|
+
"content": {
|
|
4798
|
+
"application/json": {
|
|
4799
|
+
"schema": {
|
|
4800
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4801
|
+
}
|
|
4846
4802
|
}
|
|
4847
4803
|
}
|
|
4848
4804
|
}
|
|
4849
|
-
}
|
|
4805
|
+
}
|
|
4806
|
+
}
|
|
4807
|
+
},
|
|
4808
|
+
"/comments/{under}": {
|
|
4809
|
+
"parameters": [
|
|
4810
|
+
{
|
|
4811
|
+
"name": "under",
|
|
4812
|
+
"in": "path"
|
|
4813
|
+
}
|
|
4814
|
+
],
|
|
4815
|
+
"get": {
|
|
4850
4816
|
"responses": {
|
|
4851
4817
|
"200": {
|
|
4852
4818
|
"description": "200 response",
|
|
@@ -4856,7 +4822,7 @@
|
|
|
4856
4822
|
"type": "object",
|
|
4857
4823
|
"properties": {
|
|
4858
4824
|
"data": {
|
|
4859
|
-
"$ref": "#/components/schemas/
|
|
4825
|
+
"$ref": "#/components/schemas/Comments"
|
|
4860
4826
|
}
|
|
4861
4827
|
},
|
|
4862
4828
|
"required": [
|
package/package.json
CHANGED