@daocloud-proto/kpanda 0.22.0-dev-20ae2998 → 0.22.0-dev-e1d95f1a

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.
@@ -15,6 +15,13 @@ export type ListWorkspacesResponse = {
15
15
  workspaces?: WorkspaceInfo[]
16
16
  }
17
17
 
18
+ export type ListGlobalRolesRequest = {
19
+ }
20
+
21
+ export type ListGlobalRolesResponse = {
22
+ roles?: string[]
23
+ }
24
+
18
25
  export type BindResourceToWorkspaceRequest = {
19
26
  workspaceId?: number
20
27
  workspaceAlias?: string
@@ -841,6 +841,9 @@ export class Workspace {
841
841
  static UnbindResourceFromWorkspace(req: KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse> {
842
842
  return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}:unbind`, {...initReq, method: "DELETE"})
843
843
  }
844
+ static ListGlobalRolesForCurrentUser(req: KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesResponse> {
845
+ return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesRequest, KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesResponse>(`/apis/kpanda.io/v1alpha1/globalroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
846
+ }
844
847
  }
845
848
  export class ClusterSetting {
846
849
  static GetClusterSetting(req: KpandaIoApiClustersettingV1alpha1Clustersetting.GetClusterSettingRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersettingV1alpha1Clustersetting.ClusterSetting> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.22.0-dev-20ae2998",
3
+ "version":"v0.22.0-dev-e1d95f1a",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {