api.fluff4.me 1.0.250 → 1.0.255
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 +12 -1
- package/openapi.json +106 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ export interface Chapter {
|
|
|
161
161
|
notes_before?: string | null
|
|
162
162
|
notes_after?: string | null
|
|
163
163
|
mentions?: Author[] | null
|
|
164
|
+
root_comment?: string | null
|
|
164
165
|
global_tags?: string[] | null
|
|
165
166
|
custom_tags?: CustomTag[] | null
|
|
166
167
|
}
|
|
@@ -187,6 +188,11 @@ export interface ChapterUpdateBody {
|
|
|
187
188
|
custom_tags?: string[] | null
|
|
188
189
|
}
|
|
189
190
|
|
|
191
|
+
export interface ChapterReorderBody {
|
|
192
|
+
relative_to: string
|
|
193
|
+
position: string
|
|
194
|
+
}
|
|
195
|
+
|
|
190
196
|
export interface CommentWithAuthor {
|
|
191
197
|
parent_id?: string | null
|
|
192
198
|
body?: TextBody | null
|
|
@@ -561,6 +567,11 @@ export interface Paths {
|
|
|
561
567
|
body?: undefined
|
|
562
568
|
response: void | ErrorResponse
|
|
563
569
|
},
|
|
570
|
+
"/work/{author}/{vanity}/chapter/{url}/reorder": {
|
|
571
|
+
method: "post"
|
|
572
|
+
body: ChapterReorderBody
|
|
573
|
+
response: void | ErrorResponse
|
|
574
|
+
},
|
|
564
575
|
"/work/{author}/{vanity}/chapter/{url}/comment/add": {
|
|
565
576
|
method: "post"
|
|
566
577
|
body: CommentCreateBody
|
|
@@ -739,7 +750,7 @@ export interface Paths {
|
|
|
739
750
|
"/comments/{under}": {
|
|
740
751
|
method: "get"
|
|
741
752
|
body?: undefined
|
|
742
|
-
response:
|
|
753
|
+
response: PaginatedResponse<Comments> | ErrorResponse
|
|
743
754
|
},
|
|
744
755
|
"/patreon/campaign/tiers/get": {
|
|
745
756
|
method: "get"
|
package/openapi.json
CHANGED
|
@@ -850,6 +850,16 @@
|
|
|
850
850
|
}
|
|
851
851
|
]
|
|
852
852
|
},
|
|
853
|
+
"root_comment": {
|
|
854
|
+
"anyOf": [
|
|
855
|
+
{
|
|
856
|
+
"type": "string"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"type": "null"
|
|
860
|
+
}
|
|
861
|
+
]
|
|
862
|
+
},
|
|
853
863
|
"global_tags": {
|
|
854
864
|
"anyOf": [
|
|
855
865
|
{
|
|
@@ -1069,6 +1079,21 @@
|
|
|
1069
1079
|
}
|
|
1070
1080
|
}
|
|
1071
1081
|
},
|
|
1082
|
+
"ChapterReorderBody": {
|
|
1083
|
+
"type": "object",
|
|
1084
|
+
"properties": {
|
|
1085
|
+
"relative_to": {
|
|
1086
|
+
"type": "string"
|
|
1087
|
+
},
|
|
1088
|
+
"position": {
|
|
1089
|
+
"type": "string"
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
"required": [
|
|
1093
|
+
"relative_to",
|
|
1094
|
+
"position"
|
|
1095
|
+
]
|
|
1096
|
+
},
|
|
1072
1097
|
"CommentWithAuthor": {
|
|
1073
1098
|
"type": "object",
|
|
1074
1099
|
"properties": {
|
|
@@ -3123,6 +3148,48 @@
|
|
|
3123
3148
|
}
|
|
3124
3149
|
}
|
|
3125
3150
|
},
|
|
3151
|
+
"/work/{author}/{vanity}/chapter/{url}/reorder": {
|
|
3152
|
+
"parameters": [
|
|
3153
|
+
{
|
|
3154
|
+
"name": "author",
|
|
3155
|
+
"in": "path"
|
|
3156
|
+
},
|
|
3157
|
+
{
|
|
3158
|
+
"name": "vanity",
|
|
3159
|
+
"in": "path"
|
|
3160
|
+
},
|
|
3161
|
+
{
|
|
3162
|
+
"name": "url",
|
|
3163
|
+
"in": "path"
|
|
3164
|
+
}
|
|
3165
|
+
],
|
|
3166
|
+
"post": {
|
|
3167
|
+
"requestBody": {
|
|
3168
|
+
"content": {
|
|
3169
|
+
"application/json": {
|
|
3170
|
+
"schema": {
|
|
3171
|
+
"$ref": "#/components/schemas/ChapterReorderBody"
|
|
3172
|
+
}
|
|
3173
|
+
}
|
|
3174
|
+
}
|
|
3175
|
+
},
|
|
3176
|
+
"responses": {
|
|
3177
|
+
"200": {
|
|
3178
|
+
"description": "200 response"
|
|
3179
|
+
},
|
|
3180
|
+
"default": {
|
|
3181
|
+
"description": "Error",
|
|
3182
|
+
"content": {
|
|
3183
|
+
"application/json": {
|
|
3184
|
+
"schema": {
|
|
3185
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
3186
|
+
}
|
|
3187
|
+
}
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
}
|
|
3192
|
+
},
|
|
3126
3193
|
"/work/{author}/{vanity}/chapter/{url}/comment/add": {
|
|
3127
3194
|
"parameters": [
|
|
3128
3195
|
{
|
|
@@ -4810,6 +4877,16 @@
|
|
|
4810
4877
|
{
|
|
4811
4878
|
"name": "under",
|
|
4812
4879
|
"in": "path"
|
|
4880
|
+
},
|
|
4881
|
+
{
|
|
4882
|
+
"name": "page",
|
|
4883
|
+
"in": "query",
|
|
4884
|
+
"description": "The page of data to query from. This endpoint uses a page size of 25 by default."
|
|
4885
|
+
},
|
|
4886
|
+
{
|
|
4887
|
+
"name": "page_size",
|
|
4888
|
+
"in": "query",
|
|
4889
|
+
"description": "The custom page size to return. This endpoint uses a page size of 25 by default. The custom page size cannot be raised above the default."
|
|
4813
4890
|
}
|
|
4814
4891
|
],
|
|
4815
4892
|
"get": {
|
|
@@ -4823,10 +4900,38 @@
|
|
|
4823
4900
|
"properties": {
|
|
4824
4901
|
"data": {
|
|
4825
4902
|
"$ref": "#/components/schemas/Comments"
|
|
4903
|
+
},
|
|
4904
|
+
"has_more": {
|
|
4905
|
+
"type": "boolean"
|
|
4906
|
+
},
|
|
4907
|
+
"page": {
|
|
4908
|
+
"type": "number",
|
|
4909
|
+
"minimum": 0
|
|
4910
|
+
},
|
|
4911
|
+
"page_count": {
|
|
4912
|
+
"type": [
|
|
4913
|
+
"boolean",
|
|
4914
|
+
"number"
|
|
4915
|
+
],
|
|
4916
|
+
"anyOf": [
|
|
4917
|
+
{
|
|
4918
|
+
"type": "boolean",
|
|
4919
|
+
"enum": [
|
|
4920
|
+
true
|
|
4921
|
+
]
|
|
4922
|
+
},
|
|
4923
|
+
{
|
|
4924
|
+
"type": "number",
|
|
4925
|
+
"minimum": 0
|
|
4926
|
+
}
|
|
4927
|
+
]
|
|
4826
4928
|
}
|
|
4827
4929
|
},
|
|
4828
4930
|
"required": [
|
|
4829
|
-
"data"
|
|
4931
|
+
"data",
|
|
4932
|
+
"has_more",
|
|
4933
|
+
"page",
|
|
4934
|
+
"page_count"
|
|
4830
4935
|
]
|
|
4831
4936
|
}
|
|
4832
4937
|
}
|
package/package.json
CHANGED