@daocloud-proto/ghippo 0.16.0-dev-1 → 0.16.0-dev-2
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/batchaudit.pb.ts +19 -0
- package/v1alpha1/loginpage.pb.ts +0 -1
- package/v1alpha1/recordfiling.pb.ts +58 -0
- package/v1alpha2/audit.pb.ts +58 -0
- package/v1alpha3/audit.pb.ts +189 -0
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../fetch.pb"
|
|
8
|
+
export type BatchInsertAuditsRequest = {
|
|
9
|
+
audits?: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type BatchInsertAuditsResponse = {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class BatchAudits {
|
|
16
|
+
static BatchInsertAudits(req: BatchInsertAuditsRequest, initReq?: fm.InitReq): Promise<BatchInsertAuditsResponse> {
|
|
17
|
+
return fm.fetchReq<BatchInsertAuditsRequest, BatchInsertAuditsResponse>(`/apis/ghippo.io/v1alpha1/audits/batch`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
18
|
+
}
|
|
19
|
+
}
|
package/v1alpha1/loginpage.pb.ts
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../fetch.pb"
|
|
8
|
+
export type GetRecordFilingRequest = {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type GetRecordFilingResponse = {
|
|
12
|
+
enabled?: boolean
|
|
13
|
+
icps?: icps
|
|
14
|
+
polices?: polices
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type icps = {
|
|
18
|
+
url?: string
|
|
19
|
+
copyright?: string
|
|
20
|
+
names?: name[]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type polices = {
|
|
24
|
+
url?: string
|
|
25
|
+
names?: name[]
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type name = {
|
|
29
|
+
name?: string
|
|
30
|
+
link?: boolean
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type UpdateRecordFilingRequest = {
|
|
34
|
+
enabled?: boolean
|
|
35
|
+
icps?: icps
|
|
36
|
+
polices?: polices
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type UpdateRecordFilingResponse = {
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type ResetRecordFilingRequest = {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type ResetRecordFilingResponse = {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class RecordFiling {
|
|
49
|
+
static GetRecordFiling(req: GetRecordFilingRequest, initReq?: fm.InitReq): Promise<GetRecordFilingResponse> {
|
|
50
|
+
return fm.fetchReq<GetRecordFilingRequest, GetRecordFilingResponse>(`/apis/ghippo.io/v1alpha1/record_filing?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
51
|
+
}
|
|
52
|
+
static UpdateRecordFiling(req: UpdateRecordFilingRequest, initReq?: fm.InitReq): Promise<UpdateRecordFilingResponse> {
|
|
53
|
+
return fm.fetchReq<UpdateRecordFilingRequest, UpdateRecordFilingResponse>(`/apis/ghippo.io/v1alpha1/record_filing`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
54
|
+
}
|
|
55
|
+
static ResetRecordFiling(req: ResetRecordFilingRequest, initReq?: fm.InitReq): Promise<ResetRecordFilingResponse> {
|
|
56
|
+
return fm.fetchReq<ResetRecordFilingRequest, ResetRecordFilingResponse>(`/apis/ghippo.io/v1alpha1/record_filing/reset`, {...initReq, method: "POST"})
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../fetch.pb"
|
|
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
|
+
|
|
21
|
+
export type ExportAuditRequest = {
|
|
22
|
+
start?: string
|
|
23
|
+
end?: string
|
|
24
|
+
sourceType?: string
|
|
25
|
+
sourceName?: string
|
|
26
|
+
clusterName?: string
|
|
27
|
+
status?: StatusType
|
|
28
|
+
searchType?: SearchType
|
|
29
|
+
searchUser?: string
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type ClearAuditsRequest = {
|
|
33
|
+
isKube?: boolean
|
|
34
|
+
days?: number
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type ClearAuditsResponse = {
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type SetAutoClearAuditsRequest = {
|
|
41
|
+
isKube?: boolean
|
|
42
|
+
days?: number
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type SetAutoClearAuditsResponse = {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class AuditV1alpha2 {
|
|
49
|
+
static ClearAudits(req: ClearAuditsRequest, initReq?: fm.InitReq): Promise<ClearAuditsResponse> {
|
|
50
|
+
return fm.fetchReq<ClearAuditsRequest, ClearAuditsResponse>(`/apis/ghippo.io/v1alpha2/audits/clear`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
51
|
+
}
|
|
52
|
+
static SetAutoClearAudits(req: SetAutoClearAuditsRequest, initReq?: fm.InitReq): Promise<SetAutoClearAuditsResponse> {
|
|
53
|
+
return fm.fetchReq<SetAutoClearAuditsRequest, SetAutoClearAuditsResponse>(`/apis/ghippo.io/v1alpha2/audits/clear`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
54
|
+
}
|
|
55
|
+
static ExportAudit(req: ExportAuditRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
56
|
+
return fm.fetchReq<ExportAuditRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha2/audits/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../fetch.pb"
|
|
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
|
+
|
|
21
|
+
export type ListKubeAuditsResponse = {
|
|
22
|
+
items?: KubeAuditInfo[]
|
|
23
|
+
pagination?: Pagination
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type KubeAuditInfo = {
|
|
27
|
+
id?: string
|
|
28
|
+
auditName?: string
|
|
29
|
+
resourceType?: string
|
|
30
|
+
resourceName?: string
|
|
31
|
+
clusterName?: string
|
|
32
|
+
status?: StatusType
|
|
33
|
+
user?: string
|
|
34
|
+
client?: string
|
|
35
|
+
ip?: string
|
|
36
|
+
createdAt?: string
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type ListKubeAuditsRequest = {
|
|
40
|
+
sourceType?: string
|
|
41
|
+
sourceName?: string
|
|
42
|
+
clusterName?: string
|
|
43
|
+
status?: StatusType
|
|
44
|
+
searchType?: SearchType
|
|
45
|
+
searchUser?: string
|
|
46
|
+
start?: string
|
|
47
|
+
end?: string
|
|
48
|
+
page?: number
|
|
49
|
+
pageSize?: number
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type AuditInfo = {
|
|
53
|
+
id?: string
|
|
54
|
+
auditName?: string
|
|
55
|
+
resourceType?: string
|
|
56
|
+
resourceName?: string
|
|
57
|
+
clusterName?: string
|
|
58
|
+
gproduct?: string
|
|
59
|
+
status?: StatusType
|
|
60
|
+
user?: string
|
|
61
|
+
client?: string
|
|
62
|
+
ip?: string
|
|
63
|
+
createdAt?: string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type ListAuditsRequest = {
|
|
67
|
+
sourceType?: string
|
|
68
|
+
sourceName?: string
|
|
69
|
+
clusterName?: string
|
|
70
|
+
status?: StatusType
|
|
71
|
+
searchType?: SearchType
|
|
72
|
+
searchUser?: string
|
|
73
|
+
gproduct?: string
|
|
74
|
+
start?: string
|
|
75
|
+
end?: string
|
|
76
|
+
page?: number
|
|
77
|
+
pageSize?: number
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type ListAuditsResponse = {
|
|
81
|
+
items?: AuditInfo[]
|
|
82
|
+
pagination?: Pagination
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type GetAuditDetailRequest = {
|
|
86
|
+
id?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type GetAuditDetailResponse = {
|
|
90
|
+
audit?: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type Pagination = {
|
|
94
|
+
total?: number
|
|
95
|
+
page?: number
|
|
96
|
+
pageSize?: number
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type GetKubeAuditDetailRequest = {
|
|
100
|
+
id?: string
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type GetKubeAuditDetailResponse = {
|
|
104
|
+
audit?: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type ExportKubeAuditsRequest = {
|
|
108
|
+
start?: string
|
|
109
|
+
end?: string
|
|
110
|
+
sourceType?: string
|
|
111
|
+
sourceName?: string
|
|
112
|
+
clusterName?: string
|
|
113
|
+
status?: StatusType
|
|
114
|
+
searchType?: SearchType
|
|
115
|
+
searchUser?: string
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export type ExportAuditsRequest = {
|
|
119
|
+
start?: string
|
|
120
|
+
end?: string
|
|
121
|
+
sourceType?: string
|
|
122
|
+
sourceName?: string
|
|
123
|
+
clusterName?: string
|
|
124
|
+
gproduct?: string
|
|
125
|
+
status?: StatusType
|
|
126
|
+
searchType?: SearchType
|
|
127
|
+
searchUser?: string
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type ClearAuditsNowRequest = {
|
|
131
|
+
days?: number
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type ClearAuditsNowResponse = {
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type SetAutoClearAuditSettingRequest = {
|
|
138
|
+
days?: number
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type SetAutoClearAuditSettingResponse = {
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type ClearKubeAuditsNowRequest = {
|
|
145
|
+
days?: number
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export type ClearKubeAuditsNowResponse = {
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type SetAutoClearKubeAuditSettingRequest = {
|
|
152
|
+
days?: number
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export type SetAutoClearKubeAuditSettingResponse = {
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export class AuditV1alpha3 {
|
|
159
|
+
static ListAudits(req: ListAuditsRequest, initReq?: fm.InitReq): Promise<ListAuditsResponse> {
|
|
160
|
+
return fm.fetchReq<ListAuditsRequest, ListAuditsResponse>(`/apis/ghippo.io/v1alpha2/audits?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
161
|
+
}
|
|
162
|
+
static GetAuditDetail(req: GetAuditDetailRequest, initReq?: fm.InitReq): Promise<GetAuditDetailResponse> {
|
|
163
|
+
return fm.fetchReq<GetAuditDetailRequest, GetAuditDetailResponse>(`/apis/ghippo.io/v1alpha2/audits/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
164
|
+
}
|
|
165
|
+
static ListKubeAudits(req: ListKubeAuditsRequest, initReq?: fm.InitReq): Promise<ListKubeAuditsResponse> {
|
|
166
|
+
return fm.fetchReq<ListKubeAuditsRequest, ListKubeAuditsResponse>(`/apis/ghippo.io/v1alpha2/audits/kube?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
167
|
+
}
|
|
168
|
+
static GetKubeAuditDetail(req: GetKubeAuditDetailRequest, initReq?: fm.InitReq): Promise<GetKubeAuditDetailResponse> {
|
|
169
|
+
return fm.fetchReq<GetKubeAuditDetailRequest, GetKubeAuditDetailResponse>(`/apis/ghippo.io/v1alpha2/audits/kube/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
170
|
+
}
|
|
171
|
+
static ExportKubeAudits(req: ExportKubeAuditsRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
172
|
+
return fm.fetchReq<ExportKubeAuditsRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha3/audits/kube/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
173
|
+
}
|
|
174
|
+
static ExportAudits(req: ExportAuditsRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
175
|
+
return fm.fetchReq<ExportAuditsRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha3/audits/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
176
|
+
}
|
|
177
|
+
static ClearKubeAuditsNow(req: ClearKubeAuditsNowRequest, initReq?: fm.InitReq): Promise<ClearKubeAuditsNowResponse> {
|
|
178
|
+
return fm.fetchReq<ClearKubeAuditsNowRequest, ClearKubeAuditsNowResponse>(`/apis/ghippo.io/v1alpha3/audits/kube/Clear`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
179
|
+
}
|
|
180
|
+
static SetAutoClearKubeAuditSetting(req: SetAutoClearKubeAuditSettingRequest, initReq?: fm.InitReq): Promise<SetAutoClearKubeAuditSettingResponse> {
|
|
181
|
+
return fm.fetchReq<SetAutoClearKubeAuditSettingRequest, SetAutoClearKubeAuditSettingResponse>(`/apis/ghippo.io/v1alpha3/audits/set-auto-clear/kube`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
182
|
+
}
|
|
183
|
+
static ClearAuditsNow(req: ClearAuditsNowRequest, initReq?: fm.InitReq): Promise<ClearAuditsNowResponse> {
|
|
184
|
+
return fm.fetchReq<ClearAuditsNowRequest, ClearAuditsNowResponse>(`/apis/ghippo.io/v1alpha3/audits/clear`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
185
|
+
}
|
|
186
|
+
static SetAutoClearAuditSetting(req: SetAutoClearAuditSettingRequest, initReq?: fm.InitReq): Promise<SetAutoClearAuditSettingResponse> {
|
|
187
|
+
return fm.fetchReq<SetAutoClearAuditSettingRequest, SetAutoClearAuditSettingResponse>(`/apis/ghippo.io/v1alpha3/audits/set-auto-clear`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
188
|
+
}
|
|
189
|
+
}
|