@daocloud-proto/ghippo 0.25.0-rc1 → 0.25.0-rc2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.25.0-rc1",
3
+ "version":"0.25.0-rc2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -26,6 +26,17 @@ export type LoginPostResponse = {
26
26
  username?: string
27
27
  }
28
28
 
29
+ export type AuthenticateWithPasswordRequest = {
30
+ username?: string
31
+ password?: string
32
+ }
33
+
34
+ export type AuthenticateWithPasswordResponse = {
35
+ idToken?: string
36
+ refreshToken?: string
37
+ username?: string
38
+ }
39
+
29
40
  export type LogoutRequest = {
30
41
  }
31
42
 
@@ -65,4 +76,7 @@ export class Login {
65
76
  static CheckSessionLimit(req: CheckSessionLimitRequest, initReq?: fm.InitReq): Promise<CheckSessionLimitResponse> {
66
77
  return fm.fetchReq<CheckSessionLimitRequest, CheckSessionLimitResponse>(`/apis/ghippo.io/v1alpha1/session-limit`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
67
78
  }
79
+ static AuthenticateWithPassword(req: AuthenticateWithPasswordRequest, initReq?: fm.InitReq): Promise<AuthenticateWithPasswordResponse> {
80
+ return fm.fetchReq<AuthenticateWithPasswordRequest, AuthenticateWithPasswordResponse>(`/apis/ghippo.io/v1alpha1/authenticate-with-password`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
81
+ }
68
82
  }