@daocloud-proto/kangaroo 0.4.3-23 → 0.4.3-25

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,16 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+ export type GlobalPermissionsResponse = {
7
+ permissions?: string[]
8
+ }
9
+
10
+ export type WorkspacePermissionsResponse = {
11
+ permissions?: string[]
12
+ }
13
+
14
+ export type WorkspacePermissionsRequest = {
15
+ workspace?: string
16
+ }
@@ -5,6 +5,8 @@
5
5
  */
6
6
 
7
7
  import * as fm from "../../../../fetch.pb"
8
+ import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
9
+ import * as KangarooIoApiCoreV1alpha1Auth from "./auth.pb"
8
10
  import * as KangarooIoApiCoreV1alpha1Cluster from "./cluster.pb"
9
11
  import * as KangarooIoApiCoreV1alpha1Namespace from "./namespace.pb"
10
12
  import * as KangarooIoApiCoreV1alpha1Workspace from "./workspace.pb"
@@ -18,4 +20,10 @@ export class Core {
18
20
  static ListVisibleWorkspaces(req: KangarooIoApiCoreV1alpha1Workspace.ListWorkspaceRequest, initReq?: fm.InitReq): Promise<KangarooIoApiCoreV1alpha1Workspace.ListWorkspaceResponse> {
19
21
  return fm.fetchReq<KangarooIoApiCoreV1alpha1Workspace.ListWorkspaceRequest, KangarooIoApiCoreV1alpha1Workspace.ListWorkspaceResponse>(`/apis/kangaroo.io/v1alpha1/workspace?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
20
22
  }
23
+ static GetGlobalPermissions(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<KangarooIoApiCoreV1alpha1Auth.GlobalPermissionsResponse> {
24
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, KangarooIoApiCoreV1alpha1Auth.GlobalPermissionsResponse>(`/apis/kangaroo.io/v1alpha1/current-user/global-permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
25
+ }
26
+ static GetWorkspacePermissions(req: KangarooIoApiCoreV1alpha1Auth.WorkspacePermissionsRequest, initReq?: fm.InitReq): Promise<KangarooIoApiCoreV1alpha1Auth.WorkspacePermissionsResponse> {
27
+ return fm.fetchReq<KangarooIoApiCoreV1alpha1Auth.WorkspacePermissionsRequest, KangarooIoApiCoreV1alpha1Auth.WorkspacePermissionsResponse>(`/apis/kangaroo.io/v1alpha1/current-user/workspace-permissions/${req["workspace"]}?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
28
+ }
21
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kangaroo",
3
- "version":"0.4.3-23",
3
+ "version":"0.4.3-25",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {