@daocloud-proto/skoala 0.3.3-12 → 0.3.3-125

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.
Files changed (42) hide show
  1. package/api/general/v1alpha1/skoala.pb.ts +19 -7
  2. package/api/hosted/v1alpha1/gateway.pb.ts +111 -66
  3. package/api/hosted/v1alpha1/nacos.pb.ts +104 -2
  4. package/api/hosted/v1alpha1/sentinel.pb.ts +51 -10
  5. package/api/integrated/v1alpha1/insight.pb.ts +39 -4
  6. package/api/integrated/v1alpha1/instance.pb.ts +31 -19
  7. package/api/integrated/v1alpha1/registry.pb.ts +8 -5
  8. package/api/integrated/v1alpha1/service.pb.ts +8 -11
  9. package/api/skoala/v1alpha1/book.pb.ts +2 -2
  10. package/api/skoala/v1alpha1/skoala.pb.ts +29 -20
  11. package/feature_gate/v1alpha1/feature_gate.pb.ts +27 -0
  12. package/fetch.pb.ts +109 -0
  13. package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
  14. package/google/api/annotations.pb.ts +1 -0
  15. package/google/api/http.pb.ts +34 -0
  16. package/google/protobuf/any.pb.ts +9 -0
  17. package/google/protobuf/api.pb.ts +32 -0
  18. package/google/protobuf/descriptor.pb.ts +262 -0
  19. package/google/protobuf/duration.pb.ts +9 -0
  20. package/google/protobuf/empty.pb.ts +7 -0
  21. package/google/protobuf/field_mask.pb.ts +8 -0
  22. package/google/protobuf/struct.pb.ts +33 -0
  23. package/google/protobuf/timestamp.pb.ts +9 -0
  24. package/google/protobuf/type.pb.ts +83 -0
  25. package/google/protobuf/wrappers.pb.ts +40 -0
  26. package/google/rpc/status.pb.ts +12 -0
  27. package/insight/v1alpha1/alert.pb.ts +291 -0
  28. package/insight/v1alpha1/notify.pb.ts +84 -0
  29. package/log/v1alpha1/log.pb.ts +113 -0
  30. package/metric/v1alpha1/metric.pb.ts +98 -0
  31. package/package.json +1 -1
  32. package/resource/v1alpha1/cluster.pb.ts +101 -0
  33. package/resource/v1alpha1/job.pb.ts +93 -0
  34. package/resource/v1alpha1/node.pb.ts +62 -0
  35. package/resource/v1alpha1/pod.pb.ts +82 -0
  36. package/resource/v1alpha1/service.pb.ts +61 -0
  37. package/resource/v1alpha1/type.pb.ts +9 -0
  38. package/resource/v1alpha1/workload.pb.ts +69 -0
  39. package/span_metric/v1alpha1/openmetrics.pb.ts +130 -0
  40. package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
  41. package/span_metric/v1alpha1/span_metric.pb.ts +100 -0
  42. package/type/v1alpha1/page.pb.ts +11 -0
@@ -18,21 +18,33 @@ export type Cluster = {
18
18
  }
19
19
 
20
20
  export type Workspace = {
21
- id?: string
21
+ id?: number
22
22
  name?: string
23
- parentWorkspaceId?: string
23
+ }
24
+
25
+ export type Pagination = {
26
+ total?: number
27
+ page?: number
28
+ pageSize?: number
29
+ pages?: number
24
30
  }
25
31
 
26
32
  export type ListWorkspaceReq = {
27
33
  page?: number
28
- size?: number
34
+ pageSize?: number
29
35
  }
30
36
 
31
37
  export type ListWorkspaceRes = {
32
- workspaces?: Workspace[]
33
- page?: number
34
- size?: number
35
- total?: number
38
+ items?: Workspace[]
39
+ pagination?: Pagination
40
+ }
41
+
42
+ export type GetWorkspaceReq = {
43
+ workspaceId?: number
44
+ }
45
+
46
+ export type GetWorkspaceRes = {
47
+ workspace?: Workspace
36
48
  }
37
49
 
38
50
  export type ListClusterReq = {
@@ -40,15 +40,15 @@ export type Gateway = {
40
40
  updatedAt?: string
41
41
  status?: SkoalaApiGeneralV1alpha1Skoala.Status
42
42
  endpoints?: string[]
43
- master?: Node
44
- worker?: Node
43
+ contour?: Node
44
+ envoy?: Node
45
45
  config?: GatewayConfig
46
46
  }
47
47
 
48
48
  export type ListAllGatewayReq = {
49
49
  workspaceId?: number
50
50
  page?: number
51
- size?: number
51
+ pageSize?: number
52
52
  filter?: string
53
53
  }
54
54
 
@@ -56,22 +56,12 @@ export type ListClusterGatewayReq = {
56
56
  workspaceId?: number
57
57
  clusterName?: string
58
58
  page?: number
59
- size?: number
60
- }
61
-
62
- export type ListNamespaceGatewayReq = {
63
- workspaceId?: number
64
- clusterName?: string
65
- namespaceName?: string
66
- page?: number
67
- size?: number
59
+ pageSize?: number
68
60
  }
69
61
 
70
62
  export type ListGatewayRes = {
71
- gateways?: Gateway[]
72
- page?: number
73
- size?: number
74
- total?: number
63
+ items?: Gateway[]
64
+ pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
75
65
  }
76
66
 
77
67
  export type GetGatewayReq = {
@@ -85,6 +75,70 @@ export type GetGatewayRes = {
85
75
  gateways?: Gateway
86
76
  }
87
77
 
78
+ export type EnvoyPortsString = {
79
+ http?: string
80
+ https?: string
81
+ }
82
+
83
+ export type EnvoyPorts = {
84
+ http?: number
85
+ https?: number
86
+ }
87
+
88
+ export type ContourPorts = {
89
+ xds?: number
90
+ metrics?: number
91
+ }
92
+
93
+ export type ContourPortsString = {
94
+ xds?: string
95
+ }
96
+
97
+ export type HostIPs = {
98
+ http?: string
99
+ https?: string
100
+ }
101
+
102
+ export type EnvoyService = {
103
+ type?: string
104
+ ports?: EnvoyPorts
105
+ targetPorts?: EnvoyPortsString
106
+ nodePorts?: EnvoyPortsString
107
+ extraPorts?: string[]
108
+ externalTrafficPolicy?: string
109
+ }
110
+
111
+ export type ContourService = {
112
+ type?: string
113
+ clusterIp?: string
114
+ ports?: ContourPorts
115
+ nodePorts?: ContourPortsString
116
+ extraPorts?: string[]
117
+ externalTrafficPolicy?: string
118
+ loadBalancerSourceRanges?: string[]
119
+ loadBalancerIp?: string
120
+ }
121
+
122
+ export type EnvoyNormalConfig = {
123
+ kind?: string
124
+ replicas?: number
125
+ hostNetwork?: boolean
126
+ dnsPolicy?: string
127
+ useHostIp?: boolean
128
+ useHostPort?: boolean
129
+ containerPorts?: EnvoyPorts
130
+ hostIps?: HostIPs
131
+ hostPorts?: EnvoyPorts
132
+ service?: EnvoyService
133
+ }
134
+
135
+ export type ContourNormalConfig = {
136
+ rootNamespaces?: string
137
+ replicas?: number
138
+ containerPorts?: ContourPorts
139
+ service?: ContourService
140
+ }
141
+
88
142
  export type CreateGatewayReq = {
89
143
  workspaceId?: number
90
144
  name?: string
@@ -94,10 +148,6 @@ export type CreateGatewayReq = {
94
148
  config?: GatewayConfig
95
149
  }
96
150
 
97
- export type CreateGatewayRes = {
98
- gateway?: Gateway
99
- }
100
-
101
151
  export type UpdateGatewayReq = {
102
152
  workspaceId?: number
103
153
  gatewayName?: string
@@ -106,10 +156,6 @@ export type UpdateGatewayReq = {
106
156
  config?: GatewayConfig
107
157
  }
108
158
 
109
- export type UpdateGatewayRes = {
110
- gateway?: Gateway
111
- }
112
-
113
159
  export type DeleteGatewayReq = {
114
160
  workspaceId?: number
115
161
  clusterName?: string
@@ -121,71 +167,70 @@ export type DeleteGatewayRes = {
121
167
  gateway?: Gateway
122
168
  }
123
169
 
170
+ export type NormalConfig = {
171
+ contour?: ContourNormalConfig
172
+ envoy?: EnvoyNormalConfig
173
+ }
174
+
124
175
  export type GatewayConfig = {
125
176
  normal?: NormalConfig
126
177
  advanced?: AdvancedConfig
127
178
  }
128
179
 
129
180
 
130
- type BaseNormalConfig = {
131
- masterCount?: number
132
- workerCount?: number
181
+ type BaseContourAdvancedConfig = {
182
+ resources?: Resource
133
183
  }
134
184
 
135
- export type NormalConfig = BaseNormalConfig
136
- & OneOf<{ clusterIp: ClusterIP; nodePort: NodePort; loadBalancer: LoadBalancer; externalName: ExternalName }>
185
+ export type ContourAdvancedConfig = BaseContourAdvancedConfig
186
+ & OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
137
187
 
138
- export type Port = {
139
- name?: string
140
- protocol?: string
141
- port?: number
142
- targetPort?: number
143
- nodePort?: number
144
- }
145
188
 
146
- export type NodePort = {
147
- ports?: Port[]
189
+ type BaseEnvoyAdvancedConfig = {
190
+ resources?: Resource
148
191
  }
149
192
 
150
- export type ClusterIP = {
151
- ports?: Port[]
152
- }
193
+ export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
194
+ & OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
153
195
 
154
- export type LoadBalancer = {
196
+ export type AdvancedConfig = {
197
+ log?: Log
198
+ contour?: ContourAdvancedConfig
199
+ envoy?: EnvoyAdvancedConfig
200
+ globalRateLimit?: boolean
155
201
  }
156
202
 
157
- export type ExternalName = {
158
- externalName?: string
203
+ export type Log = {
204
+ envoyLogLevel?: LogLogLevel
205
+ k8SDebug?: number
206
+ contourDebug?: boolean
207
+ logToInsight?: boolean
159
208
  }
160
209
 
161
-
162
- type BaseAdvancedConfig = {
163
- log?: Log
164
- resource?: Resource
165
- enableGlobalRateLimit?: boolean
210
+ export type Resource = {
211
+ cpuRequests?: string
212
+ cpuLimits?: string
213
+ memoryRequests?: string
214
+ memoryLimits?: string
166
215
  }
167
216
 
168
- export type AdvancedConfig = BaseAdvancedConfig
169
- & OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
170
-
171
- export type Log = {
172
- workerLogLevel?: LogLogLevel
173
- podLogLevel?: number
174
- enableDebugLog?: boolean
175
- enableLogToInsight?: boolean
217
+ export type RollingUpdate = {
218
+ maxSurge?: string
219
+ maxUnavailable?: string
176
220
  }
177
221
 
178
- export type Quota = {
179
- cpuRequests?: number
180
- cpuLimits?: number
181
- memoryRequests?: number
182
- memoryLimits?: number
222
+ export type GetImagesRes = {
223
+ contour?: string
224
+ envoy?: string
183
225
  }
184
226
 
185
- export type Resource = {
186
- master?: Quota
187
- worker?: Quota
227
+ export type GetGatewayStatusReq = {
228
+ workspaceId?: number
229
+ clusterName?: string
230
+ namespaceName?: string
231
+ gatewayName?: string
188
232
  }
189
233
 
190
- export type RollingUpdate = {
234
+ export type GetGatewayStatusRes = {
235
+ ready?: boolean
191
236
  }
@@ -3,26 +3,102 @@
3
3
  /*
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
+
7
+ import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
8
+
9
+ export enum NacosStatus {
10
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
11
+ Running = "Running",
12
+ Creating = "Creating",
13
+ Failed = "Failed",
14
+ Scaling = "Scaling",
15
+ }
16
+
17
+ export enum NacosConfigType {
18
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
19
+ standalone = "standalone",
20
+ cluster = "cluster",
21
+ }
22
+
23
+ export enum NacosConfigServiceType {
24
+ SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
25
+ NodePort = "NodePort",
26
+ ClusterIP = "ClusterIP",
27
+ LoadBalancer = "LoadBalancer",
28
+ }
29
+
6
30
  export type ListNacosReq = {
7
31
  workspaceId?: string
32
+ clusterName?: string
33
+ namespaceName?: string
8
34
  page?: number
35
+ pageSize?: number
9
36
  }
10
37
 
11
38
  export type ListNacosRes = {
39
+ items?: Nacos[]
40
+ pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
41
+ }
42
+
43
+ export type Nacos = {
44
+ workspaceId?: string
45
+ clusterName?: string
46
+ nacosName?: string
47
+ namespaceName?: string
48
+ type?: NacosConfigType
49
+ serviceType?: NacosConfigServiceType
50
+ nodePort?: number
51
+ status?: NacosStatus
52
+ replicas?: number
53
+ image?: string
54
+ version?: string
55
+ database?: NacosDatabase
56
+ resource?: NacosResource
57
+ condition?: NacosCondition[]
58
+ createAt?: string
59
+ }
60
+
61
+ export type NacosDatabase = {
62
+ type?: string
63
+ host?: string
64
+ port?: string
65
+ db?: string
66
+ user?: string
67
+ }
68
+
69
+ export type NacosResource = {
70
+ limits?: {[key: string]: string}
71
+ request?: {[key: string]: string}
72
+ }
73
+
74
+ export type NacosCondition = {
75
+ type?: string
76
+ status?: string
77
+ reason?: string
78
+ message?: string
79
+ instance?: string
80
+ hostIP?: string
81
+ podName?: string
82
+ nodeName?: string
12
83
  }
13
84
 
14
85
  export type GetNacosReq = {
15
86
  workspaceId?: string
87
+ clusterName?: string
16
88
  nacosName?: string
89
+ namespaceName?: string
17
90
  }
18
91
 
19
92
  export type GetNacosRes = {
93
+ nacos?: Nacos
20
94
  }
21
95
 
22
96
  export type UpdateNacosReq = {
23
97
  workspaceId?: string
98
+ clusterName?: string
24
99
  nacosName?: string
25
- config?: string
100
+ namespaceName?: string
101
+ config?: NacosConfig
26
102
  }
27
103
 
28
104
  export type UpdateNacosRes = {
@@ -30,7 +106,11 @@ export type UpdateNacosRes = {
30
106
 
31
107
  export type CreateNacosReq = {
32
108
  workspaceId?: string
33
- gatewayName?: string
109
+ clusterName?: string
110
+ nacosName?: string
111
+ namespaceName?: string
112
+ createNamespace?: boolean
113
+ config?: NacosConfig
34
114
  }
35
115
 
36
116
  export type CreateNacosRes = {
@@ -38,8 +118,30 @@ export type CreateNacosRes = {
38
118
 
39
119
  export type DeleteNacosReq = {
40
120
  workspaceId?: string
121
+ clusterName?: string
41
122
  nacosName?: string
123
+ namespaceName?: string
42
124
  }
43
125
 
44
126
  export type DeleteNacosRes = {
127
+ }
128
+
129
+ export type NacosConfig = {
130
+ type?: NacosConfigType
131
+ version?: string
132
+ replicas?: number
133
+ cpu?: string
134
+ memory?: string
135
+ serviceType?: NacosConfigServiceType
136
+ nodePort?: string
137
+ databaseEnabled?: boolean
138
+ databaseParam?: DatabaseParam
139
+ }
140
+
141
+ export type DatabaseParam = {
142
+ host?: string
143
+ port?: string
144
+ username?: string
145
+ password?: string
146
+ db?: string
45
147
  }
@@ -3,42 +3,83 @@
3
3
  /*
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
+
7
+ import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
6
8
  export type ListSentinelReq = {
7
- workspaceId?: string
9
+ workspace?: string
10
+ cluster?: string
11
+ namespace?: string
8
12
  page?: number
13
+ pageSize?: number
9
14
  }
10
15
 
11
16
  export type ListSentinelRes = {
17
+ items?: Sentinel[]
18
+ pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
19
+ }
20
+
21
+ export type Sentinel = {
22
+ workspace?: string
23
+ cluster?: string
24
+ namespace?: string
25
+ name?: string
26
+ config?: SentinelConfig
12
27
  }
13
28
 
14
29
  export type GetSentinelReq = {
15
- workspaceId?: string
16
- sentinelName?: string
30
+ workspace?: string
31
+ cluster?: string
32
+ namespace?: string
33
+ name?: string
17
34
  }
18
35
 
19
36
  export type GetSentinelRes = {
37
+ sentinel?: Sentinel
20
38
  }
21
39
 
22
40
  export type UpdateSentinelReq = {
23
- workspaceId?: string
24
- sentinelName?: string
25
- config?: string
41
+ workspace?: string
42
+ cluster?: string
43
+ namespace?: string
44
+ name?: string
45
+ nacosAddress?: string
46
+ config?: SentinelConfig
26
47
  }
27
48
 
28
49
  export type UpdateSentinelRes = {
29
50
  }
30
51
 
52
+ export type Resources = {
53
+ cpuRequests?: string
54
+ cpuLimits?: string
55
+ memoryRequests?: string
56
+ memoryLimits?: string
57
+ }
58
+
59
+ export type SentinelConfig = {
60
+ type?: string
61
+ port?: number
62
+ nodePort?: number
63
+ resources?: Resources
64
+ }
65
+
31
66
  export type CreateSentinelReq = {
32
- workspaceId?: string
33
- gatewayName?: string
67
+ workspace?: string
68
+ cluster?: string
69
+ namespace?: string
70
+ name?: string
71
+ nacosAddress?: string
72
+ config?: SentinelConfig
34
73
  }
35
74
 
36
75
  export type CreateSentinelRes = {
37
76
  }
38
77
 
39
78
  export type DeleteSentinelReq = {
40
- workspaceId?: string
41
- sentinelName?: string
79
+ workspace?: string
80
+ cluster?: string
81
+ namespace?: string
82
+ name?: string
42
83
  }
43
84
 
44
85
  export type DeleteSentinelRes = {
@@ -4,12 +4,47 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as InsightIoApiSpan_metricV1alpha1Span_metric from "../../../span_metric/v1alpha1/span_metric.pb"
7
+ import * as InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
8
8
  export type Insight = {
9
+ serviceDetail?: InsightValue
10
+ serviceMetrics?: InsightMetrics
11
+ instanceMonitorMetrics?: MonitorMetrics
12
+ }
13
+
14
+ export type InstanceInsight = {
15
+ instanceDetail?: InsightValue
16
+ instanceMetrics?: InsightMetrics
17
+ instanceMonitorMetrics?: MonitorMetrics
18
+ }
19
+
20
+ export type InsightValue = {
9
21
  call?: string
10
22
  successRates?: string
11
23
  latencies?: string
12
- metricsLatencies?: {[key: string]: InsightIoApiSpan_metricV1alpha1Span_metric.GetMetricsResponse}
13
- metricsErrorRates?: InsightIoApiSpan_metricV1alpha1Span_metric.GetMetricsResponse
14
- metricsCallRates?: InsightIoApiSpan_metricV1alpha1Span_metric.GetMetricsResponse
24
+ }
25
+
26
+ export type InsightMetrics = {
27
+ p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
28
+ p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
29
+ p90Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
30
+ p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
31
+ p99Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
32
+ reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
33
+ repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
34
+ errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
35
+ successTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
36
+ errorTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
37
+ }
38
+
39
+ export type MonitorMetrics = {
40
+ cpuRequest?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
41
+ cpuLimit?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
42
+ cpuUsage?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
43
+ memoryRequest?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
44
+ memoryLimit?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
45
+ memoryUsage?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
46
+ diskRead?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
47
+ diskWrite?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
48
+ netBytesReceived?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
49
+ netBytesTransmitted?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
15
50
  }
@@ -4,17 +4,27 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
8
+ import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
9
+
10
+ export enum InstanceStatus {
11
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
12
+ RUNNING = "RUNNING",
13
+ FAILED = "FAILED",
14
+ }
15
+
8
16
  export type Instance = {
9
- workspaceId?: string
10
17
  id?: string
11
18
  serviceName?: string
12
19
  frameworkType?: string
13
20
  host?: string
14
- port?: number
21
+ ports?: number[]
22
+ instanceStatus?: InstanceStatus
23
+ enabled?: boolean
15
24
  metadata?: {[key: string]: string}
16
- registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
17
25
  detail?: {[key: string]: string}
26
+ updateAt?: string
27
+ insight?: SkoalaApiIntegratedV1alpha1Insight.InstanceInsight
18
28
  }
19
29
 
20
30
  export type ListInstanceReq = {
@@ -23,37 +33,39 @@ export type ListInstanceReq = {
23
33
  namespaceId?: string
24
34
  groupName?: string
25
35
  serviceName?: string
36
+ instanceId?: string
37
+ page?: number
38
+ pageSize?: number
26
39
  }
27
40
 
28
- export type ListAllInstanceReq = {
29
- workspaceId?: string
30
- page?: number
31
- size?: number
41
+ export type ListInstanceRes = {
42
+ items?: Instance[]
43
+ pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
32
44
  }
33
45
 
34
- export type ListRegistryAllInstanceReq = {
46
+ export type GetInstanceReq = {
35
47
  workspaceId?: string
36
48
  registryId?: string
37
- page?: number
38
- size?: number
49
+ namespaceId?: string
50
+ groupName?: string
51
+ serviceName?: string
52
+ instanceId?: string
39
53
  }
40
54
 
41
- export type ListInstanceRes = {
42
- instances?: Instance[]
43
- page?: number
44
- size?: number
45
- total?: number
55
+ export type GetInstanceRes = {
56
+ instance?: Instance
46
57
  }
47
58
 
48
- export type GetInstanceReq = {
59
+ export type UpdateInstanceReq = {
49
60
  workspaceId?: string
50
61
  registryId?: string
51
62
  namespaceId?: string
52
63
  groupName?: string
53
- serviceName?: string
54
64
  instanceId?: string
65
+ serviceName?: string
66
+ enabled?: boolean
55
67
  }
56
68
 
57
- export type GetInstanceRes = {
69
+ export type UpdateInstanceRes = {
58
70
  instance?: Instance
59
71
  }