api.fluff4.me 1.0.451 → 1.0.452

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 +43 -45
  2. package/openapi.json +211 -220
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -18,7 +18,7 @@ export interface Session {
18
18
  expiry: string
19
19
  created: string
20
20
  authorisations?: Authorisation[] | null
21
- author?: AuthorFull | null
21
+ author?: AuthorSelf | null
22
22
  }
23
23
 
24
24
  export interface Authorisation {
@@ -27,7 +27,7 @@ export interface Authorisation {
27
27
  id: string
28
28
  }
29
29
 
30
- export interface AuthorFull {
30
+ export interface AuthorSelf {
31
31
  name: string
32
32
  time_join: string
33
33
  support_link: string
@@ -36,6 +36,10 @@ export interface AuthorFull {
36
36
  vanity: string
37
37
  pronouns?: string | null
38
38
  description: TextBody
39
+ authorisations?: Authorisation[] | null
40
+ patreon_campaign?: PatreonCampaign | null
41
+ patreon_patron?: Authorisation | null
42
+ works?: Work[] | null
39
43
  }
40
44
 
41
45
  export interface TextBody {
@@ -53,6 +57,35 @@ export interface Author {
53
57
  pronouns?: string | null
54
58
  }
55
59
 
60
+ export interface PatreonCampaign {
61
+ display_name: string
62
+ service: string
63
+ id: string
64
+ url: string
65
+ tiers: PatreonCampaignTier[]
66
+ }
67
+
68
+ export interface PatreonCampaignTier {
69
+ tier_name: string
70
+ amount: number
71
+ }
72
+
73
+ export interface Work {
74
+ name: string
75
+ description: string
76
+ vanity: string
77
+ author: string
78
+ status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
79
+ visibility: "Private" | "Public"
80
+ chapter_count_public: number
81
+ chapter_count?: number | null
82
+ word_count: number
83
+ view_count: string
84
+ time_publish?: string | null
85
+ time_last_update?: string | null
86
+ global_tags?: string[] | null
87
+ }
88
+
56
89
  export interface AuthDeleteBody {
57
90
  id: string
58
91
  }
@@ -74,22 +107,6 @@ export interface AuthService {
74
107
  icon: string
75
108
  }
76
109
 
77
- export interface AuthorSelf {
78
- name: string
79
- time_join: string
80
- support_link: string
81
- support_message: string
82
- word_count: number
83
- vanity: string
84
- pronouns?: string | null
85
- description: TextBody
86
- authorisations?: Authorisation[] | null
87
- patreon_tiers?: Tier[] | null
88
- patreon_campaign?: PatreonCampaign | null
89
- patreon_patron?: Authorisation | null
90
- works?: Work[] | null
91
- }
92
-
93
110
  export interface AuthorCreateBody {
94
111
  name: string
95
112
  vanity: string
@@ -102,32 +119,15 @@ export interface AuthorCreateBody {
102
119
  feedback_preference_typos?: boolean | null
103
120
  }
104
121
 
105
- export interface Tier {
106
- tier_name: string
107
- amount: number
108
- }
109
-
110
- export interface PatreonCampaign {
111
- display_name: string
112
- service: string
113
- id: string
114
- url: string
115
- }
116
-
117
- export interface Work {
122
+ export interface AuthorFull {
118
123
  name: string
119
- description: string
120
- vanity: string
121
- author: string
122
- status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
123
- visibility: "Private" | "Public"
124
- chapter_count_public: number
125
- chapter_count?: number | null
124
+ time_join: string
125
+ support_link: string
126
+ support_message: string
126
127
  word_count: number
127
- view_count: string
128
- time_publish?: string | null
129
- time_last_update?: string | null
130
- global_tags?: string[] | null
128
+ vanity: string
129
+ pronouns?: string | null
130
+ description: TextBody
131
131
  }
132
132
 
133
133
  export interface AuthorInsert {
@@ -367,8 +367,6 @@ export interface Comments {
367
367
  authors: Author[]
368
368
  }
369
369
 
370
- export type Tiers = Tier[]
371
-
372
370
  export interface CampaignTierSetBody {
373
371
  visibility: "Private" | "Public" | "Patreon"
374
372
  tier_id?: string | null
@@ -1090,7 +1088,7 @@ export interface Paths {
1090
1088
  method: "get"
1091
1089
  body?: undefined
1092
1090
  search?: undefined
1093
- response: Response<Tiers> | ErrorResponse
1091
+ response: Response<PatreonCampaignTier[]> | ErrorResponse
1094
1092
  },
1095
1093
  "/patreon/campaign/tiers/set/{author}/{vanity}": {
1096
1094
  method: "post"
package/openapi.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "author": {
43
43
  "anyOf": [
44
44
  {
45
- "$ref": "#/components/schema/AuthorFull"
45
+ "$ref": "#/components/schema/AuthorSelf"
46
46
  },
47
47
  {
48
48
  "type": "null"
@@ -74,7 +74,7 @@
74
74
  "id"
75
75
  ]
76
76
  },
77
- "AuthorFull": {
77
+ "AuthorSelf": {
78
78
  "type": "object",
79
79
  "properties": {
80
80
  "name": {
@@ -112,6 +112,52 @@
112
112
  },
113
113
  "description": {
114
114
  "$ref": "#/components/schema/TextBody"
115
+ },
116
+ "authorisations": {
117
+ "anyOf": [
118
+ {
119
+ "type": "array",
120
+ "items": {
121
+ "$ref": "#/components/schema/Authorisation"
122
+ }
123
+ },
124
+ {
125
+ "type": "null"
126
+ }
127
+ ]
128
+ },
129
+ "patreon_campaign": {
130
+ "anyOf": [
131
+ {
132
+ "$ref": "#/components/schema/PatreonCampaign"
133
+ },
134
+ {
135
+ "type": "null"
136
+ }
137
+ ]
138
+ },
139
+ "patreon_patron": {
140
+ "anyOf": [
141
+ {
142
+ "$ref": "#/components/schema/Authorisation"
143
+ },
144
+ {
145
+ "type": "null"
146
+ }
147
+ ]
148
+ },
149
+ "works": {
150
+ "anyOf": [
151
+ {
152
+ "type": "array",
153
+ "items": {
154
+ "$ref": "#/components/schema/Work"
155
+ }
156
+ },
157
+ {
158
+ "type": "null"
159
+ }
160
+ ]
115
161
  }
116
162
  },
117
163
  "required": [
@@ -194,191 +240,227 @@
194
240
  "vanity"
195
241
  ]
196
242
  },
197
- "AuthDeleteBody": {
243
+ "PatreonCampaign": {
198
244
  "type": "object",
199
245
  "properties": {
200
- "id": {
246
+ "display_name": {
201
247
  "type": "string"
202
- }
203
- },
204
- "required": [
205
- "id"
206
- ]
207
- },
208
- "AuthServices": {
209
- "type": "object",
210
- "properties": {
211
- "discord": {
212
- "$ref": "#/components/schema/AuthService"
213
248
  },
214
- "github": {
215
- "$ref": "#/components/schema/AuthService"
249
+ "service": {
250
+ "type": "string"
216
251
  },
217
- "patreon": {
218
- "$ref": "#/components/schema/AuthService"
252
+ "id": {
253
+ "type": "string"
219
254
  },
220
- "google": {
221
- "$ref": "#/components/schema/AuthService"
255
+ "url": {
256
+ "type": "string"
257
+ },
258
+ "tiers": {
259
+ "type": "array",
260
+ "items": {
261
+ "$ref": "#/components/schema/PatreonCampaignTier"
262
+ }
222
263
  }
223
264
  },
224
265
  "required": [
225
- "discord",
226
- "github",
227
- "patreon",
228
- "google"
266
+ "display_name",
267
+ "service",
268
+ "id",
269
+ "url",
270
+ "tiers"
229
271
  ]
230
272
  },
231
- "AuthService": {
273
+ "PatreonCampaignTier": {
232
274
  "type": "object",
233
275
  "properties": {
234
- "id": {
235
- "type": "string"
236
- },
237
- "disabled": {
238
- "anyOf": [
239
- {
240
- "type": "boolean",
241
- "enum": [
242
- true
243
- ]
244
- },
245
- {
246
- "type": "null"
247
- }
248
- ]
249
- },
250
- "url_begin": {
251
- "type": "string"
252
- },
253
- "url_callback": {
254
- "type": "string"
255
- },
256
- "name": {
276
+ "tier_name": {
257
277
  "type": "string"
258
278
  },
259
- "colour": {
279
+ "amount": {
260
280
  "type": "number"
261
- },
262
- "icon": {
263
- "type": "string"
264
281
  }
265
282
  },
266
283
  "required": [
267
- "id",
268
- "url_begin",
269
- "url_callback",
270
- "name",
271
- "colour",
272
- "icon"
284
+ "tier_name",
285
+ "amount"
273
286
  ]
274
287
  },
275
- "AuthorSelf": {
288
+ "Work": {
276
289
  "type": "object",
277
290
  "properties": {
278
291
  "name": {
279
292
  "type": "string",
280
293
  "minLength": 1,
281
- "maxLength": 64
282
- },
283
- "time_join": {
284
- "type": "string"
294
+ "maxLength": 256
285
295
  },
286
- "support_link": {
296
+ "description": {
287
297
  "type": "string",
288
- "maxLength": 128
298
+ "maxLength": 142
289
299
  },
290
- "support_message": {
300
+ "vanity": {
291
301
  "type": "string",
292
- "maxLength": 256
302
+ "maxLength": 32
293
303
  },
294
- "word_count": {
295
- "type": "number"
304
+ "author": {
305
+ "type": "string"
296
306
  },
297
- "vanity": {
307
+ "status": {
298
308
  "type": "string",
299
- "maxLength": 32
309
+ "enum": [
310
+ "Cancelled",
311
+ "Hiatus",
312
+ "Ongoing",
313
+ "Complete"
314
+ ]
300
315
  },
301
- "pronouns": {
302
- "anyOf": [
303
- {
304
- "type": "string"
305
- },
306
- {
307
- "type": "null"
308
- }
316
+ "visibility": {
317
+ "type": "string",
318
+ "enum": [
319
+ "Private",
320
+ "Public"
309
321
  ]
310
322
  },
311
- "description": {
312
- "$ref": "#/components/schema/TextBody"
323
+ "chapter_count_public": {
324
+ "type": "number"
313
325
  },
314
- "authorisations": {
326
+ "chapter_count": {
315
327
  "anyOf": [
316
328
  {
317
- "type": "array",
318
- "items": {
319
- "$ref": "#/components/schema/Authorisation"
320
- }
329
+ "type": "number"
321
330
  },
322
331
  {
323
332
  "type": "null"
324
333
  }
325
334
  ]
326
335
  },
327
- "patreon_tiers": {
336
+ "word_count": {
337
+ "type": "number"
338
+ },
339
+ "view_count": {
340
+ "type": "string"
341
+ },
342
+ "time_publish": {
328
343
  "anyOf": [
329
344
  {
330
- "type": "array",
331
- "items": {
332
- "$ref": "#/components/schema/Tier"
333
- }
345
+ "type": "string"
334
346
  },
335
347
  {
336
348
  "type": "null"
337
349
  }
338
350
  ]
339
351
  },
340
- "patreon_campaign": {
352
+ "time_last_update": {
341
353
  "anyOf": [
342
354
  {
343
- "$ref": "#/components/schema/PatreonCampaign"
355
+ "type": "string"
344
356
  },
345
357
  {
346
358
  "type": "null"
347
359
  }
348
360
  ]
349
361
  },
350
- "patreon_patron": {
362
+ "global_tags": {
351
363
  "anyOf": [
352
364
  {
353
- "$ref": "#/components/schema/Authorisation"
365
+ "type": "array",
366
+ "items": {
367
+ "type": "string"
368
+ }
354
369
  },
355
370
  {
356
371
  "type": "null"
357
372
  }
358
373
  ]
374
+ }
375
+ },
376
+ "required": [
377
+ "name",
378
+ "description",
379
+ "vanity",
380
+ "author",
381
+ "status",
382
+ "visibility",
383
+ "chapter_count_public",
384
+ "word_count",
385
+ "view_count"
386
+ ]
387
+ },
388
+ "AuthDeleteBody": {
389
+ "type": "object",
390
+ "properties": {
391
+ "id": {
392
+ "type": "string"
393
+ }
394
+ },
395
+ "required": [
396
+ "id"
397
+ ]
398
+ },
399
+ "AuthServices": {
400
+ "type": "object",
401
+ "properties": {
402
+ "discord": {
403
+ "$ref": "#/components/schema/AuthService"
359
404
  },
360
- "works": {
405
+ "github": {
406
+ "$ref": "#/components/schema/AuthService"
407
+ },
408
+ "patreon": {
409
+ "$ref": "#/components/schema/AuthService"
410
+ },
411
+ "google": {
412
+ "$ref": "#/components/schema/AuthService"
413
+ }
414
+ },
415
+ "required": [
416
+ "discord",
417
+ "github",
418
+ "patreon",
419
+ "google"
420
+ ]
421
+ },
422
+ "AuthService": {
423
+ "type": "object",
424
+ "properties": {
425
+ "id": {
426
+ "type": "string"
427
+ },
428
+ "disabled": {
361
429
  "anyOf": [
362
430
  {
363
- "type": "array",
364
- "items": {
365
- "$ref": "#/components/schema/Work"
366
- }
431
+ "type": "boolean",
432
+ "enum": [
433
+ true
434
+ ]
367
435
  },
368
436
  {
369
437
  "type": "null"
370
438
  }
371
439
  ]
440
+ },
441
+ "url_begin": {
442
+ "type": "string"
443
+ },
444
+ "url_callback": {
445
+ "type": "string"
446
+ },
447
+ "name": {
448
+ "type": "string"
449
+ },
450
+ "colour": {
451
+ "type": "number"
452
+ },
453
+ "icon": {
454
+ "type": "string"
372
455
  }
373
456
  },
374
457
  "required": [
458
+ "id",
459
+ "url_begin",
460
+ "url_callback",
375
461
  "name",
376
- "time_join",
377
- "support_link",
378
- "support_message",
379
- "word_count",
380
- "vanity",
381
- "description"
462
+ "colour",
463
+ "icon"
382
464
  ]
383
465
  },
384
466
  "AuthorCreateBody": {
@@ -473,109 +555,33 @@
473
555
  "vanity"
474
556
  ]
475
557
  },
476
- "Tier": {
477
- "type": "object",
478
- "properties": {
479
- "tier_name": {
480
- "type": "string"
481
- },
482
- "amount": {
483
- "type": "number"
484
- }
485
- },
486
- "required": [
487
- "tier_name",
488
- "amount"
489
- ]
490
- },
491
- "PatreonCampaign": {
492
- "type": "object",
493
- "properties": {
494
- "display_name": {
495
- "type": "string"
496
- },
497
- "service": {
498
- "type": "string"
499
- },
500
- "id": {
501
- "type": "string"
502
- },
503
- "url": {
504
- "type": "string"
505
- }
506
- },
507
- "required": [
508
- "display_name",
509
- "service",
510
- "id",
511
- "url"
512
- ]
513
- },
514
- "Work": {
558
+ "AuthorFull": {
515
559
  "type": "object",
516
560
  "properties": {
517
561
  "name": {
518
562
  "type": "string",
519
563
  "minLength": 1,
520
- "maxLength": 256
521
- },
522
- "description": {
523
- "type": "string",
524
- "maxLength": 142
525
- },
526
- "vanity": {
527
- "type": "string",
528
- "maxLength": 32
564
+ "maxLength": 64
529
565
  },
530
- "author": {
566
+ "time_join": {
531
567
  "type": "string"
532
568
  },
533
- "status": {
569
+ "support_link": {
534
570
  "type": "string",
535
- "enum": [
536
- "Cancelled",
537
- "Hiatus",
538
- "Ongoing",
539
- "Complete"
540
- ]
571
+ "maxLength": 128
541
572
  },
542
- "visibility": {
573
+ "support_message": {
543
574
  "type": "string",
544
- "enum": [
545
- "Private",
546
- "Public"
547
- ]
548
- },
549
- "chapter_count_public": {
550
- "type": "number"
551
- },
552
- "chapter_count": {
553
- "anyOf": [
554
- {
555
- "type": "number"
556
- },
557
- {
558
- "type": "null"
559
- }
560
- ]
575
+ "maxLength": 256
561
576
  },
562
577
  "word_count": {
563
578
  "type": "number"
564
579
  },
565
- "view_count": {
566
- "type": "string"
567
- },
568
- "time_publish": {
569
- "anyOf": [
570
- {
571
- "type": "string"
572
- },
573
- {
574
- "type": "null"
575
- }
576
- ]
580
+ "vanity": {
581
+ "type": "string",
582
+ "maxLength": 32
577
583
  },
578
- "time_last_update": {
584
+ "pronouns": {
579
585
  "anyOf": [
580
586
  {
581
587
  "type": "string"
@@ -585,30 +591,18 @@
585
591
  }
586
592
  ]
587
593
  },
588
- "global_tags": {
589
- "anyOf": [
590
- {
591
- "type": "array",
592
- "items": {
593
- "type": "string"
594
- }
595
- },
596
- {
597
- "type": "null"
598
- }
599
- ]
594
+ "description": {
595
+ "$ref": "#/components/schema/TextBody"
600
596
  }
601
597
  },
602
598
  "required": [
603
599
  "name",
604
- "description",
605
- "vanity",
606
- "author",
607
- "status",
608
- "visibility",
609
- "chapter_count_public",
600
+ "time_join",
601
+ "support_link",
602
+ "support_message",
610
603
  "word_count",
611
- "view_count"
604
+ "vanity",
605
+ "description"
612
606
  ]
613
607
  },
614
608
  "AuthorInsert": {
@@ -2111,12 +2105,6 @@
2111
2105
  "authors"
2112
2106
  ]
2113
2107
  },
2114
- "Tiers": {
2115
- "type": "array",
2116
- "items": {
2117
- "$ref": "#/components/schema/Tier"
2118
- }
2119
- },
2120
2108
  "CampaignTierSetBody": {
2121
2109
  "type": "object",
2122
2110
  "properties": {
@@ -6568,7 +6556,10 @@
6568
6556
  "type": "object",
6569
6557
  "properties": {
6570
6558
  "data": {
6571
- "$ref": "#/components/schemas/Tiers"
6559
+ "type": "array",
6560
+ "items": {
6561
+ "$ref": "#/components/schema/PatreonCampaignTier"
6562
+ }
6572
6563
  }
6573
6564
  },
6574
6565
  "required": [
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.451",
3
+ "version": "1.0.452",
4
4
  "types": "index.d.ts"
5
5
  }