api.fluff4.me 1.0.656 → 1.0.658
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 +18 -1
- package/openapi.json +80 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ export interface Role {
|
|
|
143
143
|
privileges?: Privilege[] | null
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
export type Privilege = "PrivilegeGrant" | "PrivilegeRevoke" | "RoleCreate" | "RoleEdit" | "RoleDelete" | "RoleReorder" | "RoleGrant" | "RoleRevoke" | "WorkViewPrivate" | "PrivilegeViewAuthor" | "RoleViewAll" | "TagGlobalCreate" | "TagGlobalDelete" | "TagGlobalUpdate" | "TagCategoryCreate" | "TagCategoryUpdate" | "TagCategoryDelete" | "TagCustomCreate" | "TagCustomUpdate" | "TagCustomDelete" | "TagPromote" | "TagDemote" | "TagAliasAdd" | "TagAliasRemove" | "TagRelationshipAdd" | "TagRelationshipRemove" | "ChangelogModify" | "ModerationLock" | "ModerationCensor" | "ModerationDelete" | "ModerationViewReport"
|
|
146
|
+
export type Privilege = "PrivilegeGrant" | "PrivilegeRevoke" | "RoleCreate" | "RoleEdit" | "RoleDelete" | "RoleReorder" | "RoleGrant" | "RoleRevoke" | "WorkViewPrivate" | "PrivilegeViewAuthor" | "RoleViewAll" | "TagGlobalCreate" | "TagGlobalDelete" | "TagGlobalUpdate" | "TagCategoryCreate" | "TagCategoryUpdate" | "TagCategoryDelete" | "TagCustomCreate" | "TagCustomUpdate" | "TagCustomDelete" | "TagPromote" | "TagDemote" | "TagAliasAdd" | "TagAliasRemove" | "TagRelationshipAdd" | "TagRelationshipRemove" | "ChangelogModify" | "ModerationLock" | "ModerationCensor" | "ModerationDelete" | "ModerationViewReport" | "ModerationGrantSupporter"
|
|
147
147
|
|
|
148
148
|
export interface AuthDeleteBody {
|
|
149
149
|
id: string
|
|
@@ -786,6 +786,7 @@ export interface SupporterOrder {
|
|
|
786
786
|
status: string
|
|
787
787
|
amount: number
|
|
788
788
|
uuid: string
|
|
789
|
+
interval?: "monthly" | "yearly" | null
|
|
789
790
|
}
|
|
790
791
|
|
|
791
792
|
export interface ChangelogInsertBody {
|
|
@@ -837,6 +838,10 @@ export interface ReportCommentBody {
|
|
|
837
838
|
reason_body: string
|
|
838
839
|
}
|
|
839
840
|
|
|
841
|
+
export interface ModerationSupporterGrantBody {
|
|
842
|
+
months: number
|
|
843
|
+
}
|
|
844
|
+
|
|
840
845
|
export interface ErrorResponse {
|
|
841
846
|
code: number
|
|
842
847
|
detail?: string | null
|
|
@@ -1778,6 +1783,12 @@ export interface Paths {
|
|
|
1778
1783
|
search?: undefined
|
|
1779
1784
|
response: void | ErrorResponse
|
|
1780
1785
|
},
|
|
1786
|
+
"/supporter/poll": {
|
|
1787
|
+
method: "post"
|
|
1788
|
+
body?: undefined
|
|
1789
|
+
search?: undefined
|
|
1790
|
+
response: void | ErrorResponse
|
|
1791
|
+
},
|
|
1781
1792
|
"/changelog/add": {
|
|
1782
1793
|
method: "post"
|
|
1783
1794
|
body: ChangelogInsertBody
|
|
@@ -1835,4 +1846,10 @@ export interface Paths {
|
|
|
1835
1846
|
search?: undefined
|
|
1836
1847
|
response: void | ErrorResponse
|
|
1837
1848
|
},
|
|
1849
|
+
"/moderation/supporter/grant/{vanity}": {
|
|
1850
|
+
method: "post"
|
|
1851
|
+
body: ModerationSupporterGrantBody
|
|
1852
|
+
search?: undefined
|
|
1853
|
+
response: void | ErrorResponse
|
|
1854
|
+
},
|
|
1838
1855
|
}
|
package/openapi.json
CHANGED
|
@@ -748,7 +748,8 @@
|
|
|
748
748
|
"ModerationLock",
|
|
749
749
|
"ModerationCensor",
|
|
750
750
|
"ModerationDelete",
|
|
751
|
-
"ModerationViewReport"
|
|
751
|
+
"ModerationViewReport",
|
|
752
|
+
"ModerationGrantSupporter"
|
|
752
753
|
]
|
|
753
754
|
},
|
|
754
755
|
"AuthDeleteBody": {
|
|
@@ -4387,6 +4388,20 @@
|
|
|
4387
4388
|
},
|
|
4388
4389
|
"uuid": {
|
|
4389
4390
|
"type": "string"
|
|
4391
|
+
},
|
|
4392
|
+
"interval": {
|
|
4393
|
+
"anyOf": [
|
|
4394
|
+
{
|
|
4395
|
+
"type": "string",
|
|
4396
|
+
"enum": [
|
|
4397
|
+
"monthly",
|
|
4398
|
+
"yearly"
|
|
4399
|
+
]
|
|
4400
|
+
},
|
|
4401
|
+
{
|
|
4402
|
+
"type": "null"
|
|
4403
|
+
}
|
|
4404
|
+
]
|
|
4390
4405
|
}
|
|
4391
4406
|
},
|
|
4392
4407
|
"required": [
|
|
@@ -4642,6 +4657,17 @@
|
|
|
4642
4657
|
"reason_body"
|
|
4643
4658
|
]
|
|
4644
4659
|
},
|
|
4660
|
+
"ModerationSupporterGrantBody": {
|
|
4661
|
+
"type": "object",
|
|
4662
|
+
"properties": {
|
|
4663
|
+
"months": {
|
|
4664
|
+
"type": "number"
|
|
4665
|
+
}
|
|
4666
|
+
},
|
|
4667
|
+
"required": [
|
|
4668
|
+
"months"
|
|
4669
|
+
]
|
|
4670
|
+
},
|
|
4645
4671
|
"ErrorResponse": {
|
|
4646
4672
|
"type": "object",
|
|
4647
4673
|
"properties": {
|
|
@@ -10951,6 +10977,25 @@
|
|
|
10951
10977
|
}
|
|
10952
10978
|
}
|
|
10953
10979
|
},
|
|
10980
|
+
"/supporter/poll": {
|
|
10981
|
+
"post": {
|
|
10982
|
+
"responses": {
|
|
10983
|
+
"200": {
|
|
10984
|
+
"description": "200 response"
|
|
10985
|
+
},
|
|
10986
|
+
"default": {
|
|
10987
|
+
"description": "Error",
|
|
10988
|
+
"content": {
|
|
10989
|
+
"application/json": {
|
|
10990
|
+
"schema": {
|
|
10991
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
10992
|
+
}
|
|
10993
|
+
}
|
|
10994
|
+
}
|
|
10995
|
+
}
|
|
10996
|
+
}
|
|
10997
|
+
}
|
|
10998
|
+
},
|
|
10954
10999
|
"/changelog/add": {
|
|
10955
11000
|
"post": {
|
|
10956
11001
|
"requestBody": {
|
|
@@ -11311,6 +11356,40 @@
|
|
|
11311
11356
|
}
|
|
11312
11357
|
}
|
|
11313
11358
|
}
|
|
11359
|
+
},
|
|
11360
|
+
"/moderation/supporter/grant/{vanity}": {
|
|
11361
|
+
"parameters": [
|
|
11362
|
+
{
|
|
11363
|
+
"name": "vanity",
|
|
11364
|
+
"in": "path"
|
|
11365
|
+
}
|
|
11366
|
+
],
|
|
11367
|
+
"post": {
|
|
11368
|
+
"requestBody": {
|
|
11369
|
+
"content": {
|
|
11370
|
+
"application/json": {
|
|
11371
|
+
"schema": {
|
|
11372
|
+
"$ref": "#/components/schemas/ModerationSupporterGrantBody"
|
|
11373
|
+
}
|
|
11374
|
+
}
|
|
11375
|
+
}
|
|
11376
|
+
},
|
|
11377
|
+
"responses": {
|
|
11378
|
+
"200": {
|
|
11379
|
+
"description": "200 response"
|
|
11380
|
+
},
|
|
11381
|
+
"default": {
|
|
11382
|
+
"description": "Error",
|
|
11383
|
+
"content": {
|
|
11384
|
+
"application/json": {
|
|
11385
|
+
"schema": {
|
|
11386
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
11387
|
+
}
|
|
11388
|
+
}
|
|
11389
|
+
}
|
|
11390
|
+
}
|
|
11391
|
+
}
|
|
11392
|
+
}
|
|
11314
11393
|
}
|
|
11315
11394
|
}
|
|
11316
11395
|
}
|
package/package.json
CHANGED