api.fluff4.me 1.0.1050 → 1.0.1052

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 +56 -24
  2. package/openapi.json +355 -139
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -271,6 +271,27 @@ export interface AuthorResolveSearch {
271
271
  authors: string[]
272
272
  }
273
273
 
274
+ export interface Comment {
275
+ comment_id: string
276
+ parent_id?: string | null
277
+ created_time?: string | null
278
+ edited_time?: string | null
279
+ author?: string | null
280
+ body?: TextBody | null
281
+ reactions?: number | null
282
+ reacted?: true | null
283
+ author_hearted?: true | null
284
+ }
285
+
286
+ export interface CommentCreateBody {
287
+ body: string
288
+ parent_id?: string | null
289
+ }
290
+
291
+ export interface CommentUpdateBody {
292
+ body: string
293
+ }
294
+
274
295
  export interface Work {
275
296
  name: string
276
297
  description: string
@@ -485,18 +506,6 @@ export interface CampaignTierSetBody {
485
506
  chapters: string[]
486
507
  }
487
508
 
488
- export interface Comment {
489
- comment_id: string
490
- parent_id?: string | null
491
- created_time?: string | null
492
- edited_time?: string | null
493
- author?: string | null
494
- body?: TextBody | null
495
- reactions?: number | null
496
- reacted?: true | null
497
- author_hearted?: true | null
498
- }
499
-
500
509
  export interface WorkRecommendationBody {
501
510
  body: string
502
511
  }
@@ -565,18 +574,11 @@ export interface RoleReorderBody {
565
574
  roles: string[]
566
575
  }
567
576
 
568
- export interface CommentCreateBody {
569
- body: string
570
- parent_id?: string | null
571
- }
572
-
573
- export interface CommentUpdateBody {
574
- body: string
575
- }
576
-
577
- export interface AuthorCommentsList {
577
+ export interface AuthorCommentsResponse {
578
578
  comments: AuthorComment[]
579
- mentions: AuthorMetadata[]
579
+ authors: AuthorMetadata[]
580
+ works: WorkMetadata[]
581
+ chapters: ChapterMetadata[]
580
582
  }
581
583
 
582
584
  export interface AuthorComment {
@@ -1254,18 +1256,48 @@ export interface Paths {
1254
1256
  search: AuthorResolveSearch
1255
1257
  response: Response<AuthorMetadata[]> | ErrorResponse
1256
1258
  },
1259
+ "/v2/author/resolve": {
1260
+ method: "get"
1261
+ body?: undefined
1262
+ search: AuthorResolveSearch
1263
+ response: Response<AuthorMetadata[]> | ErrorResponse
1264
+ },
1257
1265
  "/v2/author/update-settings": {
1258
1266
  method: "post"
1259
1267
  body: AuthorUpdateSettingsBody
1260
1268
  search?: undefined
1261
1269
  response: void | ErrorResponse
1262
1270
  },
1271
+ "/v2/comments/add/{under}": {
1272
+ method: "post"
1273
+ body: CommentCreateBody
1274
+ search?: undefined
1275
+ response: Response<Comment> | ErrorResponse
1276
+ },
1277
+ "/v2/comments/{id}/update": {
1278
+ method: "post"
1279
+ body: CommentUpdateBody
1280
+ search?: undefined
1281
+ response: Response<Comment> | ErrorResponse
1282
+ },
1283
+ "/v2/comments/{id}/delete": {
1284
+ method: "post"
1285
+ body?: undefined
1286
+ search?: undefined
1287
+ response: void | ErrorResponse
1288
+ },
1263
1289
  "/v2/comment/{id}/react/{type}": {
1264
1290
  method: "post"
1265
1291
  body?: undefined
1266
1292
  search?: undefined
1267
1293
  response: void | ErrorResponse
1268
1294
  },
1295
+ "/v2/comment/{id}/unreact": {
1296
+ method: "post"
1297
+ body?: undefined
1298
+ search?: undefined
1299
+ response: void | ErrorResponse
1300
+ },
1269
1301
  "/work/create": {
1270
1302
  method: "post"
1271
1303
  body: WorkCreateBody
@@ -1738,7 +1770,7 @@ export interface Paths {
1738
1770
  method: "get"
1739
1771
  body?: undefined
1740
1772
  search: PaginationSearch
1741
- response: PaginatedResponse<AuthorCommentsList> | ErrorResponse
1773
+ response: PaginatedResponse<AuthorCommentsResponse> | ErrorResponse
1742
1774
  },
1743
1775
  "/patreon/campaign/tiers/get": {
1744
1776
  method: "get"
package/openapi.json CHANGED
@@ -1627,6 +1627,141 @@
1627
1627
  "authors"
1628
1628
  ]
1629
1629
  },
1630
+ "Comment": {
1631
+ "type": "object",
1632
+ "properties": {
1633
+ "comment_id": {
1634
+ "type": "string",
1635
+ "minLength": 36,
1636
+ "maxLength": 36
1637
+ },
1638
+ "parent_id": {
1639
+ "anyOf": [
1640
+ {
1641
+ "type": "string",
1642
+ "minLength": 36,
1643
+ "maxLength": 36
1644
+ },
1645
+ {
1646
+ "type": "null"
1647
+ }
1648
+ ]
1649
+ },
1650
+ "created_time": {
1651
+ "anyOf": [
1652
+ {
1653
+ "type": "string"
1654
+ },
1655
+ {
1656
+ "type": "null"
1657
+ }
1658
+ ]
1659
+ },
1660
+ "edited_time": {
1661
+ "anyOf": [
1662
+ {
1663
+ "type": "string"
1664
+ },
1665
+ {
1666
+ "type": "null"
1667
+ }
1668
+ ]
1669
+ },
1670
+ "author": {
1671
+ "anyOf": [
1672
+ {
1673
+ "type": "string"
1674
+ },
1675
+ {
1676
+ "type": "null"
1677
+ }
1678
+ ]
1679
+ },
1680
+ "body": {
1681
+ "anyOf": [
1682
+ {
1683
+ "$ref": "#/components/schema/TextBody"
1684
+ },
1685
+ {
1686
+ "type": "null"
1687
+ }
1688
+ ]
1689
+ },
1690
+ "reactions": {
1691
+ "anyOf": [
1692
+ {
1693
+ "type": "number"
1694
+ },
1695
+ {
1696
+ "type": "null"
1697
+ }
1698
+ ]
1699
+ },
1700
+ "reacted": {
1701
+ "anyOf": [
1702
+ {
1703
+ "type": "boolean",
1704
+ "enum": [
1705
+ true
1706
+ ]
1707
+ },
1708
+ {
1709
+ "type": "null"
1710
+ }
1711
+ ]
1712
+ },
1713
+ "author_hearted": {
1714
+ "anyOf": [
1715
+ {
1716
+ "type": "boolean",
1717
+ "enum": [
1718
+ true
1719
+ ]
1720
+ },
1721
+ {
1722
+ "type": "null"
1723
+ }
1724
+ ]
1725
+ }
1726
+ },
1727
+ "required": [
1728
+ "comment_id"
1729
+ ]
1730
+ },
1731
+ "CommentCreateBody": {
1732
+ "type": "object",
1733
+ "properties": {
1734
+ "body": {
1735
+ "type": "string",
1736
+ "maxLength": 1024
1737
+ },
1738
+ "parent_id": {
1739
+ "anyOf": [
1740
+ {
1741
+ "type": "string"
1742
+ },
1743
+ {
1744
+ "type": "null"
1745
+ }
1746
+ ]
1747
+ }
1748
+ },
1749
+ "required": [
1750
+ "body"
1751
+ ]
1752
+ },
1753
+ "CommentUpdateBody": {
1754
+ "type": "object",
1755
+ "properties": {
1756
+ "body": {
1757
+ "type": "string",
1758
+ "maxLength": 1024
1759
+ }
1760
+ },
1761
+ "required": [
1762
+ "body"
1763
+ ]
1764
+ },
1630
1765
  "Work": {
1631
1766
  "type": "object",
1632
1767
  "properties": {
@@ -3179,107 +3314,6 @@
3179
3314
  "chapters"
3180
3315
  ]
3181
3316
  },
3182
- "Comment": {
3183
- "type": "object",
3184
- "properties": {
3185
- "comment_id": {
3186
- "type": "string",
3187
- "minLength": 36,
3188
- "maxLength": 36
3189
- },
3190
- "parent_id": {
3191
- "anyOf": [
3192
- {
3193
- "type": "string",
3194
- "minLength": 36,
3195
- "maxLength": 36
3196
- },
3197
- {
3198
- "type": "null"
3199
- }
3200
- ]
3201
- },
3202
- "created_time": {
3203
- "anyOf": [
3204
- {
3205
- "type": "string"
3206
- },
3207
- {
3208
- "type": "null"
3209
- }
3210
- ]
3211
- },
3212
- "edited_time": {
3213
- "anyOf": [
3214
- {
3215
- "type": "string"
3216
- },
3217
- {
3218
- "type": "null"
3219
- }
3220
- ]
3221
- },
3222
- "author": {
3223
- "anyOf": [
3224
- {
3225
- "type": "string"
3226
- },
3227
- {
3228
- "type": "null"
3229
- }
3230
- ]
3231
- },
3232
- "body": {
3233
- "anyOf": [
3234
- {
3235
- "$ref": "#/components/schema/TextBody"
3236
- },
3237
- {
3238
- "type": "null"
3239
- }
3240
- ]
3241
- },
3242
- "reactions": {
3243
- "anyOf": [
3244
- {
3245
- "type": "number"
3246
- },
3247
- {
3248
- "type": "null"
3249
- }
3250
- ]
3251
- },
3252
- "reacted": {
3253
- "anyOf": [
3254
- {
3255
- "type": "boolean",
3256
- "enum": [
3257
- true
3258
- ]
3259
- },
3260
- {
3261
- "type": "null"
3262
- }
3263
- ]
3264
- },
3265
- "author_hearted": {
3266
- "anyOf": [
3267
- {
3268
- "type": "boolean",
3269
- "enum": [
3270
- true
3271
- ]
3272
- },
3273
- {
3274
- "type": "null"
3275
- }
3276
- ]
3277
- }
3278
- },
3279
- "required": [
3280
- "comment_id"
3281
- ]
3282
- },
3283
3317
  "WorkRecommendationBody": {
3284
3318
  "type": "object",
3285
3319
  "properties": {
@@ -3596,41 +3630,7 @@
3596
3630
  "roles"
3597
3631
  ]
3598
3632
  },
3599
- "CommentCreateBody": {
3600
- "type": "object",
3601
- "properties": {
3602
- "body": {
3603
- "type": "string",
3604
- "maxLength": 1024
3605
- },
3606
- "parent_id": {
3607
- "anyOf": [
3608
- {
3609
- "type": "string"
3610
- },
3611
- {
3612
- "type": "null"
3613
- }
3614
- ]
3615
- }
3616
- },
3617
- "required": [
3618
- "body"
3619
- ]
3620
- },
3621
- "CommentUpdateBody": {
3622
- "type": "object",
3623
- "properties": {
3624
- "body": {
3625
- "type": "string",
3626
- "maxLength": 1024
3627
- }
3628
- },
3629
- "required": [
3630
- "body"
3631
- ]
3632
- },
3633
- "AuthorCommentsList": {
3633
+ "AuthorCommentsResponse": {
3634
3634
  "type": "object",
3635
3635
  "properties": {
3636
3636
  "comments": {
@@ -3639,16 +3639,30 @@
3639
3639
  "$ref": "#/components/schema/AuthorComment"
3640
3640
  }
3641
3641
  },
3642
- "mentions": {
3642
+ "authors": {
3643
3643
  "type": "array",
3644
3644
  "items": {
3645
3645
  "$ref": "#/components/schema/AuthorMetadata"
3646
3646
  }
3647
+ },
3648
+ "works": {
3649
+ "type": "array",
3650
+ "items": {
3651
+ "$ref": "#/components/schema/WorkMetadata"
3652
+ }
3653
+ },
3654
+ "chapters": {
3655
+ "type": "array",
3656
+ "items": {
3657
+ "$ref": "#/components/schema/ChapterMetadata"
3658
+ }
3647
3659
  }
3648
3660
  },
3649
3661
  "required": [
3650
3662
  "comments",
3651
- "mentions"
3663
+ "authors",
3664
+ "works",
3665
+ "chapters"
3652
3666
  ]
3653
3667
  },
3654
3668
  "AuthorComment": {
@@ -7197,6 +7211,60 @@
7197
7211
  }
7198
7212
  }
7199
7213
  },
7214
+ "/v2/author/resolve": {
7215
+ "get": {
7216
+ "parameters": [
7217
+ {
7218
+ "name": "authors",
7219
+ "in": "query",
7220
+ "required": true,
7221
+ "content": {
7222
+ "application/json": {
7223
+ "schema": {
7224
+ "type": "array",
7225
+ "items": {
7226
+ "type": "string"
7227
+ }
7228
+ }
7229
+ }
7230
+ }
7231
+ }
7232
+ ],
7233
+ "responses": {
7234
+ "200": {
7235
+ "description": "200 response",
7236
+ "content": {
7237
+ "application/json": {
7238
+ "schema": {
7239
+ "type": "object",
7240
+ "properties": {
7241
+ "data": {
7242
+ "type": "array",
7243
+ "items": {
7244
+ "$ref": "#/components/schema/AuthorMetadata"
7245
+ }
7246
+ }
7247
+ },
7248
+ "required": [
7249
+ "data"
7250
+ ]
7251
+ }
7252
+ }
7253
+ }
7254
+ },
7255
+ "default": {
7256
+ "description": "Error",
7257
+ "content": {
7258
+ "application/json": {
7259
+ "schema": {
7260
+ "$ref": "#/components/schemas/ErrorResponse"
7261
+ }
7262
+ }
7263
+ }
7264
+ }
7265
+ }
7266
+ }
7267
+ },
7200
7268
  "/v2/author/update-settings": {
7201
7269
  "post": {
7202
7270
  "requestBody": {
@@ -7225,6 +7293,129 @@
7225
7293
  }
7226
7294
  }
7227
7295
  },
7296
+ "/v2/comments/add/{under}": {
7297
+ "parameters": [
7298
+ {
7299
+ "name": "under",
7300
+ "in": "path"
7301
+ }
7302
+ ],
7303
+ "post": {
7304
+ "requestBody": {
7305
+ "content": {
7306
+ "application/json": {
7307
+ "schema": {
7308
+ "$ref": "#/components/schemas/CommentCreateBody"
7309
+ }
7310
+ }
7311
+ }
7312
+ },
7313
+ "responses": {
7314
+ "200": {
7315
+ "description": "200 response",
7316
+ "content": {
7317
+ "application/json": {
7318
+ "schema": {
7319
+ "type": "object",
7320
+ "properties": {
7321
+ "data": {
7322
+ "$ref": "#/components/schemas/Comment"
7323
+ }
7324
+ },
7325
+ "required": [
7326
+ "data"
7327
+ ]
7328
+ }
7329
+ }
7330
+ }
7331
+ },
7332
+ "default": {
7333
+ "description": "Error",
7334
+ "content": {
7335
+ "application/json": {
7336
+ "schema": {
7337
+ "$ref": "#/components/schemas/ErrorResponse"
7338
+ }
7339
+ }
7340
+ }
7341
+ }
7342
+ }
7343
+ }
7344
+ },
7345
+ "/v2/comments/{id}/update": {
7346
+ "parameters": [
7347
+ {
7348
+ "name": "id",
7349
+ "in": "path"
7350
+ }
7351
+ ],
7352
+ "post": {
7353
+ "requestBody": {
7354
+ "content": {
7355
+ "application/json": {
7356
+ "schema": {
7357
+ "$ref": "#/components/schemas/CommentUpdateBody"
7358
+ }
7359
+ }
7360
+ }
7361
+ },
7362
+ "responses": {
7363
+ "200": {
7364
+ "description": "200 response",
7365
+ "content": {
7366
+ "application/json": {
7367
+ "schema": {
7368
+ "type": "object",
7369
+ "properties": {
7370
+ "data": {
7371
+ "$ref": "#/components/schemas/Comment"
7372
+ }
7373
+ },
7374
+ "required": [
7375
+ "data"
7376
+ ]
7377
+ }
7378
+ }
7379
+ }
7380
+ },
7381
+ "default": {
7382
+ "description": "Error",
7383
+ "content": {
7384
+ "application/json": {
7385
+ "schema": {
7386
+ "$ref": "#/components/schemas/ErrorResponse"
7387
+ }
7388
+ }
7389
+ }
7390
+ }
7391
+ }
7392
+ }
7393
+ },
7394
+ "/v2/comments/{id}/delete": {
7395
+ "parameters": [
7396
+ {
7397
+ "name": "id",
7398
+ "in": "path"
7399
+ }
7400
+ ],
7401
+ "post": {
7402
+ "responses": {
7403
+ "200": {
7404
+ "description": "200 response"
7405
+ },
7406
+ "default": {
7407
+ "description": "Error",
7408
+ "content": {
7409
+ "application/json": {
7410
+ "schema": {
7411
+ "$ref": "#/components/schemas/ErrorResponse"
7412
+ }
7413
+ }
7414
+ }
7415
+ }
7416
+ }
7417
+ }
7418
+ },
7228
7419
  "/v2/comment/{id}/react/{type}": {
7229
7420
  "parameters": [
7230
7421
  {
@@ -7254,6 +7445,31 @@
7254
7445
  }
7255
7446
  }
7256
7447
  },
7448
+ "/v2/comment/{id}/unreact": {
7449
+ "parameters": [
7450
+ {
7451
+ "name": "id",
7452
+ "in": "path"
7453
+ }
7454
+ ],
7455
+ "post": {
7456
+ "responses": {
7457
+ "200": {
7458
+ "description": "200 response"
7459
+ },
7460
+ "default": {
7461
+ "description": "Error",
7462
+ "content": {
7463
+ "application/json": {
7464
+ "schema": {
7465
+ "$ref": "#/components/schemas/ErrorResponse"
7466
+ }
7467
+ }
7468
+ }
7469
+ }
7470
+ }
7471
+ }
7472
+ },
7257
7473
  "/work/create": {
7258
7474
  "post": {
7259
7475
  "requestBody": {
@@ -10855,7 +11071,7 @@
10855
11071
  "type": "object",
10856
11072
  "properties": {
10857
11073
  "data": {
10858
- "$ref": "#/components/schemas/AuthorCommentsList"
11074
+ "$ref": "#/components/schemas/AuthorCommentsResponse"
10859
11075
  },
10860
11076
  "has_more": {
10861
11077
  "type": "boolean"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.1050",
3
+ "version": "1.0.1052",
4
4
  "types": "index.d.ts"
5
5
  }