@daocloud-proto/ghippo 0.12.0-dev-1 → 0.12.0-rc-1
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 +18 -0
package/package.json
CHANGED
package/v1alpha1/audit.pb.ts
CHANGED
|
@@ -12,6 +12,12 @@ export enum StatusType {
|
|
|
12
12
|
failed = "failed",
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export enum ExternalType {
|
|
16
|
+
loginFailed = "loginFailed",
|
|
17
|
+
forgetPassword = "forgetPassword",
|
|
18
|
+
resetPassword = "resetPassword",
|
|
19
|
+
}
|
|
20
|
+
|
|
15
21
|
export type Disposition = {
|
|
16
22
|
contentDisposition?: string
|
|
17
23
|
}
|
|
@@ -99,6 +105,15 @@ export type GetLimitRangeTimeResponse = {
|
|
|
99
105
|
day?: number
|
|
100
106
|
}
|
|
101
107
|
|
|
108
|
+
export type ExternalAuditRequest = {
|
|
109
|
+
externalType?: ExternalType
|
|
110
|
+
resourceName?: string
|
|
111
|
+
code?: number
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type ExternalAuditResponse = {
|
|
115
|
+
}
|
|
116
|
+
|
|
102
117
|
export class Audit {
|
|
103
118
|
static ListAudit(req: ListAuditRequest, initReq?: fm.InitReq): Promise<ListAuditResponse> {
|
|
104
119
|
return fm.fetchReq<ListAuditRequest, ListAuditResponse>(`/apis/ghippo.io/v1alpha1/audits?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -118,4 +133,7 @@ export class Audit {
|
|
|
118
133
|
static GetLimitRangeTime(req: GetLimitRangeTimeRequest, initReq?: fm.InitReq): Promise<GetLimitRangeTimeResponse> {
|
|
119
134
|
return fm.fetchReq<GetLimitRangeTimeRequest, GetLimitRangeTimeResponse>(`/apis/ghippo.io/v1alpha1/audits/limit-range?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
120
135
|
}
|
|
136
|
+
static ExternalAudit(req: ExternalAuditRequest, initReq?: fm.InitReq): Promise<ExternalAuditResponse> {
|
|
137
|
+
return fm.fetchReq<ExternalAuditRequest, ExternalAuditResponse>(`/apis/ghippo.io/v1alpha1/audits/external?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
138
|
+
}
|
|
121
139
|
}
|