@daocloud-proto/ghippo 0.6.21 → 0.6.24
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 +17 -11
- package/v1alpha1/message.pb.ts +9 -3
- package/v1alpha1/role.pb.ts +17 -88
- package/v1alpha1/user.pb.ts +18 -12
- package/v1alpha1/workspace.pb.ts +30 -25
package/package.json
CHANGED
package/v1alpha1/group.pb.ts
CHANGED
|
@@ -16,13 +16,19 @@ export type CreateGroupResponse = {
|
|
|
16
16
|
|
|
17
17
|
export type ListGroupsRequest = {
|
|
18
18
|
search?: string
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
page?: number
|
|
20
|
+
page_size?: number
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export type ListGroupsResponse = {
|
|
24
|
+
pagination?: Pagination
|
|
25
|
+
items?: GroupInfo[]
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type Pagination = {
|
|
29
|
+
page?: number
|
|
30
|
+
page_size?: number
|
|
24
31
|
total?: number
|
|
25
|
-
groups?: GroupInfo[]
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
export type GroupInfo = {
|
|
@@ -93,28 +99,28 @@ export type UpdateGroupResponse = {
|
|
|
93
99
|
export type ListGroupRolesRequest = {
|
|
94
100
|
id?: string
|
|
95
101
|
search?: string
|
|
96
|
-
|
|
97
|
-
|
|
102
|
+
page?: number
|
|
103
|
+
page_size?: number
|
|
98
104
|
type?: string
|
|
99
105
|
authorized?: boolean
|
|
100
106
|
}
|
|
101
107
|
|
|
102
108
|
export type ListGroupRolesResponse = {
|
|
103
|
-
|
|
109
|
+
pagination?: Pagination
|
|
104
110
|
authorized_count?: number
|
|
105
|
-
|
|
111
|
+
items?: RoleInfo[]
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
export type ListGroupSubjectRequest = {
|
|
109
115
|
id?: string
|
|
110
116
|
search?: string
|
|
111
|
-
|
|
112
|
-
|
|
117
|
+
page?: number
|
|
118
|
+
page_size?: number
|
|
113
119
|
}
|
|
114
120
|
|
|
115
121
|
export type ListGroupSubjectResponse = {
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
pagination?: Pagination
|
|
123
|
+
items?: GroupSubject[]
|
|
118
124
|
}
|
|
119
125
|
|
|
120
126
|
export type GroupSubject = {
|
package/v1alpha1/message.pb.ts
CHANGED
|
@@ -16,13 +16,19 @@ export type ListMessagesRequest = {
|
|
|
16
16
|
unreadCount?: boolean
|
|
17
17
|
search?: string
|
|
18
18
|
read?: ReadType
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
page?: number
|
|
20
|
+
page_size?: number
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export type ListMessagesResponse = {
|
|
24
|
+
items?: MessageInfo[]
|
|
25
|
+
pagination?: Pagination
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type Pagination = {
|
|
24
29
|
total?: number
|
|
25
|
-
|
|
30
|
+
page?: number
|
|
31
|
+
page_size?: number
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
export type MessageInfo = {
|
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -11,6 +11,12 @@ export enum globalRoleType {
|
|
|
11
11
|
custom = "custom",
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
export type Pagination = {
|
|
15
|
+
total?: number
|
|
16
|
+
page?: number
|
|
17
|
+
page_size?: number
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
export type GlobalRoleInfo = {
|
|
15
21
|
id?: string
|
|
16
22
|
name?: string
|
|
@@ -22,13 +28,13 @@ export type GlobalRoleInfo = {
|
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
export type ListGlobalRolesRequest = {
|
|
31
|
+
page?: number
|
|
32
|
+
page_size?: number
|
|
25
33
|
search?: string
|
|
26
|
-
offset?: number
|
|
27
|
-
size?: number
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
export type ListGlobalRolesResponse = {
|
|
31
|
-
|
|
37
|
+
items?: GlobalRoleInfo[]
|
|
32
38
|
}
|
|
33
39
|
|
|
34
40
|
export type WorkspaceRoleInfo = {
|
|
@@ -42,81 +48,25 @@ export type WorkspaceRoleInfo = {
|
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
export type ListWorkspaceRolesRequest = {
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
page?: number
|
|
52
|
+
page_size?: number
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
export type ListWorkspaceRolesResponse = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type GetGlobalRoleRequest = {
|
|
55
|
-
id?: string
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export type GetGlobalRoleResponse = {
|
|
59
|
-
role?: GlobalRoleInfo
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export type CreateGlobalRoleRequest = {
|
|
63
|
-
name?: string
|
|
64
|
-
description?: string
|
|
65
|
-
relation_role_id?: string[]
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export type CreateGlobalRoleResponse = {
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export type UpdateGlobalRoleRequest = {
|
|
72
|
-
id?: string
|
|
73
|
-
description?: string
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export type UpdateGlobalRoleResponse = {
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export type DeleteGlobalRoleRequest = {
|
|
80
|
-
id?: string
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export type DeleteGlobalRoleResponse = {
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export type AddGlobalRoleCompositeRequest = {
|
|
87
|
-
id?: string
|
|
88
|
-
relation_role_id?: string[]
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export type AddGlobalRoleCompositeResponse = {
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export type RemoveGlobalRoleCompositeRequest = {
|
|
95
|
-
id?: string
|
|
96
|
-
relation_role_id?: string[]
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export type RemoveGlobalRoleCompositeResponse = {
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export type ListGlobalRoleCompositeRequest = {
|
|
103
|
-
id?: string
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export type ListGlobalRoleCompositeResponse = {
|
|
107
|
-
roles?: GlobalRoleInfo[]
|
|
56
|
+
items?: WorkspaceRoleInfo[]
|
|
57
|
+
pagination?: Pagination
|
|
108
58
|
}
|
|
109
59
|
|
|
110
60
|
export type ListGlobalRoleSubjectsRequest = {
|
|
61
|
+
page?: number
|
|
62
|
+
page_size?: number
|
|
111
63
|
id?: string
|
|
112
|
-
offset?: number
|
|
113
|
-
size?: number
|
|
114
64
|
search?: string
|
|
115
65
|
}
|
|
116
66
|
|
|
117
67
|
export type ListGlobalRoleSubjectsResponse = {
|
|
118
|
-
|
|
119
|
-
|
|
68
|
+
items?: Subject[]
|
|
69
|
+
pagination?: Pagination
|
|
120
70
|
}
|
|
121
71
|
|
|
122
72
|
export type Subject = {
|
|
@@ -133,27 +83,6 @@ export class Role {
|
|
|
133
83
|
static ListWorkspaceRoles(req: ListWorkspaceRolesRequest, initReq?: fm.InitReq): Promise<ListWorkspaceRolesResponse> {
|
|
134
84
|
return fm.fetchReq<ListWorkspaceRolesRequest, ListWorkspaceRolesResponse>(`/apis/ghippo.io/v1alpha1/workspaceroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
135
85
|
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
157
86
|
static ListGlobalRoleSubjects(req: ListGlobalRoleSubjectsRequest, initReq?: fm.InitReq): Promise<ListGlobalRoleSubjectsResponse> {
|
|
158
87
|
return fm.fetchReq<ListGlobalRoleSubjectsRequest, ListGlobalRoleSubjectsResponse>(`/apis/ghippo.io/v1alpha1/globalroles/${req["id"]}/subjects?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
159
88
|
}
|
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -7,13 +7,19 @@
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
export type ListUsersRequest = {
|
|
9
9
|
search?: string
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
page_size?: number
|
|
11
|
+
page?: number
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export type ListUsersResponse = {
|
|
15
|
+
items?: GetUserResponse[]
|
|
16
|
+
pagination?: Pagination
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type Pagination = {
|
|
20
|
+
page?: number
|
|
21
|
+
page_size?: number
|
|
15
22
|
total?: number
|
|
16
|
-
data?: GetUserResponse[]
|
|
17
23
|
}
|
|
18
24
|
|
|
19
25
|
export type CheckUserRequest = {
|
|
@@ -88,26 +94,26 @@ export type Group = {
|
|
|
88
94
|
export type ListUserGroupsRequest = {
|
|
89
95
|
id?: string
|
|
90
96
|
search?: string
|
|
91
|
-
|
|
92
|
-
|
|
97
|
+
page?: number
|
|
98
|
+
page_size?: number
|
|
93
99
|
}
|
|
94
100
|
|
|
95
101
|
export type ListUserGroupsResponse = {
|
|
96
|
-
|
|
102
|
+
pagination?: Pagination
|
|
97
103
|
data?: Group[]
|
|
98
104
|
}
|
|
99
105
|
|
|
100
106
|
export type ListUserRolesRequest = {
|
|
101
107
|
id?: string
|
|
102
108
|
search?: string
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
page?: number
|
|
110
|
+
page_size?: number
|
|
105
111
|
type?: string
|
|
106
112
|
authorized?: boolean
|
|
107
113
|
}
|
|
108
114
|
|
|
109
115
|
export type ListUserRolesResponse = {
|
|
110
|
-
|
|
116
|
+
pagination?: Pagination
|
|
111
117
|
authorized_count?: number
|
|
112
118
|
roles?: RoleInfo[]
|
|
113
119
|
}
|
|
@@ -126,12 +132,12 @@ export type RoleInfo = {
|
|
|
126
132
|
export type ListUserSubjectRequest = {
|
|
127
133
|
id?: string
|
|
128
134
|
search?: string
|
|
129
|
-
|
|
130
|
-
|
|
135
|
+
page?: number
|
|
136
|
+
page_size?: number
|
|
131
137
|
}
|
|
132
138
|
|
|
133
139
|
export type ListUserSubjectResponse = {
|
|
134
|
-
|
|
140
|
+
pagination?: Pagination
|
|
135
141
|
subjects?: UserSubject[]
|
|
136
142
|
}
|
|
137
143
|
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
|
+
export type Pagination = {
|
|
9
|
+
total?: number
|
|
10
|
+
page?: number
|
|
11
|
+
page_size?: number
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
export type WorkspaceInfo = {
|
|
9
15
|
id?: number
|
|
10
16
|
name?: string
|
|
@@ -12,14 +18,13 @@ export type WorkspaceInfo = {
|
|
|
12
18
|
}
|
|
13
19
|
|
|
14
20
|
export type ListWorkspacesRequest = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
all?: boolean
|
|
21
|
+
page?: number
|
|
22
|
+
page_size?: number
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
export type ListWorkspacesResponse = {
|
|
21
|
-
|
|
22
|
-
|
|
26
|
+
items?: WorkspaceInfo[]
|
|
27
|
+
pagination?: Pagination
|
|
23
28
|
}
|
|
24
29
|
|
|
25
30
|
export type ResourceInfo = {
|
|
@@ -31,15 +36,15 @@ export type ResourceInfo = {
|
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
export type ListResourcesRequest = {
|
|
39
|
+
page?: number
|
|
40
|
+
page_size?: number
|
|
34
41
|
workspace_id?: number
|
|
35
42
|
gproduct?: string
|
|
36
|
-
size?: number
|
|
37
|
-
offset?: number
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
export type ListResourcesResponse = {
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
items?: ResourceInfo[]
|
|
47
|
+
pagination?: Pagination
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
export type BindResourceToWorkspaceRequest = {
|
|
@@ -96,14 +101,14 @@ export type MemberRoleWorkspaceInfo = {
|
|
|
96
101
|
}
|
|
97
102
|
|
|
98
103
|
export type ListMembersRolesByWorkspaceRequest = {
|
|
104
|
+
page?: number
|
|
105
|
+
page_size?: number
|
|
99
106
|
workspace_id?: number
|
|
100
|
-
offset?: number
|
|
101
|
-
size?: number
|
|
102
107
|
}
|
|
103
108
|
|
|
104
109
|
export type ListMembersRolesByWorkspaceResponse = {
|
|
105
|
-
|
|
106
|
-
|
|
110
|
+
items?: MemberRoleWorkspaceInfo[]
|
|
111
|
+
pagination?: Pagination
|
|
107
112
|
}
|
|
108
113
|
|
|
109
114
|
export type FolderInfo = {
|
|
@@ -113,13 +118,13 @@ export type FolderInfo = {
|
|
|
113
118
|
}
|
|
114
119
|
|
|
115
120
|
export type ListFoldersRequest = {
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
page?: number
|
|
122
|
+
page_size?: number
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
export type ListFoldersResponse = {
|
|
121
|
-
|
|
122
|
-
|
|
126
|
+
items?: FolderInfo[]
|
|
127
|
+
pagination?: Pagination
|
|
123
128
|
}
|
|
124
129
|
|
|
125
130
|
export type CreateFolderRequest = {
|
|
@@ -182,27 +187,27 @@ export type MemberRoleFolderInfo = {
|
|
|
182
187
|
}
|
|
183
188
|
|
|
184
189
|
export type ListMembersRolesRequest = {
|
|
190
|
+
page?: number
|
|
191
|
+
page_size?: number
|
|
185
192
|
folder_id?: number
|
|
186
193
|
member_name?: string
|
|
187
194
|
member_type?: string
|
|
188
195
|
role_name?: string
|
|
189
|
-
offset?: number
|
|
190
|
-
size?: number
|
|
191
196
|
}
|
|
192
197
|
|
|
193
198
|
export type ListMembersRolesResponse = {
|
|
194
|
-
|
|
195
|
-
|
|
199
|
+
items?: MemberRoleFolderInfo[]
|
|
200
|
+
pagination?: Pagination
|
|
196
201
|
}
|
|
197
202
|
|
|
198
203
|
export type ListMembersRolesResourcesRequest = {
|
|
199
|
-
|
|
200
|
-
|
|
204
|
+
page?: number
|
|
205
|
+
page_size?: number
|
|
201
206
|
}
|
|
202
207
|
|
|
203
208
|
export type ListMembersRolesResourcesResponse = {
|
|
204
|
-
|
|
205
|
-
|
|
209
|
+
items?: MemberRoleWorkspaceInfo[]
|
|
210
|
+
pagination?: Pagination
|
|
206
211
|
}
|
|
207
212
|
|
|
208
213
|
export class Workspace {
|