@daocloud-proto/skoala 0.30.0-4 → 0.30.0-42

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.
@@ -365,6 +365,7 @@ export type APIListReq = {
365
365
  namespaceName?: string
366
366
  apiName?: string
367
367
  apiGroup?: string
368
+ fqdn?: string
368
369
  page?: number
369
370
  pageSize?: number
370
371
  }
@@ -44,6 +44,12 @@ export enum APIStatusEnum {
44
44
  unknown = "unknown",
45
45
  }
46
46
 
47
+ export enum APICreateType {
48
+ DIRECT_API = "DIRECT_API",
49
+ LANE_API = "LANE_API",
50
+ IMPORT_API = "IMPORT_API",
51
+ }
52
+
47
53
  export enum MatchType {
48
54
  EXACT = "EXACT",
49
55
  PREFIX = "PREFIX",
@@ -158,6 +164,7 @@ export type APIInfo = {
158
164
  apiStatus?: APIStatus
159
165
  status?: string
160
166
  statusDescription?: string
167
+ apiCreateType?: APICreateType
161
168
  updatedAt?: string
162
169
  }
163
170
 
@@ -51,6 +51,7 @@ export enum ServiceStatus {
51
51
 
52
52
  export enum ServiceType {
53
53
  GOVERN_TYPE_UNSPECIFIED = "GOVERN_TYPE_UNSPECIFIED",
54
+ NORMAL = "NORMAL",
54
55
  SPRING_CLOUD = "SPRING_CLOUD",
55
56
  DUBBO = "DUBBO",
56
57
  }
@@ -99,4 +99,27 @@ type BaseRouteRule = {
99
99
  }
100
100
 
101
101
  export type RouteRule = BaseRouteRule
102
- & OneOf<{ routeAction: SkoalaApiHostedV1alpha1Api.RouteAction; redirect: SkoalaApiHostedV1alpha1Api.RedirectAction; directResponse: SkoalaApiHostedV1alpha1Api.DirectResponse }>
102
+ & OneOf<{ routeAction: SkoalaApiHostedV1alpha1Api.RouteAction; redirect: SkoalaApiHostedV1alpha1Api.RedirectAction; directResponse: SkoalaApiHostedV1alpha1Api.DirectResponse }>
103
+
104
+ export type APIDebugReq = {
105
+ workspaceId?: string
106
+ gatewayName?: string
107
+ clusterName?: string
108
+ namespaceName?: string
109
+ apiName?: string
110
+ method?: string
111
+ path?: string
112
+ body?: string
113
+ query?: {[key: string]: string}
114
+ header?: {[key: string]: string}
115
+ scheme?: string
116
+ insecureSkipVerify?: boolean
117
+ }
118
+
119
+ export type APIDebugRes = {
120
+ status?: string
121
+ latency?: string
122
+ log?: string
123
+ request?: string
124
+ response?: string
125
+ }
@@ -166,13 +166,14 @@ export type GetGatewayServiceReq = {
166
166
  }
167
167
 
168
168
  export type GetGatewayServiceRes = {
169
- externalServiceConf?: ExternalServiceConf
169
+ basicAccessServiceConfig?: ExternalServiceConf
170
170
  manageServiceConf?: ServiceInfo
171
171
  serviceType?: SesameServiceType
172
172
  api?: SkoalaApiHostedV1alpha1Http.APIInfo[]
173
173
  sesameId?: string
174
174
  createdAt?: string
175
175
  advancedAccessServiceConfig?: AdvancedAccessServiceConfig
176
+ displayAddress?: string[]
176
177
  }
177
178
 
178
179
 
@@ -191,6 +192,7 @@ export type ServiceInfo = {
191
192
  createdAt?: string
192
193
  serviceType?: SesameServiceType
193
194
  sesameId?: string
195
+ displayAddress?: string[]
194
196
  servicePort?: SkoalaApiGeneralV1alpha1Common.KubernetesServicePort[]
195
197
  }
196
198
 
@@ -10,6 +10,9 @@ import * as SkoalaApiGeneralV1alpha2Skoala from "../../general/v1alpha2/skoala.p
10
10
  import * as SkoalaApiHostedV1alpha2Gateway_api from "../../hosted/v1alpha2/gateway_api.pb"
11
11
  import * as SkoalaApiHostedV1alpha2Gateway_service from "../../hosted/v1alpha2/gateway_service.pb"
12
12
  export class GatewayAPI {
13
+ static DebugGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.APIDebugReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_api.APIDebugRes> {
14
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.APIDebugReq, SkoalaApiHostedV1alpha2Gateway_api.APIDebugRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/debug`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
15
+ }
13
16
  static CreateGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.CreateAPIReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
14
17
  return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.CreateAPIReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
15
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.30.0-4",
3
+ "version": "0.30.0-42",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {