api.fluff4.me 1.0.433 → 1.0.438

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 +38 -28
  2. package/openapi.json +196 -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,16 @@ 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?:
89
+ | {
90
+ url: string
91
+ display_name: string
92
+ }
93
+ | null
94
+ patron_details?: string | null
111
95
  works?: Work[] | null
112
- authorisations?: Authorisation[] | null
113
96
  }
114
97
 
115
98
  export interface AuthorCreateBody {
@@ -124,6 +107,27 @@ export interface AuthorCreateBody {
124
107
  feedback_preference_typos?: boolean | null
125
108
  }
126
109
 
110
+ export interface Tier {
111
+ tier_name: string
112
+ amount: number
113
+ }
114
+
115
+ export interface Work {
116
+ name: string
117
+ description: string
118
+ vanity: string
119
+ author: string
120
+ status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
121
+ visibility: "Private" | "Public"
122
+ chapter_count_public: number
123
+ chapter_count?: number | null
124
+ word_count: number
125
+ view_count: string
126
+ time_publish?: string | null
127
+ time_last_update?: string | null
128
+ global_tags?: string[] | null
129
+ }
130
+
127
131
  export interface AuthorInsert {
128
132
  name?: string | null
129
133
  vanity?: string | null
@@ -625,7 +629,7 @@ export interface Paths {
625
629
  method: "post"
626
630
  body: AuthorCreateBody
627
631
  search?: undefined
628
- response: Response<AuthorAuthorised> | ErrorResponse
632
+ response: Response<AuthorSelf> | ErrorResponse
629
633
  },
630
634
  "/author/{vanity}/get": {
631
635
  method: "get"
@@ -637,7 +641,7 @@ export interface Paths {
637
641
  method: "post"
638
642
  body: AuthorInsert
639
643
  search?: undefined
640
- response: Response<AuthorAuthorised> | ErrorResponse
644
+ response: Response<AuthorSelf> | ErrorResponse
641
645
  },
642
646
  "/author/delete": {
643
647
  method: "post"
@@ -1138,6 +1142,12 @@ export interface Paths {
1138
1142
  search?: undefined
1139
1143
  response: Response<CustomTag> | ErrorResponse
1140
1144
  },
1145
+ "/tag/custom/get": {
1146
+ method: "get"
1147
+ body?: undefined
1148
+ search?: undefined
1149
+ response: Response<CustomTag[]> | ErrorResponse
1150
+ },
1141
1151
  "/manifest/tags": {
1142
1152
  method: "get"
1143
1153
  body?: undefined
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,44 @@
491
337
  }
492
338
  ]
493
339
  },
494
- "authorisations": {
340
+ "patreon_campaign": {
341
+ "anyOf": [
342
+ {
343
+ "type": "object",
344
+ "properties": {
345
+ "url": {
346
+ "type": "string"
347
+ },
348
+ "display_name": {
349
+ "type": "string"
350
+ }
351
+ },
352
+ "required": [
353
+ "url",
354
+ "display_name"
355
+ ]
356
+ },
357
+ {
358
+ "type": "null"
359
+ }
360
+ ]
361
+ },
362
+ "patron_details": {
363
+ "anyOf": [
364
+ {
365
+ "type": "string"
366
+ },
367
+ {
368
+ "type": "null"
369
+ }
370
+ ]
371
+ },
372
+ "works": {
495
373
  "anyOf": [
496
374
  {
497
375
  "type": "array",
498
376
  "items": {
499
- "$ref": "#/components/schema/Authorisation"
377
+ "$ref": "#/components/schema/Work"
500
378
  }
501
379
  },
502
380
  {
@@ -607,6 +485,121 @@
607
485
  "vanity"
608
486
  ]
609
487
  },
488
+ "Tier": {
489
+ "type": "object",
490
+ "properties": {
491
+ "tier_name": {
492
+ "type": "string"
493
+ },
494
+ "amount": {
495
+ "type": "number"
496
+ }
497
+ },
498
+ "required": [
499
+ "tier_name",
500
+ "amount"
501
+ ]
502
+ },
503
+ "Work": {
504
+ "type": "object",
505
+ "properties": {
506
+ "name": {
507
+ "type": "string",
508
+ "minLength": 1,
509
+ "maxLength": 256
510
+ },
511
+ "description": {
512
+ "type": "string",
513
+ "maxLength": 142
514
+ },
515
+ "vanity": {
516
+ "type": "string",
517
+ "maxLength": 32
518
+ },
519
+ "author": {
520
+ "type": "string"
521
+ },
522
+ "status": {
523
+ "type": "string",
524
+ "enum": [
525
+ "Cancelled",
526
+ "Hiatus",
527
+ "Ongoing",
528
+ "Complete"
529
+ ]
530
+ },
531
+ "visibility": {
532
+ "type": "string",
533
+ "enum": [
534
+ "Private",
535
+ "Public"
536
+ ]
537
+ },
538
+ "chapter_count_public": {
539
+ "type": "number"
540
+ },
541
+ "chapter_count": {
542
+ "anyOf": [
543
+ {
544
+ "type": "number"
545
+ },
546
+ {
547
+ "type": "null"
548
+ }
549
+ ]
550
+ },
551
+ "word_count": {
552
+ "type": "number"
553
+ },
554
+ "view_count": {
555
+ "type": "string"
556
+ },
557
+ "time_publish": {
558
+ "anyOf": [
559
+ {
560
+ "type": "string"
561
+ },
562
+ {
563
+ "type": "null"
564
+ }
565
+ ]
566
+ },
567
+ "time_last_update": {
568
+ "anyOf": [
569
+ {
570
+ "type": "string"
571
+ },
572
+ {
573
+ "type": "null"
574
+ }
575
+ ]
576
+ },
577
+ "global_tags": {
578
+ "anyOf": [
579
+ {
580
+ "type": "array",
581
+ "items": {
582
+ "type": "string"
583
+ }
584
+ },
585
+ {
586
+ "type": "null"
587
+ }
588
+ ]
589
+ }
590
+ },
591
+ "required": [
592
+ "name",
593
+ "description",
594
+ "vanity",
595
+ "author",
596
+ "status",
597
+ "visibility",
598
+ "chapter_count_public",
599
+ "word_count",
600
+ "view_count"
601
+ ]
602
+ },
610
603
  "AuthorInsert": {
611
604
  "type": "object",
612
605
  "properties": {
@@ -3291,7 +3284,7 @@
3291
3284
  "type": "object",
3292
3285
  "properties": {
3293
3286
  "data": {
3294
- "$ref": "#/components/schemas/AuthorAuthorised"
3287
+ "$ref": "#/components/schemas/AuthorSelf"
3295
3288
  }
3296
3289
  },
3297
3290
  "required": [
@@ -3377,7 +3370,7 @@
3377
3370
  "type": "object",
3378
3371
  "properties": {
3379
3372
  "data": {
3380
- "$ref": "#/components/schemas/AuthorAuthorised"
3373
+ "$ref": "#/components/schemas/AuthorSelf"
3381
3374
  }
3382
3375
  },
3383
3376
  "required": [
@@ -6937,6 +6930,46 @@
6937
6930
  }
6938
6931
  }
6939
6932
  },
6933
+ "/tag/custom/get": {
6934
+ "get": {
6935
+ "responses": {
6936
+ "200": {
6937
+ "description": "200 response",
6938
+ "content": {
6939
+ "application/json": {
6940
+ "schema": {
6941
+ "type": "object",
6942
+ "properties": {
6943
+ "data": {
6944
+ "type": "array",
6945
+ "items": {
6946
+ "$ref": "#/components/schema/CustomTag"
6947
+ }
6948
+ }
6949
+ },
6950
+ "required": [
6951
+ "data"
6952
+ ]
6953
+ }
6954
+ }
6955
+ }
6956
+ },
6957
+ "304": {
6958
+ "description": "304 response"
6959
+ },
6960
+ "default": {
6961
+ "description": "Error",
6962
+ "content": {
6963
+ "application/json": {
6964
+ "schema": {
6965
+ "$ref": "#/components/schemas/ErrorResponse"
6966
+ }
6967
+ }
6968
+ }
6969
+ }
6970
+ }
6971
+ }
6972
+ },
6940
6973
  "/manifest/tags": {
6941
6974
  "get": {
6942
6975
  "responses": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.433",
3
+ "version": "1.0.438",
4
4
  "types": "index.d.ts"
5
5
  }