@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 +1 -1
- package/v1alpha1/user.pb.ts +11 -0
package/package.json
CHANGED
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -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
|
}
|