@daocloud-proto/ghippo 0.6.22 → 0.6.25
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 +18 -66
- package/v1alpha1/user.pb.ts +11 -11
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
|
@@ -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,14 @@ 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[]
|
|
38
|
+
pagination?: Pagination
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
export type WorkspaceRoleInfo = {
|
|
@@ -42,13 +49,13 @@ export type WorkspaceRoleInfo = {
|
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
export type ListWorkspaceRolesRequest = {
|
|
45
|
-
|
|
46
|
-
|
|
52
|
+
page?: number
|
|
53
|
+
page_size?: number
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
export type ListWorkspaceRolesResponse = {
|
|
50
|
-
|
|
51
|
-
|
|
57
|
+
items?: WorkspaceRoleInfo[]
|
|
58
|
+
pagination?: Pagination
|
|
52
59
|
}
|
|
53
60
|
|
|
54
61
|
export type GetGlobalRoleRequest = {
|
|
@@ -59,15 +66,6 @@ export type GetGlobalRoleResponse = {
|
|
|
59
66
|
role?: GlobalRoleInfo
|
|
60
67
|
}
|
|
61
68
|
|
|
62
|
-
export type CreateGlobalRoleRequest = {
|
|
63
|
-
name?: string
|
|
64
|
-
description?: string
|
|
65
|
-
relation_role_id?: string[]
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export type CreateGlobalRoleResponse = {
|
|
69
|
-
}
|
|
70
|
-
|
|
71
69
|
export type UpdateGlobalRoleRequest = {
|
|
72
70
|
id?: string
|
|
73
71
|
description?: string
|
|
@@ -76,47 +74,16 @@ export type UpdateGlobalRoleRequest = {
|
|
|
76
74
|
export type UpdateGlobalRoleResponse = {
|
|
77
75
|
}
|
|
78
76
|
|
|
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[]
|
|
108
|
-
}
|
|
109
|
-
|
|
110
77
|
export type ListGlobalRoleSubjectsRequest = {
|
|
78
|
+
page?: number
|
|
79
|
+
page_size?: number
|
|
111
80
|
id?: string
|
|
112
|
-
offset?: number
|
|
113
|
-
size?: number
|
|
114
81
|
search?: string
|
|
115
82
|
}
|
|
116
83
|
|
|
117
84
|
export type ListGlobalRoleSubjectsResponse = {
|
|
118
|
-
|
|
119
|
-
|
|
85
|
+
items?: Subject[]
|
|
86
|
+
pagination?: Pagination
|
|
120
87
|
}
|
|
121
88
|
|
|
122
89
|
export type Subject = {
|
|
@@ -136,24 +103,9 @@ export class Role {
|
|
|
136
103
|
static GetGlobalRole(req: GetGlobalRoleRequest, initReq?: fm.InitReq): Promise<GetGlobalRoleResponse> {
|
|
137
104
|
return fm.fetchReq<GetGlobalRoleRequest, GetGlobalRoleResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
138
105
|
}
|
|
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
106
|
static UpdateGlobalRole(req: UpdateGlobalRoleRequest, initReq?: fm.InitReq): Promise<UpdateGlobalRoleResponse> {
|
|
143
107
|
return fm.fetchReq<UpdateGlobalRoleRequest, UpdateGlobalRoleResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
144
108
|
}
|
|
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
109
|
static ListGlobalRoleSubjects(req: ListGlobalRoleSubjectsRequest, initReq?: fm.InitReq): Promise<ListGlobalRoleSubjectsResponse> {
|
|
158
110
|
return fm.fetchReq<ListGlobalRoleSubjectsRequest, ListGlobalRoleSubjectsResponse>(`/apis/ghippo.io/v1alpha1/globalroles/${req["id"]}/subjects?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
159
111
|
}
|
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 = {
|