@daocloud-proto/ghippo 0.22.0-dev2 → 0.22.0-rc1

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.22.0-dev2",
3
+ "version":"0.22.0-rc1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -72,6 +72,14 @@ export type CreateUserResponse = {
72
72
  id?: string
73
73
  }
74
74
 
75
+ export type CreateUserWithoutPasswordRequest = {
76
+ name?: string
77
+ }
78
+
79
+ export type CreateUserWithoutPasswordResponse = {
80
+ id?: string
81
+ }
82
+
75
83
  export type DeleteUserRequest = {
76
84
  id?: string
77
85
  }
@@ -222,6 +230,9 @@ export class Users {
222
230
  static CreateUser(req: CreateUserRequest, initReq?: fm.InitReq): Promise<CreateUserResponse> {
223
231
  return fm.fetchReq<CreateUserRequest, CreateUserResponse>(`/apis/ghippo.io/v1alpha1/users`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
224
232
  }
233
+ static CreateUserWithoutPassword(req: CreateUserWithoutPasswordRequest, initReq?: fm.InitReq): Promise<CreateUserWithoutPasswordResponse> {
234
+ return fm.fetchReq<CreateUserWithoutPasswordRequest, CreateUserWithoutPasswordResponse>(`/apis/ghippo.io/v1alpha1/users/without-password`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
235
+ }
225
236
  static DeleteUser(req: DeleteUserRequest, initReq?: fm.InitReq): Promise<DeleteUserResponse> {
226
237
  return fm.fetchReq<DeleteUserRequest, DeleteUserResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}`, {...initReq, method: "DELETE"})
227
238
  }