@daocloud-proto/skoala 0.25.0-4 → 0.26.0

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.
@@ -33,6 +33,12 @@ export enum ListAlertsReqComponentsType {
33
33
  gateway = "gateway",
34
34
  }
35
35
 
36
+ export enum AuditItemAuditStatus {
37
+ All = "All",
38
+ Succeded = "Succeded",
39
+ Failed = "Failed",
40
+ }
41
+
36
42
  export type ListWorkspaceReq = {
37
43
  name?: string
38
44
  page?: number
@@ -92,6 +98,21 @@ export type ListMeshServiceReq = {
92
98
  pageSize?: number
93
99
  }
94
100
 
101
+ export type ListMeshServiceVersion = {
102
+ versionName?: string
103
+ }
104
+
105
+ export type ListMeshServiceVersionReq = {
106
+ workspaceId?: string
107
+ meshId?: string
108
+ namespaceName?: string
109
+ serviceName?: string
110
+ }
111
+
112
+ export type ListMeshServiceVersionRes = {
113
+ items?: ListMeshServiceVersion[]
114
+ }
115
+
95
116
  export type ListRegistryServiceReq = {
96
117
  workspaceId?: string
97
118
  registryId?: string
@@ -296,4 +317,28 @@ export type ListAlertsReq = {
296
317
 
297
318
  export type ListAlertsRes = {
298
319
  items?: SkoalaApiGeneralV1alpha1Insight.Alert[]
320
+ }
321
+
322
+ export type ListAuditReq = {
323
+ workspaceId?: string
324
+ clusterName?: string
325
+ startTime?: number
326
+ endTime?: number
327
+ page?: number
328
+ pageSize?: number
329
+ }
330
+
331
+ export type AuditItem = {
332
+ id?: string
333
+ name?: string
334
+ resourceType?: string
335
+ resourceName?: string
336
+ user?: string
337
+ logTime?: number
338
+ status?: AuditItemAuditStatus
339
+ }
340
+
341
+ export type ListAuditRes = {
342
+ items?: AuditItem[]
343
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
299
344
  }
@@ -535,11 +535,35 @@ export type QueryGatewayDeploymentsMetricRangeReq = {
535
535
  step?: number
536
536
  }
537
537
 
538
+ export type QueryGatewayDeploymentsMetricReq = {
539
+ workspaceId?: string
540
+ clusterName?: string
541
+ namespaceName?: string
542
+ gatewayName?: string
543
+ atTime?: number
544
+ }
545
+
538
546
  export type QueryGatewayDeploymentsMetricRangeRes = {
539
547
  contour?: QueryMetricRangeResult[]
540
548
  envoy?: QueryMetricRangeResult[]
541
549
  }
542
550
 
551
+ export type ResourceMetric = {
552
+ total?: number
553
+ used?: number
554
+ rate?: number
555
+ }
556
+
557
+ export type RealtimeMetric = {
558
+ cpu?: ResourceMetric
559
+ memory?: ResourceMetric
560
+ }
561
+
562
+ export type QueryGatewayDeploymentsMetricRes = {
563
+ contour?: RealtimeMetric
564
+ envoy?: RealtimeMetric
565
+ }
566
+
543
567
  export type GatewayPodAlertReq = {
544
568
  workspaceId?: string
545
569
  clusterName?: string
@@ -0,0 +1,124 @@
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 SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiHostedV1alpha1Mesh from "./mesh.pb"
9
+
10
+ export enum LaneStatusPhase {
11
+ PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
12
+ PHASE_INACTIVE = "PHASE_INACTIVE",
13
+ PHASE_ACTIVE = "PHASE_ACTIVE",
14
+ PHASE_ERROR = "PHASE_ERROR",
15
+ PHASE_PROCESSING = "PHASE_PROCESSING",
16
+ PHASE_DELETING = "PHASE_DELETING",
17
+ }
18
+
19
+ export enum Action {
20
+ ACTION_UNSPECIFIED = "ACTION_UNSPECIFIED",
21
+ ACTIVE = "ACTIVE",
22
+ INACTIVE = "INACTIVE",
23
+ }
24
+
25
+ export type ListLaneReq = {
26
+ workspaceId?: string
27
+ meshId?: string
28
+ page?: number
29
+ pageSize?: number
30
+ }
31
+
32
+ export type ListLaneRes = {
33
+ items?: ListLane[]
34
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
35
+ }
36
+
37
+ export type ListLane = {
38
+ name?: string
39
+ meshId?: string
40
+ phase?: LaneStatusPhase
41
+ services?: LaneService[]
42
+ }
43
+
44
+ export type LaneService = {
45
+ name?: string
46
+ subset?: string
47
+ }
48
+
49
+ export type CreateLaneReq = {
50
+ workspaceId?: string
51
+ meshId?: string
52
+ name?: string
53
+ }
54
+
55
+ export type CreateLaneRes = {
56
+ }
57
+
58
+ export type ActionLaneReq = {
59
+ workspaceId?: string
60
+ meshId?: string
61
+ laneName?: string
62
+ actionName?: Action
63
+ }
64
+
65
+ export type ActionLaneRes = {
66
+ }
67
+
68
+ export type DeleteLaneReq = {
69
+ workspaceId?: string
70
+ meshId?: string
71
+ laneName?: string
72
+ }
73
+
74
+ export type DeleteLaneRes = {
75
+ }
76
+
77
+ export type GetLaneReq = {
78
+ workspaceId?: string
79
+ meshId?: string
80
+ laneName?: string
81
+ }
82
+
83
+ export type GetLaneRes = {
84
+ lane?: ListLane
85
+ }
86
+
87
+ export type ListLaneService = {
88
+ namespace?: string
89
+ name?: string
90
+ subset?: string
91
+ status?: SkoalaApiHostedV1alpha1Mesh.ServiceStatus
92
+ replicas?: number
93
+ availableReplicas?: number
94
+ }
95
+
96
+ export type ListLaneServiceReq = {
97
+ workspaceId?: string
98
+ meshId?: string
99
+ laneName?: string
100
+ }
101
+
102
+ export type ListLaneServiceRes = {
103
+ items?: ListLaneService[]
104
+ }
105
+
106
+ export type AddLaneService = {
107
+ namespace?: string
108
+ name?: string
109
+ subset?: string
110
+ }
111
+
112
+ export type AddLaneServiceReq = {
113
+ workspaceId?: string
114
+ meshId?: string
115
+ laneName?: string
116
+ services?: AddLaneService[]
117
+ }
118
+
119
+ export type DeleteLaneServiceReq = {
120
+ workspaceId?: string
121
+ meshId?: string
122
+ laneName?: string
123
+ services?: AddLaneService[]
124
+ }
@@ -64,6 +64,7 @@ export enum Rule {
64
64
  RULE_FAULT = "RULE_FAULT",
65
65
  RULE_RETRY = "RULE_RETRY",
66
66
  RULE_TIMEOUT = "RULE_TIMEOUT",
67
+ RULE_LB = "RULE_LB",
67
68
  }
68
69
 
69
70
  export enum GovernProtocol {
@@ -172,9 +173,8 @@ export type ListService = {
172
173
  name?: string
173
174
  status?: ServiceStatus
174
175
  type?: string
175
- port?: string
176
+ ports?: number[]
176
177
  namespace?: string
177
- versions?: string[]
178
178
  }
179
179
 
180
180
  export type ListExportService = {
@@ -243,20 +243,36 @@ export type ExportServiceReq = {
243
243
  export type ExportServiceRes = {
244
244
  }
245
245
 
246
- export type ListServiceGovernReq = {
246
+ export type ListServicePortReq = {
247
+ workspaceId?: string
248
+ meshId?: string
249
+ namespaceName?: string
250
+ serviceName?: string
251
+ }
252
+
253
+ export type ListServicePortRes = {
254
+ items?: ListServicePort[]
255
+ }
256
+
257
+ export type GetServiceReq = {
247
258
  workspaceId?: string
248
259
  meshId?: string
249
260
  namespaceName?: string
250
261
  serviceName?: string
251
262
  }
252
263
 
253
- export type ListServiceGovernRes = {
254
- items?: ListServiceGovern[]
264
+ export type GetServiceRes = {
265
+ serviceName?: string
266
+ status?: ServiceStatus
267
+ type?: string
268
+ ports?: number[]
269
+ meshId?: string
270
+ namespaceName?: string
255
271
  }
256
272
 
257
- export type ListServiceGovern = {
273
+ export type ListServicePort = {
258
274
  port?: number
259
- lb?: LB
275
+ rules?: Rule[]
260
276
  protocol?: GovernProtocol
261
277
  plugins?: ServiceIstioPluginInfo[]
262
278
  }
@@ -365,6 +381,7 @@ export type ListServiceIstioPluginReq = {
365
381
  meshId?: string
366
382
  namespaceName?: string
367
383
  serviceName?: string
384
+ pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
368
385
  port?: string
369
386
  }
370
387
 
@@ -19,6 +19,7 @@ export enum RegistryType {
19
19
  KUBERNETES = "KUBERNETES",
20
20
  ZOOKEEPER = "ZOOKEEPER",
21
21
  MESH = "MESH",
22
+ CONSUL = "CONSUL",
22
23
  }
23
24
 
24
25
  export enum HostedRegistryStatus {
@@ -18,6 +18,7 @@ import * as SkoalaApiHostedV1alpha1Gateway_overview from "../../hosted/v1alpha1/
18
18
  import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
19
19
  import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
20
20
  import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
21
+ import * as SkoalaApiHostedV1alpha1Lane from "../../hosted/v1alpha1/lane.pb"
21
22
  import * as SkoalaApiHostedV1alpha1Mesh from "../../hosted/v1alpha1/mesh.pb"
22
23
  import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
23
24
  import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
@@ -73,6 +74,9 @@ export class Skoala {
73
74
  static ListMeshNamespaceServices(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes> {
74
75
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
75
76
  }
77
+ static ListMeshServiceVersion(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionRes> {
78
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/versions?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
79
+ }
76
80
  static ListRegistryServices(req: SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceRes> {
77
81
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registryId"]}/services/gateway?${fm.renderURLSearchParams(req, ["workspaceId", "registryId"])}`, {...initReq, method: "GET"})
78
82
  }
@@ -109,6 +113,9 @@ export class Skoala {
109
113
  static ListAlerts(req: SkoalaApiGeneralV1alpha1Skoala.ListAlertsReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListAlertsRes> {
110
114
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListAlertsReq, SkoalaApiGeneralV1alpha1Skoala.ListAlertsRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/${req["componentsType"]}/${req["componentsName"]}/alerts?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "componentsType", "componentsName"])}`, {...initReq, method: "GET"})
111
115
  }
116
+ static ListAudit(req: SkoalaApiGeneralV1alpha1Skoala.ListAuditReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListAuditRes> {
117
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListAuditReq, SkoalaApiGeneralV1alpha1Skoala.ListAuditRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/audits?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
118
+ }
112
119
  }
113
120
  export class Registry {
114
121
  static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
@@ -498,8 +505,11 @@ export class Mesh {
498
505
  static UpdateServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
499
506
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/port/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
500
507
  }
501
- static ListServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.ListServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceGovernRes> {
502
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.ListServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
508
+ static GetService(req: SkoalaApiHostedV1alpha1Mesh.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceRes> {
509
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceReq, SkoalaApiHostedV1alpha1Mesh.GetServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
510
+ }
511
+ static ListServicePort(req: SkoalaApiHostedV1alpha1Mesh.ListServicePortReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServicePortRes> {
512
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServicePortReq, SkoalaApiHostedV1alpha1Mesh.ListServicePortRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
503
513
  }
504
514
  static ListPort(req: SkoalaApiHostedV1alpha1Mesh.ListPortReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListPortRes> {
505
515
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListPortReq, SkoalaApiHostedV1alpha1Mesh.ListPortRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rules/${req["ruleName"]}/ports?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "ruleName"])}`, {...initReq, method: "GET"})
@@ -664,6 +674,9 @@ export class Gateway {
664
674
  static QueryGatewayDeploymentsMetricRange(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeRes> {
665
675
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterId"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/metric/deployments/queryrange?${fm.renderURLSearchParams(req, ["workspaceId", "clusterId", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
666
676
  }
677
+ static QueryGatewayDeploymentsMetric(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRes> {
678
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/metric/deployments/query?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
679
+ }
667
680
  static QueryGatewayPodMetricRange(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRangeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRangeRes> {
668
681
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRangeReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRangeRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterId"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/metric/pods/${req["podName"]}/queryrange?${fm.renderURLSearchParams(req, ["workspaceId", "clusterId", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
669
682
  }
@@ -848,4 +861,30 @@ export class SkoalaPlugin {
848
861
  static SkoalaPluginUsageUpdate(req: SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateRes> {
849
862
  return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateReq, SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}/usage`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
850
863
  }
864
+ }
865
+ export class Lane {
866
+ static ListLane(req: SkoalaApiHostedV1alpha1Lane.ListLaneReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListLaneRes> {
867
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.ListLaneReq, SkoalaApiHostedV1alpha1Lane.ListLaneRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
868
+ }
869
+ static CreateLane(req: SkoalaApiHostedV1alpha1Lane.CreateLaneReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.CreateLaneRes> {
870
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.CreateLaneReq, SkoalaApiHostedV1alpha1Lane.CreateLaneRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/lanes`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
871
+ }
872
+ static ActionLane(req: SkoalaApiHostedV1alpha1Lane.ActionLaneReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ActionLaneRes> {
873
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.ActionLaneReq, SkoalaApiHostedV1alpha1Lane.ActionLaneRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/actions/${req["actionName"]}`, {...initReq, method: "POST"})
874
+ }
875
+ static DeleteLane(req: SkoalaApiHostedV1alpha1Lane.DeleteLaneReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.DeleteLaneRes> {
876
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.DeleteLaneReq, SkoalaApiHostedV1alpha1Lane.DeleteLaneRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}`, {...initReq, method: "DELETE"})
877
+ }
878
+ static GetLane(req: SkoalaApiHostedV1alpha1Lane.GetLaneReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListLane> {
879
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.GetLaneReq, SkoalaApiHostedV1alpha1Lane.ListLane>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "laneName"])}`, {...initReq, method: "GET"})
880
+ }
881
+ static ListLaneService(req: SkoalaApiHostedV1alpha1Lane.ListLaneServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListLaneServiceRes> {
882
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.ListLaneServiceReq, SkoalaApiHostedV1alpha1Lane.ListLaneServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "laneName"])}`, {...initReq, method: "GET"})
883
+ }
884
+ static AddLaneService(req: SkoalaApiHostedV1alpha1Lane.AddLaneServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
885
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.AddLaneServiceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
886
+ }
887
+ static DeleteLaneService(req: SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
888
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
889
+ }
851
890
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.25.0-4",
3
+ "version": "0.26.0",
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 = {
@@ -119,6 +121,7 @@ export type insightAgentState = {
119
121
  status?: InsightAgentStatus
120
122
  version?: string
121
123
  createTime?: string
124
+ traceStatus?: InsightAgentStatus
122
125
  }
123
126
 
124
127
  export type ListNamespacesRequest = {