@daocloud-proto/skoala 0.12.2 → 0.13.0-15

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.
@@ -57,6 +57,7 @@ export enum TimeUnit {
57
57
  Hour = "Hour",
58
58
  Minute = "Minute",
59
59
  Second = "Second",
60
+ Millisecond = "Millisecond",
60
61
  }
61
62
 
62
63
  export enum PluginSwitchStatus {
@@ -114,4 +115,16 @@ export type Image = {
114
115
  export type Component = {
115
116
  name?: string
116
117
  images?: {[key: string]: Image}
118
+ }
119
+
120
+ export type Mysql = {
121
+ id?: string
122
+ name?: string
123
+ address?: string
124
+ }
125
+
126
+ export type Redis = {
127
+ id?: string
128
+ name?: string
129
+ address?: string
117
130
  }
@@ -12,6 +12,15 @@ export enum ListNamespaceReqGatewayStatus {
12
12
  Unavailable = "Unavailable",
13
13
  }
14
14
 
15
+ export enum RegistryServiceInfoRegistryType {
16
+ NACOS = "NACOS",
17
+ EUREKA = "EUREKA",
18
+ KUBERNETES = "KUBERNETES",
19
+ ZOOKEEPER = "ZOOKEEPER",
20
+ MESH = "MESH",
21
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
22
+ }
23
+
15
24
  export enum ListServiceReqServiceType {
16
25
  ALL = "ALL",
17
26
  SESAME = "SESAME",
@@ -77,6 +86,37 @@ export type ListMeshServiceReq = {
77
86
  pageSize?: number
78
87
  }
79
88
 
89
+ export type ListRegistryServiceReq = {
90
+ workspaceId?: string
91
+ registryId?: string
92
+ serviceName?: string
93
+ page?: number
94
+ pageSize?: number
95
+ }
96
+
97
+ export type ListRegistryServiceRes = {
98
+ items?: RegistryServiceInfo[]
99
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
100
+ }
101
+
102
+ export type RegistryServiceInfo = {
103
+ serviceName?: string
104
+ sesameId?: string
105
+ meshId?: string
106
+ meshName?: string
107
+ meshNamespaceName?: string
108
+ meshType?: string
109
+ meshStatus?: string
110
+ meshDeployType?: string
111
+ nacosNamespaceId?: string
112
+ nacosGroupName?: string
113
+ kubernetesClusterName?: string
114
+ kubernetesNamespaceName?: string
115
+ kubernetesPorts?: string[]
116
+ kubernetesLabels?: string[]
117
+ registryType?: RegistryServiceInfoRegistryType
118
+ }
119
+
80
120
  export type ListMeshServiceRes = {
81
121
  items?: MeshServiceInfo[]
82
122
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
@@ -146,4 +186,26 @@ export type GetPrerequisiteReq = {
146
186
 
147
187
  export type GetPrerequisiteRes = {
148
188
  ok?: boolean
189
+ }
190
+
191
+ export type ListMysqlReq = {
192
+ workspaceId?: string
193
+ page?: number
194
+ pageSize?: number
195
+ }
196
+
197
+ export type ListMysqlRes = {
198
+ items?: SkoalaApiGeneralV1alpha1Common.Mysql[]
199
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
200
+ }
201
+
202
+ export type ListRedisReq = {
203
+ workspaceId?: string
204
+ page?: number
205
+ pageSize?: number
206
+ }
207
+
208
+ export type ListRedisRes = {
209
+ items?: SkoalaApiGeneralV1alpha1Common.Redis[]
210
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
149
211
  }
@@ -100,6 +100,12 @@ export type AdvancedAPIConfig = {
100
100
  rateLimitPolicy?: SkoalaApiHostedV1alpha1Virtualhost.RateLimitPolicy
101
101
  requestHeadersPolicy?: HeaderPolicy
102
102
  responseHeadersPolicy?: HeaderPolicy
103
+ jwtPolicy?: JWTPolicy
104
+ }
105
+
106
+ export type JWTPolicy = {
107
+ require?: string
108
+ disabled?: boolean
103
109
  }
104
110
 
105
111
  export type HeaderPolicy = {
@@ -76,7 +76,7 @@ export enum LogLogLevel {
76
76
  Trace = "Trace",
77
77
  Debug = "Debug",
78
78
  Info = "Info",
79
- Warning = "Warning",
79
+ Warn = "Warn",
80
80
  Error = "Error",
81
81
  Critical = "Critical",
82
82
  Off = "Off",
@@ -86,6 +86,23 @@ export type GetAppsSentinelGrafanaRes = {
86
86
  zhUrl?: string
87
87
  }
88
88
 
89
+ export type Resource = {
90
+ resource?: string
91
+ }
92
+
93
+ export type ListResourceReq = {
94
+ workspaceId?: string
95
+ clusterName?: string
96
+ namespaceName?: string
97
+ sentinelName?: string
98
+ appName?: string
99
+ }
100
+
101
+ export type ListResourceRes = {
102
+ items?: Resource[]
103
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
104
+ }
105
+
89
106
  export type FlowRule = {
90
107
  id?: string
91
108
  app?: string
@@ -15,6 +15,21 @@ type OneOf<T> =
15
15
  (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
16
16
  : never)
17
17
  : never);
18
+
19
+ export enum RemoteJWKSDnsLookupFamily {
20
+ auto = "auto",
21
+ v4 = "v4",
22
+ v6 = "v6",
23
+ }
24
+
25
+ export enum TimeUnitUnit {
26
+ Hour = "Hour",
27
+ Minute = "Minute",
28
+ Second = "Second",
29
+ Millisecond = "Millisecond",
30
+ Nanosecond = "Nanosecond",
31
+ }
32
+
18
33
  export type CreateVirtualhostReq = {
19
34
  workspaceId?: string
20
35
  gatewayName?: string
@@ -33,8 +48,9 @@ export type VirtualhostConfig = {
33
48
  }
34
49
 
35
50
  export type JwtProvider = {
36
- audiences?: string
51
+ audiences?: string[]
37
52
  default?: boolean
53
+ forwardJWT?: boolean
38
54
  issuer?: string
39
55
  name?: string
40
56
  remoteJwks?: RemoteJWKS
@@ -45,10 +61,12 @@ export type RemoteJWKS = {
45
61
  timeout?: string
46
62
  uri?: string
47
63
  validation?: Validation
64
+ dnsLookupFamily?: RemoteJWKSDnsLookupFamily
48
65
  }
49
66
 
50
67
  export type Validation = {
51
- caSecret?: string
68
+ caSecretName?: string
69
+ caSecretNamespace?: string
52
70
  subjectName?: string
53
71
  }
54
72
 
@@ -82,6 +100,7 @@ export type VirtualhostInfo = {
82
100
  secretName?: string
83
101
  secretNamespaceName?: string
84
102
  healthCheckUrl?: string
103
+ enableJWT?: boolean
85
104
  namespaceName?: string
86
105
  apiCount?: number
87
106
  updatedAt?: string
@@ -110,6 +129,7 @@ export type GetVirtualhostRes = {
110
129
  rateLimitPolicy?: RateLimitPolicy
111
130
  corsPolicy?: CorsPolicy
112
131
  tlsPolicy?: VirtualhostTLSPolicy
132
+ jwtProviders?: JwtProvider[]
113
133
  }
114
134
 
115
135
  export type UpdateVirtualhostReq = {
@@ -185,6 +205,11 @@ export type LocalRateLimitPolicy = {
185
205
  unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
186
206
  }
187
207
 
208
+ export type TimeUnit = {
209
+ time?: number
210
+ unit?: TimeUnitUnit
211
+ }
212
+
188
213
  export type Authorization = {
189
214
  }
190
215
 
@@ -57,6 +57,9 @@ export class Skoala {
57
57
  static ListMeshNamespaceServices(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes> {
58
58
  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"})
59
59
  }
60
+ static ListRegistryServices(req: SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceRes> {
61
+ 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"})
62
+ }
60
63
  static ListWorkspace(req: SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes> {
61
64
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
62
65
  }
@@ -69,6 +72,12 @@ export class Skoala {
69
72
  static GetPrerequisite(req: SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteRes> {
70
73
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteReq, SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/prerequisites/${req["prerequisite"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "prerequisite"])}`, {...initReq, method: "GET"})
71
74
  }
75
+ static ListMysql(req: SkoalaApiGeneralV1alpha1Skoala.ListMysqlReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMysqlRes> {
76
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMysqlReq, SkoalaApiGeneralV1alpha1Skoala.ListMysqlRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/mysqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
77
+ }
78
+ static ListRedis(req: SkoalaApiGeneralV1alpha1Skoala.ListRedisReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListRedisRes> {
79
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListRedisReq, SkoalaApiGeneralV1alpha1Skoala.ListRedisRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/redis?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
80
+ }
72
81
  }
73
82
  export class Registry {
74
83
  static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
@@ -249,6 +258,9 @@ export class Sentinel {
249
258
  static DeleteInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.DeleteInsGovernReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
250
259
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteInsGovernReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/governs/services/${req["serviceName"]}/instances/${req["instanceIp"]}/heartbeat-ports/${req["heartbeatPort"]}`, {...initReq, method: "DELETE"})
251
260
  }
261
+ static ListResource(req: SkoalaApiHostedV1alpha1Sentinel.ListResourceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListResourceRes> {
262
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListResourceReq, SkoalaApiHostedV1alpha1Sentinel.ListResourceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/resources?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
263
+ }
252
264
  static CreateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
253
265
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
254
266
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.12.2",
3
+ "version": "0.13.0-15",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {