@daocloud-proto/ghippo 0.15.0-dev-16 → 0.15.0-dev-18
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/audit.pb.ts +0 -25
- package/v1alpha1/role.pb.ts +0 -5
- package/v1alpha2/auditv2.pb.ts +18 -0
package/package.json
CHANGED
package/v1alpha1/audit.pb.ts
CHANGED
|
@@ -72,15 +72,6 @@ export type GetAuditResponse = {
|
|
|
72
72
|
audit?: string
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export type ClearAuditRequest = {
|
|
76
|
-
isKube?: boolean
|
|
77
|
-
isAuto?: boolean
|
|
78
|
-
days?: number
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export type ClearAuditResponse = {
|
|
82
|
-
}
|
|
83
|
-
|
|
84
75
|
export type CreateAuditRequest = {
|
|
85
76
|
audit?: AuditInfo
|
|
86
77
|
}
|
|
@@ -88,16 +79,6 @@ export type CreateAuditRequest = {
|
|
|
88
79
|
export type CreateAuditResponse = {
|
|
89
80
|
}
|
|
90
81
|
|
|
91
|
-
export type ExportAuditUrlRequest = {
|
|
92
|
-
start?: string
|
|
93
|
-
end?: string
|
|
94
|
-
sort?: string
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export type ExportAuditUrlResponse = {
|
|
98
|
-
url?: string
|
|
99
|
-
}
|
|
100
|
-
|
|
101
82
|
export type GetAutoClearAuditTimeRequest = {
|
|
102
83
|
}
|
|
103
84
|
|
|
@@ -160,12 +141,6 @@ export class Audit {
|
|
|
160
141
|
static GetAudit(req: GetAuditRequest, initReq?: fm.InitReq): Promise<GetAuditResponse> {
|
|
161
142
|
return fm.fetchReq<GetAuditRequest, GetAuditResponse>(`/apis/ghippo.io/v1alpha1/audits/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
162
143
|
}
|
|
163
|
-
static ClearAudit(req: ClearAuditRequest, initReq?: fm.InitReq): Promise<ClearAuditResponse> {
|
|
164
|
-
return fm.fetchReq<ClearAuditRequest, ClearAuditResponse>(`/apis/ghippo.io/v1alpha1/audits/clear`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
165
|
-
}
|
|
166
|
-
static ExportAuditUrl(req: ExportAuditUrlRequest, initReq?: fm.InitReq): Promise<ExportAuditUrlResponse> {
|
|
167
|
-
return fm.fetchReq<ExportAuditUrlRequest, ExportAuditUrlResponse>(`/apis/ghippo.io/v1alpha1/audits/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
168
|
-
}
|
|
169
144
|
static GetAutoClearAuditTime(req: GetAutoClearAuditTimeRequest, initReq?: fm.InitReq): Promise<GetAutoClearAuditTimeResponse> {
|
|
170
145
|
return fm.fetchReq<GetAutoClearAuditTimeRequest, GetAutoClearAuditTimeResponse>(`/apis/ghippo.io/v1alpha1/audits/clear?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
171
146
|
}
|
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -95,7 +95,6 @@ export type RoleInfo = {
|
|
|
95
95
|
scope?: AuthScope
|
|
96
96
|
createdAt?: string
|
|
97
97
|
updatedAt?: string
|
|
98
|
-
alias?: string
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
export type ListRolesRequest = {
|
|
@@ -129,7 +128,6 @@ export type GetRoleResponse = {
|
|
|
129
128
|
createdAt?: string
|
|
130
129
|
updatedAt?: string
|
|
131
130
|
gproductPerms?: GProductPermissions[]
|
|
132
|
-
alias?: string
|
|
133
131
|
}
|
|
134
132
|
|
|
135
133
|
export type GProductPermissions = {
|
|
@@ -149,11 +147,9 @@ export type ResourcePermissions = {
|
|
|
149
147
|
|
|
150
148
|
export type CreateRoleRequest = {
|
|
151
149
|
name?: string
|
|
152
|
-
gproduct?: string
|
|
153
150
|
description?: string
|
|
154
151
|
scope?: AuthScope
|
|
155
152
|
perms?: Permission[]
|
|
156
|
-
alias?: string
|
|
157
153
|
}
|
|
158
154
|
|
|
159
155
|
export type CreateRoleResponse = {
|
|
@@ -163,7 +159,6 @@ export type UpdateRoleRequest = {
|
|
|
163
159
|
name?: string
|
|
164
160
|
description?: string
|
|
165
161
|
perms?: Permission[]
|
|
166
|
-
alias?: string
|
|
167
162
|
}
|
|
168
163
|
|
|
169
164
|
export type UpdateRoleResponse = {
|
package/v1alpha2/auditv2.pb.ts
CHANGED
|
@@ -6,9 +6,27 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
import * as GoogleApiHttpbody from "../google/api/httpbody.pb"
|
|
9
|
+
|
|
10
|
+
export enum StatusType {
|
|
11
|
+
all = "all",
|
|
12
|
+
succeeded = "succeeded",
|
|
13
|
+
failed = "failed",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export enum SearchType {
|
|
17
|
+
fuzzy = "fuzzy",
|
|
18
|
+
exact = "exact",
|
|
19
|
+
}
|
|
20
|
+
|
|
9
21
|
export type ExportAuditRequest = {
|
|
10
22
|
start?: string
|
|
11
23
|
end?: string
|
|
24
|
+
sourceType?: string
|
|
25
|
+
sourceName?: string
|
|
26
|
+
clusterName?: string
|
|
27
|
+
status?: StatusType
|
|
28
|
+
searchType?: SearchType
|
|
29
|
+
searchUser?: string
|
|
12
30
|
}
|
|
13
31
|
|
|
14
32
|
export type ClearAuditsRequest = {
|