@daocloud-proto/ghippo 0.23.0 → 0.24.0-dev1
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/role.pb.ts +0 -69
package/package.json
CHANGED
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -275,69 +275,6 @@ export type GetRoleMemberCountResponse = {
|
|
|
275
275
|
groupCount?: number
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
export type GlobalRoleInfo = {
|
|
279
|
-
name?: string
|
|
280
|
-
type?: globalRoleType
|
|
281
|
-
description?: string
|
|
282
|
-
composite?: boolean
|
|
283
|
-
createdAt?: string
|
|
284
|
-
updatedAt?: string
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export type ListGlobalRolesRequest = {
|
|
288
|
-
page?: number
|
|
289
|
-
pageSize?: number
|
|
290
|
-
search?: string
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export type ListGlobalRolesResponse = {
|
|
294
|
-
items?: GlobalRoleInfo[]
|
|
295
|
-
pagination?: Pagination
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
export type WorkspaceRoleInfo = {
|
|
299
|
-
name?: string
|
|
300
|
-
description?: string
|
|
301
|
-
type?: string
|
|
302
|
-
authScope?: string
|
|
303
|
-
gproduct?: string
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
export type ListWorkspaceRolesRequest = {
|
|
307
|
-
page?: number
|
|
308
|
-
pageSize?: number
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export type ListWorkspaceRolesResponse = {
|
|
312
|
-
items?: WorkspaceRoleInfo[]
|
|
313
|
-
pagination?: Pagination
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export type UpdateGlobalRoleRequest = {
|
|
317
|
-
name?: string
|
|
318
|
-
description?: string
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export type UpdateGlobalRoleResponse = {
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export type Subject = {
|
|
325
|
-
id?: string
|
|
326
|
-
roleName?: string
|
|
327
|
-
type?: string
|
|
328
|
-
subjectName?: string
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export type ListFolderRolesRequest = {
|
|
332
|
-
page?: number
|
|
333
|
-
pageSize?: number
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
export type ListFolderRolesResponse = {
|
|
337
|
-
items?: WorkspaceRoleInfo[]
|
|
338
|
-
pagination?: Pagination
|
|
339
|
-
}
|
|
340
|
-
|
|
341
278
|
export class Role {
|
|
342
279
|
static ListAllPermissions(req: ListAllPermissionsRequest, initReq?: fm.InitReq): Promise<ListAllPermissionsResponse> {
|
|
343
280
|
return fm.fetchReq<ListAllPermissionsRequest, ListAllPermissionsResponse>(`/apis/ghippo.io/v1alpha1/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -378,10 +315,4 @@ export class Role {
|
|
|
378
315
|
static GetRoleMemberCount(req: GetRoleMemberCountRequest, initReq?: fm.InitReq): Promise<GetRoleMemberCountResponse> {
|
|
379
316
|
return fm.fetchReq<GetRoleMemberCountRequest, GetRoleMemberCountResponse>(`/apis/ghippo.io/v1alpha1/roles/role-member-count/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
380
317
|
}
|
|
381
|
-
static ListFolderRoles(req: ListFolderRolesRequest, initReq?: fm.InitReq): Promise<ListFolderRolesResponse> {
|
|
382
|
-
return fm.fetchReq<ListFolderRolesRequest, ListFolderRolesResponse>(`/apis/ghippo.io/v1alpha1/folderroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
383
|
-
}
|
|
384
|
-
static ListWorkspaceRoles(req: ListWorkspaceRolesRequest, initReq?: fm.InitReq): Promise<ListWorkspaceRolesResponse> {
|
|
385
|
-
return fm.fetchReq<ListWorkspaceRolesRequest, ListWorkspaceRolesResponse>(`/apis/ghippo.io/v1alpha1/workspaceroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
386
|
-
}
|
|
387
318
|
}
|