api.fluff4.me 1.0.975 → 1.0.976

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 +26 -103
  2. package/openapi.json +25 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1010,6 +1010,11 @@ export interface ErrorResponse {
1010
1010
  data: null
1011
1011
  }
1012
1012
 
1013
+ export interface PaginationSearch {
1014
+ page?: number | null
1015
+ page_size?: number | null
1016
+ }
1017
+
1013
1018
  export interface Paths {
1014
1019
  "/test/hello": {
1015
1020
  method: "get"
@@ -1158,9 +1163,7 @@ export interface Paths {
1158
1163
  "/authors/resolve": {
1159
1164
  method: "get"
1160
1165
  body?: undefined
1161
- search: {
1162
- authors: string[]
1163
- }
1166
+ search: AuthorResolveSearch
1164
1167
  response: Response<AuthorMetadata[]> | ErrorResponse
1165
1168
  },
1166
1169
  "/work/create": {
@@ -1232,10 +1235,7 @@ export interface Paths {
1232
1235
  "/work/{author}/{work}/chapter/{url}/get": {
1233
1236
  method: "get"
1234
1237
  body?: undefined
1235
- search: {
1236
- page?: number
1237
- page_size?: number
1238
- }
1238
+ search: PaginationSearch
1239
1239
  response: PaginatedResponse<Chapter> | ErrorResponse
1240
1240
  },
1241
1241
  "/work/{author}/{work}/chapter/{url}/update": {
@@ -1289,19 +1289,13 @@ export interface Paths {
1289
1289
  "/work/{author}/{vanity}/chapters/list": {
1290
1290
  method: "get"
1291
1291
  body?: undefined
1292
- search: {
1293
- page?: number
1294
- page_size?: number
1295
- }
1292
+ search: PaginationSearch
1296
1293
  response: PaginatedResponse<Chapters> | ErrorResponse
1297
1294
  },
1298
1295
  "/work/{author}/{work}/chapters/paged": {
1299
1296
  method: "get"
1300
1297
  body?: undefined
1301
- search: {
1302
- page?: number
1303
- page_size?: number
1304
- }
1298
+ search: PaginationSearch
1305
1299
  response: PaginatedResponse<Chapter> | ErrorResponse
1306
1300
  },
1307
1301
  "/work/{author}/{work}/chapters/setvisibility": {
@@ -1313,18 +1307,13 @@ export interface Paths {
1313
1307
  "/works/{author}": {
1314
1308
  method: "get"
1315
1309
  body?: undefined
1316
- search: {
1317
- page?: number
1318
- page_size?: number
1319
- }
1310
+ search: PaginationSearch
1320
1311
  response: PaginatedResponse<Works> | ErrorResponse
1321
1312
  },
1322
1313
  "/works/resolve": {
1323
1314
  method: "get"
1324
1315
  body?: undefined
1325
- search: {
1326
- works: WorkReference[]
1327
- }
1316
+ search: WorkResolveSearch
1328
1317
  response: Response<WorkResolveResponse> | ErrorResponse
1329
1318
  },
1330
1319
  "/follow/author/{id}": {
@@ -1396,10 +1385,7 @@ export interface Paths {
1396
1385
  "/following/{type}": {
1397
1386
  method: "get"
1398
1387
  body?: undefined
1399
- search: {
1400
- page?: number
1401
- page_size?: number
1402
- }
1388
+ search: PaginationSearch
1403
1389
  response: PaginatedResponse<Follow[]> | ErrorResponse
1404
1390
  },
1405
1391
  "/follows/author/{id}": {
@@ -1495,10 +1481,7 @@ export interface Paths {
1495
1481
  "/ignoring/{type}": {
1496
1482
  method: "get"
1497
1483
  body?: undefined
1498
- search: {
1499
- page?: number
1500
- page_size?: number
1501
- }
1484
+ search: PaginationSearch
1502
1485
  response: PaginatedResponse<Follow[]> | ErrorResponse
1503
1486
  },
1504
1487
  "/ignores/author/{id}": {
@@ -1636,10 +1619,7 @@ export interface Paths {
1636
1619
  "/comments/{under}": {
1637
1620
  method: "get"
1638
1621
  body?: undefined
1639
- search: {
1640
- page?: number
1641
- page_size?: number
1642
- }
1622
+ search: PaginationSearch
1643
1623
  response: PaginatedResponse<CommentsResponse> | ErrorResponse
1644
1624
  },
1645
1625
  "/patreon/campaign/tiers/get": {
@@ -1753,19 +1733,13 @@ export interface Paths {
1753
1733
  "/notifications/get/unread": {
1754
1734
  method: "get"
1755
1735
  body?: undefined
1756
- search: {
1757
- page?: number
1758
- page_size?: number
1759
- }
1736
+ search: PaginationSearch
1760
1737
  response: PaginatedResponse<Notifications> | ErrorResponse
1761
1738
  },
1762
1739
  "/notifications/get/all": {
1763
1740
  method: "get"
1764
1741
  body?: undefined
1765
- search: {
1766
- page?: number
1767
- page_size?: number
1768
- }
1742
+ search: PaginationSearch
1769
1743
  response: PaginatedResponse<Notifications> | ErrorResponse
1770
1744
  },
1771
1745
  "/notifications/get/count": {
@@ -1855,52 +1829,19 @@ export interface Paths {
1855
1829
  "/feed/get": {
1856
1830
  method: "get"
1857
1831
  body?: undefined
1858
- search: {
1859
- page?: number
1860
- page_size?: number
1861
- whitelist_tags?: string[] | null
1862
- blacklist_tags?: string[] | null
1863
- whitelist_tag_categories?: string[] | null
1864
- blacklist_tag_categories?: string[] | null
1865
- whitelist_authors?: string[] | null
1866
- blacklist_authors?: string[] | null
1867
- whitelist_works?: WorkReference[] | null
1868
- blacklist_works?: WorkReference[] | null
1869
- minimum_word_count?: number | null
1870
- maximum_word_count?: number | null
1871
- blacklisted_work_statuses?: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"[] | null
1872
- search?: string | null
1873
- }
1832
+ search: FeedSearch & PaginationSearch
1874
1833
  response: PaginatedResponse<FeedResponse> | ErrorResponse
1875
1834
  },
1876
1835
  "/feed/get/authed": {
1877
1836
  method: "get"
1878
1837
  body?: undefined
1879
- search: {
1880
- page?: number
1881
- page_size?: number
1882
- whitelist_tags?: string[] | null
1883
- blacklist_tags?: string[] | null
1884
- whitelist_tag_categories?: string[] | null
1885
- blacklist_tag_categories?: string[] | null
1886
- whitelist_authors?: string[] | null
1887
- blacklist_authors?: string[] | null
1888
- whitelist_works?: WorkReference[] | null
1889
- blacklist_works?: WorkReference[] | null
1890
- minimum_word_count?: number | null
1891
- maximum_word_count?: number | null
1892
- blacklisted_work_statuses?: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"[] | null
1893
- search?: string | null
1894
- }
1838
+ search: FeedSearch & PaginationSearch
1895
1839
  response: PaginatedResponse<FeedResponse> | ErrorResponse
1896
1840
  },
1897
1841
  "/feed/get/followed": {
1898
1842
  method: "get"
1899
1843
  body?: undefined
1900
- search: {
1901
- page?: number
1902
- page_size?: number
1903
- }
1844
+ search: PaginationSearch
1904
1845
  response: PaginatedResponse<FeedResponse> | ErrorResponse
1905
1846
  },
1906
1847
  "/feed/get/rss.xml": {
@@ -1930,10 +1871,7 @@ export interface Paths {
1930
1871
  "/history/get": {
1931
1872
  method: "get"
1932
1873
  body?: undefined
1933
- search: {
1934
- page?: number
1935
- page_size?: number
1936
- }
1874
+ search: PaginationSearch
1937
1875
  response: PaginatedResponse<HistoryResponse> | ErrorResponse
1938
1876
  },
1939
1877
  "/history/add/{author}/{vanity}": {
@@ -1987,10 +1925,7 @@ export interface Paths {
1987
1925
  "/changelog/get": {
1988
1926
  method: "get"
1989
1927
  body?: undefined
1990
- search: {
1991
- page?: number
1992
- page_size?: number
1993
- }
1928
+ search: PaginationSearch
1994
1929
  response: PaginatedResponse<ChangelogItem[]> | ErrorResponse
1995
1930
  },
1996
1931
  "/site/status": {
@@ -2080,10 +2015,7 @@ export interface Paths {
2080
2015
  "/shelf/{id}": {
2081
2016
  method: "get"
2082
2017
  body?: undefined
2083
- search: {
2084
- page?: number
2085
- page_size?: number
2086
- }
2018
+ search: PaginationSearch
2087
2019
  response: PaginatedResponse<FeedResponse> | ErrorResponse
2088
2020
  },
2089
2021
  "/shelf/{id}/details": {
@@ -2119,34 +2051,25 @@ export interface Paths {
2119
2051
  "/shelves": {
2120
2052
  method: "get"
2121
2053
  body?: undefined
2122
- search: {
2123
- page?: number
2124
- page_size?: number
2125
- }
2054
+ search: PaginationSearch
2126
2055
  response: PaginatedResponse<Shelves> | ErrorResponse
2127
2056
  },
2128
2057
  "/search": {
2129
2058
  method: "get"
2130
2059
  body?: undefined
2131
- search: {
2132
- text: string
2133
- }
2060
+ search: SearchSearch
2134
2061
  response: Response<SearchResponse> | ErrorResponse
2135
2062
  },
2136
2063
  "/embed": {
2137
2064
  method: "get"
2138
2065
  body?: undefined
2139
- search: {
2140
- url: string
2141
- }
2066
+ search: EmbedSearch
2142
2067
  response: void | ErrorResponse
2143
2068
  },
2144
2069
  "/oembed": {
2145
2070
  method: "get"
2146
2071
  body?: undefined
2147
- search: {
2148
- url: string
2149
- }
2072
+ search: EmbedSearch
2150
2073
  response: void | ErrorResponse
2151
2074
  },
2152
2075
  }
package/openapi.json CHANGED
@@ -5828,6 +5828,31 @@
5828
5828
  "code",
5829
5829
  "data"
5830
5830
  ]
5831
+ },
5832
+ "PaginationSearch": {
5833
+ "type": "object",
5834
+ "properties": {
5835
+ "page": {
5836
+ "anyOf": [
5837
+ {
5838
+ "type": "number"
5839
+ },
5840
+ {
5841
+ "type": "null"
5842
+ }
5843
+ ]
5844
+ },
5845
+ "page_size": {
5846
+ "anyOf": [
5847
+ {
5848
+ "type": "number"
5849
+ },
5850
+ {
5851
+ "type": "null"
5852
+ }
5853
+ ]
5854
+ }
5855
+ }
5831
5856
  }
5832
5857
  }
5833
5858
  },
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.975",
3
+ "version": "1.0.976",
4
4
  "types": "index.d.ts"
5
5
  }