@daocloud-proto/ghippo 0.6.23 → 0.6.26
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/group.pb.ts +4 -4
- package/v1alpha1/role.pb.ts +23 -0
- package/v1alpha1/securitypolicy.pb.ts +34 -0
- package/v1alpha1/user.pb.ts +11 -11
- package/v1alpha1/workspace.pb.ts +44 -0
package/package.json
CHANGED
package/v1alpha1/group.pb.ts
CHANGED
|
@@ -53,13 +53,13 @@ export type DeleteGroupResponse = {
|
|
|
53
53
|
export type GroupMembersRequest = {
|
|
54
54
|
id?: string
|
|
55
55
|
search?: string
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
page?: number
|
|
57
|
+
page_size?: number
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export type GroupMembersResponse = {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
pagination?: Pagination
|
|
62
|
+
items?: User[]
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export type User = {
|
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -35,6 +35,7 @@ export type ListGlobalRolesRequest = {
|
|
|
35
35
|
|
|
36
36
|
export type ListGlobalRolesResponse = {
|
|
37
37
|
items?: GlobalRoleInfo[]
|
|
38
|
+
pagination?: Pagination
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
export type WorkspaceRoleInfo = {
|
|
@@ -57,6 +58,22 @@ export type ListWorkspaceRolesResponse = {
|
|
|
57
58
|
pagination?: Pagination
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
export type GetGlobalRoleRequest = {
|
|
62
|
+
id?: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type GetGlobalRoleResponse = {
|
|
66
|
+
role?: GlobalRoleInfo
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type UpdateGlobalRoleRequest = {
|
|
70
|
+
id?: string
|
|
71
|
+
description?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type UpdateGlobalRoleResponse = {
|
|
75
|
+
}
|
|
76
|
+
|
|
60
77
|
export type ListGlobalRoleSubjectsRequest = {
|
|
61
78
|
page?: number
|
|
62
79
|
page_size?: number
|
|
@@ -83,6 +100,12 @@ export class Role {
|
|
|
83
100
|
static ListWorkspaceRoles(req: ListWorkspaceRolesRequest, initReq?: fm.InitReq): Promise<ListWorkspaceRolesResponse> {
|
|
84
101
|
return fm.fetchReq<ListWorkspaceRolesRequest, ListWorkspaceRolesResponse>(`/apis/ghippo.io/v1alpha1/workspaceroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
85
102
|
}
|
|
103
|
+
static GetGlobalRole(req: GetGlobalRoleRequest, initReq?: fm.InitReq): Promise<GetGlobalRoleResponse> {
|
|
104
|
+
return fm.fetchReq<GetGlobalRoleRequest, GetGlobalRoleResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
105
|
+
}
|
|
106
|
+
static UpdateGlobalRole(req: UpdateGlobalRoleRequest, initReq?: fm.InitReq): Promise<UpdateGlobalRoleResponse> {
|
|
107
|
+
return fm.fetchReq<UpdateGlobalRoleRequest, UpdateGlobalRoleResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
108
|
+
}
|
|
86
109
|
static ListGlobalRoleSubjects(req: ListGlobalRoleSubjectsRequest, initReq?: fm.InitReq): Promise<ListGlobalRoleSubjectsResponse> {
|
|
87
110
|
return fm.fetchReq<ListGlobalRoleSubjectsRequest, ListGlobalRoleSubjectsResponse>(`/apis/ghippo.io/v1alpha1/globalroles/${req["id"]}/subjects?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
88
111
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 PasswordPolicyInfo = {
|
|
9
|
+
type?: string
|
|
10
|
+
value?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type GetPasswordPolicyRequest = {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type GetPasswordPolicyResponse = {
|
|
17
|
+
items?: PasswordPolicyInfo[]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type SetPasswordPolicyRequest = {
|
|
21
|
+
items?: PasswordPolicyInfo[]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type SetPasswordPolicyResponse = {
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class SecurityPolicy {
|
|
28
|
+
static GetPasswordPolicy(req: GetPasswordPolicyRequest, initReq?: fm.InitReq): Promise<GetPasswordPolicyResponse> {
|
|
29
|
+
return fm.fetchReq<GetPasswordPolicyRequest, GetPasswordPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/password?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
30
|
+
}
|
|
31
|
+
static SetPasswordPolicy(req: SetPasswordPolicyRequest, initReq?: fm.InitReq): Promise<SetPasswordPolicyResponse> {
|
|
32
|
+
return fm.fetchReq<SetPasswordPolicyRequest, SetPasswordPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/password`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
33
|
+
}
|
|
34
|
+
}
|
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -94,26 +94,26 @@ export type Group = {
|
|
|
94
94
|
export type ListUserGroupsRequest = {
|
|
95
95
|
id?: string
|
|
96
96
|
search?: string
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
page?: number
|
|
98
|
+
page_size?: number
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export type ListUserGroupsResponse = {
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
pagination?: Pagination
|
|
103
|
+
items?: Group[]
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
export type ListUserRolesRequest = {
|
|
107
107
|
id?: string
|
|
108
108
|
search?: string
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
page?: number
|
|
110
|
+
page_size?: number
|
|
111
111
|
type?: string
|
|
112
112
|
authorized?: boolean
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
export type ListUserRolesResponse = {
|
|
116
|
-
|
|
116
|
+
pagination?: Pagination
|
|
117
117
|
authorized_count?: number
|
|
118
118
|
roles?: RoleInfo[]
|
|
119
119
|
}
|
|
@@ -132,13 +132,13 @@ export type RoleInfo = {
|
|
|
132
132
|
export type ListUserSubjectRequest = {
|
|
133
133
|
id?: string
|
|
134
134
|
search?: string
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
page?: number
|
|
136
|
+
page_size?: number
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export type ListUserSubjectResponse = {
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
pagination?: Pagination
|
|
141
|
+
items?: UserSubject[]
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
export type UserSubject = {
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -210,6 +210,44 @@ export type ListMembersRolesResourcesResponse = {
|
|
|
210
210
|
pagination?: Pagination
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
export type ProductSubResourceInfo = {
|
|
214
|
+
type?: string
|
|
215
|
+
names?: string[]
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export type ProductResourceInfo = {
|
|
219
|
+
name?: string
|
|
220
|
+
type?: string
|
|
221
|
+
gproduct?: string
|
|
222
|
+
subresource?: ProductSubResourceInfo
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export type ListProductResourcesRequest = {
|
|
226
|
+
page?: number
|
|
227
|
+
page_size?: number
|
|
228
|
+
name?: string
|
|
229
|
+
parent?: boolean
|
|
230
|
+
type?: string
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export type ListProductResourcesResponse = {
|
|
234
|
+
items?: ProductResourceInfo[]
|
|
235
|
+
pagination?: Pagination
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type ProductResourceType = {
|
|
239
|
+
parent?: boolean
|
|
240
|
+
name?: string
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type ListProductResourceTypesRequest = {
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export type ListProductResourceTypesResponse = {
|
|
247
|
+
items?: ProductResourceType[]
|
|
248
|
+
pagination?: Pagination
|
|
249
|
+
}
|
|
250
|
+
|
|
213
251
|
export class Workspace {
|
|
214
252
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
215
253
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -262,4 +300,10 @@ export class Workspace {
|
|
|
262
300
|
static ListMembersRolesResources(req: ListMembersRolesResourcesRequest, initReq?: fm.InitReq): Promise<ListMembersRolesResourcesResponse> {
|
|
263
301
|
return fm.fetchReq<ListMembersRolesResourcesRequest, ListMembersRolesResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources/members-roles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
264
302
|
}
|
|
303
|
+
static ListProductResources(req: ListProductResourcesRequest, initReq?: fm.InitReq): Promise<ListProductResourcesResponse> {
|
|
304
|
+
return fm.fetchReq<ListProductResourcesRequest, ListProductResourcesResponse>(`/apis/ghippo.io/v1alpha1/product-resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
305
|
+
}
|
|
306
|
+
static ListProductResourceTypes(req: ListProductResourceTypesRequest, initReq?: fm.InitReq): Promise<ListProductResourceTypesResponse> {
|
|
307
|
+
return fm.fetchReq<ListProductResourceTypesRequest, ListProductResourceTypesResponse>(`/apis/ghippo.io/v1alpha1/product-resource-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
308
|
+
}
|
|
265
309
|
}
|