@daocloud-proto/ghippo 0.25.0-dev-6 → 0.25.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 +1 -1
- package/v1alpha1/user.pb.ts +0 -55
package/package.json
CHANGED
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -218,49 +218,6 @@ export type ResetUserMFARequest = {
|
|
|
218
218
|
export type ResetUserMFAResponse = {
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
export type CreateUserSSHKeyRequest = {
|
|
222
|
-
id?: string
|
|
223
|
-
sshKeyName?: string
|
|
224
|
-
expiredAt?: string
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export type CreateUserSSHKeyResponse = {
|
|
228
|
-
publicKey?: string
|
|
229
|
-
privateKey?: string
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export type DeleteUserSSHKeyRequest = {
|
|
233
|
-
id?: string
|
|
234
|
-
sshkeyId?: string
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export type DeleteUserSSHKeyResponse = {
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export type ListUserSSHKeysRequest = {
|
|
241
|
-
id?: string
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export type ListUserSSHKeysResponse = {
|
|
245
|
-
sshKeys?: SSHKey[]
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export type SSHKey = {
|
|
249
|
-
id?: string
|
|
250
|
-
sshKeyName?: string
|
|
251
|
-
updatedAt?: string
|
|
252
|
-
createdAt?: string
|
|
253
|
-
expiredAt?: string
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export type VerifyUserSSHPublicKeyRequest = {
|
|
257
|
-
username?: string
|
|
258
|
-
publicKey?: string
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export type VerifyUserSSHPublicKeyResponse = {
|
|
262
|
-
}
|
|
263
|
-
|
|
264
221
|
export class Users {
|
|
265
222
|
static ListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
|
|
266
223
|
return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/ghippo.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -316,16 +273,4 @@ export class Users {
|
|
|
316
273
|
static DeleteUserAccessToken(req: DeleteUserAccessTokenRequest, initReq?: fm.InitReq): Promise<DeleteUserAccessTokenResponse> {
|
|
317
274
|
return fm.fetchReq<DeleteUserAccessTokenRequest, DeleteUserAccessTokenResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}/accesstokens/${req["aid"]}`, {...initReq, method: "DELETE"})
|
|
318
275
|
}
|
|
319
|
-
static CreateUserSSHKey(req: CreateUserSSHKeyRequest, initReq?: fm.InitReq): Promise<CreateUserSSHKeyResponse> {
|
|
320
|
-
return fm.fetchReq<CreateUserSSHKeyRequest, CreateUserSSHKeyResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}/sshkeys`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
321
|
-
}
|
|
322
|
-
static DeleteUserSSHKey(req: DeleteUserSSHKeyRequest, initReq?: fm.InitReq): Promise<DeleteUserSSHKeyResponse> {
|
|
323
|
-
return fm.fetchReq<DeleteUserSSHKeyRequest, DeleteUserSSHKeyResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}/sshkeys/${req["sshkeyId"]}`, {...initReq, method: "DELETE"})
|
|
324
|
-
}
|
|
325
|
-
static ListUserSSHKeys(req: ListUserSSHKeysRequest, initReq?: fm.InitReq): Promise<ListUserSSHKeysResponse> {
|
|
326
|
-
return fm.fetchReq<ListUserSSHKeysRequest, ListUserSSHKeysResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}/sshkeys?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
327
|
-
}
|
|
328
|
-
static VerifyUserSSHPublicKey(req: VerifyUserSSHPublicKeyRequest, initReq?: fm.InitReq): Promise<VerifyUserSSHPublicKeyResponse> {
|
|
329
|
-
return fm.fetchReq<VerifyUserSSHPublicKeyRequest, VerifyUserSSHPublicKeyResponse>(`/apis/ghippo.io/v1alpha1/users/${req["username"]}/sshkeys/verify`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
330
|
-
}
|
|
331
276
|
}
|