@daocloud-proto/hydra 0.2.0-dev-5 → 0.2.0-dev-6
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.
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../../../fetch.pb"
|
|
8
|
+
export type ListRolePermissionsByWorkspaceForCurrentUserRequest = {
|
|
9
|
+
workspace?: number
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ListRolePermissionsByWorkspaceForCurrentUserResponse = {
|
|
13
|
+
permissions?: string[]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type ListPlatformRolePermissionsForCurrentUserRequest = {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListPlatformRolePermissionsForCurrentUserResponse = {
|
|
20
|
+
permissions?: string[]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class Core {
|
|
24
|
+
static ListRolePermissionsByWorkspaceForCurrentUser(req: ListRolePermissionsByWorkspaceForCurrentUserRequest, initReq?: fm.InitReq): Promise<ListRolePermissionsByWorkspaceForCurrentUserResponse> {
|
|
25
|
+
return fm.fetchReq<ListRolePermissionsByWorkspaceForCurrentUserRequest, ListRolePermissionsByWorkspaceForCurrentUserResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/permissions?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
26
|
+
}
|
|
27
|
+
static ListPlatformRolePermissionsForCurrentUser(req: ListPlatformRolePermissionsForCurrentUserRequest, initReq?: fm.InitReq): Promise<ListPlatformRolePermissionsForCurrentUserResponse> {
|
|
28
|
+
return fm.fetchReq<ListPlatformRolePermissionsForCurrentUserRequest, ListPlatformRolePermissionsForCurrentUserResponse>(`/apis/hydra.io/v1alpha1/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
29
|
+
}
|
|
30
|
+
}
|