api.fluff4.me 1.0.504 → 1.0.506
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 +23 -20
- package/openapi.json +182 -143
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export interface AuthorSelf {
|
|
|
41
41
|
patreon_patron?: Authorisation | null
|
|
42
42
|
works?: Work[] | null
|
|
43
43
|
settings?: string | null
|
|
44
|
+
roles?: Role[] | null
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
export interface TextBody {
|
|
@@ -88,6 +89,16 @@ export interface Work {
|
|
|
88
89
|
global_tags?: string[] | null
|
|
89
90
|
}
|
|
90
91
|
|
|
92
|
+
export interface Role {
|
|
93
|
+
name: string
|
|
94
|
+
description?: string | null
|
|
95
|
+
level: string
|
|
96
|
+
created_time?: string | null
|
|
97
|
+
privileges: Privilege[]
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type Privilege = "PrivilegeGrant" | "PrivilegeRevoke" | "RoleCreate" | "RoleEdit" | "RoleDelete" | "RoleReorder" | "RoleGrant" | "RoleRevoke" | "WorkViewPrivate" | "PrivilegeViewAuthor" | "RoleViewAll" | "TagGlobalCreate" | "TagGlobalDelete" | "TagGlobalUpdate" | "TagCategoryCreate" | "TagCategoryUpdate" | "TagCategoryDelete" | "TagCustomCreate" | "TagCustomUpdate" | "TagCustomDelete" | "TagPromote" | "TagDemote" | "TagAliasAdd" | "TagAliasRemove" | "TagRelationshipAdd" | "TagRelationshipRemove"
|
|
101
|
+
|
|
91
102
|
export interface AuthDeleteBody {
|
|
92
103
|
id: string
|
|
93
104
|
}
|
|
@@ -348,22 +359,12 @@ export interface Privileges {
|
|
|
348
359
|
privileges: Privilege[]
|
|
349
360
|
}
|
|
350
361
|
|
|
351
|
-
export type Privilege = "PrivilegeGrant" | "PrivilegeRevoke" | "RoleCreate" | "RoleEdit" | "RoleDelete" | "RoleReorder" | "RoleGrant" | "RoleRevoke" | "WorkViewPrivate" | "PrivilegeViewAuthor" | "RoleViewAll" | "TagGlobalCreate" | "TagGlobalDelete" | "TagGlobalUpdate" | "TagCategoryCreate" | "TagCategoryUpdate" | "TagCategoryDelete" | "TagCustomCreate" | "TagCustomUpdate" | "TagCustomDelete" | "TagPromote" | "TagDemote" | "TagAliasAdd" | "TagAliasRemove" | "TagRelationshipAdd" | "TagRelationshipRemove"
|
|
352
|
-
|
|
353
362
|
export interface RoleCreateBody {
|
|
354
363
|
name: string
|
|
355
364
|
description?: string | null
|
|
356
365
|
below?: string | null
|
|
357
366
|
}
|
|
358
367
|
|
|
359
|
-
export interface Role {
|
|
360
|
-
name: string
|
|
361
|
-
description?: string | null
|
|
362
|
-
level: string
|
|
363
|
-
created_time?: string | null
|
|
364
|
-
privileges: Privilege[]
|
|
365
|
-
}
|
|
366
|
-
|
|
367
368
|
export interface RoleUpdateBody {
|
|
368
369
|
name?: string | null
|
|
369
370
|
description?: string | null
|
|
@@ -409,6 +410,8 @@ export interface TagCreateGlobal {
|
|
|
409
410
|
name: string
|
|
410
411
|
description: string
|
|
411
412
|
category: string
|
|
413
|
+
aliases?: string[] | null
|
|
414
|
+
relationships?: string[] | null
|
|
412
415
|
}
|
|
413
416
|
|
|
414
417
|
export interface TagCategory {
|
|
@@ -425,10 +428,8 @@ export interface TagGlobalUpdate {
|
|
|
425
428
|
name?: string | null
|
|
426
429
|
description?: string | null
|
|
427
430
|
category?: string | null
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
relationships_add?: string[] | null
|
|
431
|
-
relationships_remove?: string[] | null
|
|
431
|
+
aliases?: string[] | null
|
|
432
|
+
relationships?: string[] | null
|
|
432
433
|
}
|
|
433
434
|
|
|
434
435
|
export interface TagCategoryUpdateBody {
|
|
@@ -446,6 +447,8 @@ export interface TagCustomPromote {
|
|
|
446
447
|
description: string
|
|
447
448
|
}
|
|
448
449
|
| null
|
|
450
|
+
aliases?: string[] | null
|
|
451
|
+
relationships?: string[] | null
|
|
449
452
|
}
|
|
450
453
|
|
|
451
454
|
export interface TagGlobalDemote {
|
|
@@ -1075,12 +1078,6 @@ export interface Paths {
|
|
|
1075
1078
|
search?: undefined
|
|
1076
1079
|
response: void | ErrorResponse
|
|
1077
1080
|
},
|
|
1078
|
-
"/role/get": {
|
|
1079
|
-
method: "get"
|
|
1080
|
-
body?: undefined
|
|
1081
|
-
search?: undefined
|
|
1082
|
-
response: Response<Role[]> | ErrorResponse
|
|
1083
|
-
},
|
|
1084
1081
|
"/role/revoke/{role}/{author}": {
|
|
1085
1082
|
method: "post"
|
|
1086
1083
|
body?: undefined
|
|
@@ -1093,6 +1090,12 @@ export interface Paths {
|
|
|
1093
1090
|
search?: undefined
|
|
1094
1091
|
response: void | ErrorResponse
|
|
1095
1092
|
},
|
|
1093
|
+
"/roles/get": {
|
|
1094
|
+
method: "get"
|
|
1095
|
+
body?: undefined
|
|
1096
|
+
search?: undefined
|
|
1097
|
+
response: Response<Role[]> | ErrorResponse
|
|
1098
|
+
},
|
|
1096
1099
|
"/comment/add/{under}": {
|
|
1097
1100
|
method: "post"
|
|
1098
1101
|
body: CommentCreateBody
|
package/openapi.json
CHANGED
|
@@ -168,6 +168,19 @@
|
|
|
168
168
|
"type": "null"
|
|
169
169
|
}
|
|
170
170
|
]
|
|
171
|
+
},
|
|
172
|
+
"roles": {
|
|
173
|
+
"anyOf": [
|
|
174
|
+
{
|
|
175
|
+
"type": "array",
|
|
176
|
+
"items": {
|
|
177
|
+
"$ref": "#/components/schema/Role"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"type": "null"
|
|
182
|
+
}
|
|
183
|
+
]
|
|
171
184
|
}
|
|
172
185
|
},
|
|
173
186
|
"required": [
|
|
@@ -399,6 +412,81 @@
|
|
|
399
412
|
"view_count"
|
|
400
413
|
]
|
|
401
414
|
},
|
|
415
|
+
"Role": {
|
|
416
|
+
"type": "object",
|
|
417
|
+
"properties": {
|
|
418
|
+
"name": {
|
|
419
|
+
"type": "string",
|
|
420
|
+
"maxLength": 32
|
|
421
|
+
},
|
|
422
|
+
"description": {
|
|
423
|
+
"anyOf": [
|
|
424
|
+
{
|
|
425
|
+
"type": "string",
|
|
426
|
+
"maxLength": 541
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"type": "null"
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
"level": {
|
|
434
|
+
"type": "string"
|
|
435
|
+
},
|
|
436
|
+
"created_time": {
|
|
437
|
+
"anyOf": [
|
|
438
|
+
{
|
|
439
|
+
"type": "string"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"type": "null"
|
|
443
|
+
}
|
|
444
|
+
]
|
|
445
|
+
},
|
|
446
|
+
"privileges": {
|
|
447
|
+
"type": "array",
|
|
448
|
+
"items": {
|
|
449
|
+
"$ref": "#/components/schema/Privilege"
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"required": [
|
|
454
|
+
"name",
|
|
455
|
+
"level",
|
|
456
|
+
"privileges"
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
"Privilege": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"enum": [
|
|
462
|
+
"PrivilegeGrant",
|
|
463
|
+
"PrivilegeRevoke",
|
|
464
|
+
"RoleCreate",
|
|
465
|
+
"RoleEdit",
|
|
466
|
+
"RoleDelete",
|
|
467
|
+
"RoleReorder",
|
|
468
|
+
"RoleGrant",
|
|
469
|
+
"RoleRevoke",
|
|
470
|
+
"WorkViewPrivate",
|
|
471
|
+
"PrivilegeViewAuthor",
|
|
472
|
+
"RoleViewAll",
|
|
473
|
+
"TagGlobalCreate",
|
|
474
|
+
"TagGlobalDelete",
|
|
475
|
+
"TagGlobalUpdate",
|
|
476
|
+
"TagCategoryCreate",
|
|
477
|
+
"TagCategoryUpdate",
|
|
478
|
+
"TagCategoryDelete",
|
|
479
|
+
"TagCustomCreate",
|
|
480
|
+
"TagCustomUpdate",
|
|
481
|
+
"TagCustomDelete",
|
|
482
|
+
"TagPromote",
|
|
483
|
+
"TagDemote",
|
|
484
|
+
"TagAliasAdd",
|
|
485
|
+
"TagAliasRemove",
|
|
486
|
+
"TagRelationshipAdd",
|
|
487
|
+
"TagRelationshipRemove"
|
|
488
|
+
]
|
|
489
|
+
},
|
|
402
490
|
"AuthDeleteBody": {
|
|
403
491
|
"type": "object",
|
|
404
492
|
"properties": {
|
|
@@ -2006,37 +2094,6 @@
|
|
|
2006
2094
|
"privileges"
|
|
2007
2095
|
]
|
|
2008
2096
|
},
|
|
2009
|
-
"Privilege": {
|
|
2010
|
-
"type": "string",
|
|
2011
|
-
"enum": [
|
|
2012
|
-
"PrivilegeGrant",
|
|
2013
|
-
"PrivilegeRevoke",
|
|
2014
|
-
"RoleCreate",
|
|
2015
|
-
"RoleEdit",
|
|
2016
|
-
"RoleDelete",
|
|
2017
|
-
"RoleReorder",
|
|
2018
|
-
"RoleGrant",
|
|
2019
|
-
"RoleRevoke",
|
|
2020
|
-
"WorkViewPrivate",
|
|
2021
|
-
"PrivilegeViewAuthor",
|
|
2022
|
-
"RoleViewAll",
|
|
2023
|
-
"TagGlobalCreate",
|
|
2024
|
-
"TagGlobalDelete",
|
|
2025
|
-
"TagGlobalUpdate",
|
|
2026
|
-
"TagCategoryCreate",
|
|
2027
|
-
"TagCategoryUpdate",
|
|
2028
|
-
"TagCategoryDelete",
|
|
2029
|
-
"TagCustomCreate",
|
|
2030
|
-
"TagCustomUpdate",
|
|
2031
|
-
"TagCustomDelete",
|
|
2032
|
-
"TagPromote",
|
|
2033
|
-
"TagDemote",
|
|
2034
|
-
"TagAliasAdd",
|
|
2035
|
-
"TagAliasRemove",
|
|
2036
|
-
"TagRelationshipAdd",
|
|
2037
|
-
"TagRelationshipRemove"
|
|
2038
|
-
]
|
|
2039
|
-
},
|
|
2040
2097
|
"RoleCreateBody": {
|
|
2041
2098
|
"type": "object",
|
|
2042
2099
|
"properties": {
|
|
@@ -2070,50 +2127,6 @@
|
|
|
2070
2127
|
"name"
|
|
2071
2128
|
]
|
|
2072
2129
|
},
|
|
2073
|
-
"Role": {
|
|
2074
|
-
"type": "object",
|
|
2075
|
-
"properties": {
|
|
2076
|
-
"name": {
|
|
2077
|
-
"type": "string",
|
|
2078
|
-
"maxLength": 32
|
|
2079
|
-
},
|
|
2080
|
-
"description": {
|
|
2081
|
-
"anyOf": [
|
|
2082
|
-
{
|
|
2083
|
-
"type": "string",
|
|
2084
|
-
"maxLength": 541
|
|
2085
|
-
},
|
|
2086
|
-
{
|
|
2087
|
-
"type": "null"
|
|
2088
|
-
}
|
|
2089
|
-
]
|
|
2090
|
-
},
|
|
2091
|
-
"level": {
|
|
2092
|
-
"type": "string"
|
|
2093
|
-
},
|
|
2094
|
-
"created_time": {
|
|
2095
|
-
"anyOf": [
|
|
2096
|
-
{
|
|
2097
|
-
"type": "string"
|
|
2098
|
-
},
|
|
2099
|
-
{
|
|
2100
|
-
"type": "null"
|
|
2101
|
-
}
|
|
2102
|
-
]
|
|
2103
|
-
},
|
|
2104
|
-
"privileges": {
|
|
2105
|
-
"type": "array",
|
|
2106
|
-
"items": {
|
|
2107
|
-
"$ref": "#/components/schema/Privilege"
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
},
|
|
2111
|
-
"required": [
|
|
2112
|
-
"name",
|
|
2113
|
-
"level",
|
|
2114
|
-
"privileges"
|
|
2115
|
-
]
|
|
2116
|
-
},
|
|
2117
2130
|
"RoleUpdateBody": {
|
|
2118
2131
|
"type": "object",
|
|
2119
2132
|
"properties": {
|
|
@@ -2345,6 +2358,32 @@
|
|
|
2345
2358
|
},
|
|
2346
2359
|
"category": {
|
|
2347
2360
|
"type": "string"
|
|
2361
|
+
},
|
|
2362
|
+
"aliases": {
|
|
2363
|
+
"anyOf": [
|
|
2364
|
+
{
|
|
2365
|
+
"type": "array",
|
|
2366
|
+
"items": {
|
|
2367
|
+
"type": "string"
|
|
2368
|
+
}
|
|
2369
|
+
},
|
|
2370
|
+
{
|
|
2371
|
+
"type": "null"
|
|
2372
|
+
}
|
|
2373
|
+
]
|
|
2374
|
+
},
|
|
2375
|
+
"relationships": {
|
|
2376
|
+
"anyOf": [
|
|
2377
|
+
{
|
|
2378
|
+
"type": "array",
|
|
2379
|
+
"items": {
|
|
2380
|
+
"type": "string"
|
|
2381
|
+
}
|
|
2382
|
+
},
|
|
2383
|
+
{
|
|
2384
|
+
"type": "null"
|
|
2385
|
+
}
|
|
2386
|
+
]
|
|
2348
2387
|
}
|
|
2349
2388
|
},
|
|
2350
2389
|
"required": [
|
|
@@ -2425,33 +2464,7 @@
|
|
|
2425
2464
|
}
|
|
2426
2465
|
]
|
|
2427
2466
|
},
|
|
2428
|
-
"
|
|
2429
|
-
"anyOf": [
|
|
2430
|
-
{
|
|
2431
|
-
"type": "array",
|
|
2432
|
-
"items": {
|
|
2433
|
-
"type": "string"
|
|
2434
|
-
}
|
|
2435
|
-
},
|
|
2436
|
-
{
|
|
2437
|
-
"type": "null"
|
|
2438
|
-
}
|
|
2439
|
-
]
|
|
2440
|
-
},
|
|
2441
|
-
"aliases_remove": {
|
|
2442
|
-
"anyOf": [
|
|
2443
|
-
{
|
|
2444
|
-
"type": "array",
|
|
2445
|
-
"items": {
|
|
2446
|
-
"type": "string"
|
|
2447
|
-
}
|
|
2448
|
-
},
|
|
2449
|
-
{
|
|
2450
|
-
"type": "null"
|
|
2451
|
-
}
|
|
2452
|
-
]
|
|
2453
|
-
},
|
|
2454
|
-
"relationships_add": {
|
|
2467
|
+
"aliases": {
|
|
2455
2468
|
"anyOf": [
|
|
2456
2469
|
{
|
|
2457
2470
|
"type": "array",
|
|
@@ -2464,7 +2477,7 @@
|
|
|
2464
2477
|
}
|
|
2465
2478
|
]
|
|
2466
2479
|
},
|
|
2467
|
-
"
|
|
2480
|
+
"relationships": {
|
|
2468
2481
|
"anyOf": [
|
|
2469
2482
|
{
|
|
2470
2483
|
"type": "array",
|
|
@@ -2554,6 +2567,32 @@
|
|
|
2554
2567
|
"type": "null"
|
|
2555
2568
|
}
|
|
2556
2569
|
]
|
|
2570
|
+
},
|
|
2571
|
+
"aliases": {
|
|
2572
|
+
"anyOf": [
|
|
2573
|
+
{
|
|
2574
|
+
"type": "array",
|
|
2575
|
+
"items": {
|
|
2576
|
+
"type": "string"
|
|
2577
|
+
}
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
"type": "null"
|
|
2581
|
+
}
|
|
2582
|
+
]
|
|
2583
|
+
},
|
|
2584
|
+
"relationships": {
|
|
2585
|
+
"anyOf": [
|
|
2586
|
+
{
|
|
2587
|
+
"type": "array",
|
|
2588
|
+
"items": {
|
|
2589
|
+
"type": "string"
|
|
2590
|
+
}
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
"type": "null"
|
|
2594
|
+
}
|
|
2595
|
+
]
|
|
2557
2596
|
}
|
|
2558
2597
|
},
|
|
2559
2598
|
"required": [
|
|
@@ -6497,46 +6536,6 @@
|
|
|
6497
6536
|
}
|
|
6498
6537
|
}
|
|
6499
6538
|
},
|
|
6500
|
-
"/role/get": {
|
|
6501
|
-
"get": {
|
|
6502
|
-
"responses": {
|
|
6503
|
-
"200": {
|
|
6504
|
-
"description": "200 response",
|
|
6505
|
-
"content": {
|
|
6506
|
-
"application/json": {
|
|
6507
|
-
"schema": {
|
|
6508
|
-
"type": "object",
|
|
6509
|
-
"properties": {
|
|
6510
|
-
"data": {
|
|
6511
|
-
"type": "array",
|
|
6512
|
-
"items": {
|
|
6513
|
-
"$ref": "#/components/schema/Role"
|
|
6514
|
-
}
|
|
6515
|
-
}
|
|
6516
|
-
},
|
|
6517
|
-
"required": [
|
|
6518
|
-
"data"
|
|
6519
|
-
]
|
|
6520
|
-
}
|
|
6521
|
-
}
|
|
6522
|
-
}
|
|
6523
|
-
},
|
|
6524
|
-
"304": {
|
|
6525
|
-
"description": "304 response"
|
|
6526
|
-
},
|
|
6527
|
-
"default": {
|
|
6528
|
-
"description": "Error",
|
|
6529
|
-
"content": {
|
|
6530
|
-
"application/json": {
|
|
6531
|
-
"schema": {
|
|
6532
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
6533
|
-
}
|
|
6534
|
-
}
|
|
6535
|
-
}
|
|
6536
|
-
}
|
|
6537
|
-
}
|
|
6538
|
-
}
|
|
6539
|
-
},
|
|
6540
6539
|
"/role/revoke/{role}/{author}": {
|
|
6541
6540
|
"parameters": [
|
|
6542
6541
|
{
|
|
@@ -6594,6 +6593,46 @@
|
|
|
6594
6593
|
}
|
|
6595
6594
|
}
|
|
6596
6595
|
},
|
|
6596
|
+
"/roles/get": {
|
|
6597
|
+
"get": {
|
|
6598
|
+
"responses": {
|
|
6599
|
+
"200": {
|
|
6600
|
+
"description": "200 response",
|
|
6601
|
+
"content": {
|
|
6602
|
+
"application/json": {
|
|
6603
|
+
"schema": {
|
|
6604
|
+
"type": "object",
|
|
6605
|
+
"properties": {
|
|
6606
|
+
"data": {
|
|
6607
|
+
"type": "array",
|
|
6608
|
+
"items": {
|
|
6609
|
+
"$ref": "#/components/schema/Role"
|
|
6610
|
+
}
|
|
6611
|
+
}
|
|
6612
|
+
},
|
|
6613
|
+
"required": [
|
|
6614
|
+
"data"
|
|
6615
|
+
]
|
|
6616
|
+
}
|
|
6617
|
+
}
|
|
6618
|
+
}
|
|
6619
|
+
},
|
|
6620
|
+
"304": {
|
|
6621
|
+
"description": "304 response"
|
|
6622
|
+
},
|
|
6623
|
+
"default": {
|
|
6624
|
+
"description": "Error",
|
|
6625
|
+
"content": {
|
|
6626
|
+
"application/json": {
|
|
6627
|
+
"schema": {
|
|
6628
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
6629
|
+
}
|
|
6630
|
+
}
|
|
6631
|
+
}
|
|
6632
|
+
}
|
|
6633
|
+
}
|
|
6634
|
+
}
|
|
6635
|
+
},
|
|
6597
6636
|
"/comment/add/{under}": {
|
|
6598
6637
|
"parameters": [
|
|
6599
6638
|
{
|
package/package.json
CHANGED