@daocloud-proto/ghippo 0.13.2-dev-2 → 0.13.2-dev-4
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 +8 -0
- package/v1alpha1/gproductlicense.pb.ts +1 -1
- package/v1alpha1/role.pb.ts +15 -7
- package/v1alpha1/theme.pb.ts +88 -0
package/package.json
CHANGED
package/v1alpha1/audit.pb.ts
CHANGED
|
@@ -12,6 +12,11 @@ export enum StatusType {
|
|
|
12
12
|
failed = "failed",
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export enum SearchType {
|
|
16
|
+
fuzzy = "fuzzy",
|
|
17
|
+
exact = "exact",
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
export enum ExternalType {
|
|
16
21
|
loginFailed = "loginFailed",
|
|
17
22
|
forgetPassword = "forgetPassword",
|
|
@@ -25,7 +30,9 @@ export type Disposition = {
|
|
|
25
30
|
export type ListAuditRequest = {
|
|
26
31
|
sourceType?: string
|
|
27
32
|
sourceName?: string
|
|
33
|
+
clusterName?: string
|
|
28
34
|
status?: StatusType
|
|
35
|
+
searchType?: SearchType
|
|
29
36
|
searchUser?: string
|
|
30
37
|
start?: string
|
|
31
38
|
end?: string
|
|
@@ -43,6 +50,7 @@ export type AuditInfo = {
|
|
|
43
50
|
auditName?: string
|
|
44
51
|
resourceType?: string
|
|
45
52
|
resourceName?: string
|
|
53
|
+
clusterName?: string
|
|
46
54
|
status?: StatusType
|
|
47
55
|
user?: string
|
|
48
56
|
client?: string
|
|
@@ -81,7 +81,7 @@ export type GProductLicenseInfo = {
|
|
|
81
81
|
maxNode?: string
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export class
|
|
84
|
+
export class GProductLicenses {
|
|
85
85
|
static ListGProductLicenses(req: ListGProductLicensesRequest, initReq?: fm.InitReq): Promise<ListGProductLicensesResponse> {
|
|
86
86
|
return fm.fetchReq<ListGProductLicensesRequest, ListGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
87
87
|
}
|
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -15,6 +15,7 @@ export enum AuthScope {
|
|
|
15
15
|
export enum globalRoleType {
|
|
16
16
|
system = "system",
|
|
17
17
|
custom = "custom",
|
|
18
|
+
unknown = "unknown",
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export type ListAllPermissionsRequest = {
|
|
@@ -24,8 +25,13 @@ export type ListAllPermissionsResponse = {
|
|
|
24
25
|
gproductPerms?: GProductAllPermissions[]
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
export type
|
|
28
|
+
export type GProduct = {
|
|
28
29
|
gproduct?: string
|
|
30
|
+
localizedName?: {[key: string]: string}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type GProductAllPermissions = {
|
|
34
|
+
gproduct?: GProduct
|
|
29
35
|
authscopePerms?: AuthScopeAllPermissions[]
|
|
30
36
|
}
|
|
31
37
|
|
|
@@ -77,12 +83,14 @@ export type RoleInfo = {
|
|
|
77
83
|
scope?: AuthScope
|
|
78
84
|
createdAt?: string
|
|
79
85
|
updatedAt?: string
|
|
86
|
+
alias?: string
|
|
80
87
|
}
|
|
81
88
|
|
|
82
89
|
export type ListRolesRequest = {
|
|
83
90
|
search?: string
|
|
84
91
|
pageSize?: number
|
|
85
92
|
page?: number
|
|
93
|
+
roleType?: globalRoleType
|
|
86
94
|
}
|
|
87
95
|
|
|
88
96
|
export type ListRolesResponse = {
|
|
@@ -108,6 +116,7 @@ export type GetRoleResponse = {
|
|
|
108
116
|
createdAt?: string
|
|
109
117
|
updatedAt?: string
|
|
110
118
|
gproductPerms?: GProductPermissions[]
|
|
119
|
+
alias?: string
|
|
111
120
|
}
|
|
112
121
|
|
|
113
122
|
export type GProductPermissions = {
|
|
@@ -127,10 +136,11 @@ export type ResourcePermissions = {
|
|
|
127
136
|
|
|
128
137
|
export type CreateRoleRequest = {
|
|
129
138
|
name?: string
|
|
130
|
-
|
|
139
|
+
gproduct?: string
|
|
131
140
|
description?: string
|
|
132
141
|
scope?: AuthScope
|
|
133
142
|
perms?: Permission[]
|
|
143
|
+
alias?: string
|
|
134
144
|
}
|
|
135
145
|
|
|
136
146
|
export type CreateRoleResponse = {
|
|
@@ -138,10 +148,10 @@ export type CreateRoleResponse = {
|
|
|
138
148
|
|
|
139
149
|
export type UpdateRoleRequest = {
|
|
140
150
|
name?: string
|
|
141
|
-
type?: globalRoleType
|
|
142
151
|
description?: string
|
|
143
152
|
scope?: AuthScope
|
|
144
153
|
perms?: Permission[]
|
|
154
|
+
alias?: string
|
|
145
155
|
}
|
|
146
156
|
|
|
147
157
|
export type UpdateRoleResponse = {
|
|
@@ -223,10 +233,9 @@ export type ListMembersFoldersByFolderRoleResponse = {
|
|
|
223
233
|
}
|
|
224
234
|
|
|
225
235
|
export type MemberFolder = {
|
|
226
|
-
memberId?: string
|
|
227
236
|
memberName?: string
|
|
228
237
|
memberType?: string
|
|
229
|
-
folderId?:
|
|
238
|
+
folderId?: number
|
|
230
239
|
folderAlias?: string
|
|
231
240
|
}
|
|
232
241
|
|
|
@@ -243,10 +252,9 @@ export type ListMembersWorkspacesByWorkspaceRoleResponse = {
|
|
|
243
252
|
}
|
|
244
253
|
|
|
245
254
|
export type MemberWorkspace = {
|
|
246
|
-
memberId?: string
|
|
247
255
|
memberName?: string
|
|
248
256
|
memberType?: string
|
|
249
|
-
workspaceId?:
|
|
257
|
+
workspaceId?: number
|
|
250
258
|
workspaceAlias?: string
|
|
251
259
|
}
|
|
252
260
|
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
export type GetThemeCSSRequest = {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type GetThemeConfigRequest = {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type GetThemeConfigResponse = {
|
|
16
|
+
id?: string
|
|
17
|
+
name?: string
|
|
18
|
+
css?: string
|
|
19
|
+
createdAt?: string
|
|
20
|
+
updatedAt?: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type SetThemeConfigRequest = {
|
|
24
|
+
css?: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type SetThemeConfigResponse = {
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type ResetThemeConfigRequest = {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type ResetThemeConfigResponse = {
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type GetLoginThemeCSSRequest = {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type GetLoginThemeConfigRequest = {
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type GetLoginThemeConfigResponse = {
|
|
43
|
+
id?: string
|
|
44
|
+
name?: string
|
|
45
|
+
css?: string
|
|
46
|
+
createdAt?: string
|
|
47
|
+
updatedAt?: string
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type SetLoginThemeConfigRequest = {
|
|
51
|
+
css?: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type SetLoginThemeConfigResponse = {
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type ResetLoginThemeConfigRequest = {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type ResetLoginThemeConfigResponse = {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export class Theme {
|
|
64
|
+
static GetThemeCSS(req: GetThemeCSSRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
65
|
+
return fm.fetchReq<GetThemeCSSRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha1/themes/theme.css?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
66
|
+
}
|
|
67
|
+
static GetThemeConfig(req: GetThemeConfigRequest, initReq?: fm.InitReq): Promise<GetThemeConfigResponse> {
|
|
68
|
+
return fm.fetchReq<GetThemeConfigRequest, GetThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/theme?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
69
|
+
}
|
|
70
|
+
static SetThemeConfig(req: SetThemeConfigRequest, initReq?: fm.InitReq): Promise<SetThemeConfigResponse> {
|
|
71
|
+
return fm.fetchReq<SetThemeConfigRequest, SetThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/theme`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
72
|
+
}
|
|
73
|
+
static ResetThemeConfig(req: ResetThemeConfigRequest, initReq?: fm.InitReq): Promise<ResetThemeConfigResponse> {
|
|
74
|
+
return fm.fetchReq<ResetThemeConfigRequest, ResetThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/theme/reset`, {...initReq, method: "POST"})
|
|
75
|
+
}
|
|
76
|
+
static GetLoginThemeCSS(req: GetLoginThemeCSSRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
77
|
+
return fm.fetchReq<GetLoginThemeCSSRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha1/themes/login_page.css?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
78
|
+
}
|
|
79
|
+
static GetLoginThemeConfig(req: GetLoginThemeConfigRequest, initReq?: fm.InitReq): Promise<GetLoginThemeConfigResponse> {
|
|
80
|
+
return fm.fetchReq<GetLoginThemeConfigRequest, GetLoginThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/login_page?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
81
|
+
}
|
|
82
|
+
static SetLoginThemeConfig(req: SetLoginThemeConfigRequest, initReq?: fm.InitReq): Promise<SetLoginThemeConfigResponse> {
|
|
83
|
+
return fm.fetchReq<SetLoginThemeConfigRequest, SetLoginThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/login_page`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
84
|
+
}
|
|
85
|
+
static ResetLoginThemeConfig(req: ResetLoginThemeConfigRequest, initReq?: fm.InitReq): Promise<ResetLoginThemeConfigResponse> {
|
|
86
|
+
return fm.fetchReq<ResetLoginThemeConfigRequest, ResetLoginThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/login_page/reset`, {...initReq, method: "POST"})
|
|
87
|
+
}
|
|
88
|
+
}
|