api.fluff4.me 1.0.213 → 1.0.215
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 +13 -3
- package/openapi.json +61 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -398,6 +398,11 @@ export interface Notification {
|
|
|
398
398
|
comment?: Comment | null
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
export interface NotificationCount {
|
|
402
|
+
unread_notification_count: number
|
|
403
|
+
notification_time_last_modified: string
|
|
404
|
+
}
|
|
405
|
+
|
|
401
406
|
export interface NotificationsBody {
|
|
402
407
|
notification_ids: string[]
|
|
403
408
|
}
|
|
@@ -619,7 +624,7 @@ export interface Paths {
|
|
|
619
624
|
body?: undefined
|
|
620
625
|
response: Response<Follow> | ErrorResponse
|
|
621
626
|
},
|
|
622
|
-
"/ignore/work/{
|
|
627
|
+
"/ignore/work/{author}/{vanity}": {
|
|
623
628
|
method: "post"
|
|
624
629
|
body?: undefined
|
|
625
630
|
response: Response<Follow> | ErrorResponse
|
|
@@ -629,7 +634,7 @@ export interface Paths {
|
|
|
629
634
|
body?: undefined
|
|
630
635
|
response: Response<Follow> | ErrorResponse
|
|
631
636
|
},
|
|
632
|
-
"/unignore/work/{
|
|
637
|
+
"/unignore/work/{author}/{vanity}": {
|
|
633
638
|
method: "post"
|
|
634
639
|
body?: undefined
|
|
635
640
|
response: Response<Follow> | ErrorResponse
|
|
@@ -649,7 +654,7 @@ export interface Paths {
|
|
|
649
654
|
body?: undefined
|
|
650
655
|
response: Response<Follow> | ErrorResponse
|
|
651
656
|
},
|
|
652
|
-
"/ignores/work/{
|
|
657
|
+
"/ignores/work/{author}/{vanity}": {
|
|
653
658
|
method: "get"
|
|
654
659
|
body?: undefined
|
|
655
660
|
response: Response<Follow> | ErrorResponse
|
|
@@ -799,6 +804,11 @@ export interface Paths {
|
|
|
799
804
|
body?: undefined
|
|
800
805
|
response: PaginatedResponse<Notifications> | ErrorResponse
|
|
801
806
|
},
|
|
807
|
+
"/notifications/get/count": {
|
|
808
|
+
method: "get"
|
|
809
|
+
body?: undefined
|
|
810
|
+
response: Response<NotificationCount> | ErrorResponse
|
|
811
|
+
},
|
|
802
812
|
"/notifications/mark/read": {
|
|
803
813
|
method: "post"
|
|
804
814
|
body: NotificationsBody
|
package/openapi.json
CHANGED
|
@@ -2052,6 +2052,21 @@
|
|
|
2052
2052
|
"read"
|
|
2053
2053
|
]
|
|
2054
2054
|
},
|
|
2055
|
+
"NotificationCount": {
|
|
2056
|
+
"type": "object",
|
|
2057
|
+
"properties": {
|
|
2058
|
+
"unread_notification_count": {
|
|
2059
|
+
"type": "number"
|
|
2060
|
+
},
|
|
2061
|
+
"notification_time_last_modified": {
|
|
2062
|
+
"type": "string"
|
|
2063
|
+
}
|
|
2064
|
+
},
|
|
2065
|
+
"required": [
|
|
2066
|
+
"unread_notification_count",
|
|
2067
|
+
"notification_time_last_modified"
|
|
2068
|
+
]
|
|
2069
|
+
},
|
|
2055
2070
|
"NotificationsBody": {
|
|
2056
2071
|
"type": "object",
|
|
2057
2072
|
"properties": {
|
|
@@ -3766,14 +3781,14 @@
|
|
|
3766
3781
|
}
|
|
3767
3782
|
}
|
|
3768
3783
|
},
|
|
3769
|
-
"/ignore/work/{
|
|
3784
|
+
"/ignore/work/{author}/{vanity}": {
|
|
3770
3785
|
"parameters": [
|
|
3771
3786
|
{
|
|
3772
|
-
"name": "
|
|
3787
|
+
"name": "author",
|
|
3773
3788
|
"in": "path"
|
|
3774
3789
|
},
|
|
3775
3790
|
{
|
|
3776
|
-
"name": "
|
|
3791
|
+
"name": "vanity",
|
|
3777
3792
|
"in": "path"
|
|
3778
3793
|
}
|
|
3779
3794
|
],
|
|
@@ -3854,14 +3869,14 @@
|
|
|
3854
3869
|
}
|
|
3855
3870
|
}
|
|
3856
3871
|
},
|
|
3857
|
-
"/unignore/work/{
|
|
3872
|
+
"/unignore/work/{author}/{vanity}": {
|
|
3858
3873
|
"parameters": [
|
|
3859
3874
|
{
|
|
3860
|
-
"name": "
|
|
3875
|
+
"name": "author",
|
|
3861
3876
|
"in": "path"
|
|
3862
3877
|
},
|
|
3863
3878
|
{
|
|
3864
|
-
"name": "
|
|
3879
|
+
"name": "vanity",
|
|
3865
3880
|
"in": "path"
|
|
3866
3881
|
}
|
|
3867
3882
|
],
|
|
@@ -4065,14 +4080,14 @@
|
|
|
4065
4080
|
}
|
|
4066
4081
|
}
|
|
4067
4082
|
},
|
|
4068
|
-
"/ignores/work/{
|
|
4083
|
+
"/ignores/work/{author}/{vanity}": {
|
|
4069
4084
|
"parameters": [
|
|
4070
4085
|
{
|
|
4071
|
-
"name": "
|
|
4086
|
+
"name": "author",
|
|
4072
4087
|
"in": "path"
|
|
4073
4088
|
},
|
|
4074
4089
|
{
|
|
4075
|
-
"name": "
|
|
4090
|
+
"name": "vanity",
|
|
4076
4091
|
"in": "path"
|
|
4077
4092
|
}
|
|
4078
4093
|
],
|
|
@@ -5218,6 +5233,43 @@
|
|
|
5218
5233
|
}
|
|
5219
5234
|
}
|
|
5220
5235
|
},
|
|
5236
|
+
"/notifications/get/count": {
|
|
5237
|
+
"get": {
|
|
5238
|
+
"responses": {
|
|
5239
|
+
"200": {
|
|
5240
|
+
"description": "200 response",
|
|
5241
|
+
"content": {
|
|
5242
|
+
"application/json": {
|
|
5243
|
+
"schema": {
|
|
5244
|
+
"type": "object",
|
|
5245
|
+
"properties": {
|
|
5246
|
+
"data": {
|
|
5247
|
+
"$ref": "#/components/schemas/NotificationCount"
|
|
5248
|
+
}
|
|
5249
|
+
},
|
|
5250
|
+
"required": [
|
|
5251
|
+
"data"
|
|
5252
|
+
]
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
}
|
|
5256
|
+
},
|
|
5257
|
+
"304": {
|
|
5258
|
+
"description": "304 response"
|
|
5259
|
+
},
|
|
5260
|
+
"default": {
|
|
5261
|
+
"description": "Error",
|
|
5262
|
+
"content": {
|
|
5263
|
+
"application/json": {
|
|
5264
|
+
"schema": {
|
|
5265
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
5266
|
+
}
|
|
5267
|
+
}
|
|
5268
|
+
}
|
|
5269
|
+
}
|
|
5270
|
+
}
|
|
5271
|
+
}
|
|
5272
|
+
},
|
|
5221
5273
|
"/notifications/mark/read": {
|
|
5222
5274
|
"post": {
|
|
5223
5275
|
"requestBody": {
|
package/package.json
CHANGED