api.fluff4.me 1.0.620 → 1.0.622

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 +47 -1
  2. package/openapi.json +263 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -119,7 +119,7 @@ export interface Role {
119
119
  privileges?: Privilege[] | null
120
120
  }
121
121
 
122
- 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"
122
+ 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"
123
123
 
124
124
  export interface AuthDeleteBody {
125
125
  id: string
@@ -719,6 +719,25 @@ export interface OrderResponse {
719
719
  }[]
720
720
  }
721
721
 
722
+ export interface ChangelogInsertBody {
723
+ body: string
724
+ version: number
725
+ time?: string | null
726
+ }
727
+
728
+ export interface ChangelogUpdateBody {
729
+ body?: string | null
730
+ version?: number | null
731
+ time?: string | null
732
+ }
733
+
734
+ export interface ChangelogItem {
735
+ id: string
736
+ time: string
737
+ version: number
738
+ body: string
739
+ }
740
+
722
741
  export interface ErrorResponse {
723
742
  code: number
724
743
  detail?: string | null
@@ -1615,4 +1634,31 @@ export interface Paths {
1615
1634
  search?: undefined
1616
1635
  response: void | ErrorResponse
1617
1636
  },
1637
+ "/changelog/add": {
1638
+ method: "post"
1639
+ body: ChangelogInsertBody
1640
+ search?: undefined
1641
+ response: void | ErrorResponse
1642
+ },
1643
+ "/changelog/{id}/update": {
1644
+ method: "post"
1645
+ body: ChangelogUpdateBody
1646
+ search?: undefined
1647
+ response: void | ErrorResponse
1648
+ },
1649
+ "/changelog/{id}/delete": {
1650
+ method: "post"
1651
+ body?: undefined
1652
+ search?: undefined
1653
+ response: void | ErrorResponse
1654
+ },
1655
+ "/changelog/get": {
1656
+ method: "get"
1657
+ body?: undefined
1658
+ search: {
1659
+ page?: number
1660
+ page_size?: number
1661
+ }
1662
+ response: PaginatedResponse<ChangelogItem[]> | ErrorResponse
1663
+ },
1618
1664
  }
package/openapi.json CHANGED
@@ -644,7 +644,8 @@
644
644
  "TagAliasAdd",
645
645
  "TagAliasRemove",
646
646
  "TagRelationshipAdd",
647
- "TagRelationshipRemove"
647
+ "TagRelationshipRemove",
648
+ "ChangelogModify"
648
649
  ]
649
650
  },
650
651
  "AuthDeleteBody": {
@@ -3947,6 +3948,91 @@
3947
3948
  "orders"
3948
3949
  ]
3949
3950
  },
3951
+ "ChangelogInsertBody": {
3952
+ "type": "object",
3953
+ "properties": {
3954
+ "body": {
3955
+ "type": "string",
3956
+ "maxLength": 8192
3957
+ },
3958
+ "version": {
3959
+ "type": "number"
3960
+ },
3961
+ "time": {
3962
+ "anyOf": [
3963
+ {
3964
+ "type": "string"
3965
+ },
3966
+ {
3967
+ "type": "null"
3968
+ }
3969
+ ]
3970
+ }
3971
+ },
3972
+ "required": [
3973
+ "body",
3974
+ "version"
3975
+ ]
3976
+ },
3977
+ "ChangelogUpdateBody": {
3978
+ "type": "object",
3979
+ "properties": {
3980
+ "body": {
3981
+ "anyOf": [
3982
+ {
3983
+ "type": "string",
3984
+ "maxLength": 8192
3985
+ },
3986
+ {
3987
+ "type": "null"
3988
+ }
3989
+ ]
3990
+ },
3991
+ "version": {
3992
+ "anyOf": [
3993
+ {
3994
+ "type": "number"
3995
+ },
3996
+ {
3997
+ "type": "null"
3998
+ }
3999
+ ]
4000
+ },
4001
+ "time": {
4002
+ "anyOf": [
4003
+ {
4004
+ "type": "string"
4005
+ },
4006
+ {
4007
+ "type": "null"
4008
+ }
4009
+ ]
4010
+ }
4011
+ }
4012
+ },
4013
+ "ChangelogItem": {
4014
+ "type": "object",
4015
+ "properties": {
4016
+ "id": {
4017
+ "type": "string"
4018
+ },
4019
+ "time": {
4020
+ "type": "string"
4021
+ },
4022
+ "version": {
4023
+ "type": "number"
4024
+ },
4025
+ "body": {
4026
+ "type": "string"
4027
+ }
4028
+ },
4029
+ "required": [
4030
+ "id",
4031
+ "time",
4032
+ "version",
4033
+ "body"
4034
+ ]
4035
+ },
3950
4036
  "ErrorResponse": {
3951
4037
  "type": "object",
3952
4038
  "properties": {
@@ -9978,6 +10064,182 @@
9978
10064
  }
9979
10065
  }
9980
10066
  }
10067
+ },
10068
+ "/changelog/add": {
10069
+ "post": {
10070
+ "requestBody": {
10071
+ "content": {
10072
+ "application/json": {
10073
+ "schema": {
10074
+ "$ref": "#/components/schemas/ChangelogInsertBody"
10075
+ }
10076
+ }
10077
+ }
10078
+ },
10079
+ "responses": {
10080
+ "200": {
10081
+ "description": "200 response"
10082
+ },
10083
+ "default": {
10084
+ "description": "Error",
10085
+ "content": {
10086
+ "application/json": {
10087
+ "schema": {
10088
+ "$ref": "#/components/schemas/ErrorResponse"
10089
+ }
10090
+ }
10091
+ }
10092
+ }
10093
+ }
10094
+ }
10095
+ },
10096
+ "/changelog/{id}/update": {
10097
+ "parameters": [
10098
+ {
10099
+ "name": "id",
10100
+ "in": "path"
10101
+ }
10102
+ ],
10103
+ "post": {
10104
+ "requestBody": {
10105
+ "content": {
10106
+ "application/json": {
10107
+ "schema": {
10108
+ "$ref": "#/components/schemas/ChangelogUpdateBody"
10109
+ }
10110
+ }
10111
+ }
10112
+ },
10113
+ "responses": {
10114
+ "200": {
10115
+ "description": "200 response"
10116
+ },
10117
+ "default": {
10118
+ "description": "Error",
10119
+ "content": {
10120
+ "application/json": {
10121
+ "schema": {
10122
+ "$ref": "#/components/schemas/ErrorResponse"
10123
+ }
10124
+ }
10125
+ }
10126
+ }
10127
+ }
10128
+ }
10129
+ },
10130
+ "/changelog/{id}/delete": {
10131
+ "parameters": [
10132
+ {
10133
+ "name": "id",
10134
+ "in": "path"
10135
+ }
10136
+ ],
10137
+ "post": {
10138
+ "responses": {
10139
+ "200": {
10140
+ "description": "200 response"
10141
+ },
10142
+ "default": {
10143
+ "description": "Error",
10144
+ "content": {
10145
+ "application/json": {
10146
+ "schema": {
10147
+ "$ref": "#/components/schemas/ErrorResponse"
10148
+ }
10149
+ }
10150
+ }
10151
+ }
10152
+ }
10153
+ }
10154
+ },
10155
+ "/changelog/get": {
10156
+ "get": {
10157
+ "parameters": [
10158
+ {
10159
+ "name": "page",
10160
+ "in": "query",
10161
+ "description": "The page of data to query from. This endpoint uses a page size of 25 by default.",
10162
+ "schema": {
10163
+ "type": "integer",
10164
+ "minimum": 0
10165
+ }
10166
+ },
10167
+ {
10168
+ "name": "page_size",
10169
+ "in": "query",
10170
+ "description": "The custom page size to return. This endpoint uses a page size of 25 by default. The custom page size cannot be raised above the default.",
10171
+ "schema": {
10172
+ "type": "integer",
10173
+ "minimum": 1,
10174
+ "maximum": 25
10175
+ }
10176
+ }
10177
+ ],
10178
+ "responses": {
10179
+ "200": {
10180
+ "description": "200 response",
10181
+ "content": {
10182
+ "application/json": {
10183
+ "schema": {
10184
+ "type": "object",
10185
+ "properties": {
10186
+ "data": {
10187
+ "type": "array",
10188
+ "items": {
10189
+ "$ref": "#/components/schema/ChangelogItem"
10190
+ }
10191
+ },
10192
+ "has_more": {
10193
+ "type": "boolean"
10194
+ },
10195
+ "page": {
10196
+ "type": "number",
10197
+ "minimum": 0
10198
+ },
10199
+ "page_count": {
10200
+ "type": [
10201
+ "boolean",
10202
+ "number"
10203
+ ],
10204
+ "anyOf": [
10205
+ {
10206
+ "type": "boolean",
10207
+ "enum": [
10208
+ true
10209
+ ]
10210
+ },
10211
+ {
10212
+ "type": "number",
10213
+ "minimum": 0
10214
+ }
10215
+ ]
10216
+ }
10217
+ },
10218
+ "required": [
10219
+ "data",
10220
+ "has_more",
10221
+ "page",
10222
+ "page_count"
10223
+ ]
10224
+ }
10225
+ }
10226
+ }
10227
+ },
10228
+ "304": {
10229
+ "description": "304 response"
10230
+ },
10231
+ "default": {
10232
+ "description": "Error",
10233
+ "content": {
10234
+ "application/json": {
10235
+ "schema": {
10236
+ "$ref": "#/components/schemas/ErrorResponse"
10237
+ }
10238
+ }
10239
+ }
10240
+ }
10241
+ }
10242
+ }
9981
10243
  }
9982
10244
  }
9983
10245
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.620",
3
+ "version": "1.0.622",
4
4
  "types": "index.d.ts"
5
5
  }