@daocloud-proto/skoala 0.12.2-22 → 0.12.2-26

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.
@@ -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 = {
@@ -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
+ forwardJJWT?: 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
 
@@ -110,6 +128,7 @@ export type GetVirtualhostRes = {
110
128
  rateLimitPolicy?: RateLimitPolicy
111
129
  corsPolicy?: CorsPolicy
112
130
  tlsPolicy?: VirtualhostTLSPolicy
131
+ jwtProvider?: JwtProvider[]
113
132
  }
114
133
 
115
134
  export type UpdateVirtualhostReq = {
@@ -185,6 +204,11 @@ export type LocalRateLimitPolicy = {
185
204
  unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
186
205
  }
187
206
 
207
+ export type TimeUnit = {
208
+ time?: number
209
+ unit?: TimeUnitUnit
210
+ }
211
+
188
212
  export type Authorization = {
189
213
  }
190
214
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.12.2-22",
3
+ "version": "0.12.2-26",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {