@daocloud-proto/ghippo 0.9.42-temp → 0.9.43
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
CHANGED
package/v1alpha1/gproduct.pb.ts
CHANGED
|
@@ -56,13 +56,6 @@ export type GetGProductLicensesOverQuotaResponse = {
|
|
|
56
56
|
licenses?: GProductLicense[]
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export type GetGProductLicensesValidatedRequest = {
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export type GetGProductLicensesValidatedResponse = {
|
|
63
|
-
licenses?: GProductLicense[]
|
|
64
|
-
}
|
|
65
|
-
|
|
66
59
|
export type GProductLicense = {
|
|
67
60
|
id?: string
|
|
68
61
|
name?: string
|
|
@@ -109,7 +102,4 @@ export class GProducts {
|
|
|
109
102
|
static GetGProductLicensesOverQuota(req: GetGProductLicensesOverQuotaRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesOverQuotaResponse> {
|
|
110
103
|
return fm.fetchReq<GetGProductLicensesOverQuotaRequest, GetGProductLicensesOverQuotaResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/over-quota?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
111
104
|
}
|
|
112
|
-
static GetGProductLicensesValidated(req: GetGProductLicensesValidatedRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesValidatedResponse> {
|
|
113
|
-
return fm.fetchReq<GetGProductLicensesValidatedRequest, GetGProductLicensesValidatedResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/validated?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
114
|
-
}
|
|
115
105
|
}
|
package/v1alpha1/group.pb.ts
CHANGED
|
@@ -141,9 +141,11 @@ export type UpdateGroupRolesResponse = {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
export type RoleInfo = {
|
|
144
|
+
id?: string
|
|
144
145
|
name?: string
|
|
145
146
|
type?: string
|
|
146
147
|
description?: string
|
|
148
|
+
composite?: boolean
|
|
147
149
|
createdAt?: string
|
|
148
150
|
updatedAt?: string
|
|
149
151
|
authorized?: boolean
|
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -18,6 +18,7 @@ export type Pagination = {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type GlobalRoleInfo = {
|
|
21
|
+
id?: string
|
|
21
22
|
name?: string
|
|
22
23
|
type?: globalRoleType
|
|
23
24
|
description?: string
|
|
@@ -38,11 +39,13 @@ export type ListGlobalRolesResponse = {
|
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
export type WorkspaceRoleInfo = {
|
|
42
|
+
id?: number
|
|
41
43
|
name?: string
|
|
42
44
|
description?: string
|
|
43
45
|
type?: string
|
|
44
46
|
authScope?: string
|
|
45
47
|
gproduct?: string
|
|
48
|
+
permissions?: string
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
export type ListWorkspaceRolesRequest = {
|
|
@@ -56,7 +59,7 @@ export type ListWorkspaceRolesResponse = {
|
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
export type GetGlobalRoleRequest = {
|
|
59
|
-
|
|
62
|
+
id?: string
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
export type GetGlobalRoleResponse = {
|
|
@@ -64,7 +67,7 @@ export type GetGlobalRoleResponse = {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
export type UpdateGlobalRoleRequest = {
|
|
67
|
-
|
|
70
|
+
id?: string
|
|
68
71
|
description?: string
|
|
69
72
|
}
|
|
70
73
|
|
|
@@ -74,7 +77,7 @@ export type UpdateGlobalRoleResponse = {
|
|
|
74
77
|
export type ListGlobalRoleSubjectsRequest = {
|
|
75
78
|
page?: number
|
|
76
79
|
pageSize?: number
|
|
77
|
-
|
|
80
|
+
id?: string
|
|
78
81
|
search?: string
|
|
79
82
|
}
|
|
80
83
|
|
|
@@ -85,7 +88,7 @@ export type ListGlobalRoleSubjectsResponse = {
|
|
|
85
88
|
|
|
86
89
|
export type Subject = {
|
|
87
90
|
id?: string
|
|
88
|
-
|
|
91
|
+
roleId?: string
|
|
89
92
|
type?: string
|
|
90
93
|
subjectName?: string
|
|
91
94
|
}
|
|
@@ -111,9 +114,12 @@ export class Role {
|
|
|
111
114
|
return fm.fetchReq<ListWorkspaceRolesRequest, ListWorkspaceRolesResponse>(`/apis/ghippo.io/v1alpha1/workspaceroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
112
115
|
}
|
|
113
116
|
static GetGlobalRole(req: GetGlobalRoleRequest, initReq?: fm.InitReq): Promise<GetGlobalRoleResponse> {
|
|
114
|
-
return fm.fetchReq<GetGlobalRoleRequest, GetGlobalRoleResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["
|
|
117
|
+
return fm.fetchReq<GetGlobalRoleRequest, GetGlobalRoleResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
118
|
+
}
|
|
119
|
+
static UpdateGlobalRole(req: UpdateGlobalRoleRequest, initReq?: fm.InitReq): Promise<UpdateGlobalRoleResponse> {
|
|
120
|
+
return fm.fetchReq<UpdateGlobalRoleRequest, UpdateGlobalRoleResponse>(`/apis/ghippo.io/v1alpha1/globalrole/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
115
121
|
}
|
|
116
122
|
static ListGlobalRoleSubjects(req: ListGlobalRoleSubjectsRequest, initReq?: fm.InitReq): Promise<ListGlobalRoleSubjectsResponse> {
|
|
117
|
-
return fm.fetchReq<ListGlobalRoleSubjectsRequest, ListGlobalRoleSubjectsResponse>(`/apis/ghippo.io/v1alpha1/globalroles/${req["
|
|
123
|
+
return fm.fetchReq<ListGlobalRoleSubjectsRequest, ListGlobalRoleSubjectsResponse>(`/apis/ghippo.io/v1alpha1/globalroles/${req["id"]}/subjects?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
118
124
|
}
|
|
119
125
|
}
|
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -119,9 +119,11 @@ export type ListUserRolesResponse = {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
export type RoleInfo = {
|
|
122
|
+
id?: string
|
|
122
123
|
name?: string
|
|
123
124
|
type?: string
|
|
124
125
|
description?: string
|
|
126
|
+
composite?: boolean
|
|
125
127
|
createdAt?: string
|
|
126
128
|
updatedAt?: string
|
|
127
129
|
authorized?: boolean
|
|
@@ -141,6 +143,7 @@ export type ListUserSubjectResponse = {
|
|
|
141
143
|
|
|
142
144
|
export type UserSubject = {
|
|
143
145
|
id?: string
|
|
146
|
+
roleId?: string
|
|
144
147
|
type?: string
|
|
145
148
|
roleName?: string
|
|
146
149
|
subjectName?: string
|