@daocloud-proto/ghippo 0.18.0-dev-6 → 0.18.0-dev-8
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
|
@@ -77,6 +77,7 @@ export type GetUserResponse = {
|
|
|
77
77
|
username?: string
|
|
78
78
|
email?: string
|
|
79
79
|
locale?: string
|
|
80
|
+
source?: string
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
export type ListAccessTokensRequest = {
|
|
@@ -111,6 +112,22 @@ export type DeleteAccessTokenRequest = {
|
|
|
111
112
|
export type DeleteAccessTokenResponse = {
|
|
112
113
|
}
|
|
113
114
|
|
|
115
|
+
export type PasswordDescriptionRequest = {
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export type PasswordDescriptionResponse = {
|
|
119
|
+
allowModify?: boolean
|
|
120
|
+
emptyPassword?: boolean
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type SetCurrentUserPasswordRequest = {
|
|
124
|
+
oldPassword?: string
|
|
125
|
+
newPassword?: string
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type SetCurrentUserPasswordResponse = {
|
|
129
|
+
}
|
|
130
|
+
|
|
114
131
|
export type GetGlobalPermissionsRequest = {
|
|
115
132
|
}
|
|
116
133
|
|
|
@@ -143,4 +160,10 @@ export class Account {
|
|
|
143
160
|
static GetGlobalPermissions(req: GetGlobalPermissionsRequest, initReq?: fm.InitReq): Promise<GetGlobalPermissionsResponse> {
|
|
144
161
|
return fm.fetchReq<GetGlobalPermissionsRequest, GetGlobalPermissionsResponse>(`/apis/ghippo.io/v1alpha1/current-user/global-permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
145
162
|
}
|
|
163
|
+
static PasswordDescription(req: PasswordDescriptionRequest, initReq?: fm.InitReq): Promise<PasswordDescriptionResponse> {
|
|
164
|
+
return fm.fetchReq<PasswordDescriptionRequest, PasswordDescriptionResponse>(`/apis/ghippo.io/v1alpha1/current-user/password-description?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
165
|
+
}
|
|
166
|
+
static SetCurrentUserPassword(req: SetCurrentUserPasswordRequest, initReq?: fm.InitReq): Promise<SetCurrentUserPasswordResponse> {
|
|
167
|
+
return fm.fetchReq<SetCurrentUserPasswordRequest, SetCurrentUserPasswordResponse>(`/apis/ghippo.io/v1alpha1/current-user/set-password`, {...initReq, method: "PUT"})
|
|
168
|
+
}
|
|
146
169
|
}
|
|
@@ -85,6 +85,38 @@ export type SetSessionTimeoutRequest = {
|
|
|
85
85
|
export type SetSessionTimeoutResponse = {
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
export type GetUserSessionLimitRequest = {
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type GetUserSessionLimitResponse = {
|
|
92
|
+
enabled?: boolean
|
|
93
|
+
number?: number
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type SetUserSessionLimitRequest = {
|
|
97
|
+
enabled?: boolean
|
|
98
|
+
number?: number
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type SetUserSessionLimitResponse = {
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type GetSystemSessionLimitRequest = {
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type GetSystemSessionLimitResponse = {
|
|
108
|
+
enabled?: boolean
|
|
109
|
+
number?: number
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type SetSystemSessionLimitRequest = {
|
|
113
|
+
enabled?: boolean
|
|
114
|
+
number?: number
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type SetSystemSessionLimitResponse = {
|
|
118
|
+
}
|
|
119
|
+
|
|
88
120
|
export class SecurityPolicy {
|
|
89
121
|
static GetPasswordPolicy(req: GetPasswordPolicyRequest, initReq?: fm.InitReq): Promise<GetPasswordPolicyResponse> {
|
|
90
122
|
return fm.fetchReq<GetPasswordPolicyRequest, GetPasswordPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/password?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -110,4 +142,16 @@ export class SecurityPolicy {
|
|
|
110
142
|
static SetSessionTimeout(req: SetSessionTimeoutRequest, initReq?: fm.InitReq): Promise<SetSessionTimeoutResponse> {
|
|
111
143
|
return fm.fetchReq<SetSessionTimeoutRequest, SetSessionTimeoutResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessiontimeout`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
112
144
|
}
|
|
145
|
+
static GetUserSessionLimit(req: GetUserSessionLimitRequest, initReq?: fm.InitReq): Promise<GetUserSessionLimitResponse> {
|
|
146
|
+
return fm.fetchReq<GetUserSessionLimitRequest, GetUserSessionLimitResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessionlimit/user?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
147
|
+
}
|
|
148
|
+
static SetUserSessionLimit(req: SetUserSessionLimitRequest, initReq?: fm.InitReq): Promise<SetUserSessionLimitResponse> {
|
|
149
|
+
return fm.fetchReq<SetUserSessionLimitRequest, SetUserSessionLimitResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessionlimit/user`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
150
|
+
}
|
|
151
|
+
static GetSystemSessionLimit(req: GetSystemSessionLimitRequest, initReq?: fm.InitReq): Promise<GetSystemSessionLimitResponse> {
|
|
152
|
+
return fm.fetchReq<GetSystemSessionLimitRequest, GetSystemSessionLimitResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessionlimit/system?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
153
|
+
}
|
|
154
|
+
static SetSystemSessionLimit(req: SetSystemSessionLimitRequest, initReq?: fm.InitReq): Promise<SetSystemSessionLimitResponse> {
|
|
155
|
+
return fm.fetchReq<SetSystemSessionLimitRequest, SetSystemSessionLimitResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessionlimit/system`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
156
|
+
}
|
|
113
157
|
}
|