@daocloud-proto/ghippo 0.34.0-dev2 → 0.34.0-dev3

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.34.0-dev2",
3
+ "version":"0.34.0-dev3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -226,6 +226,26 @@ export type VerifyUserSSHPublicKeyRequest = {
226
226
  export type VerifyUserSSHPublicKeyResponse = {
227
227
  }
228
228
 
229
+ export type ListUsersSSHPublicKeysRequest = {
230
+ userIds?: string[]
231
+ }
232
+
233
+ export type ListUsersSSHPublicKeysResponse = {
234
+ values?: {[key: string]: UserSSHKeys}
235
+ }
236
+
237
+ export type UserSSHKeys = {
238
+ values?: SSHKey[]
239
+ }
240
+
241
+ export type SSHKey = {
242
+ name?: string
243
+ publicKey?: string
244
+ createdAt?: string
245
+ updatedAt?: string
246
+ expiredAt?: string
247
+ }
248
+
229
249
  export class Users {
230
250
  static ListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
231
251
  return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/ghippo.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -284,4 +304,7 @@ export class Users {
284
304
  static VerifyUserSSHPublicKey(req: VerifyUserSSHPublicKeyRequest, initReq?: fm.InitReq): Promise<VerifyUserSSHPublicKeyResponse> {
285
305
  return fm.fetchReq<VerifyUserSSHPublicKeyRequest, VerifyUserSSHPublicKeyResponse>(`/apis/ghippo.io/v1alpha1/users/${req["username"]}/sshkeys/verify`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
286
306
  }
307
+ static ListUsersSSHPublicKeys(req: ListUsersSSHPublicKeysRequest, initReq?: fm.InitReq): Promise<ListUsersSSHPublicKeysResponse> {
308
+ return fm.fetchReq<ListUsersSSHPublicKeysRequest, ListUsersSSHPublicKeysResponse>(`/v1alpha1.user.Users/ListUsersSSHPublicKeys`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
309
+ }
287
310
  }