@daocloud-proto/ghippo 0.42.0-dev6 → 0.42.0-dev7
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 +31 -0
package/package.json
CHANGED
package/v1alpha1/audit.pb.ts
CHANGED
|
@@ -29,6 +29,34 @@ export type Pagination = {
|
|
|
29
29
|
pageSize?: number
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
export type ListCSPAuditsRequest = {
|
|
33
|
+
accountName?: string
|
|
34
|
+
start?: string
|
|
35
|
+
end?: string
|
|
36
|
+
gproduct?: string
|
|
37
|
+
resourceType?: string
|
|
38
|
+
resourceName?: string
|
|
39
|
+
verb?: string
|
|
40
|
+
page?: number
|
|
41
|
+
pageSize?: number
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type ListCSPAuditsResponse = {
|
|
45
|
+
items?: CSPAuditInfo[]
|
|
46
|
+
pagination?: Pagination
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type CSPAuditInfo = {
|
|
50
|
+
createdAt?: string
|
|
51
|
+
resourceType?: string
|
|
52
|
+
resourceName?: string
|
|
53
|
+
gproduct?: string
|
|
54
|
+
verb?: string
|
|
55
|
+
operator?: string
|
|
56
|
+
ip?: string
|
|
57
|
+
status?: StatusType
|
|
58
|
+
}
|
|
59
|
+
|
|
32
60
|
export type GetAutoClearAuditTimeRequest = {
|
|
33
61
|
}
|
|
34
62
|
|
|
@@ -100,4 +128,7 @@ export class Audit {
|
|
|
100
128
|
static GetAuditResourceReport(req: GetAuditResourceReportRequest, initReq?: fm.InitReq): Promise<GetAuditResourceReportResponse> {
|
|
101
129
|
return fm.fetchReq<GetAuditResourceReportRequest, GetAuditResourceReportResponse>(`/apis/ghippo.io/v1alpha1/audits/reports/resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
102
130
|
}
|
|
131
|
+
static ListCSPAudits(req: ListCSPAuditsRequest, initReq?: fm.InitReq): Promise<ListCSPAuditsResponse> {
|
|
132
|
+
return fm.fetchReq<ListCSPAuditsRequest, ListCSPAuditsResponse>(`/apis/ghippo.io/v1alpha1/csp-audits?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
133
|
+
}
|
|
103
134
|
}
|