@daocloud-proto/skoala 0.38.2 → 0.39.1-2

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.
@@ -54,6 +54,12 @@ export enum GatewayResource {
54
54
  Pod = "Pod",
55
55
  }
56
56
 
57
+ export enum GatewayComponentType {
58
+ GATEWAY_COMPONENT_TYPE_UNSPECIFIED = "GATEWAY_COMPONENT_TYPE_UNSPECIFIED",
59
+ Contour = "Contour",
60
+ Envoy = "Envoy",
61
+ }
62
+
57
63
  export enum QueryResultStatus {
58
64
  QUERY_RESULT_STATUS_UNSPECIFIED = "QUERY_RESULT_STATUS_UNSPECIFIED",
59
65
  Success = "Success",
@@ -113,11 +119,6 @@ export enum LogLogLevel {
113
119
  Off = "Off",
114
120
  }
115
121
 
116
- export enum ListGatewayPodContainerReqComponentType {
117
- contour = "contour",
118
- envoy = "envoy",
119
- }
120
-
121
122
  export type Node = {
122
123
  total?: number
123
124
  online?: number
@@ -455,7 +456,7 @@ export type ListGatewayPodContainerReq = {
455
456
  clusterName?: string
456
457
  namespaceName?: string
457
458
  gatewayName?: string
458
- component?: ListGatewayPodContainerReqComponentType
459
+ component?: GatewayComponentType
459
460
  }
460
461
 
461
462
  export type ListGatewayPodContainerRes = {
@@ -472,6 +473,8 @@ export type PodSummary = {
472
473
  namespaceName?: string
473
474
  phase?: SkoalaApiGeneralV1alpha1Common.PodPhase
474
475
  podIp?: string
476
+ podIps?: string[]
477
+ ipFixed?: boolean
475
478
  }
476
479
 
477
480
  export type ListPodsReq = {
@@ -480,6 +483,7 @@ export type ListPodsReq = {
480
483
  namespaceName?: string
481
484
  gatewayName?: string
482
485
  phases?: SkoalaApiGeneralV1alpha1Common.PodPhase[]
486
+ component?: GatewayComponentType
483
487
  page?: number
484
488
  pageSize?: number
485
489
  }
@@ -44,6 +44,24 @@ export enum APIStatusEnum {
44
44
  unknown = "unknown",
45
45
  }
46
46
 
47
+ export enum APIPolicy {
48
+ APIPolicyLoadBalance = "APIPolicyLoadBalance",
49
+ APIPolicyTimeout = "APIPolicyTimeout",
50
+ APIPolicyPathRewrite = "APIPolicyPathRewrite",
51
+ APIPolicyRetry = "APIPolicyRetry",
52
+ APIPolicyRequestHeader = "APIPolicyRequestHeader",
53
+ APIPolicyResponseHeader = "APIPolicyResponseHeader",
54
+ APIPolicyWebsocket = "APIPolicyWebsocket",
55
+ APIPolicyLocalRateLimit = "APIPolicyLocalRateLimit",
56
+ APIPolicyGlobalRateLimit = "APIPolicyGlobalRateLimit",
57
+ APIPolicyHealthCheck = "APIPolicyHealthCheck",
58
+ APIPolicyCookieRewrite = "APIPolicyCookieRewrite",
59
+ APIPolicyIPFilter = "APIPolicyIPFilter",
60
+ APIPolicyExtProc = "APIPolicyExtProc",
61
+ APIPolicyAuth = "APIPolicyAuth",
62
+ APIPolicyJWT = "APIPolicyJWT",
63
+ }
64
+
47
65
  export enum APICreateType {
48
66
  DIRECT_API = "DIRECT_API",
49
67
  LANE_API = "LANE_API",
@@ -181,6 +199,7 @@ export type APIInfo = {
181
199
  statusDescription?: string
182
200
  apiCreateType?: APICreateType
183
201
  updatedAt?: string
202
+ policy?: APIPolicy[]
184
203
  }
185
204
 
186
205
  export type HttpStatus = {
@@ -116,6 +116,7 @@ export type Nacos = {
116
116
  clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
117
117
  workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
118
118
  failedReason?: string[]
119
+ ldap?: LDAP
119
120
  }
120
121
 
121
122
  export type NacosDatabase = {
@@ -176,6 +177,29 @@ export type DeleteNacosReq = {
176
177
  deleteConfigs?: boolean
177
178
  }
178
179
 
180
+ export type NacosStatusReq = {
181
+ workspaceId?: string
182
+ clusterName?: string
183
+ nacosName?: string
184
+ namespaceName?: string
185
+ }
186
+
187
+ export type NacosPluginStatus = {
188
+ enabled?: boolean
189
+ }
190
+
191
+ export type NacosServiceStatus = {
192
+ binding?: boolean
193
+ }
194
+
195
+ export type NacosStatusRes = {
196
+ canDelete?: boolean
197
+ sentinel?: NacosPluginStatus
198
+ seata?: NacosPluginStatus
199
+ mesh?: NacosPluginStatus
200
+ service?: NacosServiceStatus
201
+ }
202
+
179
203
  export type RestartNacosReq = {
180
204
  workspaceId?: string
181
205
  clusterName?: string
@@ -183,6 +207,13 @@ export type RestartNacosReq = {
183
207
  namespaceName?: string
184
208
  }
185
209
 
210
+ export type LDAP = {
211
+ url?: string
212
+ basedc?: string
213
+ admin?: string
214
+ password?: string
215
+ }
216
+
186
217
  export type NacosConfig = {
187
218
  type?: NacosConfigType
188
219
  component?: SkoalaApiGeneralV1alpha1Common.Component
@@ -197,6 +228,7 @@ export type NacosConfig = {
197
228
  insightEnabled?: boolean
198
229
  certificationEnabled?: boolean
199
230
  jvmPercentage?: number
231
+ ldap?: LDAP
200
232
  }
201
233
 
202
234
  export type Volume = {
@@ -280,15 +312,15 @@ export type NacosServiceInstance = {
280
312
  instanceHeartBeatInterval?: number
281
313
  instanceHeartBeatTimeOut?: number
282
314
  ip?: string
283
- ipDeleteTimeout?: number
284
- metadata?: {[key: string]: string}
285
315
  port?: number
286
316
  serviceName?: string
287
317
  weight?: number
288
- pluginsHealthy?: NacosServiceInstancePluginsHealthy
289
318
  nacosNamespace?: string
290
- insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
291
319
  jvmEnabled?: boolean
320
+ pluginsHealthy?: NacosServiceInstancePluginsHealthy
321
+ metadata?: {[key: string]: string}
322
+ ipDeleteTimeout?: number
323
+ insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
292
324
  }
293
325
 
294
326
  export type GetNacosServiceReq = {
@@ -409,6 +441,7 @@ export type ListNacosServiceInstanceReq = {
409
441
  nacosGroupName?: string
410
442
  nacosClusterName?: string
411
443
  nacosService?: string
444
+ metadata?: {[key: string]: string}
412
445
  page?: number
413
446
  pageSize?: number
414
447
  }
@@ -806,14 +839,14 @@ export type DeleteNacosConfigReq = {
806
839
  ids?: string
807
840
  }
808
841
 
809
- export type ListNodeReq = {
842
+ export type ListNacosNodeReq = {
810
843
  workspaceId?: string
811
844
  clusterName?: string
812
845
  namespaceName?: string
813
846
  nacosName?: string
814
847
  }
815
848
 
816
- export type ListNodeRes = {
849
+ export type ListNacosNodeRes = {
817
850
  items?: NacosNode[]
818
851
  }
819
852
 
@@ -110,6 +110,7 @@ export type GetSentinelPluginRes = {
110
110
  visitAddress?: string
111
111
  workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
112
112
  pwd?: string
113
+ nacos?: PluginNacos
113
114
  }
114
115
 
115
116
  export type GetSeataPluginReq = {
@@ -126,7 +127,7 @@ export type GetSeataPluginRes = {
126
127
  pwd?: string
127
128
  mysql?: MySql
128
129
  phase?: GetSeataPluginResPhase
129
- nacos?: SeataPluginNacos
130
+ nacos?: PluginNacos
130
131
  }
131
132
 
132
133
  export type GetMeshPluginReq = {
@@ -161,6 +162,7 @@ export type UpdateSentinelPluginReq = {
161
162
  ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
162
163
  pwd?: string
163
164
  deleteConfigs?: boolean
165
+ nacos?: PluginNacos
164
166
  }
165
167
 
166
168
  export type UpdateSeataPluginReq = {
@@ -173,10 +175,10 @@ export type UpdateSeataPluginReq = {
173
175
  pwd?: string
174
176
  deleteConfigs?: boolean
175
177
  mysql?: MySql
176
- nacos?: SeataPluginNacos
178
+ nacos?: PluginNacos
177
179
  }
178
180
 
179
- export type SeataPluginNacos = {
181
+ export type PluginNacos = {
180
182
  password?: string
181
183
  addr?: string
182
184
  user?: string
@@ -17,6 +17,16 @@ type OneOf<T> =
17
17
  : never)
18
18
  : never);
19
19
 
20
+ export enum VirtualhostPolicy {
21
+ VirtualhostPolicyCors = "VirtualhostPolicyCors",
22
+ VirtualhostPolicyLocalRateLimit = "VirtualhostPolicyLocalRateLimit",
23
+ VirtualhostPolicyGlobalRateLimit = "VirtualhostPolicyGlobalRateLimit",
24
+ VirtualhostPolicyIPFilter = "VirtualhostPolicyIPFilter",
25
+ VirtualhostPolicyExtProc = "VirtualhostPolicyExtProc",
26
+ VirtualhostPolicyAuth = "VirtualhostPolicyAuth",
27
+ VirtualhostPolicyJWT = "VirtualhostPolicyJWT",
28
+ }
29
+
20
30
  export enum RemoteJWKSDnsLookupFamily {
21
31
  auto = "auto",
22
32
  v4 = "v4",
@@ -132,9 +142,12 @@ export type VirtualhostInfo = {
132
142
  healthCheckUrl?: string
133
143
  enableJWT?: boolean
134
144
  enableAuth?: boolean
145
+ enableExtProc?: boolean
146
+ enableGlobalRateLimit?: boolean
135
147
  namespaceName?: string
136
148
  apiCount?: number
137
149
  updatedAt?: string
150
+ policies?: VirtualhostPolicy[]
138
151
  }
139
152
 
140
153
  export type ListVirtualhostRes = {
@@ -4,6 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
7
8
  import * as SkoalaApiHostedV1alpha1Api from "../v1alpha1/api.pb"
8
9
  import * as SkoalaApiHostedV1alpha1Http from "../v1alpha1/http.pb"
9
10
 
@@ -124,4 +125,21 @@ export type APIDebugRes = {
124
125
  log?: string
125
126
  request?: string
126
127
  response?: string
128
+ }
129
+
130
+ export type ListAPIReq = {
131
+ workspaceId?: string
132
+ clusterName?: string
133
+ gatewayName?: string
134
+ namespaceName?: string
135
+ apiName?: string
136
+ apiGroup?: string
137
+ fqdn?: string
138
+ page?: number
139
+ pageSize?: number
140
+ }
141
+
142
+ export type ListAPIRes = {
143
+ items?: SkoalaApiHostedV1alpha1Http.APIInfo[]
144
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
127
145
  }
@@ -16,6 +16,13 @@ type OneOf<T> =
16
16
  : never)
17
17
  : never);
18
18
 
19
+ export enum ServicePolicy {
20
+ ServicePolicyCircleBreaker = "ServicePolicyCircleBreaker",
21
+ ServicePolicyTLS = "ServicePolicyTLS",
22
+ ServicePolicyHealthCheck = "ServicePolicyHealthCheck",
23
+ ServicePolicyOutlierDetection = "ServicePolicyOutlierDetection",
24
+ }
25
+
19
26
  export enum ServiceSource {
20
27
  SOURCE_CLUSTER = "SOURCE_CLUSTER",
21
28
  SOURCE_MESH = "SOURCE_MESH",
@@ -196,6 +203,7 @@ export type ServiceInfo = {
196
203
  sesameId?: string
197
204
  displayAddress?: string[]
198
205
  servicePort?: SkoalaApiGeneralV1alpha1Common.KubernetesServicePort[]
206
+ policy?: ServicePolicy[]
199
207
  }
200
208
 
201
209
  export type ServiceSourceInfo = {
@@ -5,10 +5,21 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
+ import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
10
+
11
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
12
+ type OneOf<T> =
13
+ | { [k in keyof T]?: undefined }
14
+ | (
15
+ keyof T extends infer K ?
16
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
17
+ : never)
18
+ : never);
8
19
 
9
20
  export enum TemplateType {
10
21
  ALL = "ALL",
11
- DEFAULT = "DEFAULT",
22
+ OWN = "OWN",
12
23
  IMPORT = "IMPORT",
13
24
  }
14
25
 
@@ -21,6 +32,62 @@ export enum PluginType {
21
32
  EXTPROC = "EXTPROC",
22
33
  }
23
34
 
35
+ export enum CreateType {
36
+ ALL_CREATE_TYPE = "ALL_CREATE_TYPE",
37
+ CUSTOM = "CUSTOM",
38
+ TEMPLATE = "TEMPLATE",
39
+ }
40
+
41
+ export enum HeaderSendMode {
42
+ DEFAULT = "DEFAULT",
43
+ SEND = "SEND",
44
+ SKIP = "SKIP",
45
+ }
46
+
47
+ export enum BodySendMode {
48
+ NONE = "NONE",
49
+ STREAMED = "STREAMED",
50
+ BUFFERED = "BUFFERED",
51
+ BUFFERED_PARTIAL = "BUFFERED_PARTIAL",
52
+ }
53
+
54
+ export enum LogLevel {
55
+ info = "info",
56
+ debug = "debug",
57
+ warn = "warn",
58
+ error = "error",
59
+ }
60
+
61
+ export enum RedisType {
62
+ SIDECAR = "SIDECAR",
63
+ EXTERNAL = "EXTERNAL",
64
+ }
65
+
66
+ export enum RLSRuleType {
67
+ GENERICKV = "GENERICKV",
68
+ REQUESTHEADER = "REQUESTHEADER",
69
+ IP = "IP",
70
+ }
71
+
72
+ export enum PluginStatusPhase {
73
+ UNKNOWN = "UNKNOWN",
74
+ CREATING = "CREATING",
75
+ RUNNING = "RUNNING",
76
+ FAILED = "FAILED",
77
+ }
78
+
79
+ export enum PluginUsageResourceType {
80
+ contour = "contour",
81
+ istioGateway = "istioGateway",
82
+ istioSidecar = "istioSidecar",
83
+ unknow = "unknow",
84
+ }
85
+
86
+ export enum PluginUrlLoadBalance {
87
+ Random = "Random",
88
+ RoundRobin = "RoundRobin",
89
+ }
90
+
24
91
  export type CreateSkoalaPluginTemplateReq = {
25
92
  workspaceId?: string
26
93
  disabled?: boolean
@@ -90,4 +157,289 @@ export type GetSkoalaPluginTemplateRes = {
90
157
 
91
158
  export type Disabled = {
92
159
  disabled?: boolean
160
+ }
161
+
162
+
163
+ type BaseCreateSkoalaPluginReq = {
164
+ workspaceId?: string
165
+ disabled?: boolean
166
+ pluginName?: string
167
+ describe?: string
168
+ pluginTemplateName?: string
169
+ pluginType?: PluginType
170
+ instanceConfig?: InstanceConfig
171
+ }
172
+
173
+ export type CreateSkoalaPluginReq = BaseCreateSkoalaPluginReq
174
+ & OneOf<{ jwt: JWTPluginConfig; auth: AuthPluginConfig; rateLimit: RateLimitPluginConfig; wasm: WasmPluginConfig; extProc: ExtProcPluginConfig }>
175
+
176
+
177
+ type BaseUpdateSkoalaPluginReq = {
178
+ workspaceId?: string
179
+ disabled?: boolean
180
+ pluginName?: string
181
+ describe?: string
182
+ instanceConfig?: InstanceConfig
183
+ }
184
+
185
+ export type UpdateSkoalaPluginReq = BaseUpdateSkoalaPluginReq
186
+ & OneOf<{ jwt: JWTPluginConfig; auth: AuthPluginConfig; rateLimit: RateLimitPluginConfig; wasm: WasmPluginConfig; extProc: ExtProcPluginConfig }>
187
+
188
+ export type ListSkoalaPluginReq = {
189
+ workspaceId?: string
190
+ pluginName?: string
191
+ pluginType?: PluginType
192
+ disabled?: Disabled
193
+ createType?: CreateType
194
+ page?: number
195
+ pageSize?: number
196
+ }
197
+
198
+ export type ListSkoalaPluginRes = {
199
+ items?: SkoalaPluginInfo[]
200
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
201
+ }
202
+
203
+ export type SkoalaPluginInfo = {
204
+ pluginName?: string
205
+ pluginType?: PluginType
206
+ createdAt?: string
207
+ updatedAt?: string
208
+ pluginAddress?: PluginAddress
209
+ version?: number
210
+ disabled?: boolean
211
+ createType?: CreateType
212
+ usage?: PluginUsage[]
213
+ templateName?: string
214
+ pluginStatus?: PluginStatus
215
+ }
216
+
217
+ export type PluginStatus = {
218
+ message?: string
219
+ phase?: PluginStatusPhase
220
+ }
221
+
222
+ export type GetSkoalaPluginReq = {
223
+ workspaceId?: string
224
+ pluginName?: string
225
+ }
226
+
227
+
228
+ type BaseGetSkoalaPluginRes = {
229
+ pluginName?: string
230
+ pluginType?: PluginType
231
+ createdAt?: string
232
+ updatedAt?: string
233
+ disabled?: boolean
234
+ describe?: string
235
+ usage?: PluginUsage[]
236
+ inCluster?: boolean
237
+ address?: PluginAddress
238
+ version?: number
239
+ createType?: CreateType
240
+ pluginTemplateName?: string
241
+ instanceConfig?: InstanceConfig
242
+ }
243
+
244
+ export type GetSkoalaPluginRes = BaseGetSkoalaPluginRes
245
+ & OneOf<{ jwt: JWTPluginConfig; auth: AuthPluginConfig; rateLimit: RateLimitPluginConfig; wasm: WasmPluginConfig; extProc: ExtProcPluginConfig }>
246
+
247
+ export type DeleteSkoalaPluginReq = {
248
+ workspaceId?: string
249
+ pluginName?: string
250
+ }
251
+
252
+ export type PluginUsage = {
253
+ resourceType?: PluginUsageResourceType
254
+ clusterName?: string
255
+ meshInstance?: string
256
+ namespaceName?: string
257
+ name?: string
258
+ version?: number
259
+ needUpdate?: boolean
260
+ gvr?: SkoalaApiGeneralV1alpha1Common.GroupVersionResource
261
+ usedTime?: string
262
+ }
263
+
264
+ export type ProcessingMode = {
265
+ requestHeaderMode?: HeaderSendMode
266
+ responseHeaderMode?: HeaderSendMode
267
+ requestBodyMode?: BodySendMode
268
+ responseBodyMode?: BodySendMode
269
+ requestTrailerMode?: HeaderSendMode
270
+ responseTrailerMode?: HeaderSendMode
271
+ }
272
+
273
+ export type ExtProcPluginConfig = {
274
+ pluginAddress?: PluginAddress
275
+ timeout?: IntervalTimeUnit
276
+ failOpen?: boolean
277
+ processingMode?: ProcessingMode
278
+ }
279
+
280
+ export type WasmPluginConfig = {
281
+ imageUrl?: string
282
+ }
283
+
284
+ export type AuthPluginConfigBufferSettings = {
285
+ maxRequestBytes?: number
286
+ allowPartialMessage?: boolean
287
+ packAsBytes?: boolean
288
+ }
289
+
290
+ export type AuthPluginConfig = {
291
+ pluginAddress?: PluginAddress
292
+ timeout?: IntervalTimeUnit
293
+ failOpen?: boolean
294
+ requestBodyBufferSettings?: AuthPluginConfigBufferSettings
295
+ }
296
+
297
+ export type JWTPluginConfigJWTValidExtConfig = {
298
+ issuer?: string
299
+ audiences?: string[]
300
+ }
301
+
302
+ export type JWTPluginConfig = {
303
+ pluginAddress?: PluginAddress
304
+ timeout?: IntervalTimeUnit
305
+ cacheTime?: IntervalTimeUnit
306
+ forwardJwt?: boolean
307
+ jwtValidConfig?: JWTPluginConfigJWTValidExtConfig
308
+ }
309
+
310
+ export type InstanceConfig = {
311
+ deployLocation?: DeployLocation
312
+ imageUrl?: string
313
+ ratelimitDeployConfig?: RatelimitDeployConfig
314
+ }
315
+
316
+ export type RatelimitDeployConfigRedisExternal = {
317
+ redisUrl?: string
318
+ password?: string
319
+ username?: string
320
+ }
321
+
322
+ export type RatelimitDeployConfigRedisSidecar = {
323
+ env?: Env[]
324
+ resourceRequirements?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
325
+ }
326
+
327
+ export type RatelimitDeployConfigRatelimitConfig = {
328
+ key?: string
329
+ value?: string
330
+ }
331
+
332
+ export type RatelimitDeployConfig = {
333
+ redisType?: RedisType
334
+ redisSidecar?: RatelimitDeployConfigRedisSidecar
335
+ redisExternal?: RatelimitDeployConfigRedisExternal
336
+ replicas?: number
337
+ enableRateLimitHeaders?: boolean
338
+ enableHealthCheck?: boolean
339
+ env?: Env[]
340
+ telemetry?: Telemetry
341
+ logLevel?: LogLevel
342
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
343
+ resourceRequirements?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
344
+ config?: RatelimitDeployConfigRatelimitConfig[]
345
+ labels?: {[key: string]: string}
346
+ annotations?: {[key: string]: string}
347
+ }
348
+
349
+ export type Telemetry = {
350
+ prometheus?: Prometheus
351
+ tracing?: Tracing
352
+ }
353
+
354
+ export type Prometheus = {
355
+ enable?: boolean
356
+ }
357
+
358
+ export type Tracing = {
359
+ enable?: boolean
360
+ samplingRate?: number
361
+ }
362
+
363
+ export type Env = {
364
+ key?: string
365
+ value?: string
366
+ }
367
+
368
+ export type DeployLocation = {
369
+ clusterName?: string
370
+ namespace?: string
371
+ }
372
+
373
+ export type RateLimitPluginConfig = {
374
+ pluginAddress?: PluginAddress
375
+ timeout?: IntervalTimeUnit
376
+ failOpen?: boolean
377
+ enableRateLimitHeaders?: boolean
378
+ rlsRuleAddress?: string
379
+ }
380
+
381
+ export type IntervalTimeUnit = {
382
+ interval?: number
383
+ unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
384
+ }
385
+
386
+ export type PluginAddress = {
387
+ clusterNamespaceService?: ClusterNamespaceService
388
+ address?: PluginUrl
389
+ }
390
+
391
+ export type ClusterNamespaceService = {
392
+ clusterName?: string
393
+ namespaceName?: string
394
+ serviceName?: string
395
+ servicePort?: number
396
+ }
397
+
398
+ export type PluginUrl = {
399
+ url?: string[]
400
+ loadBalance?: PluginUrlLoadBalance
401
+ }
402
+
403
+ export type ListRLSDomainRulesReq = {
404
+ workspaceId?: string
405
+ pluginName?: string
406
+ domain?: string
407
+ }
408
+
409
+ export type ListRLSDomainRulesRes = {
410
+ rules?: PluginRLSRule[]
411
+ }
412
+
413
+ export type PluginRLSRule = {
414
+ rlsRuleType?: RLSRuleType
415
+ name?: string
416
+ genericKvRlsRule?: GenericKVRLSRule
417
+ ipRlsRule?: IPRLSRule[]
418
+ requestHeaderRlsRule?: RequestHeaderRLSRule
419
+ }
420
+
421
+ export type GenericKVRLSRule = {
422
+ aliasName?: string
423
+ ratelimit?: RLSRatelimit
424
+ }
425
+
426
+ export type IPRLSRule = {
427
+ ip?: string
428
+ ratelimit?: RLSRatelimit
429
+ }
430
+
431
+ export type RequestHeaderRLSRuleHeaderValueRatelimit = {
432
+ value?: string
433
+ ratelimit?: RLSRatelimit
434
+ }
435
+
436
+ export type RequestHeaderRLSRule = {
437
+ header?: string
438
+ valueRatelimit?: RequestHeaderRLSRuleHeaderValueRatelimit[]
439
+ }
440
+
441
+ export type RLSRatelimit = {
442
+ unlimited?: boolean
443
+ unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
444
+ requestsPerUnit?: number
93
445
  }
@@ -188,6 +188,9 @@ export class Nacos {
188
188
  static Delete(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
189
189
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
190
190
  }
191
+ static NacosStatus(req: SkoalaApiHostedV1alpha1Nacos.NacosStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.NacosStatusRes> {
192
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.NacosStatusReq, SkoalaApiHostedV1alpha1Nacos.NacosStatusRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
193
+ }
191
194
  static Restart(req: SkoalaApiHostedV1alpha1Nacos.RestartNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
192
195
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.RestartNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/restart?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
193
196
  }
@@ -224,6 +227,9 @@ export class Nacos {
224
227
  static ListServiceInstance(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceRes> {
225
228
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService"])}`, {...initReq, method: "GET"})
226
229
  }
230
+ static QueryServiceInstance(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceRes> {
231
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/instances`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
232
+ }
227
233
  static ListInsForGrafana(req: SkoalaApiHostedV1alpha1Nacos.ListInsForGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListInsForGrafanaRes> {
228
234
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListInsForGrafanaReq, SkoalaApiHostedV1alpha1Nacos.ListInsForGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/ins_for_grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService"])}`, {...initReq, method: "GET"})
229
235
  }
@@ -281,8 +287,8 @@ export class Nacos {
281
287
  static DeleteConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
282
288
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
283
289
  }
284
- static ListNode(req: SkoalaApiHostedV1alpha1Nacos.ListNodeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNodeRes> {
285
- return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNodeReq, SkoalaApiHostedV1alpha1Nacos.ListNodeRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/nodes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
290
+ static ListNode(req: SkoalaApiHostedV1alpha1Nacos.ListNacosNodeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosNodeRes> {
291
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosNodeReq, SkoalaApiHostedV1alpha1Nacos.ListNacosNodeRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/nodes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
286
292
  }
287
293
  static LeaveNode(req: SkoalaApiHostedV1alpha1Nacos.LeaveNodeReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
288
294
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.LeaveNodeReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/nodes/leave`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -27,6 +27,9 @@ export class GatewayAPI {
27
27
  static GetGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.GetAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_api.GetAPIRes> {
28
28
  return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.GetAPIReq, SkoalaApiHostedV1alpha2Gateway_api.GetAPIRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
29
29
  }
30
+ static ListGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.ListAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_api.ListAPIRes> {
31
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.ListAPIReq, SkoalaApiHostedV1alpha2Gateway_api.ListAPIRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
32
+ }
30
33
  static GetGatewayAPIDoc(req: SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocRes> {
31
34
  return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocReq, SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/doc?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
32
35
  }
@@ -72,18 +75,36 @@ export class Skoala {
72
75
  }
73
76
  export class SkoalaPluginTemplate {
74
77
  static CreatePluginTemplate(req: SkoalaApiHostedV1alpha2Skoala_plugin_template.CreateSkoalaPluginTemplateReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
75
- return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.CreateSkoalaPluginTemplateReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugin-templates`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
78
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.CreateSkoalaPluginTemplateReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/plugin-templates`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
76
79
  }
77
80
  static UpdatePluginTemplate(req: SkoalaApiHostedV1alpha2Skoala_plugin_template.UpdateSkoalaPluginTemplateReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
78
- return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.UpdateSkoalaPluginTemplateReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugin-templates/${req["pluginTemplateName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
81
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.UpdateSkoalaPluginTemplateReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/plugin-templates/${req["pluginTemplateName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
79
82
  }
80
83
  static ListPluginTemplate(req: SkoalaApiHostedV1alpha2Skoala_plugin_template.ListSkoalaPluginTemplateReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Skoala_plugin_template.ListSkoalaPluginTemplateRes> {
81
- return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.ListSkoalaPluginTemplateReq, SkoalaApiHostedV1alpha2Skoala_plugin_template.ListSkoalaPluginTemplateRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugin-templates?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
84
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.ListSkoalaPluginTemplateReq, SkoalaApiHostedV1alpha2Skoala_plugin_template.ListSkoalaPluginTemplateRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/plugin-templates?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
82
85
  }
83
86
  static GetPluginTemplate(req: SkoalaApiHostedV1alpha2Skoala_plugin_template.GetSkoalaPluginTemplateReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Skoala_plugin_template.GetSkoalaPluginTemplateRes> {
84
- return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.GetSkoalaPluginTemplateReq, SkoalaApiHostedV1alpha2Skoala_plugin_template.GetSkoalaPluginTemplateRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugin-templates/${req["pluginTemplateName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginTemplateName"])}`, {...initReq, method: "GET"})
87
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.GetSkoalaPluginTemplateReq, SkoalaApiHostedV1alpha2Skoala_plugin_template.GetSkoalaPluginTemplateRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/plugin-templates/${req["pluginTemplateName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginTemplateName"])}`, {...initReq, method: "GET"})
85
88
  }
86
89
  static DeletePluginTemplate(req: SkoalaApiHostedV1alpha2Skoala_plugin_template.DeleteSkoalaPluginTemplateReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
87
- return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.DeleteSkoalaPluginTemplateReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugin-templates/${req["pluginTemplateName"]}`, {...initReq, method: "DELETE"})
90
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.DeleteSkoalaPluginTemplateReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/plugin-templates/${req["pluginTemplateName"]}`, {...initReq, method: "DELETE"})
91
+ }
92
+ static CreatePlugin(req: SkoalaApiHostedV1alpha2Skoala_plugin_template.CreateSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
93
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.CreateSkoalaPluginReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/plugins`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
94
+ }
95
+ static UpdatePlugin(req: SkoalaApiHostedV1alpha2Skoala_plugin_template.UpdateSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
96
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.UpdateSkoalaPluginReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
97
+ }
98
+ static ListPlugin(req: SkoalaApiHostedV1alpha2Skoala_plugin_template.ListSkoalaPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Skoala_plugin_template.ListSkoalaPluginRes> {
99
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.ListSkoalaPluginReq, SkoalaApiHostedV1alpha2Skoala_plugin_template.ListSkoalaPluginRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/plugins?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
100
+ }
101
+ static GetPlugin(req: SkoalaApiHostedV1alpha2Skoala_plugin_template.GetSkoalaPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Skoala_plugin_template.GetSkoalaPluginRes> {
102
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.GetSkoalaPluginReq, SkoalaApiHostedV1alpha2Skoala_plugin_template.GetSkoalaPluginRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName"])}`, {...initReq, method: "GET"})
103
+ }
104
+ static DeletePlugin(req: SkoalaApiHostedV1alpha2Skoala_plugin_template.DeleteSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
105
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.DeleteSkoalaPluginReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}`, {...initReq, method: "DELETE"})
106
+ }
107
+ static ListRLSDomainRules(req: SkoalaApiHostedV1alpha2Skoala_plugin_template.ListRLSDomainRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Skoala_plugin_template.ListRLSDomainRulesRes> {
108
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Skoala_plugin_template.ListRLSDomainRulesReq, SkoalaApiHostedV1alpha2Skoala_plugin_template.ListRLSDomainRulesRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/plugins/rls/${req["pluginName"]}/domain/${req["domain"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName", "domain"])}`, {...initReq, method: "GET"})
88
109
  }
89
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.38.2",
3
+ "version": "0.39.1-2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,15 +0,0 @@
1
- /* eslint-disable */
2
- // @ts-nocheck
3
- /*
4
- * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
- */
6
-
7
- export enum AuditVerb {
8
- AUDIT_VERB_UNSPECIFIED = "AUDIT_VERB_UNSPECIFIED",
9
- Create = "Create",
10
- Retrieve = "Retrieve",
11
- Update = "Update",
12
- Delete = "Delete",
13
- Restart = "Restart",
14
- Upsert = "Upsert",
15
- }