api.fluff4.me 1.0.657 → 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.
Files changed (3) hide show
  1. package/index.d.ts +17 -1
  2. package/openapi.json +66 -1
  3. 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
@@ -838,6 +838,10 @@ export interface ReportCommentBody {
838
838
  reason_body: string
839
839
  }
840
840
 
841
+ export interface ModerationSupporterGrantBody {
842
+ months: number
843
+ }
844
+
841
845
  export interface ErrorResponse {
842
846
  code: number
843
847
  detail?: string | null
@@ -1779,6 +1783,12 @@ export interface Paths {
1779
1783
  search?: undefined
1780
1784
  response: void | ErrorResponse
1781
1785
  },
1786
+ "/supporter/poll": {
1787
+ method: "post"
1788
+ body?: undefined
1789
+ search?: undefined
1790
+ response: void | ErrorResponse
1791
+ },
1782
1792
  "/changelog/add": {
1783
1793
  method: "post"
1784
1794
  body: ChangelogInsertBody
@@ -1836,4 +1846,10 @@ export interface Paths {
1836
1846
  search?: undefined
1837
1847
  response: void | ErrorResponse
1838
1848
  },
1849
+ "/moderation/supporter/grant/{vanity}": {
1850
+ method: "post"
1851
+ body: ModerationSupporterGrantBody
1852
+ search?: undefined
1853
+ response: void | ErrorResponse
1854
+ },
1839
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": {
@@ -4656,6 +4657,17 @@
4656
4657
  "reason_body"
4657
4658
  ]
4658
4659
  },
4660
+ "ModerationSupporterGrantBody": {
4661
+ "type": "object",
4662
+ "properties": {
4663
+ "months": {
4664
+ "type": "number"
4665
+ }
4666
+ },
4667
+ "required": [
4668
+ "months"
4669
+ ]
4670
+ },
4659
4671
  "ErrorResponse": {
4660
4672
  "type": "object",
4661
4673
  "properties": {
@@ -10965,6 +10977,25 @@
10965
10977
  }
10966
10978
  }
10967
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
+ },
10968
10999
  "/changelog/add": {
10969
11000
  "post": {
10970
11001
  "requestBody": {
@@ -11325,6 +11356,40 @@
11325
11356
  }
11326
11357
  }
11327
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
+ }
11328
11393
  }
11329
11394
  }
11330
11395
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.657",
3
+ "version": "1.0.658",
4
4
  "types": "index.d.ts"
5
5
  }