@daocloud-proto/ghippo 0.9.14 → 0.9.17
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
package/v1alpha1/audit.pb.ts
CHANGED
|
@@ -29,7 +29,7 @@ export type ListAuditResponse = {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export type AuditInfo = {
|
|
32
|
-
id?:
|
|
32
|
+
id?: string
|
|
33
33
|
auditName?: string
|
|
34
34
|
resourceType?: string
|
|
35
35
|
resourceName?: string
|
|
@@ -47,7 +47,7 @@ export type Pagination = {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export type GetAuditRequest = {
|
|
50
|
-
id?:
|
|
50
|
+
id?: string
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export type GetAuditResponse = {
|
package/v1alpha1/login.pb.ts
CHANGED
|
@@ -21,6 +21,7 @@ export type LoginPostRequest = {
|
|
|
21
21
|
|
|
22
22
|
export type LoginPostResponse = {
|
|
23
23
|
idToken?: string
|
|
24
|
+
refreshToken?: string
|
|
24
25
|
username?: string
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -30,6 +31,15 @@ export type LogoutRequest = {
|
|
|
30
31
|
export type LogoutResponse = {
|
|
31
32
|
}
|
|
32
33
|
|
|
34
|
+
export type RefreshTokenRequest = {
|
|
35
|
+
refreshToken?: string
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type RefreshTokenResponse = {
|
|
39
|
+
idToken?: string
|
|
40
|
+
refreshToken?: string
|
|
41
|
+
}
|
|
42
|
+
|
|
33
43
|
export class Login {
|
|
34
44
|
static RedirectLogin(req: LoginGetRequest, initReq?: fm.InitReq): Promise<LoginGetResponse> {
|
|
35
45
|
return fm.fetchReq<LoginGetRequest, LoginGetResponse>(`/apis/ghippo.io/v1alpha1/login?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -40,4 +50,7 @@ export class Login {
|
|
|
40
50
|
static OIDCLogout(req: LogoutRequest, initReq?: fm.InitReq): Promise<LogoutResponse> {
|
|
41
51
|
return fm.fetchReq<LogoutRequest, LogoutResponse>(`/apis/ghippo.io/v1alpha1/logout`, {...initReq, method: "DELETE"})
|
|
42
52
|
}
|
|
53
|
+
static RefreshToken(req: RefreshTokenRequest, initReq?: fm.InitReq): Promise<RefreshTokenResponse> {
|
|
54
|
+
return fm.fetchReq<RefreshTokenRequest, RefreshTokenResponse>(`/apis/ghippo.io/v1alpha1/refresh-token`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
55
|
+
}
|
|
43
56
|
}
|
|
@@ -71,6 +71,20 @@ export type SetLogoutPolicyRequest = {
|
|
|
71
71
|
export type SetLogoutPolicyResponse = {
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
export type GetSessionTimeoutRequest = {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type GetSessionTimeoutResponse = {
|
|
78
|
+
timeoutSeconds?: number
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type SetSessionTimeoutRequest = {
|
|
82
|
+
timeoutSeconds?: number
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type SetSessionTimeoutResponse = {
|
|
86
|
+
}
|
|
87
|
+
|
|
74
88
|
export class SecurityPolicy {
|
|
75
89
|
static GetPasswordPolicy(req: GetPasswordPolicyRequest, initReq?: fm.InitReq): Promise<GetPasswordPolicyResponse> {
|
|
76
90
|
return fm.fetchReq<GetPasswordPolicyRequest, GetPasswordPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/password?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -90,4 +104,10 @@ export class SecurityPolicy {
|
|
|
90
104
|
static SetLogoutPolicy(req: SetLogoutPolicyRequest, initReq?: fm.InitReq): Promise<SetLogoutPolicyResponse> {
|
|
91
105
|
return fm.fetchReq<SetLogoutPolicyRequest, SetLogoutPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/logout`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
92
106
|
}
|
|
107
|
+
static GetSessionTimeout(req: GetSessionTimeoutRequest, initReq?: fm.InitReq): Promise<GetSessionTimeoutResponse> {
|
|
108
|
+
return fm.fetchReq<GetSessionTimeoutRequest, GetSessionTimeoutResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessiontimeout?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
109
|
+
}
|
|
110
|
+
static SetSessionTimeout(req: SetSessionTimeoutRequest, initReq?: fm.InitReq): Promise<SetSessionTimeoutResponse> {
|
|
111
|
+
return fm.fetchReq<SetSessionTimeoutRequest, SetSessionTimeoutResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessiontimeout`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
112
|
+
}
|
|
93
113
|
}
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
export type SetSmtpServerRequest = {
|
|
9
9
|
host?: string
|
|
10
|
-
port?:
|
|
10
|
+
port?: number
|
|
11
11
|
ssl?: boolean
|
|
12
|
+
starttls?: boolean
|
|
12
13
|
from?: string
|
|
13
14
|
user?: string
|
|
14
15
|
password?: string
|
|
15
|
-
fromDisplayName?: string
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export type SetSmtpServerResponse = {
|
|
@@ -23,22 +23,22 @@ export type GetSmtpServerRequest = {
|
|
|
23
23
|
|
|
24
24
|
export type GetSmtpServerResponse = {
|
|
25
25
|
host?: string
|
|
26
|
-
port?:
|
|
26
|
+
port?: number
|
|
27
27
|
ssl?: boolean
|
|
28
|
+
starttls?: boolean
|
|
28
29
|
from?: string
|
|
29
30
|
user?: string
|
|
30
31
|
password?: string
|
|
31
|
-
fromDisplayName?: string
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export type SmtpConnTestRequest = {
|
|
35
35
|
host?: string
|
|
36
|
-
port?:
|
|
36
|
+
port?: number
|
|
37
37
|
ssl?: boolean
|
|
38
|
+
starttls?: boolean
|
|
38
39
|
from?: string
|
|
39
40
|
user?: string
|
|
40
41
|
password?: string
|
|
41
|
-
fromDisplayName?: string
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export type SmtpConnTestResponse = {
|