@daocloud-proto/insight 0.18.1-dev2-46-gc6de8aa → 0.18.1-dev2-50-gdab44ad

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.
@@ -65,6 +65,7 @@ export type GlobalConfig = {
65
65
  export type userinfo = {
66
66
  name?: string
67
67
  isAdmin?: boolean
68
+ isClusterAdmin?: boolean
68
69
  canView?: boolean
69
70
  resourceTypes?: resourceType[]
70
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.18.1-dev2-46-gc6de8aa",
3
+ "version":"0.18.1-dev2-50-gdab44ad",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -41,8 +41,9 @@ export enum InsightAgentStatus {
41
41
  }
42
42
 
43
43
  export enum Role {
44
- NOT_ADMIN = "NOT_ADMIN",
45
- ADMIN = "ADMIN",
44
+ ROLE_UNSPECIFIED = "ROLE_UNSPECIFIED",
45
+ ROLE_VIEWER = "ROLE_VIEWER",
46
+ ROLE_ADMIN = "ROLE_ADMIN",
46
47
  }
47
48
 
48
49
  export enum serverComponentName {
@@ -98,6 +99,7 @@ export type ClusterSummary = {
98
99
  phase?: ClusterPhase
99
100
  nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
100
101
  insightAgentStatus?: insightAgentState
102
+ role?: Role
101
103
  }
102
104
 
103
105
  export type ClusterDetail = {