api.fluff4.me 1.0.315 → 1.0.317

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 -10
  2. package/openapi.json +109 -19
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export interface Session {
19
19
  created: string
20
20
  authorisations?: Authorisation[] | null
21
21
  author?: AuthorFull | null
22
+ patreon_tiers?: Tier[] | null
22
23
  }
23
24
 
24
25
  export interface Authorisation {
@@ -42,6 +43,11 @@ export interface Author {
42
43
  pronouns?: string | null
43
44
  }
44
45
 
46
+ export interface Tier {
47
+ tier_name: string
48
+ amount: number
49
+ }
50
+
45
51
  export interface AuthDeleteBody {
46
52
  id: string
47
53
  }
@@ -72,6 +78,7 @@ export interface AuthorAuthorised {
72
78
  vanity: string
73
79
  pronouns?: string | null
74
80
  description: TextBody
81
+ patreon_tiers?: Tier[] | null
75
82
  authorisations?: Authorisation[] | null
76
83
  }
77
84
 
@@ -96,6 +103,7 @@ export interface AuthorFull {
96
103
  vanity: string
97
104
  pronouns?: string | null
98
105
  description: TextBody
106
+ patreon_tiers?: Tier[] | null
99
107
  }
100
108
 
101
109
  export interface AuthorInsert {
@@ -114,8 +122,8 @@ export interface WorkFull {
114
122
  name: string
115
123
  description: string
116
124
  vanity: string
117
- status: string
118
- visibility: string
125
+ status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
126
+ visibility: "Private" | "Public"
119
127
  chapter_count_public: number
120
128
  chapter_count?: number | null
121
129
  word_count: number
@@ -172,6 +180,7 @@ export interface Chapter {
172
180
  url: string
173
181
  index_public?: number | null
174
182
  name: string
183
+ visibility: "Private" | "Public" | "Patreon"
175
184
  word_count: number
176
185
  view_count: string
177
186
  time_last_update?: string | null
@@ -220,6 +229,7 @@ export interface ChapterLite {
220
229
  url: string
221
230
  index_public?: number | null
222
231
  name: string
232
+ visibility: "Private" | "Public" | "Patreon"
223
233
  word_count: number
224
234
  view_count: string
225
235
  time_last_update?: string | null
@@ -231,8 +241,8 @@ export interface Work {
231
241
  name: string
232
242
  description: string
233
243
  vanity: string
234
- status: string
235
- visibility: string
244
+ status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
245
+ visibility: "Private" | "Public"
236
246
  chapter_count_public: number
237
247
  chapter_count?: number | null
238
248
  word_count: number
@@ -313,10 +323,7 @@ export interface Comments {
313
323
  authors: Author[]
314
324
  }
315
325
 
316
- export type Tiers = {
317
- tier_name: string
318
- amount: number
319
- }[]
326
+ export type Tiers = Tier[]
320
327
 
321
328
  export interface CampaignTierSetBody {
322
329
  visibility: "Private" | "Public" | "Patreon"
@@ -469,8 +476,8 @@ export interface WorkWithAuthor {
469
476
  name: string
470
477
  description: string
471
478
  vanity: string
472
- status: string
473
- visibility: string
479
+ status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
480
+ visibility: "Private" | "Public"
474
481
  chapter_count_public: number
475
482
  chapter_count?: number | null
476
483
  word_count: number
package/openapi.json CHANGED
@@ -48,6 +48,19 @@
48
48
  "type": "null"
49
49
  }
50
50
  ]
51
+ },
52
+ "patreon_tiers": {
53
+ "anyOf": [
54
+ {
55
+ "type": "array",
56
+ "items": {
57
+ "$ref": "#/components/schema/Tier"
58
+ }
59
+ },
60
+ {
61
+ "type": "null"
62
+ }
63
+ ]
51
64
  }
52
65
  },
53
66
  "required": [
@@ -143,6 +156,21 @@
143
156
  "vanity"
144
157
  ]
145
158
  },
159
+ "Tier": {
160
+ "type": "object",
161
+ "properties": {
162
+ "tier_name": {
163
+ "type": "string"
164
+ },
165
+ "amount": {
166
+ "type": "number"
167
+ }
168
+ },
169
+ "required": [
170
+ "tier_name",
171
+ "amount"
172
+ ]
173
+ },
146
174
  "AuthDeleteBody": {
147
175
  "type": "object",
148
176
  "properties": {
@@ -259,6 +287,19 @@
259
287
  "description": {
260
288
  "$ref": "#/components/schema/TextBody"
261
289
  },
290
+ "patreon_tiers": {
291
+ "anyOf": [
292
+ {
293
+ "type": "array",
294
+ "items": {
295
+ "$ref": "#/components/schema/Tier"
296
+ }
297
+ },
298
+ {
299
+ "type": "null"
300
+ }
301
+ ]
302
+ },
262
303
  "authorisations": {
263
304
  "anyOf": [
264
305
  {
@@ -411,6 +452,19 @@
411
452
  },
412
453
  "description": {
413
454
  "$ref": "#/components/schema/TextBody"
455
+ },
456
+ "patreon_tiers": {
457
+ "anyOf": [
458
+ {
459
+ "type": "array",
460
+ "items": {
461
+ "$ref": "#/components/schema/Tier"
462
+ }
463
+ },
464
+ {
465
+ "type": "null"
466
+ }
467
+ ]
414
468
  }
415
469
  },
416
470
  "required": [
@@ -540,10 +594,20 @@
540
594
  "maxLength": 32
541
595
  },
542
596
  "status": {
543
- "type": "string"
597
+ "type": "string",
598
+ "enum": [
599
+ "Cancelled",
600
+ "Hiatus",
601
+ "Ongoing",
602
+ "Complete"
603
+ ]
544
604
  },
545
605
  "visibility": {
546
- "type": "string"
606
+ "type": "string",
607
+ "enum": [
608
+ "Private",
609
+ "Public"
610
+ ]
547
611
  },
548
612
  "chapter_count_public": {
549
613
  "type": "number"
@@ -947,6 +1011,14 @@
947
1011
  "type": "string",
948
1012
  "maxLength": 256
949
1013
  },
1014
+ "visibility": {
1015
+ "type": "string",
1016
+ "enum": [
1017
+ "Private",
1018
+ "Public",
1019
+ "Patreon"
1020
+ ]
1021
+ },
950
1022
  "word_count": {
951
1023
  "type": "number"
952
1024
  },
@@ -1072,6 +1144,7 @@
1072
1144
  "required": [
1073
1145
  "url",
1074
1146
  "name",
1147
+ "visibility",
1075
1148
  "word_count",
1076
1149
  "view_count",
1077
1150
  "index"
@@ -1302,6 +1375,14 @@
1302
1375
  "type": "string",
1303
1376
  "maxLength": 256
1304
1377
  },
1378
+ "visibility": {
1379
+ "type": "string",
1380
+ "enum": [
1381
+ "Private",
1382
+ "Public",
1383
+ "Patreon"
1384
+ ]
1385
+ },
1305
1386
  "word_count": {
1306
1387
  "type": "number"
1307
1388
  },
@@ -1322,6 +1403,7 @@
1322
1403
  "required": [
1323
1404
  "url",
1324
1405
  "name",
1406
+ "visibility",
1325
1407
  "word_count",
1326
1408
  "view_count"
1327
1409
  ]
@@ -1348,10 +1430,20 @@
1348
1430
  "maxLength": 32
1349
1431
  },
1350
1432
  "status": {
1351
- "type": "string"
1433
+ "type": "string",
1434
+ "enum": [
1435
+ "Cancelled",
1436
+ "Hiatus",
1437
+ "Ongoing",
1438
+ "Complete"
1439
+ ]
1352
1440
  },
1353
1441
  "visibility": {
1354
- "type": "string"
1442
+ "type": "string",
1443
+ "enum": [
1444
+ "Private",
1445
+ "Public"
1446
+ ]
1355
1447
  },
1356
1448
  "chapter_count_public": {
1357
1449
  "type": "number"
@@ -1778,19 +1870,7 @@
1778
1870
  "Tiers": {
1779
1871
  "type": "array",
1780
1872
  "items": {
1781
- "type": "object",
1782
- "properties": {
1783
- "tier_name": {
1784
- "type": "string"
1785
- },
1786
- "amount": {
1787
- "type": "number"
1788
- }
1789
- },
1790
- "required": [
1791
- "tier_name",
1792
- "amount"
1793
- ]
1873
+ "$ref": "#/components/schema/Tier"
1794
1874
  }
1795
1875
  },
1796
1876
  "CampaignTierSetBody": {
@@ -2434,10 +2514,20 @@
2434
2514
  "maxLength": 32
2435
2515
  },
2436
2516
  "status": {
2437
- "type": "string"
2517
+ "type": "string",
2518
+ "enum": [
2519
+ "Cancelled",
2520
+ "Hiatus",
2521
+ "Ongoing",
2522
+ "Complete"
2523
+ ]
2438
2524
  },
2439
2525
  "visibility": {
2440
- "type": "string"
2526
+ "type": "string",
2527
+ "enum": [
2528
+ "Private",
2529
+ "Public"
2530
+ ]
2441
2531
  },
2442
2532
  "chapter_count_public": {
2443
2533
  "type": "number"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.315",
3
+ "version": "1.0.317",
4
4
  "types": "index.d.ts"
5
5
  }