api.fluff4.me 1.0.434 → 1.0.439

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 +36 -28
  2. package/openapi.json +170 -163
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -19,7 +19,6 @@ export interface Session {
19
19
  created: string
20
20
  authorisations?: Authorisation[] | null
21
21
  author?: AuthorFull | null
22
- patreon_tiers?: Tier[] | null
23
22
  }
24
23
 
25
24
  export interface Authorisation {
@@ -37,8 +36,6 @@ export interface AuthorFull {
37
36
  vanity: string
38
37
  pronouns?: string | null
39
38
  description: TextBody
40
- patreon_tiers?: Tier[] | null
41
- works?: Work[] | null
42
39
  }
43
40
 
44
41
  export interface TextBody {
@@ -56,27 +53,6 @@ export interface Author {
56
53
  pronouns?: string | null
57
54
  }
58
55
 
59
- export interface Tier {
60
- tier_name: string
61
- amount: number
62
- }
63
-
64
- export interface Work {
65
- name: string
66
- description: string
67
- vanity: string
68
- author: string
69
- status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
70
- visibility: "Private" | "Public"
71
- chapter_count_public: number
72
- chapter_count?: number | null
73
- word_count: number
74
- view_count: string
75
- time_publish?: string | null
76
- time_last_update?: string | null
77
- global_tags?: string[] | null
78
- }
79
-
80
56
  export interface AuthDeleteBody {
81
57
  id: string
82
58
  }
@@ -98,7 +74,7 @@ export interface AuthService {
98
74
  icon: string
99
75
  }
100
76
 
101
- export interface AuthorAuthorised {
77
+ export interface AuthorSelf {
102
78
  name: string
103
79
  time_join: string
104
80
  support_link: string
@@ -107,9 +83,11 @@ export interface AuthorAuthorised {
107
83
  vanity: string
108
84
  pronouns?: string | null
109
85
  description: TextBody
86
+ authorisations?: Authorisation[] | null
110
87
  patreon_tiers?: Tier[] | null
88
+ patreon_campaign?: PatreonCampaign | null
89
+ patreon_patron?: PatreonPatron | null
111
90
  works?: Work[] | null
112
- authorisations?: Authorisation[] | null
113
91
  }
114
92
 
115
93
  export interface AuthorCreateBody {
@@ -124,6 +102,36 @@ export interface AuthorCreateBody {
124
102
  feedback_preference_typos?: boolean | null
125
103
  }
126
104
 
105
+ export interface Tier {
106
+ tier_name: string
107
+ amount: number
108
+ }
109
+
110
+ export interface PatreonCampaign {
111
+ url: string
112
+ display_name: string
113
+ }
114
+
115
+ export interface PatreonPatron {
116
+ display_name: string
117
+ }
118
+
119
+ export interface Work {
120
+ name: string
121
+ description: string
122
+ vanity: string
123
+ author: string
124
+ status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
125
+ visibility: "Private" | "Public"
126
+ chapter_count_public: number
127
+ chapter_count?: number | null
128
+ word_count: number
129
+ view_count: string
130
+ time_publish?: string | null
131
+ time_last_update?: string | null
132
+ global_tags?: string[] | null
133
+ }
134
+
127
135
  export interface AuthorInsert {
128
136
  name?: string | null
129
137
  vanity?: string | null
@@ -625,7 +633,7 @@ export interface Paths {
625
633
  method: "post"
626
634
  body: AuthorCreateBody
627
635
  search?: undefined
628
- response: Response<AuthorAuthorised> | ErrorResponse
636
+ response: Response<AuthorSelf> | ErrorResponse
629
637
  },
630
638
  "/author/{vanity}/get": {
631
639
  method: "get"
@@ -637,7 +645,7 @@ export interface Paths {
637
645
  method: "post"
638
646
  body: AuthorInsert
639
647
  search?: undefined
640
- response: Response<AuthorAuthorised> | ErrorResponse
648
+ response: Response<AuthorSelf> | ErrorResponse
641
649
  },
642
650
  "/author/delete": {
643
651
  method: "post"
package/openapi.json CHANGED
@@ -48,19 +48,6 @@
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
- ]
64
51
  }
65
52
  },
66
53
  "required": [
@@ -125,32 +112,6 @@
125
112
  },
126
113
  "description": {
127
114
  "$ref": "#/components/schema/TextBody"
128
- },
129
- "patreon_tiers": {
130
- "anyOf": [
131
- {
132
- "type": "array",
133
- "items": {
134
- "$ref": "#/components/schema/Tier"
135
- }
136
- },
137
- {
138
- "type": "null"
139
- }
140
- ]
141
- },
142
- "works": {
143
- "anyOf": [
144
- {
145
- "type": "array",
146
- "items": {
147
- "$ref": "#/components/schema/Work"
148
- }
149
- },
150
- {
151
- "type": "null"
152
- }
153
- ]
154
115
  }
155
116
  },
156
117
  "required": [
@@ -233,121 +194,6 @@
233
194
  "vanity"
234
195
  ]
235
196
  },
236
- "Tier": {
237
- "type": "object",
238
- "properties": {
239
- "tier_name": {
240
- "type": "string"
241
- },
242
- "amount": {
243
- "type": "number"
244
- }
245
- },
246
- "required": [
247
- "tier_name",
248
- "amount"
249
- ]
250
- },
251
- "Work": {
252
- "type": "object",
253
- "properties": {
254
- "name": {
255
- "type": "string",
256
- "minLength": 1,
257
- "maxLength": 256
258
- },
259
- "description": {
260
- "type": "string",
261
- "maxLength": 142
262
- },
263
- "vanity": {
264
- "type": "string",
265
- "maxLength": 32
266
- },
267
- "author": {
268
- "type": "string"
269
- },
270
- "status": {
271
- "type": "string",
272
- "enum": [
273
- "Cancelled",
274
- "Hiatus",
275
- "Ongoing",
276
- "Complete"
277
- ]
278
- },
279
- "visibility": {
280
- "type": "string",
281
- "enum": [
282
- "Private",
283
- "Public"
284
- ]
285
- },
286
- "chapter_count_public": {
287
- "type": "number"
288
- },
289
- "chapter_count": {
290
- "anyOf": [
291
- {
292
- "type": "number"
293
- },
294
- {
295
- "type": "null"
296
- }
297
- ]
298
- },
299
- "word_count": {
300
- "type": "number"
301
- },
302
- "view_count": {
303
- "type": "string"
304
- },
305
- "time_publish": {
306
- "anyOf": [
307
- {
308
- "type": "string"
309
- },
310
- {
311
- "type": "null"
312
- }
313
- ]
314
- },
315
- "time_last_update": {
316
- "anyOf": [
317
- {
318
- "type": "string"
319
- },
320
- {
321
- "type": "null"
322
- }
323
- ]
324
- },
325
- "global_tags": {
326
- "anyOf": [
327
- {
328
- "type": "array",
329
- "items": {
330
- "type": "string"
331
- }
332
- },
333
- {
334
- "type": "null"
335
- }
336
- ]
337
- }
338
- },
339
- "required": [
340
- "name",
341
- "description",
342
- "vanity",
343
- "author",
344
- "status",
345
- "visibility",
346
- "chapter_count_public",
347
- "word_count",
348
- "view_count"
349
- ]
350
- },
351
197
  "AuthDeleteBody": {
352
198
  "type": "object",
353
199
  "properties": {
@@ -426,7 +272,7 @@
426
272
  "icon"
427
273
  ]
428
274
  },
429
- "AuthorAuthorised": {
275
+ "AuthorSelf": {
430
276
  "type": "object",
431
277
  "properties": {
432
278
  "name": {
@@ -465,12 +311,12 @@
465
311
  "description": {
466
312
  "$ref": "#/components/schema/TextBody"
467
313
  },
468
- "patreon_tiers": {
314
+ "authorisations": {
469
315
  "anyOf": [
470
316
  {
471
317
  "type": "array",
472
318
  "items": {
473
- "$ref": "#/components/schema/Tier"
319
+ "$ref": "#/components/schema/Authorisation"
474
320
  }
475
321
  },
476
322
  {
@@ -478,12 +324,12 @@
478
324
  }
479
325
  ]
480
326
  },
481
- "works": {
327
+ "patreon_tiers": {
482
328
  "anyOf": [
483
329
  {
484
330
  "type": "array",
485
331
  "items": {
486
- "$ref": "#/components/schema/Work"
332
+ "$ref": "#/components/schema/Tier"
487
333
  }
488
334
  },
489
335
  {
@@ -491,12 +337,32 @@
491
337
  }
492
338
  ]
493
339
  },
494
- "authorisations": {
340
+ "patreon_campaign": {
341
+ "anyOf": [
342
+ {
343
+ "$ref": "#/components/schema/PatreonCampaign"
344
+ },
345
+ {
346
+ "type": "null"
347
+ }
348
+ ]
349
+ },
350
+ "patreon_patron": {
351
+ "anyOf": [
352
+ {
353
+ "$ref": "#/components/schema/PatreonPatron"
354
+ },
355
+ {
356
+ "type": "null"
357
+ }
358
+ ]
359
+ },
360
+ "works": {
495
361
  "anyOf": [
496
362
  {
497
363
  "type": "array",
498
364
  "items": {
499
- "$ref": "#/components/schema/Authorisation"
365
+ "$ref": "#/components/schema/Work"
500
366
  }
501
367
  },
502
368
  {
@@ -607,6 +473,147 @@
607
473
  "vanity"
608
474
  ]
609
475
  },
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
+ "url": {
495
+ "type": "string"
496
+ },
497
+ "display_name": {
498
+ "type": "string"
499
+ }
500
+ },
501
+ "required": [
502
+ "url",
503
+ "display_name"
504
+ ]
505
+ },
506
+ "PatreonPatron": {
507
+ "type": "object",
508
+ "properties": {
509
+ "display_name": {
510
+ "type": "string"
511
+ }
512
+ },
513
+ "required": [
514
+ "display_name"
515
+ ]
516
+ },
517
+ "Work": {
518
+ "type": "object",
519
+ "properties": {
520
+ "name": {
521
+ "type": "string",
522
+ "minLength": 1,
523
+ "maxLength": 256
524
+ },
525
+ "description": {
526
+ "type": "string",
527
+ "maxLength": 142
528
+ },
529
+ "vanity": {
530
+ "type": "string",
531
+ "maxLength": 32
532
+ },
533
+ "author": {
534
+ "type": "string"
535
+ },
536
+ "status": {
537
+ "type": "string",
538
+ "enum": [
539
+ "Cancelled",
540
+ "Hiatus",
541
+ "Ongoing",
542
+ "Complete"
543
+ ]
544
+ },
545
+ "visibility": {
546
+ "type": "string",
547
+ "enum": [
548
+ "Private",
549
+ "Public"
550
+ ]
551
+ },
552
+ "chapter_count_public": {
553
+ "type": "number"
554
+ },
555
+ "chapter_count": {
556
+ "anyOf": [
557
+ {
558
+ "type": "number"
559
+ },
560
+ {
561
+ "type": "null"
562
+ }
563
+ ]
564
+ },
565
+ "word_count": {
566
+ "type": "number"
567
+ },
568
+ "view_count": {
569
+ "type": "string"
570
+ },
571
+ "time_publish": {
572
+ "anyOf": [
573
+ {
574
+ "type": "string"
575
+ },
576
+ {
577
+ "type": "null"
578
+ }
579
+ ]
580
+ },
581
+ "time_last_update": {
582
+ "anyOf": [
583
+ {
584
+ "type": "string"
585
+ },
586
+ {
587
+ "type": "null"
588
+ }
589
+ ]
590
+ },
591
+ "global_tags": {
592
+ "anyOf": [
593
+ {
594
+ "type": "array",
595
+ "items": {
596
+ "type": "string"
597
+ }
598
+ },
599
+ {
600
+ "type": "null"
601
+ }
602
+ ]
603
+ }
604
+ },
605
+ "required": [
606
+ "name",
607
+ "description",
608
+ "vanity",
609
+ "author",
610
+ "status",
611
+ "visibility",
612
+ "chapter_count_public",
613
+ "word_count",
614
+ "view_count"
615
+ ]
616
+ },
610
617
  "AuthorInsert": {
611
618
  "type": "object",
612
619
  "properties": {
@@ -3291,7 +3298,7 @@
3291
3298
  "type": "object",
3292
3299
  "properties": {
3293
3300
  "data": {
3294
- "$ref": "#/components/schemas/AuthorAuthorised"
3301
+ "$ref": "#/components/schemas/AuthorSelf"
3295
3302
  }
3296
3303
  },
3297
3304
  "required": [
@@ -3377,7 +3384,7 @@
3377
3384
  "type": "object",
3378
3385
  "properties": {
3379
3386
  "data": {
3380
- "$ref": "#/components/schemas/AuthorAuthorised"
3387
+ "$ref": "#/components/schemas/AuthorSelf"
3381
3388
  }
3382
3389
  },
3383
3390
  "required": [
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.434",
3
+ "version": "1.0.439",
4
4
  "types": "index.d.ts"
5
5
  }