api.fluff4.me 1.0.563 → 1.0.564
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 +22 -0
- package/openapi.json +77 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -120,6 +120,10 @@ export interface AuthService {
|
|
|
120
120
|
icon: string
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
export interface TOTPTokenBody {
|
|
124
|
+
token: string
|
|
125
|
+
}
|
|
126
|
+
|
|
123
127
|
export interface AuthorCreateBody {
|
|
124
128
|
name: string
|
|
125
129
|
vanity: string
|
|
@@ -667,6 +671,24 @@ export interface Paths {
|
|
|
667
671
|
search?: undefined
|
|
668
672
|
response: Response<AuthServices> | ErrorResponse
|
|
669
673
|
},
|
|
674
|
+
"/auth/totp/create": {
|
|
675
|
+
method: "post"
|
|
676
|
+
body?: undefined
|
|
677
|
+
search?: undefined
|
|
678
|
+
response: void | ErrorResponse
|
|
679
|
+
},
|
|
680
|
+
"/auth/totp/enable": {
|
|
681
|
+
method: "post"
|
|
682
|
+
body: TOTPTokenBody
|
|
683
|
+
search?: undefined
|
|
684
|
+
response: void | ErrorResponse
|
|
685
|
+
},
|
|
686
|
+
"/auth/totp/delete": {
|
|
687
|
+
method: "post"
|
|
688
|
+
body?: undefined
|
|
689
|
+
search?: undefined
|
|
690
|
+
response: void | ErrorResponse
|
|
691
|
+
},
|
|
670
692
|
"/auth/patreon/campaign/begin": {
|
|
671
693
|
method: "get"
|
|
672
694
|
body?: undefined
|
package/openapi.json
CHANGED
|
@@ -571,6 +571,17 @@
|
|
|
571
571
|
"icon"
|
|
572
572
|
]
|
|
573
573
|
},
|
|
574
|
+
"TOTPTokenBody": {
|
|
575
|
+
"type": "object",
|
|
576
|
+
"properties": {
|
|
577
|
+
"token": {
|
|
578
|
+
"type": "string"
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
"required": [
|
|
582
|
+
"token"
|
|
583
|
+
]
|
|
584
|
+
},
|
|
574
585
|
"AuthorCreateBody": {
|
|
575
586
|
"type": "object",
|
|
576
587
|
"properties": {
|
|
@@ -3585,6 +3596,72 @@
|
|
|
3585
3596
|
}
|
|
3586
3597
|
}
|
|
3587
3598
|
},
|
|
3599
|
+
"/auth/totp/create": {
|
|
3600
|
+
"post": {
|
|
3601
|
+
"responses": {
|
|
3602
|
+
"200": {
|
|
3603
|
+
"description": "200 response"
|
|
3604
|
+
},
|
|
3605
|
+
"default": {
|
|
3606
|
+
"description": "Error",
|
|
3607
|
+
"content": {
|
|
3608
|
+
"application/json": {
|
|
3609
|
+
"schema": {
|
|
3610
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
3611
|
+
}
|
|
3612
|
+
}
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
}
|
|
3616
|
+
}
|
|
3617
|
+
},
|
|
3618
|
+
"/auth/totp/enable": {
|
|
3619
|
+
"post": {
|
|
3620
|
+
"requestBody": {
|
|
3621
|
+
"content": {
|
|
3622
|
+
"application/json": {
|
|
3623
|
+
"schema": {
|
|
3624
|
+
"$ref": "#/components/schemas/TOTPTokenBody"
|
|
3625
|
+
}
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
},
|
|
3629
|
+
"responses": {
|
|
3630
|
+
"200": {
|
|
3631
|
+
"description": "200 response"
|
|
3632
|
+
},
|
|
3633
|
+
"default": {
|
|
3634
|
+
"description": "Error",
|
|
3635
|
+
"content": {
|
|
3636
|
+
"application/json": {
|
|
3637
|
+
"schema": {
|
|
3638
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
3639
|
+
}
|
|
3640
|
+
}
|
|
3641
|
+
}
|
|
3642
|
+
}
|
|
3643
|
+
}
|
|
3644
|
+
}
|
|
3645
|
+
},
|
|
3646
|
+
"/auth/totp/delete": {
|
|
3647
|
+
"post": {
|
|
3648
|
+
"responses": {
|
|
3649
|
+
"200": {
|
|
3650
|
+
"description": "200 response"
|
|
3651
|
+
},
|
|
3652
|
+
"default": {
|
|
3653
|
+
"description": "Error",
|
|
3654
|
+
"content": {
|
|
3655
|
+
"application/json": {
|
|
3656
|
+
"schema": {
|
|
3657
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
3658
|
+
}
|
|
3659
|
+
}
|
|
3660
|
+
}
|
|
3661
|
+
}
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
},
|
|
3588
3665
|
"/auth/patreon/campaign/begin": {
|
|
3589
3666
|
"get": {
|
|
3590
3667
|
"responses": {
|
package/package.json
CHANGED