api.fluff4.me 1.0.1129 → 1.0.1131
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.
- package/index.d.ts +46 -34
- package/openapi.json +236 -151
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -176,6 +176,24 @@ export interface AuthDeleteBody {
|
|
|
176
176
|
id: string
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
export interface AuthServices {
|
|
180
|
+
discord: AuthService
|
|
181
|
+
github: AuthService
|
|
182
|
+
patreon: AuthService
|
|
183
|
+
google: AuthService
|
|
184
|
+
twitch: AuthService
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export interface AuthService {
|
|
188
|
+
id: string
|
|
189
|
+
disabled?: true | null
|
|
190
|
+
url_begin: string
|
|
191
|
+
url_callback: string
|
|
192
|
+
name: string
|
|
193
|
+
colour: number
|
|
194
|
+
icon: string
|
|
195
|
+
}
|
|
196
|
+
|
|
179
197
|
export interface AuthSetRequiredCountBody {
|
|
180
198
|
required_count: number
|
|
181
199
|
}
|
|
@@ -351,6 +369,22 @@ export interface Feedback {
|
|
|
351
369
|
|
|
352
370
|
export type Works = WorkMetadata[]
|
|
353
371
|
|
|
372
|
+
export interface WorkResolveResponse {
|
|
373
|
+
works: WorkMetadata[]
|
|
374
|
+
authors: AuthorMetadata[]
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export interface WorkResolveSearch {
|
|
378
|
+
works: WorkReference[]
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export interface WorkReference {
|
|
382
|
+
author?: string | null
|
|
383
|
+
vanity?: string | null
|
|
384
|
+
author_vanity?: string | null
|
|
385
|
+
work_vanity?: string | null
|
|
386
|
+
}
|
|
387
|
+
|
|
354
388
|
export interface Chapter {
|
|
355
389
|
url: string
|
|
356
390
|
index_public?: number | null
|
|
@@ -495,13 +529,6 @@ export interface Follow {
|
|
|
495
529
|
last_bumped?: string | null
|
|
496
530
|
}
|
|
497
531
|
|
|
498
|
-
export interface WorkReference {
|
|
499
|
-
author?: string | null
|
|
500
|
-
vanity?: string | null
|
|
501
|
-
author_vanity?: string | null
|
|
502
|
-
work_vanity?: string | null
|
|
503
|
-
}
|
|
504
|
-
|
|
505
532
|
export interface FollowsManifest {
|
|
506
533
|
following: {
|
|
507
534
|
author: Follow[]
|
|
@@ -1077,33 +1104,6 @@ export interface EmbedSearch {
|
|
|
1077
1104
|
url: string
|
|
1078
1105
|
}
|
|
1079
1106
|
|
|
1080
|
-
export interface AuthServices {
|
|
1081
|
-
discord: AuthService
|
|
1082
|
-
github: AuthService
|
|
1083
|
-
patreon: AuthService
|
|
1084
|
-
google: AuthService
|
|
1085
|
-
twitch: AuthService
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
export interface AuthService {
|
|
1089
|
-
id: string
|
|
1090
|
-
disabled?: true | null
|
|
1091
|
-
url_begin: string
|
|
1092
|
-
url_callback: string
|
|
1093
|
-
name: string
|
|
1094
|
-
colour: number
|
|
1095
|
-
icon: string
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
export interface WorkResolveResponse {
|
|
1099
|
-
works: WorkMetadata[]
|
|
1100
|
-
authors: AuthorMetadata[]
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
export interface WorkResolveSearch {
|
|
1104
|
-
works: WorkReference[]
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
1107
|
export interface SupporterStatus {
|
|
1108
1108
|
products: MoRProductDisplay[]
|
|
1109
1109
|
months_remaining: number
|
|
@@ -1197,6 +1197,12 @@ export interface Paths {
|
|
|
1197
1197
|
search?: undefined
|
|
1198
1198
|
response: void | ErrorResponse
|
|
1199
1199
|
},
|
|
1200
|
+
"/v2/auth/services": {
|
|
1201
|
+
method: "get"
|
|
1202
|
+
body?: undefined
|
|
1203
|
+
search?: undefined
|
|
1204
|
+
response: Response<AuthServices> | ErrorResponse
|
|
1205
|
+
},
|
|
1200
1206
|
"/v2/auth/set-required-count": {
|
|
1201
1207
|
method: "post"
|
|
1202
1208
|
body: AuthSetRequiredCountBody
|
|
@@ -1335,6 +1341,12 @@ export interface Paths {
|
|
|
1335
1341
|
search: PaginationSearch
|
|
1336
1342
|
response: PaginatedResponse<Works> | ErrorResponse
|
|
1337
1343
|
},
|
|
1344
|
+
"/v2/works/resolve": {
|
|
1345
|
+
method: "get"
|
|
1346
|
+
body?: undefined
|
|
1347
|
+
search: WorkResolveSearch
|
|
1348
|
+
response: Response<WorkResolveResponse> | ErrorResponse
|
|
1349
|
+
},
|
|
1338
1350
|
"/v2/chapters/{author_vanity}/{work_vanity}/create": {
|
|
1339
1351
|
method: "post"
|
|
1340
1352
|
body: ChapterCreateBody
|
package/openapi.json
CHANGED
|
@@ -1094,6 +1094,77 @@
|
|
|
1094
1094
|
"id"
|
|
1095
1095
|
]
|
|
1096
1096
|
},
|
|
1097
|
+
"AuthServices": {
|
|
1098
|
+
"type": "object",
|
|
1099
|
+
"properties": {
|
|
1100
|
+
"discord": {
|
|
1101
|
+
"$ref": "#/components/schema/AuthService"
|
|
1102
|
+
},
|
|
1103
|
+
"github": {
|
|
1104
|
+
"$ref": "#/components/schema/AuthService"
|
|
1105
|
+
},
|
|
1106
|
+
"patreon": {
|
|
1107
|
+
"$ref": "#/components/schema/AuthService"
|
|
1108
|
+
},
|
|
1109
|
+
"google": {
|
|
1110
|
+
"$ref": "#/components/schema/AuthService"
|
|
1111
|
+
},
|
|
1112
|
+
"twitch": {
|
|
1113
|
+
"$ref": "#/components/schema/AuthService"
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
"required": [
|
|
1117
|
+
"discord",
|
|
1118
|
+
"github",
|
|
1119
|
+
"patreon",
|
|
1120
|
+
"google",
|
|
1121
|
+
"twitch"
|
|
1122
|
+
]
|
|
1123
|
+
},
|
|
1124
|
+
"AuthService": {
|
|
1125
|
+
"type": "object",
|
|
1126
|
+
"properties": {
|
|
1127
|
+
"id": {
|
|
1128
|
+
"type": "string"
|
|
1129
|
+
},
|
|
1130
|
+
"disabled": {
|
|
1131
|
+
"anyOf": [
|
|
1132
|
+
{
|
|
1133
|
+
"type": "boolean",
|
|
1134
|
+
"enum": [
|
|
1135
|
+
true
|
|
1136
|
+
]
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"type": "null"
|
|
1140
|
+
}
|
|
1141
|
+
]
|
|
1142
|
+
},
|
|
1143
|
+
"url_begin": {
|
|
1144
|
+
"type": "string"
|
|
1145
|
+
},
|
|
1146
|
+
"url_callback": {
|
|
1147
|
+
"type": "string"
|
|
1148
|
+
},
|
|
1149
|
+
"name": {
|
|
1150
|
+
"type": "string"
|
|
1151
|
+
},
|
|
1152
|
+
"colour": {
|
|
1153
|
+
"type": "number"
|
|
1154
|
+
},
|
|
1155
|
+
"icon": {
|
|
1156
|
+
"type": "string"
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
"required": [
|
|
1160
|
+
"id",
|
|
1161
|
+
"url_begin",
|
|
1162
|
+
"url_callback",
|
|
1163
|
+
"name",
|
|
1164
|
+
"colour",
|
|
1165
|
+
"icon"
|
|
1166
|
+
]
|
|
1167
|
+
},
|
|
1097
1168
|
"AuthSetRequiredCountBody": {
|
|
1098
1169
|
"type": "object",
|
|
1099
1170
|
"properties": {
|
|
@@ -2324,6 +2395,86 @@
|
|
|
2324
2395
|
"$ref": "#/components/schema/WorkMetadata"
|
|
2325
2396
|
}
|
|
2326
2397
|
},
|
|
2398
|
+
"WorkResolveResponse": {
|
|
2399
|
+
"type": "object",
|
|
2400
|
+
"properties": {
|
|
2401
|
+
"works": {
|
|
2402
|
+
"type": "array",
|
|
2403
|
+
"items": {
|
|
2404
|
+
"$ref": "#/components/schema/WorkMetadata"
|
|
2405
|
+
}
|
|
2406
|
+
},
|
|
2407
|
+
"authors": {
|
|
2408
|
+
"type": "array",
|
|
2409
|
+
"items": {
|
|
2410
|
+
"$ref": "#/components/schema/AuthorMetadata"
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
},
|
|
2414
|
+
"required": [
|
|
2415
|
+
"works",
|
|
2416
|
+
"authors"
|
|
2417
|
+
]
|
|
2418
|
+
},
|
|
2419
|
+
"WorkResolveSearch": {
|
|
2420
|
+
"type": "object",
|
|
2421
|
+
"properties": {
|
|
2422
|
+
"works": {
|
|
2423
|
+
"type": "array",
|
|
2424
|
+
"items": {
|
|
2425
|
+
"$ref": "#/components/schema/WorkReference"
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
},
|
|
2429
|
+
"required": [
|
|
2430
|
+
"works"
|
|
2431
|
+
]
|
|
2432
|
+
},
|
|
2433
|
+
"WorkReference": {
|
|
2434
|
+
"type": "object",
|
|
2435
|
+
"properties": {
|
|
2436
|
+
"author": {
|
|
2437
|
+
"anyOf": [
|
|
2438
|
+
{
|
|
2439
|
+
"type": "string"
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
"type": "null"
|
|
2443
|
+
}
|
|
2444
|
+
]
|
|
2445
|
+
},
|
|
2446
|
+
"vanity": {
|
|
2447
|
+
"anyOf": [
|
|
2448
|
+
{
|
|
2449
|
+
"type": "string"
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
"type": "null"
|
|
2453
|
+
}
|
|
2454
|
+
]
|
|
2455
|
+
},
|
|
2456
|
+
"author_vanity": {
|
|
2457
|
+
"anyOf": [
|
|
2458
|
+
{
|
|
2459
|
+
"type": "string"
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
"type": "null"
|
|
2463
|
+
}
|
|
2464
|
+
]
|
|
2465
|
+
},
|
|
2466
|
+
"work_vanity": {
|
|
2467
|
+
"anyOf": [
|
|
2468
|
+
{
|
|
2469
|
+
"type": "string"
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
"type": "null"
|
|
2473
|
+
}
|
|
2474
|
+
]
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
},
|
|
2327
2478
|
"Chapter": {
|
|
2328
2479
|
"type": "object",
|
|
2329
2480
|
"properties": {
|
|
@@ -3364,51 +3515,6 @@
|
|
|
3364
3515
|
"updated"
|
|
3365
3516
|
]
|
|
3366
3517
|
},
|
|
3367
|
-
"WorkReference": {
|
|
3368
|
-
"type": "object",
|
|
3369
|
-
"properties": {
|
|
3370
|
-
"author": {
|
|
3371
|
-
"anyOf": [
|
|
3372
|
-
{
|
|
3373
|
-
"type": "string"
|
|
3374
|
-
},
|
|
3375
|
-
{
|
|
3376
|
-
"type": "null"
|
|
3377
|
-
}
|
|
3378
|
-
]
|
|
3379
|
-
},
|
|
3380
|
-
"vanity": {
|
|
3381
|
-
"anyOf": [
|
|
3382
|
-
{
|
|
3383
|
-
"type": "string"
|
|
3384
|
-
},
|
|
3385
|
-
{
|
|
3386
|
-
"type": "null"
|
|
3387
|
-
}
|
|
3388
|
-
]
|
|
3389
|
-
},
|
|
3390
|
-
"author_vanity": {
|
|
3391
|
-
"anyOf": [
|
|
3392
|
-
{
|
|
3393
|
-
"type": "string"
|
|
3394
|
-
},
|
|
3395
|
-
{
|
|
3396
|
-
"type": "null"
|
|
3397
|
-
}
|
|
3398
|
-
]
|
|
3399
|
-
},
|
|
3400
|
-
"work_vanity": {
|
|
3401
|
-
"anyOf": [
|
|
3402
|
-
{
|
|
3403
|
-
"type": "string"
|
|
3404
|
-
},
|
|
3405
|
-
{
|
|
3406
|
-
"type": "null"
|
|
3407
|
-
}
|
|
3408
|
-
]
|
|
3409
|
-
}
|
|
3410
|
-
}
|
|
3411
|
-
},
|
|
3412
3518
|
"FollowsManifest": {
|
|
3413
3519
|
"type": "object",
|
|
3414
3520
|
"properties": {
|
|
@@ -6483,112 +6589,6 @@
|
|
|
6483
6589
|
"url"
|
|
6484
6590
|
]
|
|
6485
6591
|
},
|
|
6486
|
-
"AuthServices": {
|
|
6487
|
-
"type": "object",
|
|
6488
|
-
"properties": {
|
|
6489
|
-
"discord": {
|
|
6490
|
-
"$ref": "#/components/schema/AuthService"
|
|
6491
|
-
},
|
|
6492
|
-
"github": {
|
|
6493
|
-
"$ref": "#/components/schema/AuthService"
|
|
6494
|
-
},
|
|
6495
|
-
"patreon": {
|
|
6496
|
-
"$ref": "#/components/schema/AuthService"
|
|
6497
|
-
},
|
|
6498
|
-
"google": {
|
|
6499
|
-
"$ref": "#/components/schema/AuthService"
|
|
6500
|
-
},
|
|
6501
|
-
"twitch": {
|
|
6502
|
-
"$ref": "#/components/schema/AuthService"
|
|
6503
|
-
}
|
|
6504
|
-
},
|
|
6505
|
-
"required": [
|
|
6506
|
-
"discord",
|
|
6507
|
-
"github",
|
|
6508
|
-
"patreon",
|
|
6509
|
-
"google",
|
|
6510
|
-
"twitch"
|
|
6511
|
-
]
|
|
6512
|
-
},
|
|
6513
|
-
"AuthService": {
|
|
6514
|
-
"type": "object",
|
|
6515
|
-
"properties": {
|
|
6516
|
-
"id": {
|
|
6517
|
-
"type": "string"
|
|
6518
|
-
},
|
|
6519
|
-
"disabled": {
|
|
6520
|
-
"anyOf": [
|
|
6521
|
-
{
|
|
6522
|
-
"type": "boolean",
|
|
6523
|
-
"enum": [
|
|
6524
|
-
true
|
|
6525
|
-
]
|
|
6526
|
-
},
|
|
6527
|
-
{
|
|
6528
|
-
"type": "null"
|
|
6529
|
-
}
|
|
6530
|
-
]
|
|
6531
|
-
},
|
|
6532
|
-
"url_begin": {
|
|
6533
|
-
"type": "string"
|
|
6534
|
-
},
|
|
6535
|
-
"url_callback": {
|
|
6536
|
-
"type": "string"
|
|
6537
|
-
},
|
|
6538
|
-
"name": {
|
|
6539
|
-
"type": "string"
|
|
6540
|
-
},
|
|
6541
|
-
"colour": {
|
|
6542
|
-
"type": "number"
|
|
6543
|
-
},
|
|
6544
|
-
"icon": {
|
|
6545
|
-
"type": "string"
|
|
6546
|
-
}
|
|
6547
|
-
},
|
|
6548
|
-
"required": [
|
|
6549
|
-
"id",
|
|
6550
|
-
"url_begin",
|
|
6551
|
-
"url_callback",
|
|
6552
|
-
"name",
|
|
6553
|
-
"colour",
|
|
6554
|
-
"icon"
|
|
6555
|
-
]
|
|
6556
|
-
},
|
|
6557
|
-
"WorkResolveResponse": {
|
|
6558
|
-
"type": "object",
|
|
6559
|
-
"properties": {
|
|
6560
|
-
"works": {
|
|
6561
|
-
"type": "array",
|
|
6562
|
-
"items": {
|
|
6563
|
-
"$ref": "#/components/schema/WorkMetadata"
|
|
6564
|
-
}
|
|
6565
|
-
},
|
|
6566
|
-
"authors": {
|
|
6567
|
-
"type": "array",
|
|
6568
|
-
"items": {
|
|
6569
|
-
"$ref": "#/components/schema/AuthorMetadata"
|
|
6570
|
-
}
|
|
6571
|
-
}
|
|
6572
|
-
},
|
|
6573
|
-
"required": [
|
|
6574
|
-
"works",
|
|
6575
|
-
"authors"
|
|
6576
|
-
]
|
|
6577
|
-
},
|
|
6578
|
-
"WorkResolveSearch": {
|
|
6579
|
-
"type": "object",
|
|
6580
|
-
"properties": {
|
|
6581
|
-
"works": {
|
|
6582
|
-
"type": "array",
|
|
6583
|
-
"items": {
|
|
6584
|
-
"$ref": "#/components/schema/WorkReference"
|
|
6585
|
-
}
|
|
6586
|
-
}
|
|
6587
|
-
},
|
|
6588
|
-
"required": [
|
|
6589
|
-
"works"
|
|
6590
|
-
]
|
|
6591
|
-
},
|
|
6592
6592
|
"SupporterStatus": {
|
|
6593
6593
|
"type": "object",
|
|
6594
6594
|
"properties": {
|
|
@@ -7017,6 +7017,40 @@
|
|
|
7017
7017
|
}
|
|
7018
7018
|
}
|
|
7019
7019
|
},
|
|
7020
|
+
"/v2/auth/services": {
|
|
7021
|
+
"get": {
|
|
7022
|
+
"responses": {
|
|
7023
|
+
"200": {
|
|
7024
|
+
"description": "200 response",
|
|
7025
|
+
"content": {
|
|
7026
|
+
"application/json": {
|
|
7027
|
+
"schema": {
|
|
7028
|
+
"type": "object",
|
|
7029
|
+
"properties": {
|
|
7030
|
+
"data": {
|
|
7031
|
+
"$ref": "#/components/schemas/AuthServices"
|
|
7032
|
+
}
|
|
7033
|
+
},
|
|
7034
|
+
"required": [
|
|
7035
|
+
"data"
|
|
7036
|
+
]
|
|
7037
|
+
}
|
|
7038
|
+
}
|
|
7039
|
+
}
|
|
7040
|
+
},
|
|
7041
|
+
"default": {
|
|
7042
|
+
"description": "Error",
|
|
7043
|
+
"content": {
|
|
7044
|
+
"application/json": {
|
|
7045
|
+
"schema": {
|
|
7046
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
7047
|
+
}
|
|
7048
|
+
}
|
|
7049
|
+
}
|
|
7050
|
+
}
|
|
7051
|
+
}
|
|
7052
|
+
}
|
|
7053
|
+
},
|
|
7020
7054
|
"/v2/auth/set-required-count": {
|
|
7021
7055
|
"post": {
|
|
7022
7056
|
"requestBody": {
|
|
@@ -7878,6 +7912,57 @@
|
|
|
7878
7912
|
}
|
|
7879
7913
|
}
|
|
7880
7914
|
},
|
|
7915
|
+
"/v2/works/resolve": {
|
|
7916
|
+
"get": {
|
|
7917
|
+
"parameters": [
|
|
7918
|
+
{
|
|
7919
|
+
"name": "works",
|
|
7920
|
+
"in": "query",
|
|
7921
|
+
"required": true,
|
|
7922
|
+
"content": {
|
|
7923
|
+
"application/json": {
|
|
7924
|
+
"schema": {
|
|
7925
|
+
"type": "array",
|
|
7926
|
+
"items": {
|
|
7927
|
+
"$ref": "#/components/schema/WorkReference"
|
|
7928
|
+
}
|
|
7929
|
+
}
|
|
7930
|
+
}
|
|
7931
|
+
}
|
|
7932
|
+
}
|
|
7933
|
+
],
|
|
7934
|
+
"responses": {
|
|
7935
|
+
"200": {
|
|
7936
|
+
"description": "200 response",
|
|
7937
|
+
"content": {
|
|
7938
|
+
"application/json": {
|
|
7939
|
+
"schema": {
|
|
7940
|
+
"type": "object",
|
|
7941
|
+
"properties": {
|
|
7942
|
+
"data": {
|
|
7943
|
+
"$ref": "#/components/schemas/WorkResolveResponse"
|
|
7944
|
+
}
|
|
7945
|
+
},
|
|
7946
|
+
"required": [
|
|
7947
|
+
"data"
|
|
7948
|
+
]
|
|
7949
|
+
}
|
|
7950
|
+
}
|
|
7951
|
+
}
|
|
7952
|
+
},
|
|
7953
|
+
"default": {
|
|
7954
|
+
"description": "Error",
|
|
7955
|
+
"content": {
|
|
7956
|
+
"application/json": {
|
|
7957
|
+
"schema": {
|
|
7958
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
7959
|
+
}
|
|
7960
|
+
}
|
|
7961
|
+
}
|
|
7962
|
+
}
|
|
7963
|
+
}
|
|
7964
|
+
}
|
|
7965
|
+
},
|
|
7881
7966
|
"/v2/chapters/{author_vanity}/{work_vanity}/create": {
|
|
7882
7967
|
"parameters": [
|
|
7883
7968
|
{
|
package/package.json
CHANGED