api.fluff4.me 1.0.263 → 1.0.265
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 +15 -5
- package/openapi.json +63 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -265,7 +265,7 @@ export interface RoleReorderBody {
|
|
|
265
265
|
roles: string[]
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
export interface
|
|
268
|
+
export interface CommentResolved {
|
|
269
269
|
comment_id: string
|
|
270
270
|
parent_id?: string | null
|
|
271
271
|
body?: TextBody | null
|
|
@@ -286,7 +286,7 @@ export interface CommentUpdateBody {
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
export interface Comments {
|
|
289
|
-
comments:
|
|
289
|
+
comments: CommentResolved[]
|
|
290
290
|
authors: Author[]
|
|
291
291
|
}
|
|
292
292
|
|
|
@@ -580,6 +580,11 @@ export interface Paths {
|
|
|
580
580
|
body?: undefined
|
|
581
581
|
response: void | ErrorResponse
|
|
582
582
|
},
|
|
583
|
+
"/work/{author}/{vanity}/chapter/{url}/unreact": {
|
|
584
|
+
method: "post"
|
|
585
|
+
body?: undefined
|
|
586
|
+
response: void | ErrorResponse
|
|
587
|
+
},
|
|
583
588
|
"/work/{author}/{vanity}/chapters/list": {
|
|
584
589
|
method: "get"
|
|
585
590
|
body?: undefined
|
|
@@ -738,12 +743,12 @@ export interface Paths {
|
|
|
738
743
|
"/comment/add/{under}": {
|
|
739
744
|
method: "post"
|
|
740
745
|
body: CommentCreateBody
|
|
741
|
-
response: Response<
|
|
746
|
+
response: Response<CommentResolved> | ErrorResponse
|
|
742
747
|
},
|
|
743
748
|
"/comment/{id}/update": {
|
|
744
749
|
method: "post"
|
|
745
750
|
body: CommentUpdateBody
|
|
746
|
-
response: Response<
|
|
751
|
+
response: Response<CommentResolved> | ErrorResponse
|
|
747
752
|
},
|
|
748
753
|
"/comment/{id}/remove": {
|
|
749
754
|
method: "post"
|
|
@@ -753,13 +758,18 @@ export interface Paths {
|
|
|
753
758
|
"/comment/{id}": {
|
|
754
759
|
method: "get"
|
|
755
760
|
body?: undefined
|
|
756
|
-
response: Response<
|
|
761
|
+
response: Response<CommentResolved> | ErrorResponse
|
|
757
762
|
},
|
|
758
763
|
"/comment/{comment_id}/react/{type}": {
|
|
759
764
|
method: "post"
|
|
760
765
|
body?: undefined
|
|
761
766
|
response: void | ErrorResponse
|
|
762
767
|
},
|
|
768
|
+
"/comment/{comment_id}/unreact": {
|
|
769
|
+
method: "post"
|
|
770
|
+
body?: undefined
|
|
771
|
+
response: void | ErrorResponse
|
|
772
|
+
},
|
|
763
773
|
"/comments/{under}": {
|
|
764
774
|
method: "get"
|
|
765
775
|
body?: undefined
|
package/openapi.json
CHANGED
|
@@ -1442,7 +1442,7 @@
|
|
|
1442
1442
|
"roles"
|
|
1443
1443
|
]
|
|
1444
1444
|
},
|
|
1445
|
-
"
|
|
1445
|
+
"CommentResolved": {
|
|
1446
1446
|
"type": "object",
|
|
1447
1447
|
"properties": {
|
|
1448
1448
|
"comment_id": {
|
|
@@ -1570,7 +1570,7 @@
|
|
|
1570
1570
|
"comments": {
|
|
1571
1571
|
"type": "array",
|
|
1572
1572
|
"items": {
|
|
1573
|
-
"$ref": "#/components/schema/
|
|
1573
|
+
"$ref": "#/components/schema/CommentResolved"
|
|
1574
1574
|
}
|
|
1575
1575
|
},
|
|
1576
1576
|
"authors": {
|
|
@@ -3226,6 +3226,39 @@
|
|
|
3226
3226
|
}
|
|
3227
3227
|
}
|
|
3228
3228
|
},
|
|
3229
|
+
"/work/{author}/{vanity}/chapter/{url}/unreact": {
|
|
3230
|
+
"parameters": [
|
|
3231
|
+
{
|
|
3232
|
+
"name": "author",
|
|
3233
|
+
"in": "path"
|
|
3234
|
+
},
|
|
3235
|
+
{
|
|
3236
|
+
"name": "vanity",
|
|
3237
|
+
"in": "path"
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
"name": "url",
|
|
3241
|
+
"in": "path"
|
|
3242
|
+
}
|
|
3243
|
+
],
|
|
3244
|
+
"post": {
|
|
3245
|
+
"responses": {
|
|
3246
|
+
"200": {
|
|
3247
|
+
"description": "200 response"
|
|
3248
|
+
},
|
|
3249
|
+
"default": {
|
|
3250
|
+
"description": "Error",
|
|
3251
|
+
"content": {
|
|
3252
|
+
"application/json": {
|
|
3253
|
+
"schema": {
|
|
3254
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
3255
|
+
}
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
},
|
|
3229
3262
|
"/work/{author}/{vanity}/chapters/list": {
|
|
3230
3263
|
"parameters": [
|
|
3231
3264
|
{
|
|
@@ -4763,7 +4796,7 @@
|
|
|
4763
4796
|
"type": "object",
|
|
4764
4797
|
"properties": {
|
|
4765
4798
|
"data": {
|
|
4766
|
-
"$ref": "#/components/schemas/
|
|
4799
|
+
"$ref": "#/components/schemas/CommentResolved"
|
|
4767
4800
|
}
|
|
4768
4801
|
},
|
|
4769
4802
|
"required": [
|
|
@@ -4812,7 +4845,7 @@
|
|
|
4812
4845
|
"type": "object",
|
|
4813
4846
|
"properties": {
|
|
4814
4847
|
"data": {
|
|
4815
|
-
"$ref": "#/components/schemas/
|
|
4848
|
+
"$ref": "#/components/schemas/CommentResolved"
|
|
4816
4849
|
}
|
|
4817
4850
|
},
|
|
4818
4851
|
"required": [
|
|
@@ -4877,7 +4910,7 @@
|
|
|
4877
4910
|
"type": "object",
|
|
4878
4911
|
"properties": {
|
|
4879
4912
|
"data": {
|
|
4880
|
-
"$ref": "#/components/schemas/
|
|
4913
|
+
"$ref": "#/components/schemas/CommentResolved"
|
|
4881
4914
|
}
|
|
4882
4915
|
},
|
|
4883
4916
|
"required": [
|
|
@@ -4929,6 +4962,31 @@
|
|
|
4929
4962
|
}
|
|
4930
4963
|
}
|
|
4931
4964
|
},
|
|
4965
|
+
"/comment/{comment_id}/unreact": {
|
|
4966
|
+
"parameters": [
|
|
4967
|
+
{
|
|
4968
|
+
"name": "comment_id",
|
|
4969
|
+
"in": "path"
|
|
4970
|
+
}
|
|
4971
|
+
],
|
|
4972
|
+
"post": {
|
|
4973
|
+
"responses": {
|
|
4974
|
+
"200": {
|
|
4975
|
+
"description": "200 response"
|
|
4976
|
+
},
|
|
4977
|
+
"default": {
|
|
4978
|
+
"description": "Error",
|
|
4979
|
+
"content": {
|
|
4980
|
+
"application/json": {
|
|
4981
|
+
"schema": {
|
|
4982
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4983
|
+
}
|
|
4984
|
+
}
|
|
4985
|
+
}
|
|
4986
|
+
}
|
|
4987
|
+
}
|
|
4988
|
+
}
|
|
4989
|
+
},
|
|
4932
4990
|
"/comments/{under}": {
|
|
4933
4991
|
"parameters": [
|
|
4934
4992
|
{
|
package/package.json
CHANGED