@daocloud-proto/skoala 0.18.0-4 → 0.18.0-45

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.
@@ -34,6 +34,16 @@ export enum Status {
34
34
  Exception = "Exception",
35
35
  }
36
36
 
37
+ export enum ClusterPhase {
38
+ CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
39
+ ClusterPhaseUnknown = "ClusterPhaseUnknown",
40
+ ClusterPhaseCreating = "ClusterPhaseCreating",
41
+ ClusterPhaseRunning = "ClusterPhaseRunning",
42
+ ClusterPhaseUpdating = "ClusterPhaseUpdating",
43
+ ClusterPhaseDeleting = "ClusterPhaseDeleting",
44
+ ClusterFailed = "ClusterFailed",
45
+ }
46
+
37
47
  export enum ResourceKind {
38
48
  RESOURCE_KIND_UNSPECIFIED = "RESOURCE_KIND_UNSPECIFIED",
39
49
  Deployment = "Deployment",
@@ -87,6 +97,7 @@ export enum ExternalTrafficPolicy {
87
97
  export type Cluster = {
88
98
  id?: string
89
99
  name?: string
100
+ clusterPhase?: ClusterPhase
90
101
  }
91
102
 
92
103
  export type Mesh = {
@@ -259,4 +259,8 @@ export type AddrPool = {
259
259
  export type ListClusterLBAddrPoolRes = {
260
260
  items?: AddrPool[]
261
261
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
262
+ }
263
+
264
+ export type ListComponentsVersionRes = {
265
+ components?: SkoalaApiGeneralV1alpha1Common.Component[]
262
266
  }
@@ -16,6 +16,6 @@ export type GetVersionRes = {
16
16
  version?: Version
17
17
  }
18
18
 
19
- export type GetHiveChartsRes = {
20
- nacos?: SkoalaApiGeneralV1alpha1Common.Component
19
+ export type GetComponentsRes = {
20
+ components?: SkoalaApiGeneralV1alpha1Common.Component[]
21
21
  }
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiHostedV1alpha1Gateway from "./gateway.pb"
8
9
  import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
9
10
  import * as SkoalaApiHostedV1alpha1Virtualhost from "./virtualhost.pb"
10
11
 
@@ -109,6 +110,7 @@ export type AdvancedAPIConfig = {
109
110
  jwtPolicy?: JWTPolicy
110
111
  authPolicy?: AuthPolicy
111
112
  cookieRewritePolicy?: CookieRewritePolicy[]
113
+ ipPolicy?: SkoalaApiHostedV1alpha1Gateway.IPPolicy
112
114
  }
113
115
 
114
116
  export type CookieRewritePolicy = {
@@ -58,6 +58,18 @@ export enum AlertSeverity {
58
58
  Info = "Info",
59
59
  }
60
60
 
61
+ export enum IPPolicyLevel {
62
+ IP_POLICY_LEVEL_UNSPECIFIED = "IP_POLICY_LEVEL_UNSPECIFIED",
63
+ VirtualHost = "VirtualHost",
64
+ Route = "Route",
65
+ }
66
+
67
+ export enum IPSource {
68
+ IP_SOURCE_UNSPECIFIED = "IP_SOURCE_UNSPECIFIED",
69
+ RemoteIp = "RemoteIp",
70
+ DirectRemoteIp = "DirectRemoteIp",
71
+ }
72
+
61
73
  export enum GatewayConditionType {
62
74
  TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
63
75
  Scheduled = "Scheduled",
@@ -111,6 +123,7 @@ export type Gateway = {
111
123
  envoy?: Node
112
124
  apiCount?: number
113
125
  config?: GatewayConfig
126
+ clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
114
127
  }
115
128
 
116
129
  export type ListAllGatewayReq = {
@@ -263,6 +276,7 @@ export type ContourAdvancedConfig = BaseContourAdvancedConfig
263
276
 
264
277
  type BaseEnvoyAdvancedConfig = {
265
278
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
279
+ numTrustedHops?: number
266
280
  }
267
281
 
268
282
  export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
@@ -497,4 +511,16 @@ export type GetGatewayMetricDashboardReq = {
497
511
  export type GetGatewayMetricDashboardRes = {
498
512
  url?: string
499
513
  zhUrl?: string
514
+ }
515
+
516
+ export type IPPolicyRule = {
517
+ cidr?: string
518
+ source?: IPSource
519
+ }
520
+
521
+ export type IPPolicy = {
522
+ path?: string
523
+ level?: IPPolicyLevel
524
+ allowRules?: IPPolicyRule[]
525
+ denyRules?: IPPolicyRule[]
500
526
  }
@@ -19,7 +19,7 @@ export type GatewayOverviewBasicReq = {
19
19
  gatewayNames?: string[]
20
20
  startTime?: string
21
21
  endTime?: string
22
- time?: string
22
+ interval?: string
23
23
  unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
24
24
  }
25
25
 
@@ -34,8 +34,9 @@ export type GatewayOverviewHealthReq = {
34
34
  gatewayNames?: string[]
35
35
  startTime?: string
36
36
  endTime?: string
37
- time?: string
37
+ interval?: string
38
38
  unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
39
+ completion?: boolean
39
40
  }
40
41
 
41
42
  export type GatewayOverviewHealthRes = {
@@ -60,4 +61,21 @@ export type GatewayAPINum = {
60
61
  gatewayName?: string
61
62
  location?: string
62
63
  apiNum?: number
64
+ }
65
+
66
+ export type GatewayOverviewInfoReq = {
67
+ workspaceId?: string
68
+ }
69
+
70
+ export type GatewayOverviewInfoRes = {
71
+ apiNum?: number
72
+ normal?: number
73
+ abnormal?: number
74
+ errGatewayInfo?: ErrGatewayInfo[]
75
+ }
76
+
77
+ export type ErrGatewayInfo = {
78
+ gatewayName?: string
79
+ location?: string
80
+ reason?: string
63
81
  }
@@ -95,6 +95,7 @@ export type Nacos = {
95
95
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
96
96
  ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
97
97
  status?: NacosStatus
98
+ clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
98
99
  replicas?: number
99
100
  image?: string
100
101
  version?: string
@@ -842,6 +843,15 @@ export type CheckNacosConfigRes = {
842
843
  use?: string
843
844
  }
844
845
 
846
+ export type UpdateUserPasswordReq = {
847
+ workspaceId?: string
848
+ clusterName?: string
849
+ namespaceName?: string
850
+ nacosName?: string
851
+ nacosUserName?: string
852
+ nacosUserNewPassword?: string
853
+ }
854
+
845
855
  export type GetNacosGrafanaReq = {
846
856
  workspaceId?: string
847
857
  clusterName?: string
@@ -28,6 +28,12 @@ export enum MachineType {
28
28
  ALONE = "ALONE",
29
29
  }
30
30
 
31
+ export enum HostedQuery {
32
+ ALL = "ALL",
33
+ NOT_HOSTED = "NOT_HOSTED",
34
+ HOSTED = "HOSTED",
35
+ }
36
+
31
37
  export enum ListClusterFlowClientStatus {
32
38
  OFF = "OFF",
33
39
  PENDING = "PENDING",
@@ -582,6 +588,28 @@ export type DeleteAuthorityRuleReq = {
582
588
 
583
589
  export type GetStaticsSentinelReq = {
584
590
  workspaceId?: string
591
+ page?: number
592
+ pageSize?: number
593
+ }
594
+
595
+ export type GetStaticsRegistryReq = {
596
+ workspaceId?: string
597
+ page?: number
598
+ pageSize?: number
599
+ }
600
+
601
+ export type ListTop10RegSrvReq = {
602
+ workspaceId?: string
603
+ hostedQuery?: HostedQuery
604
+ }
605
+
606
+ export type Top10RegSrv = {
607
+ registryName?: string
608
+ serviceCount?: number
609
+ }
610
+
611
+ export type ListTop10RegSrvRes = {
612
+ items?: Top10RegSrv[]
585
613
  }
586
614
 
587
615
  export type ErrSentinelInfo = {
@@ -598,4 +626,24 @@ export type ErrIns = {
598
626
 
599
627
  export type GetStaticsSentinelRes = {
600
628
  errIns?: ErrIns
629
+ }
630
+
631
+ export type ErrHostedIns = {
632
+ name?: string
633
+ cluster?: string
634
+ namespace?: string
635
+ reason?: string
636
+ }
637
+
638
+ export type GetStaticsRegistryResErrIns = {
639
+ items?: ErrHostedIns[]
640
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
641
+ }
642
+
643
+ export type GetStaticsRegistryRes = {
644
+ hostedTotalRegistryCount?: number
645
+ hostedNormalResCount?: number
646
+ serviceCount?: number
647
+ configCount?: number
648
+ errHostedIns?: GetStaticsRegistryResErrIns
601
649
  }
@@ -30,14 +30,17 @@ export class Hive {
30
30
  static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
31
31
  return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
32
32
  }
33
- static GetCharts(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetHiveChartsRes> {
34
- return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetHiveChartsRes>(`/apis/hive.skoala.io/v1alpha1/charts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
33
+ static GetComponents(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetComponentsRes> {
34
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetComponentsRes>(`/apis/hive.skoala.io/v1alpha1/components/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
35
35
  }
36
36
  }
37
37
  export class Sesame {
38
38
  static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
39
39
  return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/sesame.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
40
40
  }
41
+ static GetComponents(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetComponentsRes> {
42
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/components/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
43
+ }
41
44
  }
42
45
  export class Skoala {
43
46
  static ListCluster(req: SkoalaApiGeneralV1alpha1Skoala.ListClusterReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListClusterRes> {
@@ -268,6 +271,9 @@ export class Nacos {
268
271
  static CheckConfig(req: SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigRes> {
269
272
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigReq, SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}/check?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "dataId"])}`, {...initReq, method: "GET"})
270
273
  }
274
+ static UpdateUserPassword(req: SkoalaApiHostedV1alpha1Nacos.UpdateUserPasswordReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
275
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateUserPasswordReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/users`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
276
+ }
271
277
  }
272
278
  export class Sentinel {
273
279
  static GetInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes> {
@@ -391,6 +397,12 @@ export class Statics {
391
397
  static GetStaticsSentinel(req: SkoalaApiHostedV1alpha1Sentinel.GetStaticsSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetStaticsSentinelRes> {
392
398
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetStaticsSentinelReq, SkoalaApiHostedV1alpha1Sentinel.GetStaticsSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/sentinels?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
393
399
  }
400
+ static GetStaticsRegistry(req: SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryRes> {
401
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryReq, SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/registries?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
402
+ }
403
+ static ListTop10RegSrv(req: SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvRes> {
404
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvReq, SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/registries/services?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
405
+ }
394
406
  }
395
407
  export class Mesh {
396
408
  static ListMeshResource(req: SkoalaApiHostedV1alpha1Mesh.ListMeshResourceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListMeshResourceRes> {
@@ -618,7 +630,10 @@ export class GatewayOverview {
618
630
  static GatewayOverviewHealth(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthRes> {
619
631
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/health?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
620
632
  }
621
- static GatewayOverviewAPINumRank(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumRes> {
633
+ static GatewayOverviewRankAPINum(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumRes> {
622
634
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/rank/apinum?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
623
635
  }
636
+ static GatewayOverviewInfo(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoRes> {
637
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/info?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
638
+ }
624
639
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.18.0-4",
3
+ "version": "0.18.0-45",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {