api.fluff4.me 1.0.577 → 1.0.578

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 +63 -0
  2. package/openapi.json +385 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -295,6 +295,39 @@ export interface PatreonCampaignLite {
295
295
  url: string
296
296
  }
297
297
 
298
+ export interface QueuedChapter {
299
+ name: string
300
+ visibility: "Private" | "Public" | "Patreon"
301
+ body: string
302
+ queue_index: string
303
+ is_numbered: boolean
304
+ notes_before?: string | null
305
+ notes_after?: string | null
306
+ work: string
307
+ author: string
308
+ mentions?: Author[] | null
309
+ }
310
+
311
+ export interface ChapterQueueBody {
312
+ name: string
313
+ visibility: "Private" | "Public" | "Patreon"
314
+ body: string
315
+ is_numbered?: boolean | null
316
+ notes_before?: string | null
317
+ notes_after?: string | null
318
+ }
319
+
320
+ export interface QueuedChapterFinalise {
321
+ queue_index: string
322
+ global_tags?: string[] | null
323
+ custom_tags?: CustomTag[] | null
324
+ tier_ids?: string[] | null
325
+ }
326
+
327
+ export interface ChapterHasQueue {
328
+ has_queue: boolean
329
+ }
330
+
298
331
  export interface ChapterUpdateBody {
299
332
  name?: string | null
300
333
  visibility?: "Private" | "Public" | "Patreon" | null
@@ -822,6 +855,30 @@ export interface Paths {
822
855
  search?: undefined
823
856
  response: Response<Chapter> | ErrorResponse
824
857
  },
858
+ "/work/{author}/{vanity}/chapter/create/bulk/queue": {
859
+ method: "post"
860
+ body: ChapterQueueBody
861
+ search?: undefined
862
+ response: Response<QueuedChapter> | ErrorResponse
863
+ },
864
+ "/work/{author}/{vanity}/chapter/create/bulk/cancel": {
865
+ method: "post"
866
+ body?: undefined
867
+ search?: undefined
868
+ response: void | ErrorResponse
869
+ },
870
+ "/work/{author}/{vanity}/chapter/create/bulk/finish": {
871
+ method: "post"
872
+ body: QueuedChapterFinalise[]
873
+ search?: undefined
874
+ response: void | ErrorResponse
875
+ },
876
+ "/work/{author}/{vanity}/chapter/create/bulk/has": {
877
+ method: "post"
878
+ body?: undefined
879
+ search?: undefined
880
+ response: Response<ChapterHasQueue> | ErrorResponse
881
+ },
825
882
  "/work/{author}/{work}/chapter/{url}/get": {
826
883
  method: "get"
827
884
  body?: undefined
@@ -1409,6 +1466,12 @@ export interface Paths {
1409
1466
  search?: undefined
1410
1467
  response: void | ErrorResponse
1411
1468
  },
1469
+ "/danger-token/request/chapter-create-bulk/{service}/begin": {
1470
+ method: "get"
1471
+ body?: undefined
1472
+ search?: undefined
1473
+ response: void | ErrorResponse
1474
+ },
1412
1475
  "/feed/get": {
1413
1476
  method: "get"
1414
1477
  body?: undefined
package/openapi.json CHANGED
@@ -1723,6 +1723,196 @@
1723
1723
  "url"
1724
1724
  ]
1725
1725
  },
1726
+ "QueuedChapter": {
1727
+ "type": "object",
1728
+ "properties": {
1729
+ "name": {
1730
+ "type": "string"
1731
+ },
1732
+ "visibility": {
1733
+ "type": "string",
1734
+ "enum": [
1735
+ "Private",
1736
+ "Public",
1737
+ "Patreon"
1738
+ ]
1739
+ },
1740
+ "body": {
1741
+ "type": "string"
1742
+ },
1743
+ "queue_index": {
1744
+ "type": "string"
1745
+ },
1746
+ "is_numbered": {
1747
+ "type": "boolean"
1748
+ },
1749
+ "notes_before": {
1750
+ "anyOf": [
1751
+ {
1752
+ "type": "string"
1753
+ },
1754
+ {
1755
+ "type": "null"
1756
+ }
1757
+ ]
1758
+ },
1759
+ "notes_after": {
1760
+ "anyOf": [
1761
+ {
1762
+ "type": "string"
1763
+ },
1764
+ {
1765
+ "type": "null"
1766
+ }
1767
+ ]
1768
+ },
1769
+ "work": {
1770
+ "type": "string"
1771
+ },
1772
+ "author": {
1773
+ "type": "string"
1774
+ },
1775
+ "mentions": {
1776
+ "anyOf": [
1777
+ {
1778
+ "type": "array",
1779
+ "items": {
1780
+ "$ref": "#/components/schema/Author"
1781
+ }
1782
+ },
1783
+ {
1784
+ "type": "null"
1785
+ }
1786
+ ]
1787
+ }
1788
+ },
1789
+ "required": [
1790
+ "name",
1791
+ "visibility",
1792
+ "body",
1793
+ "queue_index",
1794
+ "is_numbered",
1795
+ "work",
1796
+ "author"
1797
+ ]
1798
+ },
1799
+ "ChapterQueueBody": {
1800
+ "type": "object",
1801
+ "properties": {
1802
+ "name": {
1803
+ "type": "string",
1804
+ "minLength": 1,
1805
+ "maxLength": 256
1806
+ },
1807
+ "visibility": {
1808
+ "type": "string",
1809
+ "enum": [
1810
+ "Private",
1811
+ "Public",
1812
+ "Patreon"
1813
+ ]
1814
+ },
1815
+ "body": {
1816
+ "type": "string"
1817
+ },
1818
+ "is_numbered": {
1819
+ "anyOf": [
1820
+ {
1821
+ "type": "boolean"
1822
+ },
1823
+ {
1824
+ "type": "null"
1825
+ }
1826
+ ]
1827
+ },
1828
+ "notes_before": {
1829
+ "anyOf": [
1830
+ {
1831
+ "type": "string"
1832
+ },
1833
+ {
1834
+ "type": "null"
1835
+ }
1836
+ ]
1837
+ },
1838
+ "notes_after": {
1839
+ "anyOf": [
1840
+ {
1841
+ "type": "string"
1842
+ },
1843
+ {
1844
+ "type": "null"
1845
+ }
1846
+ ]
1847
+ }
1848
+ },
1849
+ "required": [
1850
+ "name",
1851
+ "visibility",
1852
+ "body"
1853
+ ]
1854
+ },
1855
+ "QueuedChapterFinalise": {
1856
+ "type": "object",
1857
+ "properties": {
1858
+ "queue_index": {
1859
+ "type": "string"
1860
+ },
1861
+ "global_tags": {
1862
+ "anyOf": [
1863
+ {
1864
+ "type": "array",
1865
+ "items": {
1866
+ "type": "string"
1867
+ }
1868
+ },
1869
+ {
1870
+ "type": "null"
1871
+ }
1872
+ ]
1873
+ },
1874
+ "custom_tags": {
1875
+ "anyOf": [
1876
+ {
1877
+ "type": "array",
1878
+ "items": {
1879
+ "$ref": "#/components/schema/CustomTag"
1880
+ }
1881
+ },
1882
+ {
1883
+ "type": "null"
1884
+ }
1885
+ ]
1886
+ },
1887
+ "tier_ids": {
1888
+ "anyOf": [
1889
+ {
1890
+ "type": "array",
1891
+ "items": {
1892
+ "type": "string"
1893
+ }
1894
+ },
1895
+ {
1896
+ "type": "null"
1897
+ }
1898
+ ]
1899
+ }
1900
+ },
1901
+ "required": [
1902
+ "queue_index"
1903
+ ]
1904
+ },
1905
+ "ChapterHasQueue": {
1906
+ "type": "object",
1907
+ "properties": {
1908
+ "has_queue": {
1909
+ "type": "boolean"
1910
+ }
1911
+ },
1912
+ "required": [
1913
+ "has_queue"
1914
+ ]
1915
+ },
1726
1916
  "ChapterUpdateBody": {
1727
1917
  "type": "object",
1728
1918
  "properties": {
@@ -4435,6 +4625,173 @@
4435
4625
  }
4436
4626
  }
4437
4627
  },
4628
+ "/work/{author}/{vanity}/chapter/create/bulk/queue": {
4629
+ "parameters": [
4630
+ {
4631
+ "name": "author",
4632
+ "in": "path"
4633
+ },
4634
+ {
4635
+ "name": "vanity",
4636
+ "in": "path"
4637
+ }
4638
+ ],
4639
+ "post": {
4640
+ "requestBody": {
4641
+ "content": {
4642
+ "application/json": {
4643
+ "schema": {
4644
+ "$ref": "#/components/schemas/ChapterQueueBody"
4645
+ }
4646
+ }
4647
+ }
4648
+ },
4649
+ "responses": {
4650
+ "200": {
4651
+ "description": "200 response",
4652
+ "content": {
4653
+ "application/json": {
4654
+ "schema": {
4655
+ "type": "object",
4656
+ "properties": {
4657
+ "data": {
4658
+ "$ref": "#/components/schemas/QueuedChapter"
4659
+ }
4660
+ },
4661
+ "required": [
4662
+ "data"
4663
+ ]
4664
+ }
4665
+ }
4666
+ }
4667
+ },
4668
+ "default": {
4669
+ "description": "Error",
4670
+ "content": {
4671
+ "application/json": {
4672
+ "schema": {
4673
+ "$ref": "#/components/schemas/ErrorResponse"
4674
+ }
4675
+ }
4676
+ }
4677
+ }
4678
+ }
4679
+ }
4680
+ },
4681
+ "/work/{author}/{vanity}/chapter/create/bulk/cancel": {
4682
+ "parameters": [
4683
+ {
4684
+ "name": "author",
4685
+ "in": "path"
4686
+ },
4687
+ {
4688
+ "name": "vanity",
4689
+ "in": "path"
4690
+ }
4691
+ ],
4692
+ "post": {
4693
+ "responses": {
4694
+ "200": {
4695
+ "description": "200 response"
4696
+ },
4697
+ "default": {
4698
+ "description": "Error",
4699
+ "content": {
4700
+ "application/json": {
4701
+ "schema": {
4702
+ "$ref": "#/components/schemas/ErrorResponse"
4703
+ }
4704
+ }
4705
+ }
4706
+ }
4707
+ }
4708
+ }
4709
+ },
4710
+ "/work/{author}/{vanity}/chapter/create/bulk/finish": {
4711
+ "parameters": [
4712
+ {
4713
+ "name": "author",
4714
+ "in": "path"
4715
+ },
4716
+ {
4717
+ "name": "vanity",
4718
+ "in": "path"
4719
+ }
4720
+ ],
4721
+ "post": {
4722
+ "requestBody": {
4723
+ "content": {
4724
+ "application/json": {
4725
+ "schema": {
4726
+ "type": "array",
4727
+ "items": {
4728
+ "$ref": "#/components/schema/QueuedChapterFinalise"
4729
+ }
4730
+ }
4731
+ }
4732
+ }
4733
+ },
4734
+ "responses": {
4735
+ "200": {
4736
+ "description": "200 response"
4737
+ },
4738
+ "default": {
4739
+ "description": "Error",
4740
+ "content": {
4741
+ "application/json": {
4742
+ "schema": {
4743
+ "$ref": "#/components/schemas/ErrorResponse"
4744
+ }
4745
+ }
4746
+ }
4747
+ }
4748
+ }
4749
+ }
4750
+ },
4751
+ "/work/{author}/{vanity}/chapter/create/bulk/has": {
4752
+ "parameters": [
4753
+ {
4754
+ "name": "author",
4755
+ "in": "path"
4756
+ },
4757
+ {
4758
+ "name": "vanity",
4759
+ "in": "path"
4760
+ }
4761
+ ],
4762
+ "post": {
4763
+ "responses": {
4764
+ "200": {
4765
+ "description": "200 response",
4766
+ "content": {
4767
+ "application/json": {
4768
+ "schema": {
4769
+ "type": "object",
4770
+ "properties": {
4771
+ "data": {
4772
+ "$ref": "#/components/schemas/ChapterHasQueue"
4773
+ }
4774
+ },
4775
+ "required": [
4776
+ "data"
4777
+ ]
4778
+ }
4779
+ }
4780
+ }
4781
+ },
4782
+ "default": {
4783
+ "description": "Error",
4784
+ "content": {
4785
+ "application/json": {
4786
+ "schema": {
4787
+ "$ref": "#/components/schemas/ErrorResponse"
4788
+ }
4789
+ }
4790
+ }
4791
+ }
4792
+ }
4793
+ }
4794
+ },
4438
4795
  "/work/{author}/{work}/chapter/{url}/get": {
4439
4796
  "parameters": [
4440
4797
  {
@@ -8461,6 +8818,34 @@
8461
8818
  }
8462
8819
  }
8463
8820
  },
8821
+ "/danger-token/request/chapter-create-bulk/{service}/begin": {
8822
+ "parameters": [
8823
+ {
8824
+ "name": "service",
8825
+ "in": "path"
8826
+ }
8827
+ ],
8828
+ "get": {
8829
+ "responses": {
8830
+ "200": {
8831
+ "description": "200 response"
8832
+ },
8833
+ "302": {
8834
+ "description": "302 response"
8835
+ },
8836
+ "default": {
8837
+ "description": "Error",
8838
+ "content": {
8839
+ "application/json": {
8840
+ "schema": {
8841
+ "$ref": "#/components/schemas/ErrorResponse"
8842
+ }
8843
+ }
8844
+ }
8845
+ }
8846
+ }
8847
+ }
8848
+ },
8464
8849
  "/feed/get": {
8465
8850
  "get": {
8466
8851
  "parameters": [
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.577",
3
+ "version": "1.0.578",
4
4
  "types": "index.d.ts"
5
5
  }