api.fluff4.me 1.0.568 → 1.0.570

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 +11 -1
  2. package/openapi.json +55 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -129,6 +129,10 @@ export interface AuthService {
129
129
  icon: string
130
130
  }
131
131
 
132
+ export interface TOTPCreateResponse {
133
+ uri: string
134
+ }
135
+
132
136
  export interface TOTPTokenBody {
133
137
  token: string
134
138
  }
@@ -684,7 +688,7 @@ export interface Paths {
684
688
  method: "post"
685
689
  body?: undefined
686
690
  search?: undefined
687
- response: void | ErrorResponse
691
+ response: Response<TOTPCreateResponse> | ErrorResponse
688
692
  },
689
693
  "/auth/totp/enable": {
690
694
  method: "post"
@@ -698,6 +702,12 @@ export interface Paths {
698
702
  search?: undefined
699
703
  response: void | ErrorResponse
700
704
  },
705
+ "/auth/totp/verify": {
706
+ method: "post"
707
+ body: TOTPTokenBody
708
+ search?: undefined
709
+ response: void | ErrorResponse
710
+ },
701
711
  "/auth/patreon/campaign/begin": {
702
712
  method: "get"
703
713
  body?: undefined
package/openapi.json CHANGED
@@ -639,6 +639,17 @@
639
639
  "icon"
640
640
  ]
641
641
  },
642
+ "TOTPCreateResponse": {
643
+ "type": "object",
644
+ "properties": {
645
+ "uri": {
646
+ "type": "string"
647
+ }
648
+ },
649
+ "required": [
650
+ "uri"
651
+ ]
652
+ },
642
653
  "TOTPTokenBody": {
643
654
  "type": "object",
644
655
  "properties": {
@@ -3668,7 +3679,22 @@
3668
3679
  "post": {
3669
3680
  "responses": {
3670
3681
  "200": {
3671
- "description": "200 response"
3682
+ "description": "200 response",
3683
+ "content": {
3684
+ "application/json": {
3685
+ "schema": {
3686
+ "type": "object",
3687
+ "properties": {
3688
+ "data": {
3689
+ "$ref": "#/components/schemas/TOTPCreateResponse"
3690
+ }
3691
+ },
3692
+ "required": [
3693
+ "data"
3694
+ ]
3695
+ }
3696
+ }
3697
+ }
3672
3698
  },
3673
3699
  "default": {
3674
3700
  "description": "Error",
@@ -3730,6 +3756,34 @@
3730
3756
  }
3731
3757
  }
3732
3758
  },
3759
+ "/auth/totp/verify": {
3760
+ "post": {
3761
+ "requestBody": {
3762
+ "content": {
3763
+ "application/json": {
3764
+ "schema": {
3765
+ "$ref": "#/components/schemas/TOTPTokenBody"
3766
+ }
3767
+ }
3768
+ }
3769
+ },
3770
+ "responses": {
3771
+ "200": {
3772
+ "description": "200 response"
3773
+ },
3774
+ "default": {
3775
+ "description": "Error",
3776
+ "content": {
3777
+ "application/json": {
3778
+ "schema": {
3779
+ "$ref": "#/components/schemas/ErrorResponse"
3780
+ }
3781
+ }
3782
+ }
3783
+ }
3784
+ }
3785
+ }
3786
+ },
3733
3787
  "/auth/patreon/campaign/begin": {
3734
3788
  "get": {
3735
3789
  "responses": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.568",
3
+ "version": "1.0.570",
4
4
  "types": "index.d.ts"
5
5
  }