api.fluff4.me 1.0.735 → 1.0.737

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 +16 -10
  2. package/openapi.json +96 -52
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -65,6 +65,12 @@ export interface AuthorSelf {
65
65
  supporter?: Supporter | null
66
66
  supporter_months_supported: number
67
67
  description: TextBody
68
+ license?:
69
+ | {
70
+ name: string
71
+ link: string
72
+ }
73
+ | null
68
74
  authorisations?: Authorisation[] | null
69
75
  patreon_campaign?: PatreonCampaign | null
70
76
  patreon_patron?: Authorisation | null
@@ -74,12 +80,6 @@ export interface AuthorSelf {
74
80
  totp_state?: "enabled" | "disabled" | null
75
81
  auth_services_required?: number | null
76
82
  age: "sixteen_plus" | "eighteen_plus"
77
- license?:
78
- | {
79
- name: string
80
- link: string
81
- }
82
- | null
83
83
  }
84
84
 
85
85
  export interface TextBody {
@@ -193,7 +193,7 @@ export interface AuthorCreateBody {
193
193
  username_colours?: number[] | null
194
194
  card_colours?: number[] | null
195
195
  age: "sixteen_plus" | "eighteen_plus"
196
- license: WorkLicense | false
196
+ license?: (WorkLicense | false) | null
197
197
  }
198
198
 
199
199
  export interface AuthorFull {
@@ -208,6 +208,12 @@ export interface AuthorFull {
208
208
  supporter?: Supporter | null
209
209
  supporter_months_supported: number
210
210
  description: TextBody
211
+ license?:
212
+ | {
213
+ name: string
214
+ link: string
215
+ }
216
+ | null
211
217
  }
212
218
 
213
219
  export interface AuthorInsertBody {
@@ -224,7 +230,7 @@ export interface AuthorInsertBody {
224
230
  username_colours?: number[] | null
225
231
  card_colours?: number[] | null
226
232
  age: "sixteen_plus" | "eighteen_plus"
227
- license: WorkLicense | false
233
+ license?: (WorkLicense | false) | null
228
234
  }
229
235
 
230
236
  export interface AuthorUpdateSettingsBody {
@@ -270,7 +276,7 @@ export interface WorkCreateBody {
270
276
  feedback_preference_critique?: boolean | null
271
277
  feedback_preference_dont_hold_back?: boolean | null
272
278
  feedback_preference_typos?: boolean | null
273
- license: WorkLicense | false
279
+ license?: (WorkLicense | false) | null
274
280
  card_colours?: number[] | null
275
281
  tier_ids?: string[] | null
276
282
  }
@@ -295,7 +301,7 @@ export interface WorkUpdateBody {
295
301
  feedback_preference_dont_hold_back?: boolean | null
296
302
  feedback_preference_typos?: boolean | null
297
303
  card_colours?: number[] | null
298
- license: WorkLicense | false
304
+ license?: (WorkLicense | false) | null
299
305
  tier_ids?: string[] | null
300
306
  }
301
307
 
package/openapi.json CHANGED
@@ -274,6 +274,28 @@
274
274
  "description": {
275
275
  "$ref": "#/components/schema/TextBody"
276
276
  },
277
+ "license": {
278
+ "anyOf": [
279
+ {
280
+ "type": "object",
281
+ "properties": {
282
+ "name": {
283
+ "type": "string"
284
+ },
285
+ "link": {
286
+ "type": "string"
287
+ }
288
+ },
289
+ "required": [
290
+ "name",
291
+ "link"
292
+ ]
293
+ },
294
+ {
295
+ "type": "null"
296
+ }
297
+ ]
298
+ },
277
299
  "authorisations": {
278
300
  "anyOf": [
279
301
  {
@@ -373,28 +395,6 @@
373
395
  "sixteen_plus",
374
396
  "eighteen_plus"
375
397
  ]
376
- },
377
- "license": {
378
- "anyOf": [
379
- {
380
- "type": "object",
381
- "properties": {
382
- "name": {
383
- "type": "string"
384
- },
385
- "link": {
386
- "type": "string"
387
- }
388
- },
389
- "required": [
390
- "name",
391
- "link"
392
- ]
393
- },
394
- {
395
- "type": "null"
396
- }
397
- ]
398
398
  }
399
399
  },
400
400
  "required": [
@@ -1008,13 +1008,20 @@
1008
1008
  "license": {
1009
1009
  "anyOf": [
1010
1010
  {
1011
- "$ref": "#/components/schema/WorkLicense"
1011
+ "anyOf": [
1012
+ {
1013
+ "$ref": "#/components/schema/WorkLicense"
1014
+ },
1015
+ {
1016
+ "type": "boolean",
1017
+ "enum": [
1018
+ false
1019
+ ]
1020
+ }
1021
+ ]
1012
1022
  },
1013
1023
  {
1014
- "type": "boolean",
1015
- "enum": [
1016
- false
1017
- ]
1024
+ "type": "null"
1018
1025
  }
1019
1026
  ]
1020
1027
  }
@@ -1022,8 +1029,7 @@
1022
1029
  "required": [
1023
1030
  "name",
1024
1031
  "vanity",
1025
- "age",
1026
- "license"
1032
+ "age"
1027
1033
  ]
1028
1034
  },
1029
1035
  "AuthorFull": {
@@ -1080,6 +1086,28 @@
1080
1086
  },
1081
1087
  "description": {
1082
1088
  "$ref": "#/components/schema/TextBody"
1089
+ },
1090
+ "license": {
1091
+ "anyOf": [
1092
+ {
1093
+ "type": "object",
1094
+ "properties": {
1095
+ "name": {
1096
+ "type": "string"
1097
+ },
1098
+ "link": {
1099
+ "type": "string"
1100
+ }
1101
+ },
1102
+ "required": [
1103
+ "name",
1104
+ "link"
1105
+ ]
1106
+ },
1107
+ {
1108
+ "type": "null"
1109
+ }
1110
+ ]
1083
1111
  }
1084
1112
  },
1085
1113
  "required": [
@@ -1240,20 +1268,26 @@
1240
1268
  "license": {
1241
1269
  "anyOf": [
1242
1270
  {
1243
- "$ref": "#/components/schema/WorkLicense"
1271
+ "anyOf": [
1272
+ {
1273
+ "$ref": "#/components/schema/WorkLicense"
1274
+ },
1275
+ {
1276
+ "type": "boolean",
1277
+ "enum": [
1278
+ false
1279
+ ]
1280
+ }
1281
+ ]
1244
1282
  },
1245
1283
  {
1246
- "type": "boolean",
1247
- "enum": [
1248
- false
1249
- ]
1284
+ "type": "null"
1250
1285
  }
1251
1286
  ]
1252
1287
  }
1253
1288
  },
1254
1289
  "required": [
1255
- "age",
1256
- "license"
1290
+ "age"
1257
1291
  ]
1258
1292
  },
1259
1293
  "AuthorUpdateSettingsBody": {
@@ -1560,13 +1594,20 @@
1560
1594
  "license": {
1561
1595
  "anyOf": [
1562
1596
  {
1563
- "$ref": "#/components/schema/WorkLicense"
1597
+ "anyOf": [
1598
+ {
1599
+ "$ref": "#/components/schema/WorkLicense"
1600
+ },
1601
+ {
1602
+ "type": "boolean",
1603
+ "enum": [
1604
+ false
1605
+ ]
1606
+ }
1607
+ ]
1564
1608
  },
1565
1609
  {
1566
- "type": "boolean",
1567
- "enum": [
1568
- false
1569
- ]
1610
+ "type": "null"
1570
1611
  }
1571
1612
  ]
1572
1613
  },
@@ -1601,8 +1642,7 @@
1601
1642
  "name",
1602
1643
  "description",
1603
1644
  "synopsis",
1604
- "vanity",
1605
- "license"
1645
+ "vanity"
1606
1646
  ]
1607
1647
  },
1608
1648
  "TextBodyWithAuthor": {
@@ -1770,13 +1810,20 @@
1770
1810
  "license": {
1771
1811
  "anyOf": [
1772
1812
  {
1773
- "$ref": "#/components/schema/WorkLicense"
1813
+ "anyOf": [
1814
+ {
1815
+ "$ref": "#/components/schema/WorkLicense"
1816
+ },
1817
+ {
1818
+ "type": "boolean",
1819
+ "enum": [
1820
+ false
1821
+ ]
1822
+ }
1823
+ ]
1774
1824
  },
1775
1825
  {
1776
- "type": "boolean",
1777
- "enum": [
1778
- false
1779
- ]
1826
+ "type": "null"
1780
1827
  }
1781
1828
  ]
1782
1829
  },
@@ -1793,10 +1840,7 @@
1793
1840
  }
1794
1841
  ]
1795
1842
  }
1796
- },
1797
- "required": [
1798
- "license"
1799
- ]
1843
+ }
1800
1844
  },
1801
1845
  "Feedback": {
1802
1846
  "type": "object",
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.735",
3
+ "version": "1.0.737",
4
4
  "types": "index.d.ts"
5
5
  }