@daocloud-proto/skoala 0.34.0 → 0.35.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.
- package/api/hosted/v1alpha1/api.pb.ts +17 -34
- package/api/hosted/v1alpha1/gateway.pb.ts +6 -0
- package/api/hosted/v1alpha1/http.pb.ts +8 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +4 -0
- package/api/hosted/v1alpha1/skoala_plugins.pb.ts +23 -0
- package/api/hosted/v1alpha1/virtualhost.pb.ts +12 -0
- package/api/hosted/v1alpha2/gateway_api.pb.ts +1 -0
- package/package.json +1 -1
|
@@ -18,21 +18,6 @@ type OneOf<T> =
|
|
|
18
18
|
: never)
|
|
19
19
|
: never);
|
|
20
20
|
|
|
21
|
-
export enum HeaderSendMode {
|
|
22
|
-
HEADER_SEND_MODE_UNSPECIFIED = "HEADER_SEND_MODE_UNSPECIFIED",
|
|
23
|
-
ProcessingModeDefault = "ProcessingModeDefault",
|
|
24
|
-
ProcessingModeSend = "ProcessingModeSend",
|
|
25
|
-
ProcessingModeSkip = "ProcessingModeSkip",
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export enum BodySendMode {
|
|
29
|
-
BODY_SEND_MODE_UNSPECIFIED = "BODY_SEND_MODE_UNSPECIFIED",
|
|
30
|
-
ProcessingModeNone = "ProcessingModeNone",
|
|
31
|
-
ProcessingModeStreamed = "ProcessingModeStreamed",
|
|
32
|
-
ProcessingModeBuffered = "ProcessingModeBuffered",
|
|
33
|
-
ProcessingModeBufferedPartial = "ProcessingModeBufferedPartial",
|
|
34
|
-
}
|
|
35
|
-
|
|
36
21
|
export enum HttpRetryOnEnum {
|
|
37
22
|
five_xx = "five_xx",
|
|
38
23
|
gateway_error = "gateway_error",
|
|
@@ -168,24 +153,6 @@ export type PathRewritePolicy = {
|
|
|
168
153
|
replacement?: string
|
|
169
154
|
}
|
|
170
155
|
|
|
171
|
-
export type ProcessingMode = {
|
|
172
|
-
requestHeaderMode?: HeaderSendMode
|
|
173
|
-
responseHeaderMode?: HeaderSendMode
|
|
174
|
-
requestBodyMode?: BodySendMode
|
|
175
|
-
responseBodyMode?: BodySendMode
|
|
176
|
-
requestTrailerMode?: HeaderSendMode
|
|
177
|
-
responseTrailerMode?: HeaderSendMode
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export type ExtProcOverride = {
|
|
181
|
-
processingMode?: ProcessingMode
|
|
182
|
-
pluginName?: string
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export type ExtProcPolicy = {
|
|
186
|
-
overrides?: ExtProcOverride
|
|
187
|
-
}
|
|
188
|
-
|
|
189
156
|
export type AdvancedAPIConfig = {
|
|
190
157
|
loadBalancePolicy?: LoadBalancePolicy
|
|
191
158
|
timeoutPolicy?: TimeoutPolicy
|
|
@@ -201,7 +168,22 @@ export type AdvancedAPIConfig = {
|
|
|
201
168
|
cookieRewritePolicy?: CookieRewritePolicy[]
|
|
202
169
|
ipPolicy?: SkoalaApiHostedV1alpha1Gateway.IPPolicy
|
|
203
170
|
domainIpPolicyStatus?: SkoalaApiHostedV1alpha1Gateway.IPPolicyStatus
|
|
204
|
-
|
|
171
|
+
extProcPreRoutePolicy?: ExtProcPreRoutePolicy
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type ExtProcPreRoutePolicyExtProcConfig = {
|
|
175
|
+
extProcPluginName?: string
|
|
176
|
+
disabled?: boolean
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type ExtProcPreRoutePolicy = {
|
|
180
|
+
default?: boolean
|
|
181
|
+
extProcConfig?: ExtProcPreRoutePolicyExtProcConfig
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export type pluginReplace = {
|
|
185
|
+
oldPluginName?: string
|
|
186
|
+
newPluginName?: string
|
|
205
187
|
}
|
|
206
188
|
|
|
207
189
|
export type CookieRewritePolicy = {
|
|
@@ -450,6 +432,7 @@ export type QueryAPIStatsMetricRangeReq = {
|
|
|
450
432
|
beginTime?: number
|
|
451
433
|
endTime?: number
|
|
452
434
|
step?: number
|
|
435
|
+
calcStep?: number
|
|
453
436
|
}
|
|
454
437
|
|
|
455
438
|
export type QueryAPIStatsMetricRangeRes = {
|
|
@@ -304,6 +304,12 @@ export type GatewayConfig = {
|
|
|
304
304
|
export type PluginConfig = {
|
|
305
305
|
globalRatelimitConfig?: GlobalRatelimitConfig
|
|
306
306
|
globalAuthConfig?: GlobalAuthConfig
|
|
307
|
+
globalExtProcConfig?: GlobalExtProcConfig
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export type GlobalExtProcConfig = {
|
|
311
|
+
enabled?: boolean
|
|
312
|
+
extProcPluginName?: string
|
|
307
313
|
}
|
|
308
314
|
|
|
309
315
|
export type GlobalRatelimitConfig = {
|
|
@@ -136,6 +136,14 @@ type BaseHeaderRule = {
|
|
|
136
136
|
export type HeaderRule = BaseHeaderRule
|
|
137
137
|
& OneOf<{ contains: string; exact: string; notContains: string; notExact: string; present: boolean; notPresent: boolean; regex: string }>
|
|
138
138
|
|
|
139
|
+
|
|
140
|
+
type BaseQueryParameterRule = {
|
|
141
|
+
name?: string
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type QueryParameterRule = BaseQueryParameterRule
|
|
145
|
+
& OneOf<{ contains: string; exact: string; regex: string }>
|
|
146
|
+
|
|
139
147
|
export type APIStatus = {
|
|
140
148
|
currentStatus?: APIStatusEnum
|
|
141
149
|
description?: string
|
|
@@ -886,6 +886,8 @@ export type GetNacosGrafanaReq = {
|
|
|
886
886
|
clusterName?: string
|
|
887
887
|
namespaceName?: string
|
|
888
888
|
nacosName?: string
|
|
889
|
+
from?: string
|
|
890
|
+
to?: string
|
|
889
891
|
}
|
|
890
892
|
|
|
891
893
|
export type GetNacosGrafanaRes = {
|
|
@@ -898,6 +900,8 @@ export type GetSeataGrafanaReq = {
|
|
|
898
900
|
clusterName?: string
|
|
899
901
|
namespaceName?: string
|
|
900
902
|
seataName?: string
|
|
903
|
+
from?: string
|
|
904
|
+
to?: string
|
|
901
905
|
}
|
|
902
906
|
|
|
903
907
|
export type GetSeataGrafanaRes = {
|
|
@@ -24,6 +24,19 @@ export enum PluginType {
|
|
|
24
24
|
UNDEFINE = "UNDEFINE",
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export enum HeaderSendMode {
|
|
28
|
+
DEFAULT = "DEFAULT",
|
|
29
|
+
SEND = "SEND",
|
|
30
|
+
SKIP = "SKIP",
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export enum BodySendMode {
|
|
34
|
+
NONE = "NONE",
|
|
35
|
+
STREAMED = "STREAMED",
|
|
36
|
+
BUFFERED = "BUFFERED",
|
|
37
|
+
BUFFERED_PARTIAL = "BUFFERED_PARTIAL",
|
|
38
|
+
}
|
|
39
|
+
|
|
27
40
|
export enum PluginUsageResourceType {
|
|
28
41
|
contour = "contour",
|
|
29
42
|
istioGateway = "istioGateway",
|
|
@@ -168,6 +181,7 @@ export type ExtProcPluginConfig = {
|
|
|
168
181
|
timeout?: IntervalTimeUnit
|
|
169
182
|
failOpen?: boolean
|
|
170
183
|
validation?: TLSValidation
|
|
184
|
+
processingMode?: ProcessingMode
|
|
171
185
|
}
|
|
172
186
|
|
|
173
187
|
export type JWTPluginConfigJWTValidExtConfig = {
|
|
@@ -277,4 +291,13 @@ export type SkoalaPluginUpdateReq = {
|
|
|
277
291
|
}
|
|
278
292
|
|
|
279
293
|
export type SkoalaPluginUpdateRes = {
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export type ProcessingMode = {
|
|
297
|
+
requestHeaderMode?: HeaderSendMode
|
|
298
|
+
responseHeaderMode?: HeaderSendMode
|
|
299
|
+
requestBodyMode?: BodySendMode
|
|
300
|
+
responseBodyMode?: BodySendMode
|
|
301
|
+
requestTrailerMode?: HeaderSendMode
|
|
302
|
+
responseTrailerMode?: HeaderSendMode
|
|
280
303
|
}
|
|
@@ -48,6 +48,17 @@ export type VirtualhostConfig = {
|
|
|
48
48
|
jwtProviders?: JwtProvider[]
|
|
49
49
|
authPolicy?: AuthorizationPolicy
|
|
50
50
|
ipPolicy?: SkoalaApiHostedV1alpha1Gateway.IPPolicy
|
|
51
|
+
extProcPolicy?: ExtProcPolicy
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type ExtProcPolicyExtProcConfig = {
|
|
55
|
+
extProcPluginName?: string
|
|
56
|
+
disabled?: boolean
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type ExtProcPolicy = {
|
|
60
|
+
default?: boolean
|
|
61
|
+
extProcConfig?: ExtProcPolicyExtProcConfig
|
|
51
62
|
}
|
|
52
63
|
|
|
53
64
|
export type AuthorizationPolicy = {
|
|
@@ -138,6 +149,7 @@ export type GetVirtualhostRes = {
|
|
|
138
149
|
jwtProviders?: JwtProvider[]
|
|
139
150
|
authPolicy?: AuthorizationPolicy
|
|
140
151
|
ipPolicy?: SkoalaApiHostedV1alpha1Gateway.IPPolicy
|
|
152
|
+
extProcPolicy?: ExtProcPolicy
|
|
141
153
|
}
|
|
142
154
|
|
|
143
155
|
export type UpdateVirtualhostReq = {
|