@daocloud-proto/ghippo 0.34.0-dev2 → 0.34.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.34.0-dev2",
3
+ "version":"0.34.0-rc1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -226,6 +226,27 @@ 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
+ enabled?: boolean
248
+ }
249
+
229
250
  export class Users {
230
251
  static ListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
231
252
  return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/ghippo.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -284,4 +305,7 @@ export class Users {
284
305
  static VerifyUserSSHPublicKey(req: VerifyUserSSHPublicKeyRequest, initReq?: fm.InitReq): Promise<VerifyUserSSHPublicKeyResponse> {
285
306
  return fm.fetchReq<VerifyUserSSHPublicKeyRequest, VerifyUserSSHPublicKeyResponse>(`/apis/ghippo.io/v1alpha1/users/${req["username"]}/sshkeys/verify`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
286
307
  }
308
+ static ListUsersSSHPublicKeys(req: ListUsersSSHPublicKeysRequest, initReq?: fm.InitReq): Promise<ListUsersSSHPublicKeysResponse> {
309
+ return fm.fetchReq<ListUsersSSHPublicKeysRequest, ListUsersSSHPublicKeysResponse>(`/v1alpha1.user.Users/ListUsersSSHPublicKeys`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
310
+ }
287
311
  }
@@ -55,6 +55,7 @@ export type KubeAuditInfo = {
55
55
  }
56
56
 
57
57
  export type ListKubeAuditsRequest = {
58
+ auditName?: string
58
59
  sourceType?: string
59
60
  sourceName?: string
60
61
  clusterName?: string
@@ -82,6 +83,7 @@ export type AuditInfo = {
82
83
  }
83
84
 
84
85
  export type ListAuditsRequest = {
86
+ auditName?: string
85
87
  sourceType?: string
86
88
  sourceName?: string
87
89
  clusterName?: string
@@ -125,6 +127,7 @@ export type GetKubeAuditDetailResponse = {
125
127
  export type ExportKubeAuditsRequest = {
126
128
  start?: string
127
129
  end?: string
130
+ auditName?: string
128
131
  sourceType?: string
129
132
  sourceName?: string
130
133
  clusterName?: string
@@ -137,6 +140,7 @@ export type ExportKubeAuditsRequest = {
137
140
  export type ExportAuditsRequest = {
138
141
  start?: string
139
142
  end?: string
143
+ auditName?: string
140
144
  sourceType?: string
141
145
  sourceName?: string
142
146
  clusterName?: string