@daocloud-proto/skoala 0.17.1 → 0.18.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.
@@ -0,0 +1,63 @@
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 InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
9
+ export type ListGatewayNamesReq = {
10
+ workspaceId?: string
11
+ }
12
+
13
+ export type ListGatewayNamesRes = {
14
+ gatewayNames?: string[]
15
+ }
16
+
17
+ export type GatewayOverviewBasicReq = {
18
+ workspaceId?: string
19
+ gatewayName?: string[]
20
+ startTime?: string
21
+ endTime?: string
22
+ time?: string
23
+ unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
24
+ }
25
+
26
+ export type GatewayOverviewBasicRes = {
27
+ avgTime?: number
28
+ apiCount?: string
29
+ rps?: number
30
+ }
31
+
32
+ export type GatewayOverviewHealthReq = {
33
+ workspaceId?: string
34
+ gatewayName?: string[]
35
+ startTime?: string
36
+ endTime?: string
37
+ time?: string
38
+ unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
39
+ }
40
+
41
+ export type GatewayOverviewHealthRes = {
42
+ successMetrics?: GatewayMetrics[]
43
+ failMetrics?: GatewayMetrics[]
44
+ }
45
+
46
+ export type GatewayMetrics = {
47
+ gatewayName?: string
48
+ metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
49
+ }
50
+
51
+ export type GatewayOverviewAPINumRankReq = {
52
+ workspaceId?: string
53
+ }
54
+
55
+ export type GatewayOverviewAPINumRankRes = {
56
+ items?: GatewayAPINum[]
57
+ }
58
+
59
+ export type GatewayAPINum = {
60
+ gatewayName?: string
61
+ deploymentLocation?: string
62
+ apiNum?: number
63
+ }
@@ -0,0 +1 @@
1
+ export default {}
@@ -21,6 +21,33 @@ export enum RegistryType {
21
21
  MESH = "MESH",
22
22
  }
23
23
 
24
+ export enum HostedRegistryStatus {
25
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
26
+ Running = "Running",
27
+ Creating = "Creating",
28
+ Failed = "Failed",
29
+ }
30
+
31
+ export enum HostedRegistryType {
32
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
33
+ NACOS = "NACOS",
34
+ EUREKA = "EUREKA",
35
+ ZOOKEEPER = "ZOOKEEPER",
36
+ }
37
+
38
+ export enum HostedConfigCenterStatus {
39
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
40
+ Running = "Running",
41
+ Creating = "Creating",
42
+ Failed = "Failed",
43
+ }
44
+
45
+ export enum HostedConfigCenterType {
46
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
47
+ NACOS = "NACOS",
48
+ APOLLO = "APOLLO",
49
+ }
50
+
24
51
  export type Registry = {
25
52
  workspaceId?: string
26
53
  registryId?: string
@@ -56,6 +83,35 @@ export type ListRegistryRes = {
56
83
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
57
84
  }
58
85
 
86
+ export type HostedRegistry = {
87
+ workspaceId?: string
88
+ clusterName?: string
89
+ name?: string
90
+ namespaceName?: string
91
+ type?: HostedRegistryType
92
+ status?: HostedRegistryStatus
93
+ version?: string
94
+ nodeCount?: number
95
+ healthNodeCount?: number
96
+ serviceCount?: number
97
+ createdAt?: string
98
+ }
99
+
100
+ export type ListHostedRegistryReq = {
101
+ workspaceId?: string
102
+ clusterName?: string
103
+ namespaceName?: string
104
+ type?: string
105
+ name?: string
106
+ page?: number
107
+ pageSize?: number
108
+ }
109
+
110
+ export type ListHostedRegistryRes = {
111
+ items?: HostedRegistry[]
112
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
113
+ }
114
+
59
115
  export type GetRegistryReq = {
60
116
  workspaceId?: string
61
117
  registryId?: string
@@ -107,4 +163,33 @@ export type PingRegistryRes = {
107
163
  export type Namespace = {
108
164
  id?: string
109
165
  name?: string
166
+ }
167
+
168
+ export type HostedConfigCenter = {
169
+ workspaceId?: string
170
+ clusterName?: string
171
+ name?: string
172
+ namespaceName?: string
173
+ type?: HostedConfigCenterType
174
+ status?: HostedConfigCenterStatus
175
+ version?: string
176
+ nodeCount?: number
177
+ healthNodeCount?: number
178
+ configCount?: number
179
+ createdAt?: string
180
+ }
181
+
182
+ export type ListHostedConfigCenterReq = {
183
+ workspaceId?: string
184
+ clusterName?: string
185
+ namespaceName?: string
186
+ type?: string
187
+ name?: string
188
+ page?: number
189
+ pageSize?: number
190
+ }
191
+
192
+ export type ListHostedConfigCenterRes = {
193
+ items?: HostedConfigCenter[]
194
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
110
195
  }
@@ -13,6 +13,7 @@ import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version
13
13
  import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
14
14
  import * as SkoalaApiHostedV1alpha1Apilog from "../../hosted/v1alpha1/apilog.pb"
15
15
  import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
16
+ import * as SkoalaApiHostedV1alpha1Gateway_overview from "../../hosted/v1alpha1/gateway_overview.pb"
16
17
  import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
17
18
  import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
18
19
  import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
@@ -92,6 +93,9 @@ export class Registry {
92
93
  static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
93
94
  return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
94
95
  }
96
+ static ListHosted(req: SkoalaApiIntegratedV1alpha1Registry.ListHostedRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListHostedRegistryRes> {
97
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.ListHostedRegistryReq, SkoalaApiIntegratedV1alpha1Registry.ListHostedRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/hosted_registries?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
98
+ }
95
99
  static Get(req: SkoalaApiIntegratedV1alpha1Registry.GetRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.GetRegistryRes> {
96
100
  return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.GetRegistryReq, SkoalaApiIntegratedV1alpha1Registry.GetRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId"])}`, {...initReq, method: "GET"})
97
101
  }
@@ -142,6 +146,9 @@ export class Registry {
142
146
  }
143
147
  }
144
148
  export class ConfigCenter {
149
+ static ListHosted(req: SkoalaApiIntegratedV1alpha1Registry.ListHostedConfigCenterReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListHostedConfigCenterRes> {
150
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.ListHostedConfigCenterReq, SkoalaApiIntegratedV1alpha1Registry.ListHostedConfigCenterRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/hosted_config_center?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
151
+ }
145
152
  }
146
153
  export class Nacos {
147
154
  static List(req: SkoalaApiHostedV1alpha1Nacos.ListNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosRes> {
@@ -600,4 +607,18 @@ export class GatewayService {
600
607
  static DeleteService(req: SkoalaApiHostedV1alpha1Gateway_service.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
601
608
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.DeleteGatewayServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "DELETE"})
602
609
  }
610
+ }
611
+ export class GatewayOverview {
612
+ static ListGatewayName(req: SkoalaApiHostedV1alpha1Gateway_overview.ListGatewayNamesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.ListGatewayNamesRes> {
613
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.ListGatewayNamesReq, SkoalaApiHostedV1alpha1Gateway_overview.ListGatewayNamesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/gateway/names?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
614
+ }
615
+ static GatewayOverviewBasic(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicRes> {
616
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/gateway/basic?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
617
+ }
618
+ static GatewayOverviewHealth(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthRes> {
619
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/gateway/health?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
620
+ }
621
+ static GatewayOverviewAPINumRank(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPINumRankReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPINumRankRes> {
622
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPINumRankReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPINumRankRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/gateway/apinumrank?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
623
+ }
603
624
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {