@daocloud-proto/ghippo 0.9.43 → 0.9.44

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.9.43",
3
+ "version":"0.9.44",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -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
@@ -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
- id?: string
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
- id?: string
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
- id?: string
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
- roleId?: string
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["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)})
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["id"]}/subjects?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
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
  }
@@ -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