@daocloud-proto/ghippo 0.26.0-dev3 → 0.26.0-dev4

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.26.0-dev3",
3
+ "version":"0.26.0-dev4",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -221,17 +221,26 @@ export type ResetUserMFAResponse = {
221
221
  export type CreateUserSSHKeyRequest = {
222
222
  id?: string
223
223
  sshKeyName?: string
224
+ publicKey?: string
224
225
  expiredAt?: string
225
226
  }
226
227
 
227
228
  export type CreateUserSSHKeyResponse = {
229
+ }
230
+
231
+ export type UpdateUserSSHKeyRequest = {
232
+ id?: string
233
+ sshkeyId?: number
234
+ sshKeyName?: string
228
235
  publicKey?: string
229
- privateKey?: string
236
+ }
237
+
238
+ export type UpdateUserSSHKeyResponse = {
230
239
  }
231
240
 
232
241
  export type DeleteUserSSHKeyRequest = {
233
242
  id?: string
234
- sshkeyId?: string
243
+ sshkeyId?: number
235
244
  }
236
245
 
237
246
  export type DeleteUserSSHKeyResponse = {
@@ -246,8 +255,9 @@ export type ListUserSSHKeysResponse = {
246
255
  }
247
256
 
248
257
  export type SSHKey = {
249
- id?: string
258
+ id?: number
250
259
  sshKeyName?: string
260
+ publicKey?: string
251
261
  updatedAt?: string
252
262
  createdAt?: string
253
263
  expiredAt?: string
@@ -319,6 +329,9 @@ export class Users {
319
329
  static CreateUserSSHKey(req: CreateUserSSHKeyRequest, initReq?: fm.InitReq): Promise<CreateUserSSHKeyResponse> {
320
330
  return fm.fetchReq<CreateUserSSHKeyRequest, CreateUserSSHKeyResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}/sshkeys`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
321
331
  }
332
+ static UpdateUserSSHKey(req: UpdateUserSSHKeyRequest, initReq?: fm.InitReq): Promise<UpdateUserSSHKeyResponse> {
333
+ return fm.fetchReq<UpdateUserSSHKeyRequest, UpdateUserSSHKeyResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}/sshkeys/${req["sshkeyId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
334
+ }
322
335
  static DeleteUserSSHKey(req: DeleteUserSSHKeyRequest, initReq?: fm.InitReq): Promise<DeleteUserSSHKeyResponse> {
323
336
  return fm.fetchReq<DeleteUserSSHKeyRequest, DeleteUserSSHKeyResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}/sshkeys/${req["sshkeyId"]}`, {...initReq, method: "DELETE"})
324
337
  }