api.fluff4.me 1.0.1060 → 1.0.1062
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 +28 -12
- package/openapi.json +223 -36
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -295,6 +295,15 @@ export interface CommentUpdateBody {
|
|
|
295
295
|
body: string
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
+
export interface WorkRecommendationBody {
|
|
299
|
+
body: string
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface CommentsResponse {
|
|
303
|
+
comments: Comment[]
|
|
304
|
+
authors: AuthorMetadata[]
|
|
305
|
+
}
|
|
306
|
+
|
|
298
307
|
export interface Work {
|
|
299
308
|
name: string
|
|
300
309
|
description: string
|
|
@@ -509,15 +518,6 @@ export interface CampaignTierSetBody {
|
|
|
509
518
|
chapters: string[]
|
|
510
519
|
}
|
|
511
520
|
|
|
512
|
-
export interface WorkRecommendationBody {
|
|
513
|
-
body: string
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
export interface CommentsResponse {
|
|
517
|
-
comments: Comment[]
|
|
518
|
-
authors: AuthorMetadata[]
|
|
519
|
-
}
|
|
520
|
-
|
|
521
521
|
export type Works = WorkMetadata[]
|
|
522
522
|
|
|
523
523
|
export interface WorkResolveResponse {
|
|
@@ -584,6 +584,10 @@ export interface AuthorCommentsResponse {
|
|
|
584
584
|
chapters: ChapterMetadata[]
|
|
585
585
|
}
|
|
586
586
|
|
|
587
|
+
export interface CommentGetAllAuthorSearch {
|
|
588
|
+
filter?: ("chapter" | "work") | null
|
|
589
|
+
}
|
|
590
|
+
|
|
587
591
|
export interface AuthorComment {
|
|
588
592
|
comment: Comment
|
|
589
593
|
root_object: CommentRootComment | CommentRootWork | CommentRootChapter | CommentRootWorkPrivate | CommentRootChapterPrivate
|
|
@@ -1271,7 +1275,7 @@ export interface Paths {
|
|
|
1271
1275
|
search?: undefined
|
|
1272
1276
|
response: void | ErrorResponse
|
|
1273
1277
|
},
|
|
1274
|
-
"/v2/comments/
|
|
1278
|
+
"/v2/comments/comment/{id}/add": {
|
|
1275
1279
|
method: "post"
|
|
1276
1280
|
body: CommentCreateBody
|
|
1277
1281
|
search?: undefined
|
|
@@ -1289,6 +1293,18 @@ export interface Paths {
|
|
|
1289
1293
|
search?: undefined
|
|
1290
1294
|
response: void | ErrorResponse
|
|
1291
1295
|
},
|
|
1296
|
+
"/v2/comments/work/{author}/{vanity}/add": {
|
|
1297
|
+
method: "post"
|
|
1298
|
+
body: WorkRecommendationBody
|
|
1299
|
+
search?: undefined
|
|
1300
|
+
response: Response<Comment> | ErrorResponse
|
|
1301
|
+
},
|
|
1302
|
+
"/v2/comments/work/{author}/{vanity}": {
|
|
1303
|
+
method: "get"
|
|
1304
|
+
body?: undefined
|
|
1305
|
+
search: PaginationSearch
|
|
1306
|
+
response: PaginatedResponse<CommentsResponse> | ErrorResponse
|
|
1307
|
+
},
|
|
1292
1308
|
"/v2/comment/{id}/react/{type}": {
|
|
1293
1309
|
method: "post"
|
|
1294
1310
|
body?: undefined
|
|
@@ -1445,7 +1461,7 @@ export interface Paths {
|
|
|
1445
1461
|
search?: undefined
|
|
1446
1462
|
response: Response<Comment> | ErrorResponse
|
|
1447
1463
|
},
|
|
1448
|
-
"/work/{author}/{vanity}/
|
|
1464
|
+
"/work/{author}/{vanity}/comments": {
|
|
1449
1465
|
method: "get"
|
|
1450
1466
|
body?: undefined
|
|
1451
1467
|
search: PaginationSearch
|
|
@@ -1772,7 +1788,7 @@ export interface Paths {
|
|
|
1772
1788
|
"/comments/author/{vanity}": {
|
|
1773
1789
|
method: "get"
|
|
1774
1790
|
body?: undefined
|
|
1775
|
-
search: PaginationSearch
|
|
1791
|
+
search: CommentGetAllAuthorSearch & PaginationSearch
|
|
1776
1792
|
response: PaginatedResponse<AuthorCommentsResponse> | ErrorResponse
|
|
1777
1793
|
},
|
|
1778
1794
|
"/patreon/campaign/tiers/get": {
|
package/openapi.json
CHANGED
|
@@ -1801,6 +1801,39 @@
|
|
|
1801
1801
|
"body"
|
|
1802
1802
|
]
|
|
1803
1803
|
},
|
|
1804
|
+
"WorkRecommendationBody": {
|
|
1805
|
+
"type": "object",
|
|
1806
|
+
"properties": {
|
|
1807
|
+
"body": {
|
|
1808
|
+
"type": "string",
|
|
1809
|
+
"maxLength": 1024
|
|
1810
|
+
}
|
|
1811
|
+
},
|
|
1812
|
+
"required": [
|
|
1813
|
+
"body"
|
|
1814
|
+
]
|
|
1815
|
+
},
|
|
1816
|
+
"CommentsResponse": {
|
|
1817
|
+
"type": "object",
|
|
1818
|
+
"properties": {
|
|
1819
|
+
"comments": {
|
|
1820
|
+
"type": "array",
|
|
1821
|
+
"items": {
|
|
1822
|
+
"$ref": "#/components/schema/Comment"
|
|
1823
|
+
}
|
|
1824
|
+
},
|
|
1825
|
+
"authors": {
|
|
1826
|
+
"type": "array",
|
|
1827
|
+
"items": {
|
|
1828
|
+
"$ref": "#/components/schema/AuthorMetadata"
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
},
|
|
1832
|
+
"required": [
|
|
1833
|
+
"comments",
|
|
1834
|
+
"authors"
|
|
1835
|
+
]
|
|
1836
|
+
},
|
|
1804
1837
|
"Work": {
|
|
1805
1838
|
"type": "object",
|
|
1806
1839
|
"properties": {
|
|
@@ -3353,39 +3386,6 @@
|
|
|
3353
3386
|
"chapters"
|
|
3354
3387
|
]
|
|
3355
3388
|
},
|
|
3356
|
-
"WorkRecommendationBody": {
|
|
3357
|
-
"type": "object",
|
|
3358
|
-
"properties": {
|
|
3359
|
-
"body": {
|
|
3360
|
-
"type": "string",
|
|
3361
|
-
"maxLength": 1024
|
|
3362
|
-
}
|
|
3363
|
-
},
|
|
3364
|
-
"required": [
|
|
3365
|
-
"body"
|
|
3366
|
-
]
|
|
3367
|
-
},
|
|
3368
|
-
"CommentsResponse": {
|
|
3369
|
-
"type": "object",
|
|
3370
|
-
"properties": {
|
|
3371
|
-
"comments": {
|
|
3372
|
-
"type": "array",
|
|
3373
|
-
"items": {
|
|
3374
|
-
"$ref": "#/components/schema/Comment"
|
|
3375
|
-
}
|
|
3376
|
-
},
|
|
3377
|
-
"authors": {
|
|
3378
|
-
"type": "array",
|
|
3379
|
-
"items": {
|
|
3380
|
-
"$ref": "#/components/schema/AuthorMetadata"
|
|
3381
|
-
}
|
|
3382
|
-
}
|
|
3383
|
-
},
|
|
3384
|
-
"required": [
|
|
3385
|
-
"comments",
|
|
3386
|
-
"authors"
|
|
3387
|
-
]
|
|
3388
|
-
},
|
|
3389
3389
|
"Works": {
|
|
3390
3390
|
"type": "array",
|
|
3391
3391
|
"items": {
|
|
@@ -3704,6 +3704,25 @@
|
|
|
3704
3704
|
"chapters"
|
|
3705
3705
|
]
|
|
3706
3706
|
},
|
|
3707
|
+
"CommentGetAllAuthorSearch": {
|
|
3708
|
+
"type": "object",
|
|
3709
|
+
"properties": {
|
|
3710
|
+
"filter": {
|
|
3711
|
+
"anyOf": [
|
|
3712
|
+
{
|
|
3713
|
+
"type": "string",
|
|
3714
|
+
"enum": [
|
|
3715
|
+
"chapter",
|
|
3716
|
+
"work"
|
|
3717
|
+
]
|
|
3718
|
+
},
|
|
3719
|
+
{
|
|
3720
|
+
"type": "null"
|
|
3721
|
+
}
|
|
3722
|
+
]
|
|
3723
|
+
}
|
|
3724
|
+
}
|
|
3725
|
+
},
|
|
3707
3726
|
"AuthorComment": {
|
|
3708
3727
|
"type": "object",
|
|
3709
3728
|
"properties": {
|
|
@@ -7332,10 +7351,10 @@
|
|
|
7332
7351
|
}
|
|
7333
7352
|
}
|
|
7334
7353
|
},
|
|
7335
|
-
"/v2/comments/
|
|
7354
|
+
"/v2/comments/comment/{id}/add": {
|
|
7336
7355
|
"parameters": [
|
|
7337
7356
|
{
|
|
7338
|
-
"name": "
|
|
7357
|
+
"name": "id",
|
|
7339
7358
|
"in": "path"
|
|
7340
7359
|
}
|
|
7341
7360
|
],
|
|
@@ -7455,6 +7474,155 @@
|
|
|
7455
7474
|
}
|
|
7456
7475
|
}
|
|
7457
7476
|
},
|
|
7477
|
+
"/v2/comments/work/{author}/{vanity}/add": {
|
|
7478
|
+
"parameters": [
|
|
7479
|
+
{
|
|
7480
|
+
"name": "author",
|
|
7481
|
+
"in": "path"
|
|
7482
|
+
},
|
|
7483
|
+
{
|
|
7484
|
+
"name": "vanity",
|
|
7485
|
+
"in": "path"
|
|
7486
|
+
}
|
|
7487
|
+
],
|
|
7488
|
+
"post": {
|
|
7489
|
+
"requestBody": {
|
|
7490
|
+
"content": {
|
|
7491
|
+
"application/json": {
|
|
7492
|
+
"schema": {
|
|
7493
|
+
"$ref": "#/components/schemas/WorkRecommendationBody"
|
|
7494
|
+
}
|
|
7495
|
+
}
|
|
7496
|
+
}
|
|
7497
|
+
},
|
|
7498
|
+
"responses": {
|
|
7499
|
+
"200": {
|
|
7500
|
+
"description": "200 response",
|
|
7501
|
+
"content": {
|
|
7502
|
+
"application/json": {
|
|
7503
|
+
"schema": {
|
|
7504
|
+
"type": "object",
|
|
7505
|
+
"properties": {
|
|
7506
|
+
"data": {
|
|
7507
|
+
"$ref": "#/components/schemas/Comment"
|
|
7508
|
+
}
|
|
7509
|
+
},
|
|
7510
|
+
"required": [
|
|
7511
|
+
"data"
|
|
7512
|
+
]
|
|
7513
|
+
}
|
|
7514
|
+
}
|
|
7515
|
+
}
|
|
7516
|
+
},
|
|
7517
|
+
"default": {
|
|
7518
|
+
"description": "Error",
|
|
7519
|
+
"content": {
|
|
7520
|
+
"application/json": {
|
|
7521
|
+
"schema": {
|
|
7522
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
7523
|
+
}
|
|
7524
|
+
}
|
|
7525
|
+
}
|
|
7526
|
+
}
|
|
7527
|
+
}
|
|
7528
|
+
}
|
|
7529
|
+
},
|
|
7530
|
+
"/v2/comments/work/{author}/{vanity}": {
|
|
7531
|
+
"parameters": [
|
|
7532
|
+
{
|
|
7533
|
+
"name": "author",
|
|
7534
|
+
"in": "path"
|
|
7535
|
+
},
|
|
7536
|
+
{
|
|
7537
|
+
"name": "vanity",
|
|
7538
|
+
"in": "path"
|
|
7539
|
+
}
|
|
7540
|
+
],
|
|
7541
|
+
"get": {
|
|
7542
|
+
"parameters": [
|
|
7543
|
+
{
|
|
7544
|
+
"name": "page",
|
|
7545
|
+
"in": "query",
|
|
7546
|
+
"description": "The page of data to query from. This endpoint uses a page size of 25 by default.",
|
|
7547
|
+
"schema": {
|
|
7548
|
+
"type": "integer",
|
|
7549
|
+
"minimum": 0
|
|
7550
|
+
}
|
|
7551
|
+
},
|
|
7552
|
+
{
|
|
7553
|
+
"name": "page_size",
|
|
7554
|
+
"in": "query",
|
|
7555
|
+
"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.",
|
|
7556
|
+
"schema": {
|
|
7557
|
+
"type": "integer",
|
|
7558
|
+
"minimum": 1,
|
|
7559
|
+
"maximum": 25
|
|
7560
|
+
}
|
|
7561
|
+
}
|
|
7562
|
+
],
|
|
7563
|
+
"responses": {
|
|
7564
|
+
"200": {
|
|
7565
|
+
"description": "200 response",
|
|
7566
|
+
"content": {
|
|
7567
|
+
"application/json": {
|
|
7568
|
+
"schema": {
|
|
7569
|
+
"type": "object",
|
|
7570
|
+
"properties": {
|
|
7571
|
+
"data": {
|
|
7572
|
+
"$ref": "#/components/schemas/CommentsResponse"
|
|
7573
|
+
},
|
|
7574
|
+
"has_more": {
|
|
7575
|
+
"type": "boolean"
|
|
7576
|
+
},
|
|
7577
|
+
"page": {
|
|
7578
|
+
"type": "number",
|
|
7579
|
+
"minimum": 0
|
|
7580
|
+
},
|
|
7581
|
+
"page_count": {
|
|
7582
|
+
"type": [
|
|
7583
|
+
"boolean",
|
|
7584
|
+
"number"
|
|
7585
|
+
],
|
|
7586
|
+
"anyOf": [
|
|
7587
|
+
{
|
|
7588
|
+
"type": "boolean",
|
|
7589
|
+
"enum": [
|
|
7590
|
+
true
|
|
7591
|
+
]
|
|
7592
|
+
},
|
|
7593
|
+
{
|
|
7594
|
+
"type": "number",
|
|
7595
|
+
"minimum": 0
|
|
7596
|
+
}
|
|
7597
|
+
]
|
|
7598
|
+
}
|
|
7599
|
+
},
|
|
7600
|
+
"required": [
|
|
7601
|
+
"data",
|
|
7602
|
+
"has_more",
|
|
7603
|
+
"page",
|
|
7604
|
+
"page_count"
|
|
7605
|
+
]
|
|
7606
|
+
}
|
|
7607
|
+
}
|
|
7608
|
+
}
|
|
7609
|
+
},
|
|
7610
|
+
"304": {
|
|
7611
|
+
"description": "304 response"
|
|
7612
|
+
},
|
|
7613
|
+
"default": {
|
|
7614
|
+
"description": "Error",
|
|
7615
|
+
"content": {
|
|
7616
|
+
"application/json": {
|
|
7617
|
+
"schema": {
|
|
7618
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
7619
|
+
}
|
|
7620
|
+
}
|
|
7621
|
+
}
|
|
7622
|
+
}
|
|
7623
|
+
}
|
|
7624
|
+
}
|
|
7625
|
+
},
|
|
7458
7626
|
"/v2/comment/{id}/react/{type}": {
|
|
7459
7627
|
"parameters": [
|
|
7460
7628
|
{
|
|
@@ -8676,7 +8844,7 @@
|
|
|
8676
8844
|
}
|
|
8677
8845
|
}
|
|
8678
8846
|
},
|
|
8679
|
-
"/work/{author}/{vanity}/
|
|
8847
|
+
"/work/{author}/{vanity}/comments": {
|
|
8680
8848
|
"parameters": [
|
|
8681
8849
|
{
|
|
8682
8850
|
"name": "author",
|
|
@@ -11099,6 +11267,25 @@
|
|
|
11099
11267
|
"minimum": 1,
|
|
11100
11268
|
"maximum": 25
|
|
11101
11269
|
}
|
|
11270
|
+
},
|
|
11271
|
+
{
|
|
11272
|
+
"name": "filter",
|
|
11273
|
+
"in": "query",
|
|
11274
|
+
"required": false,
|
|
11275
|
+
"schema": {
|
|
11276
|
+
"anyOf": [
|
|
11277
|
+
{
|
|
11278
|
+
"type": "string",
|
|
11279
|
+
"enum": [
|
|
11280
|
+
"chapter",
|
|
11281
|
+
"work"
|
|
11282
|
+
]
|
|
11283
|
+
},
|
|
11284
|
+
{
|
|
11285
|
+
"type": "null"
|
|
11286
|
+
}
|
|
11287
|
+
]
|
|
11288
|
+
}
|
|
11102
11289
|
}
|
|
11103
11290
|
],
|
|
11104
11291
|
"responses": {
|
package/package.json
CHANGED