api.fluff4.me 1.0.1061 → 1.0.1063

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 +23 -11
  2. package/openapi.json +185 -36
  3. 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 {
@@ -1275,7 +1275,7 @@ export interface Paths {
1275
1275
  search?: undefined
1276
1276
  response: void | ErrorResponse
1277
1277
  },
1278
- "/v2/comments/add/{under}": {
1278
+ "/v2/comments/comment/{id}/add": {
1279
1279
  method: "post"
1280
1280
  body: CommentCreateBody
1281
1281
  search?: undefined
@@ -1293,6 +1293,18 @@ export interface Paths {
1293
1293
  search?: undefined
1294
1294
  response: void | ErrorResponse
1295
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
+ },
1296
1308
  "/v2/comment/{id}/react/{type}": {
1297
1309
  method: "post"
1298
1310
  body?: undefined
@@ -1449,7 +1461,7 @@ export interface Paths {
1449
1461
  search?: undefined
1450
1462
  response: Response<Comment> | ErrorResponse
1451
1463
  },
1452
- "/work/{author}/{vanity}/recommendations": {
1464
+ "/work/{author}/{vanity}/comments": {
1453
1465
  method: "get"
1454
1466
  body?: undefined
1455
1467
  search: PaginationSearch
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": {
@@ -7351,10 +7351,10 @@
7351
7351
  }
7352
7352
  }
7353
7353
  },
7354
- "/v2/comments/add/{under}": {
7354
+ "/v2/comments/comment/{id}/add": {
7355
7355
  "parameters": [
7356
7356
  {
7357
- "name": "under",
7357
+ "name": "id",
7358
7358
  "in": "path"
7359
7359
  }
7360
7360
  ],
@@ -7474,6 +7474,155 @@
7474
7474
  }
7475
7475
  }
7476
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
+ },
7477
7626
  "/v2/comment/{id}/react/{type}": {
7478
7627
  "parameters": [
7479
7628
  {
@@ -8695,7 +8844,7 @@
8695
8844
  }
8696
8845
  }
8697
8846
  },
8698
- "/work/{author}/{vanity}/recommendations": {
8847
+ "/work/{author}/{vanity}/comments": {
8699
8848
  "parameters": [
8700
8849
  {
8701
8850
  "name": "author",
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.1061",
3
+ "version": "1.0.1063",
4
4
  "types": "index.d.ts"
5
5
  }