api.fluff4.me 1.0.463 → 1.0.465

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 +31 -1
  2. package/openapi.json +243 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -249,6 +249,32 @@ export interface ChapterCreateBody {
249
249
  custom_tags?: string[] | null
250
250
  }
251
251
 
252
+ export interface ChapterUpdate {
253
+ url: string
254
+ index_public?: number | null
255
+ name: string
256
+ visibility: "Private" | "Public" | "Patreon"
257
+ word_count: number
258
+ view_count: string
259
+ time_last_update?: string | null
260
+ time_publish?: string | null
261
+ author: string
262
+ work: string
263
+ tier?: PatreonCampaignTier | null
264
+ is_numbered: boolean
265
+ body: string
266
+ index: number
267
+ notes_before?: string | null
268
+ notes_after?: string | null
269
+ mentions?: Author[] | null
270
+ root_comment?: string | null
271
+ global_tags?: string[] | null
272
+ custom_tags?: CustomTag[] | null
273
+ reactions?: number | null
274
+ reacted?: true | null
275
+ old_url: string
276
+ }
277
+
252
278
  export interface ChapterUpdateBody {
253
279
  name?: string | null
254
280
  visibility?: "Private" | "Public" | "Patreon" | null
@@ -411,6 +437,10 @@ export interface TagGlobalUpdate {
411
437
  name?: string | null
412
438
  description?: string | null
413
439
  category?: string | null
440
+ aliases_add?: string[] | null
441
+ aliases_remove?: string[] | null
442
+ relationships_add?: string[] | null
443
+ relationships_remove?: string[] | null
414
444
  }
415
445
 
416
446
  export interface TagCategoryUpdateBody {
@@ -726,7 +756,7 @@ export interface Paths {
726
756
  method: "post"
727
757
  body: ChapterUpdateBody
728
758
  search?: undefined
729
- response: Response<Chapter> | ErrorResponse
759
+ response: Response<ChapterUpdate> | ErrorResponse
730
760
  },
731
761
  "/work/{author}/{work}/chapter/{url}/delete": {
732
762
  method: "post"
package/openapi.json CHANGED
@@ -1458,6 +1458,196 @@
1458
1458
  "body"
1459
1459
  ]
1460
1460
  },
1461
+ "ChapterUpdate": {
1462
+ "type": "object",
1463
+ "properties": {
1464
+ "url": {
1465
+ "type": "string"
1466
+ },
1467
+ "index_public": {
1468
+ "anyOf": [
1469
+ {
1470
+ "type": "number"
1471
+ },
1472
+ {
1473
+ "type": "null"
1474
+ }
1475
+ ]
1476
+ },
1477
+ "name": {
1478
+ "type": "string",
1479
+ "minLength": 1,
1480
+ "maxLength": 256
1481
+ },
1482
+ "visibility": {
1483
+ "type": "string",
1484
+ "enum": [
1485
+ "Private",
1486
+ "Public",
1487
+ "Patreon"
1488
+ ]
1489
+ },
1490
+ "word_count": {
1491
+ "type": "number"
1492
+ },
1493
+ "view_count": {
1494
+ "type": "string"
1495
+ },
1496
+ "time_last_update": {
1497
+ "anyOf": [
1498
+ {
1499
+ "type": "string"
1500
+ },
1501
+ {
1502
+ "type": "null"
1503
+ }
1504
+ ]
1505
+ },
1506
+ "time_publish": {
1507
+ "anyOf": [
1508
+ {
1509
+ "type": "string"
1510
+ },
1511
+ {
1512
+ "type": "null"
1513
+ }
1514
+ ]
1515
+ },
1516
+ "author": {
1517
+ "type": "string"
1518
+ },
1519
+ "work": {
1520
+ "type": "string"
1521
+ },
1522
+ "tier": {
1523
+ "anyOf": [
1524
+ {
1525
+ "$ref": "#/components/schema/PatreonCampaignTier"
1526
+ },
1527
+ {
1528
+ "type": "null"
1529
+ }
1530
+ ]
1531
+ },
1532
+ "is_numbered": {
1533
+ "type": "boolean"
1534
+ },
1535
+ "body": {
1536
+ "type": "string"
1537
+ },
1538
+ "index": {
1539
+ "type": "number"
1540
+ },
1541
+ "notes_before": {
1542
+ "anyOf": [
1543
+ {
1544
+ "type": "string"
1545
+ },
1546
+ {
1547
+ "type": "null"
1548
+ }
1549
+ ]
1550
+ },
1551
+ "notes_after": {
1552
+ "anyOf": [
1553
+ {
1554
+ "type": "string"
1555
+ },
1556
+ {
1557
+ "type": "null"
1558
+ }
1559
+ ]
1560
+ },
1561
+ "mentions": {
1562
+ "anyOf": [
1563
+ {
1564
+ "type": "array",
1565
+ "items": {
1566
+ "$ref": "#/components/schema/Author"
1567
+ }
1568
+ },
1569
+ {
1570
+ "type": "null"
1571
+ }
1572
+ ]
1573
+ },
1574
+ "root_comment": {
1575
+ "anyOf": [
1576
+ {
1577
+ "type": "string"
1578
+ },
1579
+ {
1580
+ "type": "null"
1581
+ }
1582
+ ]
1583
+ },
1584
+ "global_tags": {
1585
+ "anyOf": [
1586
+ {
1587
+ "type": "array",
1588
+ "items": {
1589
+ "type": "string"
1590
+ }
1591
+ },
1592
+ {
1593
+ "type": "null"
1594
+ }
1595
+ ]
1596
+ },
1597
+ "custom_tags": {
1598
+ "anyOf": [
1599
+ {
1600
+ "type": "array",
1601
+ "items": {
1602
+ "$ref": "#/components/schema/CustomTag"
1603
+ }
1604
+ },
1605
+ {
1606
+ "type": "null"
1607
+ }
1608
+ ]
1609
+ },
1610
+ "reactions": {
1611
+ "anyOf": [
1612
+ {
1613
+ "type": "number"
1614
+ },
1615
+ {
1616
+ "type": "null"
1617
+ }
1618
+ ]
1619
+ },
1620
+ "reacted": {
1621
+ "anyOf": [
1622
+ {
1623
+ "type": "boolean",
1624
+ "enum": [
1625
+ true
1626
+ ]
1627
+ },
1628
+ {
1629
+ "type": "null"
1630
+ }
1631
+ ]
1632
+ },
1633
+ "old_url": {
1634
+ "type": "string"
1635
+ }
1636
+ },
1637
+ "required": [
1638
+ "url",
1639
+ "name",
1640
+ "visibility",
1641
+ "word_count",
1642
+ "view_count",
1643
+ "author",
1644
+ "work",
1645
+ "is_numbered",
1646
+ "body",
1647
+ "index",
1648
+ "old_url"
1649
+ ]
1650
+ },
1461
1651
  "ChapterUpdateBody": {
1462
1652
  "type": "object",
1463
1653
  "properties": {
@@ -2345,6 +2535,58 @@
2345
2535
  "type": "null"
2346
2536
  }
2347
2537
  ]
2538
+ },
2539
+ "aliases_add": {
2540
+ "anyOf": [
2541
+ {
2542
+ "type": "array",
2543
+ "items": {
2544
+ "type": "string"
2545
+ }
2546
+ },
2547
+ {
2548
+ "type": "null"
2549
+ }
2550
+ ]
2551
+ },
2552
+ "aliases_remove": {
2553
+ "anyOf": [
2554
+ {
2555
+ "type": "array",
2556
+ "items": {
2557
+ "type": "string"
2558
+ }
2559
+ },
2560
+ {
2561
+ "type": "null"
2562
+ }
2563
+ ]
2564
+ },
2565
+ "relationships_add": {
2566
+ "anyOf": [
2567
+ {
2568
+ "type": "array",
2569
+ "items": {
2570
+ "type": "string"
2571
+ }
2572
+ },
2573
+ {
2574
+ "type": "null"
2575
+ }
2576
+ ]
2577
+ },
2578
+ "relationships_remove": {
2579
+ "anyOf": [
2580
+ {
2581
+ "type": "array",
2582
+ "items": {
2583
+ "type": "string"
2584
+ }
2585
+ },
2586
+ {
2587
+ "type": "null"
2588
+ }
2589
+ ]
2348
2590
  }
2349
2591
  }
2350
2592
  },
@@ -3985,7 +4227,7 @@
3985
4227
  "type": "object",
3986
4228
  "properties": {
3987
4229
  "data": {
3988
- "$ref": "#/components/schemas/Chapter"
4230
+ "$ref": "#/components/schemas/ChapterUpdate"
3989
4231
  }
3990
4232
  },
3991
4233
  "required": [
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.463",
3
+ "version": "1.0.465",
4
4
  "types": "index.d.ts"
5
5
  }