api.fluff4.me 1.0.618 → 1.0.621

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 +72 -2
  2. package/openapi.json +374 -7
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -44,11 +44,11 @@ export interface Author {
44
44
  vanity: string
45
45
  pronouns?: string | null
46
46
  supporter?: Supporter | null
47
+ supporter_months_supported: number
47
48
  }
48
49
 
49
50
  export interface Supporter {
50
51
  tier: number
51
- months: number
52
52
  username_colours?: number[] | null
53
53
  card_colours?: number[] | null
54
54
  }
@@ -63,6 +63,7 @@ export interface AuthorSelf {
63
63
  vanity: string
64
64
  pronouns?: string | null
65
65
  supporter?: Supporter | null
66
+ supporter_months_supported: number
66
67
  description: TextBody
67
68
  authorisations?: Authorisation[] | null
68
69
  patreon_campaign?: PatreonCampaign | null
@@ -118,7 +119,7 @@ export interface Role {
118
119
  privileges?: Privilege[] | null
119
120
  }
120
121
 
121
- 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"
122
123
 
123
124
  export interface AuthDeleteBody {
124
125
  id: string
@@ -178,6 +179,7 @@ export interface AuthorFull {
178
179
  vanity: string
179
180
  pronouns?: string | null
180
181
  supporter?: Supporter | null
182
+ supporter_months_supported: number
181
183
  description: TextBody
182
184
  }
183
185
 
@@ -707,6 +709,35 @@ export interface LemonSqueezyProductDisplay {
707
709
  buy_now_url: string
708
710
  }
709
711
 
712
+ export interface OrderResponse {
713
+ orders: {
714
+ type: string
715
+ timestamp: string
716
+ status: string
717
+ amount: number
718
+ uuid: string
719
+ }[]
720
+ }
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
+
710
741
  export interface ErrorResponse {
711
742
  code: number
712
743
  detail?: string | null
@@ -1591,4 +1622,43 @@ export interface Paths {
1591
1622
  search?: undefined
1592
1623
  response: Response<SupporterStatus> | ErrorResponse
1593
1624
  },
1625
+ "/supporter/orders": {
1626
+ method: "get"
1627
+ body?: undefined
1628
+ search?: undefined
1629
+ response: Response<OrderResponse> | ErrorResponse
1630
+ },
1631
+ "/supporter/order/{id}": {
1632
+ method: "get"
1633
+ body?: undefined
1634
+ search?: undefined
1635
+ response: void | ErrorResponse
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
+ },
1594
1664
  }
package/openapi.json CHANGED
@@ -166,6 +166,9 @@
166
166
  "type": "null"
167
167
  }
168
168
  ]
169
+ },
170
+ "supporter_months_supported": {
171
+ "type": "number"
169
172
  }
170
173
  },
171
174
  "required": [
@@ -175,7 +178,8 @@
175
178
  "support_message",
176
179
  "word_count",
177
180
  "work_count",
178
- "vanity"
181
+ "vanity",
182
+ "supporter_months_supported"
179
183
  ]
180
184
  },
181
185
  "Supporter": {
@@ -184,9 +188,6 @@
184
188
  "tier": {
185
189
  "type": "number"
186
190
  },
187
- "months": {
188
- "type": "number"
189
- },
190
191
  "username_colours": {
191
192
  "anyOf": [
192
193
  {
@@ -215,8 +216,7 @@
215
216
  }
216
217
  },
217
218
  "required": [
218
- "tier",
219
- "months"
219
+ "tier"
220
220
  ]
221
221
  },
222
222
  "AuthorSelf": {
@@ -268,6 +268,9 @@
268
268
  }
269
269
  ]
270
270
  },
271
+ "supporter_months_supported": {
272
+ "type": "number"
273
+ },
271
274
  "description": {
272
275
  "$ref": "#/components/schema/TextBody"
273
276
  },
@@ -373,6 +376,7 @@
373
376
  "word_count",
374
377
  "work_count",
375
378
  "vanity",
379
+ "supporter_months_supported",
376
380
  "description"
377
381
  ]
378
382
  },
@@ -640,7 +644,8 @@
640
644
  "TagAliasAdd",
641
645
  "TagAliasRemove",
642
646
  "TagRelationshipAdd",
643
- "TagRelationshipRemove"
647
+ "TagRelationshipRemove",
648
+ "ChangelogModify"
644
649
  ]
645
650
  },
646
651
  "AuthDeleteBody": {
@@ -931,6 +936,9 @@
931
936
  }
932
937
  ]
933
938
  },
939
+ "supporter_months_supported": {
940
+ "type": "number"
941
+ },
934
942
  "description": {
935
943
  "$ref": "#/components/schema/TextBody"
936
944
  }
@@ -943,6 +951,7 @@
943
951
  "word_count",
944
952
  "work_count",
945
953
  "vanity",
954
+ "supporter_months_supported",
946
955
  "description"
947
956
  ]
948
957
  },
@@ -3901,6 +3910,129 @@
3901
3910
  "buy_now_url"
3902
3911
  ]
3903
3912
  },
3913
+ "OrderResponse": {
3914
+ "type": "object",
3915
+ "properties": {
3916
+ "orders": {
3917
+ "type": "array",
3918
+ "items": {
3919
+ "type": "object",
3920
+ "properties": {
3921
+ "type": {
3922
+ "type": "string"
3923
+ },
3924
+ "timestamp": {
3925
+ "type": "string"
3926
+ },
3927
+ "status": {
3928
+ "type": "string"
3929
+ },
3930
+ "amount": {
3931
+ "type": "number"
3932
+ },
3933
+ "uuid": {
3934
+ "type": "string"
3935
+ }
3936
+ },
3937
+ "required": [
3938
+ "type",
3939
+ "timestamp",
3940
+ "status",
3941
+ "amount",
3942
+ "uuid"
3943
+ ]
3944
+ }
3945
+ }
3946
+ },
3947
+ "required": [
3948
+ "orders"
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
+ },
3904
4036
  "ErrorResponse": {
3905
4037
  "type": "object",
3906
4038
  "properties": {
@@ -9873,6 +10005,241 @@
9873
10005
  }
9874
10006
  }
9875
10007
  }
10008
+ },
10009
+ "/supporter/orders": {
10010
+ "get": {
10011
+ "responses": {
10012
+ "200": {
10013
+ "description": "200 response",
10014
+ "content": {
10015
+ "application/json": {
10016
+ "schema": {
10017
+ "type": "object",
10018
+ "properties": {
10019
+ "data": {
10020
+ "$ref": "#/components/schemas/OrderResponse"
10021
+ }
10022
+ },
10023
+ "required": [
10024
+ "data"
10025
+ ]
10026
+ }
10027
+ }
10028
+ }
10029
+ },
10030
+ "default": {
10031
+ "description": "Error",
10032
+ "content": {
10033
+ "application/json": {
10034
+ "schema": {
10035
+ "$ref": "#/components/schemas/ErrorResponse"
10036
+ }
10037
+ }
10038
+ }
10039
+ }
10040
+ }
10041
+ }
10042
+ },
10043
+ "/supporter/order/{id}": {
10044
+ "parameters": [
10045
+ {
10046
+ "name": "id",
10047
+ "in": "path"
10048
+ }
10049
+ ],
10050
+ "get": {
10051
+ "responses": {
10052
+ "200": {
10053
+ "description": "200 response"
10054
+ },
10055
+ "default": {
10056
+ "description": "Error",
10057
+ "content": {
10058
+ "application/json": {
10059
+ "schema": {
10060
+ "$ref": "#/components/schemas/ErrorResponse"
10061
+ }
10062
+ }
10063
+ }
10064
+ }
10065
+ }
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
+ }
9876
10243
  }
9877
10244
  }
9878
10245
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.618",
3
+ "version": "1.0.621",
4
4
  "types": "index.d.ts"
5
5
  }