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