api.fluff4.me 1.0.170 → 1.0.173
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 +24 -2
- package/openapi.json +201 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -146,7 +146,6 @@ export interface WorkUpdateBody {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
export interface Chapter {
|
|
149
|
-
work: string
|
|
150
149
|
url: string
|
|
151
150
|
index_public?: number | null
|
|
152
151
|
name: string
|
|
@@ -200,7 +199,6 @@ export interface Comment {
|
|
|
200
199
|
export type Chapters = ChapterLite[]
|
|
201
200
|
|
|
202
201
|
export interface ChapterLite {
|
|
203
|
-
work: string
|
|
204
202
|
url: string
|
|
205
203
|
index_public?: number | null
|
|
206
204
|
name: string
|
|
@@ -365,6 +363,20 @@ export interface ManifestFormInputLengths {
|
|
|
365
363
|
comment: { body: number }
|
|
366
364
|
}
|
|
367
365
|
|
|
366
|
+
export type Notifications = Notification[]
|
|
367
|
+
|
|
368
|
+
export interface Notification {
|
|
369
|
+
type: string
|
|
370
|
+
created_time: string
|
|
371
|
+
read: boolean
|
|
372
|
+
string_128?: string | null
|
|
373
|
+
triggered_by?: Author | null
|
|
374
|
+
author?: Author | null
|
|
375
|
+
work?: Work | null
|
|
376
|
+
chapter?: ChapterLite | null
|
|
377
|
+
comment?: Comment | null
|
|
378
|
+
}
|
|
379
|
+
|
|
368
380
|
export interface NotificationsBody {
|
|
369
381
|
notification_ids: string[]
|
|
370
382
|
}
|
|
@@ -736,6 +748,16 @@ export interface Paths {
|
|
|
736
748
|
body?: undefined
|
|
737
749
|
response: Response<ManifestFormInputLengths> | ErrorResponse
|
|
738
750
|
},
|
|
751
|
+
"/notifications/get/unread": {
|
|
752
|
+
method: "get"
|
|
753
|
+
body?: undefined
|
|
754
|
+
response: PaginatedResponse<Notifications> | ErrorResponse
|
|
755
|
+
},
|
|
756
|
+
"/notifications/get/all": {
|
|
757
|
+
method: "get"
|
|
758
|
+
body?: undefined
|
|
759
|
+
response: PaginatedResponse<Notifications> | ErrorResponse
|
|
760
|
+
},
|
|
739
761
|
"/notifications/mark/read": {
|
|
740
762
|
method: "post"
|
|
741
763
|
body: NotificationsBody
|
package/openapi.json
CHANGED
|
@@ -760,9 +760,6 @@
|
|
|
760
760
|
"Chapter": {
|
|
761
761
|
"type": "object",
|
|
762
762
|
"properties": {
|
|
763
|
-
"work": {
|
|
764
|
-
"type": "string"
|
|
765
|
-
},
|
|
766
763
|
"url": {
|
|
767
764
|
"type": "string"
|
|
768
765
|
},
|
|
@@ -811,7 +808,6 @@
|
|
|
811
808
|
}
|
|
812
809
|
},
|
|
813
810
|
"required": [
|
|
814
|
-
"work",
|
|
815
811
|
"url",
|
|
816
812
|
"name",
|
|
817
813
|
"word_count",
|
|
@@ -1068,9 +1064,6 @@
|
|
|
1068
1064
|
"ChapterLite": {
|
|
1069
1065
|
"type": "object",
|
|
1070
1066
|
"properties": {
|
|
1071
|
-
"work": {
|
|
1072
|
-
"type": "string"
|
|
1073
|
-
},
|
|
1074
1067
|
"url": {
|
|
1075
1068
|
"type": "string"
|
|
1076
1069
|
},
|
|
@@ -1106,7 +1099,6 @@
|
|
|
1106
1099
|
}
|
|
1107
1100
|
},
|
|
1108
1101
|
"required": [
|
|
1109
|
-
"work",
|
|
1110
1102
|
"url",
|
|
1111
1103
|
"name",
|
|
1112
1104
|
"word_count",
|
|
@@ -1799,6 +1791,91 @@
|
|
|
1799
1791
|
"comment"
|
|
1800
1792
|
]
|
|
1801
1793
|
},
|
|
1794
|
+
"Notifications": {
|
|
1795
|
+
"type": "array",
|
|
1796
|
+
"items": {
|
|
1797
|
+
"$ref": "#/components/schema/Notification"
|
|
1798
|
+
}
|
|
1799
|
+
},
|
|
1800
|
+
"Notification": {
|
|
1801
|
+
"type": "object",
|
|
1802
|
+
"properties": {
|
|
1803
|
+
"type": {
|
|
1804
|
+
"type": "string"
|
|
1805
|
+
},
|
|
1806
|
+
"created_time": {
|
|
1807
|
+
"type": "string"
|
|
1808
|
+
},
|
|
1809
|
+
"read": {
|
|
1810
|
+
"type": "boolean"
|
|
1811
|
+
},
|
|
1812
|
+
"string_128": {
|
|
1813
|
+
"anyOf": [
|
|
1814
|
+
{
|
|
1815
|
+
"type": "string"
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
"type": "null"
|
|
1819
|
+
}
|
|
1820
|
+
]
|
|
1821
|
+
},
|
|
1822
|
+
"triggered_by": {
|
|
1823
|
+
"anyOf": [
|
|
1824
|
+
{
|
|
1825
|
+
"$ref": "#/components/schema/Author"
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
"type": "null"
|
|
1829
|
+
}
|
|
1830
|
+
]
|
|
1831
|
+
},
|
|
1832
|
+
"author": {
|
|
1833
|
+
"anyOf": [
|
|
1834
|
+
{
|
|
1835
|
+
"$ref": "#/components/schema/Author"
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"type": "null"
|
|
1839
|
+
}
|
|
1840
|
+
]
|
|
1841
|
+
},
|
|
1842
|
+
"work": {
|
|
1843
|
+
"anyOf": [
|
|
1844
|
+
{
|
|
1845
|
+
"$ref": "#/components/schema/Work"
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
"type": "null"
|
|
1849
|
+
}
|
|
1850
|
+
]
|
|
1851
|
+
},
|
|
1852
|
+
"chapter": {
|
|
1853
|
+
"anyOf": [
|
|
1854
|
+
{
|
|
1855
|
+
"$ref": "#/components/schema/ChapterLite"
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"type": "null"
|
|
1859
|
+
}
|
|
1860
|
+
]
|
|
1861
|
+
},
|
|
1862
|
+
"comment": {
|
|
1863
|
+
"anyOf": [
|
|
1864
|
+
{
|
|
1865
|
+
"$ref": "#/components/schema/Comment"
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"type": "null"
|
|
1869
|
+
}
|
|
1870
|
+
]
|
|
1871
|
+
}
|
|
1872
|
+
},
|
|
1873
|
+
"required": [
|
|
1874
|
+
"type",
|
|
1875
|
+
"created_time",
|
|
1876
|
+
"read"
|
|
1877
|
+
]
|
|
1878
|
+
},
|
|
1802
1879
|
"NotificationsBody": {
|
|
1803
1880
|
"type": "object",
|
|
1804
1881
|
"properties": {
|
|
@@ -4728,6 +4805,122 @@
|
|
|
4728
4805
|
}
|
|
4729
4806
|
}
|
|
4730
4807
|
},
|
|
4808
|
+
"/notifications/get/unread": {
|
|
4809
|
+
"parameters": [
|
|
4810
|
+
{
|
|
4811
|
+
"name": "page",
|
|
4812
|
+
"in": "query",
|
|
4813
|
+
"description": "The page of data to query from. This endpoint uses a page size of 25"
|
|
4814
|
+
}
|
|
4815
|
+
],
|
|
4816
|
+
"get": {
|
|
4817
|
+
"responses": {
|
|
4818
|
+
"200": {
|
|
4819
|
+
"description": "200 response",
|
|
4820
|
+
"content": {
|
|
4821
|
+
"application/json": {
|
|
4822
|
+
"schema": {
|
|
4823
|
+
"type": "object",
|
|
4824
|
+
"properties": {
|
|
4825
|
+
"data": {
|
|
4826
|
+
"$ref": "#/components/schemas/Notifications"
|
|
4827
|
+
},
|
|
4828
|
+
"has_more": {
|
|
4829
|
+
"type": "boolean"
|
|
4830
|
+
},
|
|
4831
|
+
"page": {
|
|
4832
|
+
"type": "number",
|
|
4833
|
+
"minimum": 0
|
|
4834
|
+
},
|
|
4835
|
+
"page_count": {
|
|
4836
|
+
"type": "number",
|
|
4837
|
+
"minimum": 0
|
|
4838
|
+
}
|
|
4839
|
+
},
|
|
4840
|
+
"required": [
|
|
4841
|
+
"data",
|
|
4842
|
+
"has_more",
|
|
4843
|
+
"page",
|
|
4844
|
+
"page_count"
|
|
4845
|
+
]
|
|
4846
|
+
}
|
|
4847
|
+
}
|
|
4848
|
+
}
|
|
4849
|
+
},
|
|
4850
|
+
"304": {
|
|
4851
|
+
"description": "304 response"
|
|
4852
|
+
},
|
|
4853
|
+
"default": {
|
|
4854
|
+
"description": "Error",
|
|
4855
|
+
"content": {
|
|
4856
|
+
"application/json": {
|
|
4857
|
+
"schema": {
|
|
4858
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4859
|
+
}
|
|
4860
|
+
}
|
|
4861
|
+
}
|
|
4862
|
+
}
|
|
4863
|
+
}
|
|
4864
|
+
}
|
|
4865
|
+
},
|
|
4866
|
+
"/notifications/get/all": {
|
|
4867
|
+
"parameters": [
|
|
4868
|
+
{
|
|
4869
|
+
"name": "page",
|
|
4870
|
+
"in": "query",
|
|
4871
|
+
"description": "The page of data to query from. This endpoint uses a page size of 25"
|
|
4872
|
+
}
|
|
4873
|
+
],
|
|
4874
|
+
"get": {
|
|
4875
|
+
"responses": {
|
|
4876
|
+
"200": {
|
|
4877
|
+
"description": "200 response",
|
|
4878
|
+
"content": {
|
|
4879
|
+
"application/json": {
|
|
4880
|
+
"schema": {
|
|
4881
|
+
"type": "object",
|
|
4882
|
+
"properties": {
|
|
4883
|
+
"data": {
|
|
4884
|
+
"$ref": "#/components/schemas/Notifications"
|
|
4885
|
+
},
|
|
4886
|
+
"has_more": {
|
|
4887
|
+
"type": "boolean"
|
|
4888
|
+
},
|
|
4889
|
+
"page": {
|
|
4890
|
+
"type": "number",
|
|
4891
|
+
"minimum": 0
|
|
4892
|
+
},
|
|
4893
|
+
"page_count": {
|
|
4894
|
+
"type": "number",
|
|
4895
|
+
"minimum": 0
|
|
4896
|
+
}
|
|
4897
|
+
},
|
|
4898
|
+
"required": [
|
|
4899
|
+
"data",
|
|
4900
|
+
"has_more",
|
|
4901
|
+
"page",
|
|
4902
|
+
"page_count"
|
|
4903
|
+
]
|
|
4904
|
+
}
|
|
4905
|
+
}
|
|
4906
|
+
}
|
|
4907
|
+
},
|
|
4908
|
+
"304": {
|
|
4909
|
+
"description": "304 response"
|
|
4910
|
+
},
|
|
4911
|
+
"default": {
|
|
4912
|
+
"description": "Error",
|
|
4913
|
+
"content": {
|
|
4914
|
+
"application/json": {
|
|
4915
|
+
"schema": {
|
|
4916
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
4917
|
+
}
|
|
4918
|
+
}
|
|
4919
|
+
}
|
|
4920
|
+
}
|
|
4921
|
+
}
|
|
4922
|
+
}
|
|
4923
|
+
},
|
|
4731
4924
|
"/notifications/mark/read": {
|
|
4732
4925
|
"post": {
|
|
4733
4926
|
"requestBody": {
|
package/package.json
CHANGED