@daocloud-proto/ghippo 0.17.0-dev-1 → 0.17.0-dev-3
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 +12 -1
- package/v1alpha3/audit.pb.ts +32 -0
package/package.json
CHANGED
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -27,7 +27,15 @@ export type CheckUserRequest = {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export type CheckUserResponse = {
|
|
30
|
-
|
|
30
|
+
existed?: boolean
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type CheckUserEmailRequest = {
|
|
34
|
+
username?: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type CheckUserEmailResponse = {
|
|
38
|
+
existed?: boolean
|
|
31
39
|
}
|
|
32
40
|
|
|
33
41
|
export type GetUserRequest = {
|
|
@@ -198,6 +206,9 @@ export class Users {
|
|
|
198
206
|
static CheckUser(req: CheckUserRequest, initReq?: fm.InitReq): Promise<CheckUserResponse> {
|
|
199
207
|
return fm.fetchReq<CheckUserRequest, CheckUserResponse>(`/apis/ghippo.io/v1alpha1/users/check/${req["username"]}?${fm.renderURLSearchParams(req, ["username"])}`, {...initReq, method: "GET"})
|
|
200
208
|
}
|
|
209
|
+
static CheckUserEmail(req: CheckUserEmailRequest, initReq?: fm.InitReq): Promise<CheckUserEmailResponse> {
|
|
210
|
+
return fm.fetchReq<CheckUserEmailRequest, CheckUserEmailResponse>(`/apis/ghippo.io/v1alpha1/users/check-user-email/${req["username"]}?${fm.renderURLSearchParams(req, ["username"])}`, {...initReq, method: "GET"})
|
|
211
|
+
}
|
|
201
212
|
static GetUser(req: GetUserRequest, initReq?: fm.InitReq): Promise<GetUserResponse> {
|
|
202
213
|
return fm.fetchReq<GetUserRequest, GetUserResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
203
214
|
}
|
package/v1alpha3/audit.pb.ts
CHANGED
|
@@ -7,6 +7,24 @@
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
import * as GoogleApiHttpbody from "../google/api/httpbody.pb"
|
|
9
9
|
|
|
10
|
+
export enum ExportTypes {
|
|
11
|
+
Csv = "Csv",
|
|
12
|
+
Excel = "Excel",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum RequestMethod {
|
|
16
|
+
GET = "GET",
|
|
17
|
+
POST = "POST",
|
|
18
|
+
PUT = "PUT",
|
|
19
|
+
DELETE = "DELETE",
|
|
20
|
+
PATCH = "PATCH",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum Modules {
|
|
24
|
+
audit = "audit",
|
|
25
|
+
kube_audit = "kube_audit",
|
|
26
|
+
}
|
|
27
|
+
|
|
10
28
|
export enum StatusType {
|
|
11
29
|
all = "all",
|
|
12
30
|
succeeded = "succeeded",
|
|
@@ -113,6 +131,7 @@ export type ExportKubeAuditsRequest = {
|
|
|
113
131
|
status?: StatusType
|
|
114
132
|
searchType?: SearchType
|
|
115
133
|
searchUser?: string
|
|
134
|
+
exportType?: ExportTypes
|
|
116
135
|
}
|
|
117
136
|
|
|
118
137
|
export type ExportAuditsRequest = {
|
|
@@ -125,6 +144,7 @@ export type ExportAuditsRequest = {
|
|
|
125
144
|
status?: StatusType
|
|
126
145
|
searchType?: SearchType
|
|
127
146
|
searchUser?: string
|
|
147
|
+
exportType?: ExportTypes
|
|
128
148
|
}
|
|
129
149
|
|
|
130
150
|
export type ClearAuditsNowRequest = {
|
|
@@ -155,6 +175,15 @@ export type SetAutoClearKubeAuditSettingRequest = {
|
|
|
155
175
|
export type SetAutoClearKubeAuditSettingResponse = {
|
|
156
176
|
}
|
|
157
177
|
|
|
178
|
+
export type GetExportURIRequest = {
|
|
179
|
+
module?: Modules
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type GetExportURIResponse = {
|
|
183
|
+
uri?: string
|
|
184
|
+
method?: RequestMethod
|
|
185
|
+
}
|
|
186
|
+
|
|
158
187
|
export class AuditV1alpha3 {
|
|
159
188
|
static ListAudits(req: ListAuditsRequest, initReq?: fm.InitReq): Promise<ListAuditsResponse> {
|
|
160
189
|
return fm.fetchReq<ListAuditsRequest, ListAuditsResponse>(`/apis/ghippo.io/v1alpha3/audits?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -186,4 +215,7 @@ export class AuditV1alpha3 {
|
|
|
186
215
|
static SetAutoClearAuditSetting(req: SetAutoClearAuditSettingRequest, initReq?: fm.InitReq): Promise<SetAutoClearAuditSettingResponse> {
|
|
187
216
|
return fm.fetchReq<SetAutoClearAuditSettingRequest, SetAutoClearAuditSettingResponse>(`/apis/ghippo.io/v1alpha3/audits/set-auto-clear`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
188
217
|
}
|
|
218
|
+
static GetExportURI(req: GetExportURIRequest, initReq?: fm.InitReq): Promise<GetExportURIResponse> {
|
|
219
|
+
return fm.fetchReq<GetExportURIRequest, GetExportURIResponse>(`/apis/ghippo.io/v1alpha3/audits/export/uri?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
220
|
+
}
|
|
189
221
|
}
|