@daocloud-proto/ghippo 0.6.18 → 0.6.21
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/about.pb.ts +10 -1
- package/v1alpha1/role.pb.ts +42 -42
- package/v1alpha1/user.pb.ts +11 -0
- package/v1alpha1/workspace.pb.ts +4 -1
package/package.json
CHANGED
package/v1alpha1/about.pb.ts
CHANGED
|
@@ -18,10 +18,13 @@ export type Developer = {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type ListOpenSourcesRequest = {
|
|
21
|
+
page?: number
|
|
22
|
+
page_size?: number
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
export type ListOpenSourcesResponse = {
|
|
24
|
-
|
|
26
|
+
items?: OpenSource[]
|
|
27
|
+
pagination?: Pagination
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
export type OpenSource = {
|
|
@@ -29,6 +32,12 @@ export type OpenSource = {
|
|
|
29
32
|
license?: string
|
|
30
33
|
}
|
|
31
34
|
|
|
35
|
+
export type Pagination = {
|
|
36
|
+
total?: number
|
|
37
|
+
page?: number
|
|
38
|
+
page_size?: number
|
|
39
|
+
}
|
|
40
|
+
|
|
32
41
|
export type ListGProductVersionsRequest = {
|
|
33
42
|
}
|
|
34
43
|
|
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -6,29 +6,29 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
|
|
9
|
-
export enum
|
|
9
|
+
export enum globalRoleType {
|
|
10
10
|
system = "system",
|
|
11
11
|
custom = "custom",
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export type
|
|
14
|
+
export type GlobalRoleInfo = {
|
|
15
15
|
id?: string
|
|
16
16
|
name?: string
|
|
17
|
-
type?:
|
|
17
|
+
type?: globalRoleType
|
|
18
18
|
description?: string
|
|
19
19
|
composite?: boolean
|
|
20
20
|
created_at?: string
|
|
21
21
|
updated_at?: string
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export type
|
|
24
|
+
export type ListGlobalRolesRequest = {
|
|
25
25
|
search?: string
|
|
26
26
|
offset?: number
|
|
27
27
|
size?: number
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export type
|
|
31
|
-
roles?:
|
|
30
|
+
export type ListGlobalRolesResponse = {
|
|
31
|
+
roles?: GlobalRoleInfo[]
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export type WorkspaceRoleInfo = {
|
|
@@ -51,70 +51,70 @@ export type ListWorkspaceRolesResponse = {
|
|
|
51
51
|
workspaceroles?: WorkspaceRoleInfo[]
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export type
|
|
54
|
+
export type GetGlobalRoleRequest = {
|
|
55
55
|
id?: string
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export type
|
|
59
|
-
role?:
|
|
58
|
+
export type GetGlobalRoleResponse = {
|
|
59
|
+
role?: GlobalRoleInfo
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export type
|
|
62
|
+
export type CreateGlobalRoleRequest = {
|
|
63
63
|
name?: string
|
|
64
64
|
description?: string
|
|
65
65
|
relation_role_id?: string[]
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export type
|
|
68
|
+
export type CreateGlobalRoleResponse = {
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export type
|
|
71
|
+
export type UpdateGlobalRoleRequest = {
|
|
72
72
|
id?: string
|
|
73
73
|
description?: string
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
export type
|
|
76
|
+
export type UpdateGlobalRoleResponse = {
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export type
|
|
79
|
+
export type DeleteGlobalRoleRequest = {
|
|
80
80
|
id?: string
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export type
|
|
83
|
+
export type DeleteGlobalRoleResponse = {
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export type
|
|
86
|
+
export type AddGlobalRoleCompositeRequest = {
|
|
87
87
|
id?: string
|
|
88
88
|
relation_role_id?: string[]
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
export type
|
|
91
|
+
export type AddGlobalRoleCompositeResponse = {
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
export type
|
|
94
|
+
export type RemoveGlobalRoleCompositeRequest = {
|
|
95
95
|
id?: string
|
|
96
96
|
relation_role_id?: string[]
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
export type
|
|
99
|
+
export type RemoveGlobalRoleCompositeResponse = {
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
export type
|
|
102
|
+
export type ListGlobalRoleCompositeRequest = {
|
|
103
103
|
id?: string
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
export type
|
|
107
|
-
roles?:
|
|
106
|
+
export type ListGlobalRoleCompositeResponse = {
|
|
107
|
+
roles?: GlobalRoleInfo[]
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
export type
|
|
110
|
+
export type ListGlobalRoleSubjectsRequest = {
|
|
111
111
|
id?: string
|
|
112
112
|
offset?: number
|
|
113
113
|
size?: number
|
|
114
114
|
search?: string
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
export type
|
|
117
|
+
export type ListGlobalRoleSubjectsResponse = {
|
|
118
118
|
total?: number
|
|
119
119
|
subjects?: Subject[]
|
|
120
120
|
}
|
|
@@ -127,34 +127,34 @@ export type Subject = {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
export class Role {
|
|
130
|
-
static
|
|
131
|
-
return fm.fetchReq<
|
|
130
|
+
static ListGlobalRoles(req: ListGlobalRolesRequest, initReq?: fm.InitReq): Promise<ListGlobalRolesResponse> {
|
|
131
|
+
return fm.fetchReq<ListGlobalRolesRequest, ListGlobalRolesResponse>(`/apis/ghippo.io/v1alpha1/globalroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
132
132
|
}
|
|
133
133
|
static ListWorkspaceRoles(req: ListWorkspaceRolesRequest, initReq?: fm.InitReq): Promise<ListWorkspaceRolesResponse> {
|
|
134
134
|
return fm.fetchReq<ListWorkspaceRolesRequest, ListWorkspaceRolesResponse>(`/apis/ghippo.io/v1alpha1/workspaceroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
135
135
|
}
|
|
136
|
-
static
|
|
137
|
-
return fm.fetchReq<
|
|
136
|
+
static GetGlobalRole(req: GetGlobalRoleRequest, initReq?: fm.InitReq): Promise<GetGlobalRoleResponse> {
|
|
137
|
+
return fm.fetchReq<GetGlobalRoleRequest, GetGlobalRoleResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
138
138
|
}
|
|
139
|
-
static
|
|
140
|
-
return fm.fetchReq<
|
|
139
|
+
static CreateGlobalRole(req: CreateGlobalRoleRequest, initReq?: fm.InitReq): Promise<CreateGlobalRoleResponse> {
|
|
140
|
+
return fm.fetchReq<CreateGlobalRoleRequest, CreateGlobalRoleResponse>(`/apis/ghippo.io/v1alpha1/globalrole`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
141
141
|
}
|
|
142
|
-
static
|
|
143
|
-
return fm.fetchReq<
|
|
142
|
+
static UpdateGlobalRole(req: UpdateGlobalRoleRequest, initReq?: fm.InitReq): Promise<UpdateGlobalRoleResponse> {
|
|
143
|
+
return fm.fetchReq<UpdateGlobalRoleRequest, UpdateGlobalRoleResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
144
144
|
}
|
|
145
|
-
static
|
|
146
|
-
return fm.fetchReq<
|
|
145
|
+
static DeleteGlobalRole(req: DeleteGlobalRoleRequest, initReq?: fm.InitReq): Promise<DeleteGlobalRoleResponse> {
|
|
146
|
+
return fm.fetchReq<DeleteGlobalRoleRequest, DeleteGlobalRoleResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
147
147
|
}
|
|
148
|
-
static
|
|
149
|
-
return fm.fetchReq<
|
|
148
|
+
static AddGlobalRoleComposite(req: AddGlobalRoleCompositeRequest, initReq?: fm.InitReq): Promise<AddGlobalRoleCompositeResponse> {
|
|
149
|
+
return fm.fetchReq<AddGlobalRoleCompositeRequest, AddGlobalRoleCompositeResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}/composites`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
150
150
|
}
|
|
151
|
-
static
|
|
152
|
-
return fm.fetchReq<
|
|
151
|
+
static RemoveGlobalRoleComposite(req: RemoveGlobalRoleCompositeRequest, initReq?: fm.InitReq): Promise<RemoveGlobalRoleCompositeResponse> {
|
|
152
|
+
return fm.fetchReq<RemoveGlobalRoleCompositeRequest, RemoveGlobalRoleCompositeResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}/composites`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
153
153
|
}
|
|
154
|
-
static
|
|
155
|
-
return fm.fetchReq<
|
|
154
|
+
static ListGlobalRoleComposite(req: ListGlobalRoleCompositeRequest, initReq?: fm.InitReq): Promise<ListGlobalRoleCompositeResponse> {
|
|
155
|
+
return fm.fetchReq<ListGlobalRoleCompositeRequest, ListGlobalRoleCompositeResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}/composites?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
156
156
|
}
|
|
157
|
-
static
|
|
158
|
-
return fm.fetchReq<
|
|
157
|
+
static ListGlobalRoleSubjects(req: ListGlobalRoleSubjectsRequest, initReq?: fm.InitReq): Promise<ListGlobalRoleSubjectsResponse> {
|
|
158
|
+
return fm.fetchReq<ListGlobalRoleSubjectsRequest, ListGlobalRoleSubjectsResponse>(`/apis/ghippo.io/v1alpha1/globalroles/${req["id"]}/subjects?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
159
159
|
}
|
|
160
160
|
}
|
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -16,6 +16,14 @@ export type ListUsersResponse = {
|
|
|
16
16
|
data?: GetUserResponse[]
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export type CheckUserRequest = {
|
|
20
|
+
username?: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type CheckUserResponse = {
|
|
24
|
+
existed?: boolean
|
|
25
|
+
}
|
|
26
|
+
|
|
19
27
|
export type GetUserRequest = {
|
|
20
28
|
id?: string
|
|
21
29
|
}
|
|
@@ -148,6 +156,9 @@ export class Users {
|
|
|
148
156
|
static ListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
|
|
149
157
|
return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/ghippo.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
150
158
|
}
|
|
159
|
+
static CheckUser(req: CheckUserRequest, initReq?: fm.InitReq): Promise<CheckUserResponse> {
|
|
160
|
+
return fm.fetchReq<CheckUserRequest, CheckUserResponse>(`/apis/ghippo.io/v1alpha1/users/check/${req["username"]}?${fm.renderURLSearchParams(req, ["username"])}`, {...initReq, method: "GET"})
|
|
161
|
+
}
|
|
151
162
|
static GetUser(req: GetUserRequest, initReq?: fm.InitReq): Promise<GetUserResponse> {
|
|
152
163
|
return fm.fetchReq<GetUserRequest, GetUserResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
153
164
|
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -54,8 +54,11 @@ export type BindResourceToWorkspaceResponse = {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export type UnbindResourceFromWorkspaceRequest = {
|
|
57
|
+
workspace_id?: number
|
|
57
58
|
resource_name?: string
|
|
59
|
+
resource_type?: string
|
|
58
60
|
resource_scope?: string
|
|
61
|
+
gproduct?: string
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
export type UnbindResourceFromWorkspaceResponse = {
|
|
@@ -64,7 +67,7 @@ export type UnbindResourceFromWorkspaceResponse = {
|
|
|
64
67
|
export type CreateWorkspaceRequest = {
|
|
65
68
|
name?: string
|
|
66
69
|
alias?: string
|
|
67
|
-
|
|
70
|
+
parent_folder_id?: number
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
export type CreateWorkspaceResponse = {
|