api.fluff4.me 1.0.246 → 1.0.251

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.
Files changed (3) hide show
  1. package/index.d.ts +29 -28
  2. package/openapi.json +155 -132
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -187,6 +187,11 @@ export interface ChapterUpdateBody {
187
187
  custom_tags?: string[] | null
188
188
  }
189
189
 
190
+ export interface ChapterReorderBody {
191
+ relative_to: string
192
+ position: string
193
+ }
194
+
190
195
  export interface CommentWithAuthor {
191
196
  parent_id?: string | null
192
197
  body?: TextBody | null
@@ -200,19 +205,6 @@ export interface CommentCreateBody {
200
205
  parent_id?: string | null
201
206
  }
202
207
 
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
208
  export type Chapters = ChapterLite[]
217
209
 
218
210
  export interface ChapterLite {
@@ -286,16 +278,20 @@ export interface RoleReorderBody {
286
278
  }
287
279
 
288
280
  export interface CommentUpdateBody {
289
- comment_id: string
290
281
  body: string
291
282
  }
292
283
 
293
- export interface CommentRemoveBody {
294
- comment_id: string
284
+ export interface Comments {
285
+ comments: Comment[]
286
+ authors: Author[]
295
287
  }
296
288
 
297
- export interface CommentBody {
298
- comment_id: string
289
+ export interface Comment {
290
+ parent_id?: string | null
291
+ body?: string | null
292
+ created_time?: string | null
293
+ edited_time?: string | null
294
+ author?: string | null
299
295
  }
300
296
 
301
297
  export type Tiers = {
@@ -570,16 +566,16 @@ export interface Paths {
570
566
  body?: undefined
571
567
  response: void | ErrorResponse
572
568
  },
569
+ "/work/{author}/{vanity}/chapter/{url}/reorder": {
570
+ method: "post"
571
+ body: ChapterReorderBody
572
+ response: void | ErrorResponse
573
+ },
573
574
  "/work/{author}/{vanity}/chapter/{url}/comment/add": {
574
575
  method: "post"
575
576
  body: CommentCreateBody
576
577
  response: Response<CommentWithAuthor> | ErrorResponse
577
578
  },
578
- "/work/{author}/{vanity}/chapter/{url}/comments": {
579
- method: "get"
580
- body?: undefined
581
- response: Response<Comments> | ErrorResponse
582
- },
583
579
  "/work/{author}/{vanity}/chapters/list": {
584
580
  method: "get"
585
581
  body?: undefined
@@ -735,21 +731,26 @@ export interface Paths {
735
731
  body: RoleReorderBody
736
732
  response: void | ErrorResponse
737
733
  },
738
- "/comment/update/chapter": {
734
+ "/comment/{id}/update": {
739
735
  method: "post"
740
736
  body: CommentUpdateBody
741
737
  response: Response<CommentWithAuthor> | ErrorResponse
742
738
  },
743
- "/comment/remove/chapter": {
739
+ "/comment/{id}/remove": {
744
740
  method: "post"
745
- body: CommentRemoveBody
741
+ body?: undefined
746
742
  response: void | ErrorResponse
747
743
  },
748
- "/comment/get": {
744
+ "/comment/{id}": {
749
745
  method: "get"
750
- body: CommentBody
746
+ body?: undefined
751
747
  response: Response<CommentWithAuthor> | ErrorResponse
752
748
  },
749
+ "/comments/{under}": {
750
+ method: "get"
751
+ body?: undefined
752
+ response: Response<Comments> | ErrorResponse
753
+ },
753
754
  "/patreon/campaign/tiers/get": {
754
755
  method: "get"
755
756
  body?: undefined
package/openapi.json CHANGED
@@ -1069,6 +1069,21 @@
1069
1069
  }
1070
1070
  }
1071
1071
  },
1072
+ "ChapterReorderBody": {
1073
+ "type": "object",
1074
+ "properties": {
1075
+ "relative_to": {
1076
+ "type": "string"
1077
+ },
1078
+ "position": {
1079
+ "type": "string"
1080
+ }
1081
+ },
1082
+ "required": [
1083
+ "relative_to",
1084
+ "position"
1085
+ ]
1086
+ },
1072
1087
  "CommentWithAuthor": {
1073
1088
  "type": "object",
1074
1089
  "properties": {
@@ -1146,83 +1161,6 @@
1146
1161
  "body"
1147
1162
  ]
1148
1163
  },
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
1164
  "Chapters": {
1227
1165
  "type": "array",
1228
1166
  "items": {
@@ -1574,40 +1512,91 @@
1574
1512
  "CommentUpdateBody": {
1575
1513
  "type": "object",
1576
1514
  "properties": {
1577
- "comment_id": {
1578
- "type": "string"
1579
- },
1580
1515
  "body": {
1581
1516
  "type": "string",
1582
1517
  "maxLength": 1024
1583
1518
  }
1584
1519
  },
1585
1520
  "required": [
1586
- "comment_id",
1587
1521
  "body"
1588
1522
  ]
1589
1523
  },
1590
- "CommentRemoveBody": {
1524
+ "Comments": {
1591
1525
  "type": "object",
1592
1526
  "properties": {
1593
- "comment_id": {
1594
- "type": "string"
1527
+ "comments": {
1528
+ "type": "array",
1529
+ "items": {
1530
+ "$ref": "#/components/schema/Comment"
1531
+ }
1532
+ },
1533
+ "authors": {
1534
+ "type": "array",
1535
+ "items": {
1536
+ "$ref": "#/components/schema/Author"
1537
+ }
1595
1538
  }
1596
1539
  },
1597
1540
  "required": [
1598
- "comment_id"
1541
+ "comments",
1542
+ "authors"
1599
1543
  ]
1600
1544
  },
1601
- "CommentBody": {
1545
+ "Comment": {
1602
1546
  "type": "object",
1603
1547
  "properties": {
1604
- "comment_id": {
1605
- "type": "string"
1548
+ "parent_id": {
1549
+ "anyOf": [
1550
+ {
1551
+ "type": "string"
1552
+ },
1553
+ {
1554
+ "type": "null"
1555
+ }
1556
+ ]
1557
+ },
1558
+ "body": {
1559
+ "anyOf": [
1560
+ {
1561
+ "type": "string",
1562
+ "maxLength": 1024
1563
+ },
1564
+ {
1565
+ "type": "null"
1566
+ }
1567
+ ]
1568
+ },
1569
+ "created_time": {
1570
+ "anyOf": [
1571
+ {
1572
+ "type": "string"
1573
+ },
1574
+ {
1575
+ "type": "null"
1576
+ }
1577
+ ]
1578
+ },
1579
+ "edited_time": {
1580
+ "anyOf": [
1581
+ {
1582
+ "type": "string"
1583
+ },
1584
+ {
1585
+ "type": "null"
1586
+ }
1587
+ ]
1588
+ },
1589
+ "author": {
1590
+ "anyOf": [
1591
+ {
1592
+ "type": "string"
1593
+ },
1594
+ {
1595
+ "type": "null"
1596
+ }
1597
+ ]
1606
1598
  }
1607
- },
1608
- "required": [
1609
- "comment_id"
1610
- ]
1599
+ }
1611
1600
  },
1612
1601
  "Tiers": {
1613
1602
  "type": "array",
@@ -3149,7 +3138,7 @@
3149
3138
  }
3150
3139
  }
3151
3140
  },
3152
- "/work/{author}/{vanity}/chapter/{url}/comment/add": {
3141
+ "/work/{author}/{vanity}/chapter/{url}/reorder": {
3153
3142
  "parameters": [
3154
3143
  {
3155
3144
  "name": "author",
@@ -3169,29 +3158,14 @@
3169
3158
  "content": {
3170
3159
  "application/json": {
3171
3160
  "schema": {
3172
- "$ref": "#/components/schemas/CommentCreateBody"
3161
+ "$ref": "#/components/schemas/ChapterReorderBody"
3173
3162
  }
3174
3163
  }
3175
3164
  }
3176
3165
  },
3177
3166
  "responses": {
3178
3167
  "200": {
3179
- "description": "200 response",
3180
- "content": {
3181
- "application/json": {
3182
- "schema": {
3183
- "type": "object",
3184
- "properties": {
3185
- "data": {
3186
- "$ref": "#/components/schemas/CommentWithAuthor"
3187
- }
3188
- },
3189
- "required": [
3190
- "data"
3191
- ]
3192
- }
3193
- }
3194
- }
3168
+ "description": "200 response"
3195
3169
  },
3196
3170
  "default": {
3197
3171
  "description": "Error",
@@ -3206,7 +3180,7 @@
3206
3180
  }
3207
3181
  }
3208
3182
  },
3209
- "/work/{author}/{vanity}/chapter/{url}/comments": {
3183
+ "/work/{author}/{vanity}/chapter/{url}/comment/add": {
3210
3184
  "parameters": [
3211
3185
  {
3212
3186
  "name": "author",
@@ -3221,7 +3195,16 @@
3221
3195
  "in": "path"
3222
3196
  }
3223
3197
  ],
3224
- "get": {
3198
+ "post": {
3199
+ "requestBody": {
3200
+ "content": {
3201
+ "application/json": {
3202
+ "schema": {
3203
+ "$ref": "#/components/schemas/CommentCreateBody"
3204
+ }
3205
+ }
3206
+ }
3207
+ },
3225
3208
  "responses": {
3226
3209
  "200": {
3227
3210
  "description": "200 response",
@@ -3231,7 +3214,7 @@
3231
3214
  "type": "object",
3232
3215
  "properties": {
3233
3216
  "data": {
3234
- "$ref": "#/components/schemas/Comments"
3217
+ "$ref": "#/components/schemas/CommentWithAuthor"
3235
3218
  }
3236
3219
  },
3237
3220
  "required": [
@@ -4765,7 +4748,13 @@
4765
4748
  }
4766
4749
  }
4767
4750
  },
4768
- "/comment/update/chapter": {
4751
+ "/comment/{id}/update": {
4752
+ "parameters": [
4753
+ {
4754
+ "name": "id",
4755
+ "in": "path"
4756
+ }
4757
+ ],
4769
4758
  "post": {
4770
4759
  "requestBody": {
4771
4760
  "content": {
@@ -4808,17 +4797,14 @@
4808
4797
  }
4809
4798
  }
4810
4799
  },
4811
- "/comment/remove/chapter": {
4800
+ "/comment/{id}/remove": {
4801
+ "parameters": [
4802
+ {
4803
+ "name": "id",
4804
+ "in": "path"
4805
+ }
4806
+ ],
4812
4807
  "post": {
4813
- "requestBody": {
4814
- "content": {
4815
- "application/json": {
4816
- "schema": {
4817
- "$ref": "#/components/schemas/CommentRemoveBody"
4818
- }
4819
- }
4820
- }
4821
- },
4822
4808
  "responses": {
4823
4809
  "200": {
4824
4810
  "description": "200 response"
@@ -4836,17 +4822,54 @@
4836
4822
  }
4837
4823
  }
4838
4824
  },
4839
- "/comment/get": {
4825
+ "/comment/{id}": {
4826
+ "parameters": [
4827
+ {
4828
+ "name": "id",
4829
+ "in": "path"
4830
+ }
4831
+ ],
4840
4832
  "get": {
4841
- "requestBody": {
4842
- "content": {
4843
- "application/json": {
4844
- "schema": {
4845
- "$ref": "#/components/schemas/CommentBody"
4833
+ "responses": {
4834
+ "200": {
4835
+ "description": "200 response",
4836
+ "content": {
4837
+ "application/json": {
4838
+ "schema": {
4839
+ "type": "object",
4840
+ "properties": {
4841
+ "data": {
4842
+ "$ref": "#/components/schemas/CommentWithAuthor"
4843
+ }
4844
+ },
4845
+ "required": [
4846
+ "data"
4847
+ ]
4848
+ }
4849
+ }
4850
+ }
4851
+ },
4852
+ "default": {
4853
+ "description": "Error",
4854
+ "content": {
4855
+ "application/json": {
4856
+ "schema": {
4857
+ "$ref": "#/components/schemas/ErrorResponse"
4858
+ }
4846
4859
  }
4847
4860
  }
4848
4861
  }
4849
- },
4862
+ }
4863
+ }
4864
+ },
4865
+ "/comments/{under}": {
4866
+ "parameters": [
4867
+ {
4868
+ "name": "under",
4869
+ "in": "path"
4870
+ }
4871
+ ],
4872
+ "get": {
4850
4873
  "responses": {
4851
4874
  "200": {
4852
4875
  "description": "200 response",
@@ -4856,7 +4879,7 @@
4856
4879
  "type": "object",
4857
4880
  "properties": {
4858
4881
  "data": {
4859
- "$ref": "#/components/schemas/CommentWithAuthor"
4882
+ "$ref": "#/components/schemas/Comments"
4860
4883
  }
4861
4884
  },
4862
4885
  "required": [
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.246",
3
+ "version": "1.0.251",
4
4
  "types": "index.d.ts"
5
5
  }