@daocloud-proto/ghippo 0.18.0-dev-5 → 0.18.0-dev-7

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.18.0-dev-5",
3
+ "version":"0.18.0-dev-7",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -111,6 +111,22 @@ export type DeleteAccessTokenRequest = {
111
111
  export type DeleteAccessTokenResponse = {
112
112
  }
113
113
 
114
+ export type PasswordDescriptionRequest = {
115
+ }
116
+
117
+ export type PasswordDescriptionResponse = {
118
+ allowModify?: boolean
119
+ emptyPassword?: boolean
120
+ }
121
+
122
+ export type SetCurrentUserPasswordRequest = {
123
+ oldPassword?: string
124
+ newPassword?: string
125
+ }
126
+
127
+ export type SetCurrentUserPasswordResponse = {
128
+ }
129
+
114
130
  export type GetGlobalPermissionsRequest = {
115
131
  }
116
132
 
@@ -143,4 +159,10 @@ export class Account {
143
159
  static GetGlobalPermissions(req: GetGlobalPermissionsRequest, initReq?: fm.InitReq): Promise<GetGlobalPermissionsResponse> {
144
160
  return fm.fetchReq<GetGlobalPermissionsRequest, GetGlobalPermissionsResponse>(`/apis/ghippo.io/v1alpha1/current-user/global-permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
145
161
  }
162
+ static PasswordDescription(req: PasswordDescriptionRequest, initReq?: fm.InitReq): Promise<PasswordDescriptionResponse> {
163
+ return fm.fetchReq<PasswordDescriptionRequest, PasswordDescriptionResponse>(`/apis/ghippo.io/v1alpha1/current-user/password-description?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
164
+ }
165
+ static SetCurrentUserPassword(req: SetCurrentUserPasswordRequest, initReq?: fm.InitReq): Promise<SetCurrentUserPasswordResponse> {
166
+ return fm.fetchReq<SetCurrentUserPasswordRequest, SetCurrentUserPasswordResponse>(`/apis/ghippo.io/v1alpha1/current-user/set-password`, {...initReq, method: "PUT"})
167
+ }
146
168
  }