@daocloud-proto/skoala 0.18.0-29 → 0.18.0-33

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.
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiHostedV1alpha1Gateway from "./gateway.pb"
8
9
  import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
9
10
  import * as SkoalaApiHostedV1alpha1Virtualhost from "./virtualhost.pb"
10
11
 
@@ -109,6 +110,7 @@ export type AdvancedAPIConfig = {
109
110
  jwtPolicy?: JWTPolicy
110
111
  authPolicy?: AuthPolicy
111
112
  cookieRewritePolicy?: CookieRewritePolicy[]
113
+ ipPolicy?: SkoalaApiHostedV1alpha1Gateway.IPPolicy
112
114
  }
113
115
 
114
116
  export type CookieRewritePolicy = {
@@ -58,6 +58,18 @@ export enum AlertSeverity {
58
58
  Info = "Info",
59
59
  }
60
60
 
61
+ export enum IPPolicyLevel {
62
+ IP_POLICY_LEVEL_UNSPECIFIED = "IP_POLICY_LEVEL_UNSPECIFIED",
63
+ VirtualHost = "VirtualHost",
64
+ Route = "Route",
65
+ }
66
+
67
+ export enum IPSource {
68
+ IP_SOURCE_UNSPECIFIED = "IP_SOURCE_UNSPECIFIED",
69
+ RemoteIp = "RemoteIp",
70
+ DirectRemoteIp = "DirectRemoteIp",
71
+ }
72
+
61
73
  export enum GatewayConditionType {
62
74
  TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
63
75
  Scheduled = "Scheduled",
@@ -264,6 +276,7 @@ export type ContourAdvancedConfig = BaseContourAdvancedConfig
264
276
 
265
277
  type BaseEnvoyAdvancedConfig = {
266
278
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
279
+ numTrustedHops?: number
267
280
  }
268
281
 
269
282
  export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
@@ -498,4 +511,16 @@ export type GetGatewayMetricDashboardReq = {
498
511
  export type GetGatewayMetricDashboardRes = {
499
512
  url?: string
500
513
  zhUrl?: string
514
+ }
515
+
516
+ export type IPPolicyRule = {
517
+ cidr?: string
518
+ source?: IPSource
519
+ }
520
+
521
+ export type IPPolicy = {
522
+ path?: string
523
+ level?: IPPolicyLevel
524
+ allowRules?: IPPolicyRule[]
525
+ denyRules?: IPPolicyRule[]
501
526
  }
@@ -36,6 +36,7 @@ export type GatewayOverviewHealthReq = {
36
36
  endTime?: string
37
37
  interval?: string
38
38
  unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
39
+ completion?: boolean
39
40
  }
40
41
 
41
42
  export type GatewayOverviewHealthRes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.18.0-29",
3
+ "version": "0.18.0-33",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {