@daocloud-proto/skoala 0.19.4-2 → 0.19.4-20

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.
@@ -111,6 +111,7 @@ export type AdvancedAPIConfig = {
111
111
  authPolicy?: AuthPolicy
112
112
  cookieRewritePolicy?: CookieRewritePolicy[]
113
113
  ipPolicy?: SkoalaApiHostedV1alpha1Gateway.IPPolicy
114
+ domainIpPolicyStatus?: SkoalaApiHostedV1alpha1Gateway.IPPolicyStatus
114
115
  }
115
116
 
116
117
  export type CookieRewritePolicy = {
@@ -70,6 +70,12 @@ export enum IPSource {
70
70
  DirectRemoteIp = "DirectRemoteIp",
71
71
  }
72
72
 
73
+ export enum IPPolicyStatus {
74
+ IP_POLICY_STATUS_UNSPECIFIED = "IP_POLICY_STATUS_UNSPECIFIED",
75
+ AllowEnabled = "AllowEnabled",
76
+ DenyEnabled = "DenyEnabled",
77
+ }
78
+
73
79
  export enum GatewayConditionType {
74
80
  TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
75
81
  Scheduled = "Scheduled",
@@ -519,7 +525,6 @@ export type IPPolicyRule = {
519
525
  }
520
526
 
521
527
  export type IPPolicy = {
522
- path?: string
523
528
  level?: IPPolicyLevel
524
529
  allowRules?: IPPolicyRule[]
525
530
  denyRules?: IPPolicyRule[]
@@ -49,7 +49,6 @@ export enum ServiceStatus {
49
49
 
50
50
  export enum ServiceType {
51
51
  GOVERN_TYPE_UNSPECIFIED = "GOVERN_TYPE_UNSPECIFIED",
52
- NORMAL = "NORMAL",
53
52
  SPRING_CLOUD = "SPRING_CLOUD",
54
53
  DUBBO = "DUBBO",
55
54
  }
@@ -131,13 +130,20 @@ export type ListService = {
131
130
  type?: ServiceType
132
131
  port?: string
133
132
  namespace?: string
133
+ versions?: string[]
134
134
  }
135
135
 
136
136
  export type ListExportService = {
137
137
  name?: string
138
138
  namespace?: string
139
139
  status?: ServiceStatus
140
- des?: string
140
+ des?: FailedReason
141
+ }
142
+
143
+ export type FailedReason = {
144
+ serviceInfo?: string[]
145
+ instancesInfo?: string[]
146
+ workloadsInfo?: string[]
141
147
  }
142
148
 
143
149
  export type ListServiceReq = {
@@ -191,4 +197,34 @@ export type ExportServiceReq = {
191
197
  }
192
198
 
193
199
  export type ExportServiceRes = {
200
+ }
201
+
202
+ export type ListServiceGovernReq = {
203
+ workspaceId?: string
204
+ meshId?: string
205
+ namespaceName?: string
206
+ serviceName?: string
207
+ }
208
+
209
+ export type ListServiceGovernRes = {
210
+ items?: ListServiceGovern[]
211
+ }
212
+
213
+ export type ListServiceGovern = {
214
+ port?: string
215
+ lb?: string
216
+ updateTime?: number
217
+ }
218
+
219
+ export type UpdateServiceGovernReq = {
220
+ workspaceId?: string
221
+ meshId?: string
222
+ namespaceName?: string
223
+ serviceName?: string
224
+ lb?: string
225
+ liqun?: string
226
+ rongduan?: string
227
+ }
228
+
229
+ export type UpdateServiceGovernRes = {
194
230
  }
@@ -49,6 +49,12 @@ export type CreateSkoalaPluginReq = BaseCreateSkoalaPluginReq
49
49
  export type UpdateUsage = {
50
50
  }
51
51
 
52
+ export type UpdateSkoalaPluginStatusReq = {
53
+ workspaceId?: string
54
+ status?: boolean
55
+ pluginName?: string
56
+ }
57
+
52
58
 
53
59
  type BaseUpdateSkoalaPluginReq = {
54
60
  workspaceId?: string
@@ -80,7 +86,8 @@ type BaseGetSkoalaPluginRes = {
80
86
  describe?: string
81
87
  usage?: PluginUsage[]
82
88
  inCluster?: boolean
83
- address?: string
89
+ address?: string[]
90
+ version?: number
84
91
  }
85
92
 
86
93
  export type GetSkoalaPluginRes = BaseGetSkoalaPluginRes
@@ -122,8 +129,10 @@ export type SkoalaPluginInfo = {
122
129
  createdAt?: string
123
130
  updatedAt?: string
124
131
  inCluster?: boolean
125
- address?: string
132
+ address?: string[]
126
133
  version?: number
134
+ disabled?: boolean
135
+ usage?: PluginUsage[]
127
136
  }
128
137
 
129
138
  export type WasmPluginConfig = {
@@ -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
 
10
11
  type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
@@ -46,6 +47,7 @@ export type VirtualhostConfig = {
46
47
  tlsPolicy?: VirtualhostTLSPolicy
47
48
  jwtProviders?: JwtProvider[]
48
49
  authPolicy?: AuthorizationPolicy
50
+ ipPolicy?: SkoalaApiHostedV1alpha1Gateway.IPPolicy
49
51
  }
50
52
 
51
53
  export type AuthorizationPolicy = {
@@ -144,6 +146,7 @@ export type GetVirtualhostRes = {
144
146
  tlsPolicy?: VirtualhostTLSPolicy
145
147
  jwtProviders?: JwtProvider[]
146
148
  authPolicy?: AuthorizationPolicy
149
+ ipPolicy?: SkoalaApiHostedV1alpha1Gateway.IPPolicy
147
150
  }
148
151
 
149
152
  export type UpdateVirtualhostReq = {
@@ -5,37 +5,6 @@
5
5
  */
6
6
 
7
7
  import * as InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
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 = {
21
- call?: string
22
- successRates?: string
23
- latencies?: string
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
8
  export type MonitorMetrics = {
40
9
  cpuRequest?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
41
10
  cpuLimit?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
@@ -436,6 +436,12 @@ export class Mesh {
436
436
  static ExportService(req: SkoalaApiHostedV1alpha1Mesh.ExportServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ExportServiceRes> {
437
437
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ExportServiceReq, SkoalaApiHostedV1alpha1Mesh.ExportServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
438
438
  }
439
+ static ListServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.ListServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceGovernRes> {
440
+ 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"})
441
+ }
442
+ static UpdateServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes> {
443
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
444
+ }
439
445
  }
440
446
  export class Plugin {
441
447
  static List(req: SkoalaApiHostedV1alpha1Plugins.ListPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.ListPluginRes> {
@@ -657,6 +663,9 @@ export class SkoalaPlugin {
657
663
  static UpdatePlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.UpdateSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
658
664
  return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.UpdateSkoalaPluginReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
659
665
  }
666
+ static UpdatePluginStatus(req: SkoalaApiHostedV1alpha1Skoala_plugins.UpdateSkoalaPluginStatusReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
667
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.UpdateSkoalaPluginStatusReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}/status/${req["status"]}`, {...initReq, method: "PUT"})
668
+ }
660
669
  static ListPlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginRes> {
661
670
  return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginReq, SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
662
671
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.19.4-2",
3
+ "version": "0.19.4-20",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {