api.fluff4.me 1.0.257 → 1.0.259

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 +19 -19
  2. package/openapi.json +136 -144
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -193,20 +193,6 @@ export interface ChapterReorderBody {
193
193
  position: string
194
194
  }
195
195
 
196
- export interface CommentWithAuthor {
197
- comment_id: string
198
- parent_id?: string | null
199
- body?: TextBody | null
200
- created_time?: string | null
201
- edited_time?: string | null
202
- author?: string | null
203
- }
204
-
205
- export interface CommentCreateBody {
206
- body: string
207
- parent_id?: string | null
208
- }
209
-
210
196
  export type Chapters = ChapterLite[]
211
197
 
212
198
  export interface ChapterLite {
@@ -279,6 +265,20 @@ export interface RoleReorderBody {
279
265
  roles: string[]
280
266
  }
281
267
 
268
+ export interface CommentWithAuthor {
269
+ comment_id: string
270
+ parent_id?: string | null
271
+ body?: TextBody | null
272
+ created_time?: string | null
273
+ edited_time?: string | null
274
+ author?: string | null
275
+ }
276
+
277
+ export interface CommentCreateBody {
278
+ body: string
279
+ parent_id?: string | null
280
+ }
281
+
282
282
  export interface CommentUpdateBody {
283
283
  body: string
284
284
  }
@@ -574,11 +574,6 @@ export interface Paths {
574
574
  body: ChapterReorderBody
575
575
  response: void | ErrorResponse
576
576
  },
577
- "/work/{author}/{vanity}/chapter/{url}/comment/add": {
578
- method: "post"
579
- body: CommentCreateBody
580
- response: Response<CommentWithAuthor> | ErrorResponse
581
- },
582
577
  "/work/{author}/{vanity}/chapters/list": {
583
578
  method: "get"
584
579
  body?: undefined
@@ -734,6 +729,11 @@ export interface Paths {
734
729
  body: RoleReorderBody
735
730
  response: void | ErrorResponse
736
731
  },
732
+ "/comment/add/{under}": {
733
+ method: "post"
734
+ body: CommentCreateBody
735
+ response: Response<CommentWithAuthor> | ErrorResponse
736
+ },
737
737
  "/comment/{id}/update": {
738
738
  method: "post"
739
739
  body: CommentUpdateBody
package/openapi.json CHANGED
@@ -1094,93 +1094,6 @@
1094
1094
  "position"
1095
1095
  ]
1096
1096
  },
1097
- "CommentWithAuthor": {
1098
- "type": "object",
1099
- "properties": {
1100
- "comment_id": {
1101
- "type": "string",
1102
- "minLength": 36,
1103
- "maxLength": 36
1104
- },
1105
- "parent_id": {
1106
- "anyOf": [
1107
- {
1108
- "type": "string",
1109
- "minLength": 36,
1110
- "maxLength": 36
1111
- },
1112
- {
1113
- "type": "null"
1114
- }
1115
- ]
1116
- },
1117
- "body": {
1118
- "anyOf": [
1119
- {
1120
- "$ref": "#/components/schema/TextBody"
1121
- },
1122
- {
1123
- "type": "null"
1124
- }
1125
- ]
1126
- },
1127
- "created_time": {
1128
- "anyOf": [
1129
- {
1130
- "type": "string"
1131
- },
1132
- {
1133
- "type": "null"
1134
- }
1135
- ]
1136
- },
1137
- "edited_time": {
1138
- "anyOf": [
1139
- {
1140
- "type": "string"
1141
- },
1142
- {
1143
- "type": "null"
1144
- }
1145
- ]
1146
- },
1147
- "author": {
1148
- "anyOf": [
1149
- {
1150
- "type": "string"
1151
- },
1152
- {
1153
- "type": "null"
1154
- }
1155
- ]
1156
- }
1157
- },
1158
- "required": [
1159
- "comment_id"
1160
- ]
1161
- },
1162
- "CommentCreateBody": {
1163
- "type": "object",
1164
- "properties": {
1165
- "body": {
1166
- "type": "string",
1167
- "maxLength": 1024
1168
- },
1169
- "parent_id": {
1170
- "anyOf": [
1171
- {
1172
- "type": "string"
1173
- },
1174
- {
1175
- "type": "null"
1176
- }
1177
- ]
1178
- }
1179
- },
1180
- "required": [
1181
- "body"
1182
- ]
1183
- },
1184
1097
  "Chapters": {
1185
1098
  "type": "array",
1186
1099
  "items": {
@@ -1529,6 +1442,93 @@
1529
1442
  "roles"
1530
1443
  ]
1531
1444
  },
1445
+ "CommentWithAuthor": {
1446
+ "type": "object",
1447
+ "properties": {
1448
+ "comment_id": {
1449
+ "type": "string",
1450
+ "minLength": 36,
1451
+ "maxLength": 36
1452
+ },
1453
+ "parent_id": {
1454
+ "anyOf": [
1455
+ {
1456
+ "type": "string",
1457
+ "minLength": 36,
1458
+ "maxLength": 36
1459
+ },
1460
+ {
1461
+ "type": "null"
1462
+ }
1463
+ ]
1464
+ },
1465
+ "body": {
1466
+ "anyOf": [
1467
+ {
1468
+ "$ref": "#/components/schema/TextBody"
1469
+ },
1470
+ {
1471
+ "type": "null"
1472
+ }
1473
+ ]
1474
+ },
1475
+ "created_time": {
1476
+ "anyOf": [
1477
+ {
1478
+ "type": "string"
1479
+ },
1480
+ {
1481
+ "type": "null"
1482
+ }
1483
+ ]
1484
+ },
1485
+ "edited_time": {
1486
+ "anyOf": [
1487
+ {
1488
+ "type": "string"
1489
+ },
1490
+ {
1491
+ "type": "null"
1492
+ }
1493
+ ]
1494
+ },
1495
+ "author": {
1496
+ "anyOf": [
1497
+ {
1498
+ "type": "string"
1499
+ },
1500
+ {
1501
+ "type": "null"
1502
+ }
1503
+ ]
1504
+ }
1505
+ },
1506
+ "required": [
1507
+ "comment_id"
1508
+ ]
1509
+ },
1510
+ "CommentCreateBody": {
1511
+ "type": "object",
1512
+ "properties": {
1513
+ "body": {
1514
+ "type": "string",
1515
+ "maxLength": 1024
1516
+ },
1517
+ "parent_id": {
1518
+ "anyOf": [
1519
+ {
1520
+ "type": "string"
1521
+ },
1522
+ {
1523
+ "type": "null"
1524
+ }
1525
+ ]
1526
+ }
1527
+ },
1528
+ "required": [
1529
+ "body"
1530
+ ]
1531
+ },
1532
1532
  "CommentUpdateBody": {
1533
1533
  "type": "object",
1534
1534
  "properties": {
@@ -3210,63 +3210,6 @@
3210
3210
  }
3211
3211
  }
3212
3212
  },
3213
- "/work/{author}/{vanity}/chapter/{url}/comment/add": {
3214
- "parameters": [
3215
- {
3216
- "name": "author",
3217
- "in": "path"
3218
- },
3219
- {
3220
- "name": "vanity",
3221
- "in": "path"
3222
- },
3223
- {
3224
- "name": "url",
3225
- "in": "path"
3226
- }
3227
- ],
3228
- "post": {
3229
- "requestBody": {
3230
- "content": {
3231
- "application/json": {
3232
- "schema": {
3233
- "$ref": "#/components/schemas/CommentCreateBody"
3234
- }
3235
- }
3236
- }
3237
- },
3238
- "responses": {
3239
- "200": {
3240
- "description": "200 response",
3241
- "content": {
3242
- "application/json": {
3243
- "schema": {
3244
- "type": "object",
3245
- "properties": {
3246
- "data": {
3247
- "$ref": "#/components/schemas/CommentWithAuthor"
3248
- }
3249
- },
3250
- "required": [
3251
- "data"
3252
- ]
3253
- }
3254
- }
3255
- }
3256
- },
3257
- "default": {
3258
- "description": "Error",
3259
- "content": {
3260
- "application/json": {
3261
- "schema": {
3262
- "$ref": "#/components/schemas/ErrorResponse"
3263
- }
3264
- }
3265
- }
3266
- }
3267
- }
3268
- }
3269
- },
3270
3213
  "/work/{author}/{vanity}/chapters/list": {
3271
3214
  "parameters": [
3272
3215
  {
@@ -4778,6 +4721,55 @@
4778
4721
  }
4779
4722
  }
4780
4723
  },
4724
+ "/comment/add/{under}": {
4725
+ "parameters": [
4726
+ {
4727
+ "name": "under",
4728
+ "in": "path"
4729
+ }
4730
+ ],
4731
+ "post": {
4732
+ "requestBody": {
4733
+ "content": {
4734
+ "application/json": {
4735
+ "schema": {
4736
+ "$ref": "#/components/schemas/CommentCreateBody"
4737
+ }
4738
+ }
4739
+ }
4740
+ },
4741
+ "responses": {
4742
+ "200": {
4743
+ "description": "200 response",
4744
+ "content": {
4745
+ "application/json": {
4746
+ "schema": {
4747
+ "type": "object",
4748
+ "properties": {
4749
+ "data": {
4750
+ "$ref": "#/components/schemas/CommentWithAuthor"
4751
+ }
4752
+ },
4753
+ "required": [
4754
+ "data"
4755
+ ]
4756
+ }
4757
+ }
4758
+ }
4759
+ },
4760
+ "default": {
4761
+ "description": "Error",
4762
+ "content": {
4763
+ "application/json": {
4764
+ "schema": {
4765
+ "$ref": "#/components/schemas/ErrorResponse"
4766
+ }
4767
+ }
4768
+ }
4769
+ }
4770
+ }
4771
+ }
4772
+ },
4781
4773
  "/comment/{id}/update": {
4782
4774
  "parameters": [
4783
4775
  {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.257",
3
+ "version": "1.0.259",
4
4
  "types": "index.d.ts"
5
5
  }