@daocloud-proto/skoala 0.49.0-26 → 0.49.0-4
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/alert/v1alpha1/alert.pb.ts +433 -0
- package/alert/v1alpha1/inhibition.pb.ts +56 -0
- package/alert/v1alpha1/notify.pb.ts +250 -0
- package/alert/v1alpha1/silence.pb.ts +85 -0
- package/alert/v1alpha1/type.pb.ts +55 -0
- package/api/hosted/v1alpha3/ai_gateway.pb.ts +0 -32
- package/event/v1alpha1/event.pb.ts +137 -0
- package/feature_gate/v1alpha1/feature_gate.pb.ts +31 -0
- package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
- package/gogoproto/gogo.pb.ts +1 -0
- package/google/api/annotations.pb.ts +1 -0
- package/google/api/http.pb.ts +34 -0
- package/google/api/httpbody.pb.ts +12 -0
- package/{api/crds/version.pb.ts → google/protobuf/any.pb.ts} +3 -5
- package/google/protobuf/api.pb.ts +32 -0
- package/google/protobuf/descriptor.pb.ts +262 -0
- package/google/protobuf/duration.pb.ts +9 -0
- package/google/protobuf/empty.pb.ts +7 -0
- package/google/protobuf/field_mask.pb.ts +8 -0
- package/google/protobuf/struct.pb.ts +33 -0
- package/google/protobuf/timestamp.pb.ts +9 -0
- package/google/protobuf/type.pb.ts +83 -0
- package/google/protobuf/wrappers.pb.ts +40 -0
- package/google/rpc/status.pb.ts +12 -0
- package/graph/v1alpha1/graph.pb.ts +175 -0
- package/log/v1alpha1/log.pb.ts +163 -0
- package/metric/v1alpha1/metric.pb.ts +116 -0
- package/net_flow/v1alpha1/net_flow.pb.ts +8 -0
- package/openapi/annotations.pb.ts +1 -0
- package/openapi/openapiv2.pb.ts +193 -0
- package/overview/v1alpha1/overview.pb.ts +95 -0
- package/package.json +3 -3
- package/probes/v1alpha1/probe.pb.ts +132 -0
- package/resource/v1alpha1/cluster.pb.ts +156 -0
- package/resource/v1alpha1/job.pb.ts +113 -0
- package/resource/v1alpha1/namespace.pb.ts +43 -0
- package/resource/v1alpha1/node.pb.ts +96 -0
- package/resource/v1alpha1/pod.pb.ts +112 -0
- package/resource/v1alpha1/service.pb.ts +62 -0
- package/resource/v1alpha1/type.pb.ts +26 -0
- package/resource/v1alpha1/workload.pb.ts +98 -0
- package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
- package/span_metric/v1alpha1/span_metric.pb.ts +142 -0
- package/tracing/v1alpha1/model.pb.ts +95 -0
- package/tracing/v1alpha1/query.pb.ts +43 -0
- package/tracing/v1alpha1/tracing.pb.ts +64 -0
- package/type/v1alpha1/objectmeta.pb.ts +67 -0
- package/type/v1alpha1/page.pb.ts +11 -0
- package/user/v1alpha1/user.pb.ts +23 -0
- package/validate/validate.pb.ts +266 -0
- package/api/hosted/v1alpha3/gateway_api.pb.ts +0 -412
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as GoogleProtobufDuration from "../google/protobuf/duration.pb"
|
|
8
|
+
import * as GoogleProtobufTimestamp from "../google/protobuf/timestamp.pb"
|
|
9
|
+
|
|
10
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
|
|
19
|
+
export enum KnownRegex {
|
|
20
|
+
UNKNOWN = "UNKNOWN",
|
|
21
|
+
HTTP_HEADER_NAME = "HTTP_HEADER_NAME",
|
|
22
|
+
HTTP_HEADER_VALUE = "HTTP_HEADER_VALUE",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
type BaseFieldRules = {
|
|
27
|
+
message?: MessageRules
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type FieldRules = BaseFieldRules
|
|
31
|
+
& OneOf<{ float: FloatRules; double: DoubleRules; int32: Int32Rules; int64: Int64Rules; uint32: UInt32Rules; uint64: UInt64Rules; sint32: SInt32Rules; sint64: SInt64Rules; fixed32: Fixed32Rules; fixed64: Fixed64Rules; sfixed32: SFixed32Rules; sfixed64: SFixed64Rules; bool: BoolRules; string: StringRules; bytes: BytesRules; enum: EnumRules; repeated: RepeatedRules; map: MapRules; any: AnyRules; duration: DurationRules; timestamp: TimestampRules }>
|
|
32
|
+
|
|
33
|
+
export type FloatRules = {
|
|
34
|
+
const?: number
|
|
35
|
+
lt?: number
|
|
36
|
+
lte?: number
|
|
37
|
+
gt?: number
|
|
38
|
+
gte?: number
|
|
39
|
+
in?: number[]
|
|
40
|
+
notIn?: number[]
|
|
41
|
+
ignoreEmpty?: boolean
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type DoubleRules = {
|
|
45
|
+
const?: number
|
|
46
|
+
lt?: number
|
|
47
|
+
lte?: number
|
|
48
|
+
gt?: number
|
|
49
|
+
gte?: number
|
|
50
|
+
in?: number[]
|
|
51
|
+
notIn?: number[]
|
|
52
|
+
ignoreEmpty?: boolean
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type Int32Rules = {
|
|
56
|
+
const?: number
|
|
57
|
+
lt?: number
|
|
58
|
+
lte?: number
|
|
59
|
+
gt?: number
|
|
60
|
+
gte?: number
|
|
61
|
+
in?: number[]
|
|
62
|
+
notIn?: number[]
|
|
63
|
+
ignoreEmpty?: boolean
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type Int64Rules = {
|
|
67
|
+
const?: string
|
|
68
|
+
lt?: string
|
|
69
|
+
lte?: string
|
|
70
|
+
gt?: string
|
|
71
|
+
gte?: string
|
|
72
|
+
in?: string[]
|
|
73
|
+
notIn?: string[]
|
|
74
|
+
ignoreEmpty?: boolean
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type UInt32Rules = {
|
|
78
|
+
const?: number
|
|
79
|
+
lt?: number
|
|
80
|
+
lte?: number
|
|
81
|
+
gt?: number
|
|
82
|
+
gte?: number
|
|
83
|
+
in?: number[]
|
|
84
|
+
notIn?: number[]
|
|
85
|
+
ignoreEmpty?: boolean
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type UInt64Rules = {
|
|
89
|
+
const?: string
|
|
90
|
+
lt?: string
|
|
91
|
+
lte?: string
|
|
92
|
+
gt?: string
|
|
93
|
+
gte?: string
|
|
94
|
+
in?: string[]
|
|
95
|
+
notIn?: string[]
|
|
96
|
+
ignoreEmpty?: boolean
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type SInt32Rules = {
|
|
100
|
+
const?: number
|
|
101
|
+
lt?: number
|
|
102
|
+
lte?: number
|
|
103
|
+
gt?: number
|
|
104
|
+
gte?: number
|
|
105
|
+
in?: number[]
|
|
106
|
+
notIn?: number[]
|
|
107
|
+
ignoreEmpty?: boolean
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type SInt64Rules = {
|
|
111
|
+
const?: string
|
|
112
|
+
lt?: string
|
|
113
|
+
lte?: string
|
|
114
|
+
gt?: string
|
|
115
|
+
gte?: string
|
|
116
|
+
in?: string[]
|
|
117
|
+
notIn?: string[]
|
|
118
|
+
ignoreEmpty?: boolean
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type Fixed32Rules = {
|
|
122
|
+
const?: number
|
|
123
|
+
lt?: number
|
|
124
|
+
lte?: number
|
|
125
|
+
gt?: number
|
|
126
|
+
gte?: number
|
|
127
|
+
in?: number[]
|
|
128
|
+
notIn?: number[]
|
|
129
|
+
ignoreEmpty?: boolean
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export type Fixed64Rules = {
|
|
133
|
+
const?: string
|
|
134
|
+
lt?: string
|
|
135
|
+
lte?: string
|
|
136
|
+
gt?: string
|
|
137
|
+
gte?: string
|
|
138
|
+
in?: string[]
|
|
139
|
+
notIn?: string[]
|
|
140
|
+
ignoreEmpty?: boolean
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type SFixed32Rules = {
|
|
144
|
+
const?: number
|
|
145
|
+
lt?: number
|
|
146
|
+
lte?: number
|
|
147
|
+
gt?: number
|
|
148
|
+
gte?: number
|
|
149
|
+
in?: number[]
|
|
150
|
+
notIn?: number[]
|
|
151
|
+
ignoreEmpty?: boolean
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type SFixed64Rules = {
|
|
155
|
+
const?: string
|
|
156
|
+
lt?: string
|
|
157
|
+
lte?: string
|
|
158
|
+
gt?: string
|
|
159
|
+
gte?: string
|
|
160
|
+
in?: string[]
|
|
161
|
+
notIn?: string[]
|
|
162
|
+
ignoreEmpty?: boolean
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type BoolRules = {
|
|
166
|
+
const?: boolean
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
type BaseStringRules = {
|
|
171
|
+
const?: string
|
|
172
|
+
len?: string
|
|
173
|
+
minLen?: string
|
|
174
|
+
maxLen?: string
|
|
175
|
+
lenBytes?: string
|
|
176
|
+
minBytes?: string
|
|
177
|
+
maxBytes?: string
|
|
178
|
+
pattern?: string
|
|
179
|
+
prefix?: string
|
|
180
|
+
suffix?: string
|
|
181
|
+
contains?: string
|
|
182
|
+
notContains?: string
|
|
183
|
+
in?: string[]
|
|
184
|
+
notIn?: string[]
|
|
185
|
+
strict?: boolean
|
|
186
|
+
ignoreEmpty?: boolean
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export type StringRules = BaseStringRules
|
|
190
|
+
& OneOf<{ email: boolean; hostname: boolean; ip: boolean; ipv4: boolean; ipv6: boolean; uri: boolean; uriRef: boolean; address: boolean; uuid: boolean; wellKnownRegex: KnownRegex }>
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
type BaseBytesRules = {
|
|
194
|
+
const?: Uint8Array
|
|
195
|
+
len?: string
|
|
196
|
+
minLen?: string
|
|
197
|
+
maxLen?: string
|
|
198
|
+
pattern?: string
|
|
199
|
+
prefix?: Uint8Array
|
|
200
|
+
suffix?: Uint8Array
|
|
201
|
+
contains?: Uint8Array
|
|
202
|
+
in?: Uint8Array[]
|
|
203
|
+
notIn?: Uint8Array[]
|
|
204
|
+
ignoreEmpty?: boolean
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export type BytesRules = BaseBytesRules
|
|
208
|
+
& OneOf<{ ip: boolean; ipv4: boolean; ipv6: boolean }>
|
|
209
|
+
|
|
210
|
+
export type EnumRules = {
|
|
211
|
+
const?: number
|
|
212
|
+
definedOnly?: boolean
|
|
213
|
+
in?: number[]
|
|
214
|
+
notIn?: number[]
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export type MessageRules = {
|
|
218
|
+
skip?: boolean
|
|
219
|
+
required?: boolean
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export type RepeatedRules = {
|
|
223
|
+
minItems?: string
|
|
224
|
+
maxItems?: string
|
|
225
|
+
unique?: boolean
|
|
226
|
+
items?: FieldRules
|
|
227
|
+
ignoreEmpty?: boolean
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export type MapRules = {
|
|
231
|
+
minPairs?: string
|
|
232
|
+
maxPairs?: string
|
|
233
|
+
noSparse?: boolean
|
|
234
|
+
keys?: FieldRules
|
|
235
|
+
values?: FieldRules
|
|
236
|
+
ignoreEmpty?: boolean
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type AnyRules = {
|
|
240
|
+
required?: boolean
|
|
241
|
+
in?: string[]
|
|
242
|
+
notIn?: string[]
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export type DurationRules = {
|
|
246
|
+
required?: boolean
|
|
247
|
+
const?: GoogleProtobufDuration.Duration
|
|
248
|
+
lt?: GoogleProtobufDuration.Duration
|
|
249
|
+
lte?: GoogleProtobufDuration.Duration
|
|
250
|
+
gt?: GoogleProtobufDuration.Duration
|
|
251
|
+
gte?: GoogleProtobufDuration.Duration
|
|
252
|
+
in?: GoogleProtobufDuration.Duration[]
|
|
253
|
+
notIn?: GoogleProtobufDuration.Duration[]
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export type TimestampRules = {
|
|
257
|
+
required?: boolean
|
|
258
|
+
const?: GoogleProtobufTimestamp.Timestamp
|
|
259
|
+
lt?: GoogleProtobufTimestamp.Timestamp
|
|
260
|
+
lte?: GoogleProtobufTimestamp.Timestamp
|
|
261
|
+
gt?: GoogleProtobufTimestamp.Timestamp
|
|
262
|
+
gte?: GoogleProtobufTimestamp.Timestamp
|
|
263
|
+
ltNow?: boolean
|
|
264
|
+
gtNow?: boolean
|
|
265
|
+
within?: GoogleProtobufDuration.Duration
|
|
266
|
+
}
|
|
@@ -1,412 +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
|
-
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
-
import * as SkoalaApiGeneralV1alpha2Ratelimit from "../../general/v1alpha2/ratelimit.pb"
|
|
9
|
-
import * as SkoalaApiHostedV1alpha1Api from "../v1alpha1/api.pb"
|
|
10
|
-
import * as SkoalaApiHostedV1alpha1Http from "../v1alpha1/http.pb"
|
|
11
|
-
|
|
12
|
-
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
13
|
-
type OneOf<T> =
|
|
14
|
-
| { [k in keyof T]?: undefined }
|
|
15
|
-
| (
|
|
16
|
-
keyof T extends infer K ?
|
|
17
|
-
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
18
|
-
: never)
|
|
19
|
-
: never);
|
|
20
|
-
|
|
21
|
-
export enum HttpRetryOnEnum {
|
|
22
|
-
five_xx = "five_xx",
|
|
23
|
-
gateway_error = "gateway_error",
|
|
24
|
-
reset = "reset",
|
|
25
|
-
connect_failure = "connect_failure",
|
|
26
|
-
retriable_4xx = "retriable_4xx",
|
|
27
|
-
refused_stream = "refused_stream",
|
|
28
|
-
retriable_status_codes = "retriable_status_codes",
|
|
29
|
-
retriable_headers = "retriable_headers",
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export enum GrpcRetryOnEnum {
|
|
33
|
-
cancelled = "cancelled",
|
|
34
|
-
deadline_exceeded = "deadline_exceeded",
|
|
35
|
-
internal = "internal",
|
|
36
|
-
resource_exhausted = "resource_exhausted",
|
|
37
|
-
unavailable = "unavailable",
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export enum IPPolicyLevel {
|
|
41
|
-
IP_POLICY_LEVEL_UNSPECIFIED = "IP_POLICY_LEVEL_UNSPECIFIED",
|
|
42
|
-
VirtualHost = "VirtualHost",
|
|
43
|
-
Route = "Route",
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export enum IPSource {
|
|
47
|
-
IP_SOURCE_UNSPECIFIED = "IP_SOURCE_UNSPECIFIED",
|
|
48
|
-
RemoteIp = "RemoteIp",
|
|
49
|
-
DirectRemoteIp = "DirectRemoteIp",
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export enum IPPolicyStatus {
|
|
53
|
-
IP_POLICY_STATUS_UNSPECIFIED = "IP_POLICY_STATUS_UNSPECIFIED",
|
|
54
|
-
AllowEnabled = "AllowEnabled",
|
|
55
|
-
DenyEnabled = "DenyEnabled",
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export enum LoadBalancePolicyStrategy {
|
|
59
|
-
Random = "Random",
|
|
60
|
-
RoundRobin = "RoundRobin",
|
|
61
|
-
WeightedLeastRequest = "WeightedLeastRequest",
|
|
62
|
-
Cookie = "Cookie",
|
|
63
|
-
RequestHash = "RequestHash",
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export enum CookieSameSitesameSite {
|
|
67
|
-
Strict = "Strict",
|
|
68
|
-
Lax = "Lax",
|
|
69
|
-
None = "None",
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export type CreateAPIReq = {
|
|
73
|
-
workspaceId?: string
|
|
74
|
-
gatewayName?: string
|
|
75
|
-
clusterName?: string
|
|
76
|
-
namespaceName?: string
|
|
77
|
-
apiConfig?: APIConfig
|
|
78
|
-
advancedApiConfig?: AdvancedAPIConfig
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export type UpdateAPIReq = {
|
|
82
|
-
workspaceId?: string
|
|
83
|
-
gatewayName?: string
|
|
84
|
-
clusterName?: string
|
|
85
|
-
namespaceName?: string
|
|
86
|
-
apiName?: string
|
|
87
|
-
apiConfig?: APIConfig
|
|
88
|
-
advancedApiConfig?: AdvancedAPIConfig
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export type GetAPIReq = {
|
|
92
|
-
workspaceId?: string
|
|
93
|
-
gatewayName?: string
|
|
94
|
-
clusterName?: string
|
|
95
|
-
namespaceName?: string
|
|
96
|
-
apiName?: string
|
|
97
|
-
apiVersion?: string
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export type GetAPIRes = {
|
|
101
|
-
apiName?: string
|
|
102
|
-
enabled?: boolean
|
|
103
|
-
apiGroup?: string
|
|
104
|
-
fqdn?: string
|
|
105
|
-
matchRule?: MatchRule
|
|
106
|
-
routeRules?: RouteRule[]
|
|
107
|
-
advancedPolicy?: AdvancedAPIConfig
|
|
108
|
-
apiStatus?: SkoalaApiHostedV1alpha1Http.APIStatus
|
|
109
|
-
status?: SkoalaApiHostedV1alpha1Http.APIStatusEnum
|
|
110
|
-
statusDescription?: string
|
|
111
|
-
apiCreateType?: SkoalaApiHostedV1alpha1Http.APICreateType
|
|
112
|
-
permitInsecure?: boolean
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export type GetAPIDocReq = {
|
|
116
|
-
workspaceId?: string
|
|
117
|
-
gatewayName?: string
|
|
118
|
-
clusterName?: string
|
|
119
|
-
namespaceName?: string
|
|
120
|
-
apiName?: string
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export type GetAPIDocRes = {
|
|
124
|
-
apiName?: string
|
|
125
|
-
apiDoc?: string
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export type APIConfig = {
|
|
129
|
-
apiName?: string
|
|
130
|
-
fqdn?: string
|
|
131
|
-
matchRule?: MatchRule
|
|
132
|
-
routeRules?: RouteRule[]
|
|
133
|
-
enabled?: boolean
|
|
134
|
-
apiGroup?: string
|
|
135
|
-
permitInsecure?: boolean
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
type BaseMatchRule = {
|
|
140
|
-
httpMethod?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export type MatchRule = BaseMatchRule
|
|
144
|
-
& OneOf<{ exact: string; prefix: string; regex: string }>
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
type BaseRouteRule = {
|
|
148
|
-
headers?: SkoalaApiHostedV1alpha1Http.HeaderRule[]
|
|
149
|
-
queryParameters?: SkoalaApiHostedV1alpha1Http.QueryParameterRule[]
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export type RouteRule = BaseRouteRule
|
|
153
|
-
& OneOf<{ routeAction: SkoalaApiHostedV1alpha1Api.RouteAction; redirect: SkoalaApiHostedV1alpha1Api.RedirectAction; directResponse: SkoalaApiHostedV1alpha1Api.DirectResponse }>
|
|
154
|
-
|
|
155
|
-
export type APIDebugReq = {
|
|
156
|
-
workspaceId?: string
|
|
157
|
-
gatewayName?: string
|
|
158
|
-
clusterName?: string
|
|
159
|
-
namespaceName?: string
|
|
160
|
-
apiName?: string
|
|
161
|
-
method?: string
|
|
162
|
-
path?: string
|
|
163
|
-
body?: string
|
|
164
|
-
query?: {[key: string]: string}
|
|
165
|
-
header?: {[key: string]: string}
|
|
166
|
-
scheme?: string
|
|
167
|
-
insecureSkipVerify?: boolean
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export type APIDebugRes = {
|
|
171
|
-
status?: string
|
|
172
|
-
latency?: string
|
|
173
|
-
log?: string
|
|
174
|
-
request?: string
|
|
175
|
-
response?: string
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export type ListAPIReq = {
|
|
179
|
-
workspaceId?: string
|
|
180
|
-
clusterName?: string
|
|
181
|
-
gatewayName?: string
|
|
182
|
-
namespaceName?: string
|
|
183
|
-
apiName?: string
|
|
184
|
-
apiGroup?: string
|
|
185
|
-
fqdn?: string
|
|
186
|
-
page?: number
|
|
187
|
-
pageSize?: number
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export type ListAPIRes = {
|
|
191
|
-
items?: SkoalaApiHostedV1alpha1Http.APIInfo[]
|
|
192
|
-
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export type AdvancedAPIConfig = {
|
|
196
|
-
loadBalancePolicy?: LoadBalancePolicy
|
|
197
|
-
timeoutPolicy?: TimeoutPolicy
|
|
198
|
-
pathRewritePolicy?: PathRewritePolicy
|
|
199
|
-
retryPolicy?: RetryPolicy
|
|
200
|
-
websocketPolicy?: WebsocketPolicy
|
|
201
|
-
healthCheckPolicy?: HealthCheckPolicy
|
|
202
|
-
requestHeadersPolicy?: HeaderPolicy
|
|
203
|
-
responseHeadersPolicy?: HeaderPolicy
|
|
204
|
-
jwtPreRoutePolicy?: JWTPreRoutePolicy
|
|
205
|
-
authPreRoutePolicy?: AuthPreRoutePolicy
|
|
206
|
-
cookieRewritePolicy?: CookieRewritePolicy[]
|
|
207
|
-
ipPolicy?: IPPolicy
|
|
208
|
-
domainIpPolicyStatus?: IPPolicyStatus
|
|
209
|
-
extProcPreRoutePolicy?: ExtProcPreRoutePolicy
|
|
210
|
-
localRateLimitPolicy?: LocalRateLimitPolicy
|
|
211
|
-
globalRateLimitPolicy?: GlobalRateLimitPreRoutePolicy
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export type LoadBalancePolicy = {
|
|
215
|
-
requestHashPolicies?: RequestHashPolicies[]
|
|
216
|
-
strategy?: LoadBalancePolicyStrategy
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export type RequestHashPolicies = {
|
|
220
|
-
hashSourceIp?: boolean
|
|
221
|
-
terminal?: boolean
|
|
222
|
-
headerHashPolicy?: HeaderHashPolicy
|
|
223
|
-
queryParameterHashPolicy?: QueryParameterHashPolicy
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export type HeaderHashPolicy = {
|
|
227
|
-
headerName?: string
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export type QueryParameterHashPolicy = {
|
|
231
|
-
parameterName?: string
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
export type TimeoutPolicy = {
|
|
235
|
-
response?: string
|
|
236
|
-
idleConnection?: string
|
|
237
|
-
idle?: string
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export type PathRewritePolicy = {
|
|
241
|
-
oldPath?: string
|
|
242
|
-
replacement?: string
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export type RetryPolicy = {
|
|
246
|
-
count?: string
|
|
247
|
-
perTryTimeout?: string
|
|
248
|
-
retriablesStatusCode?: number[]
|
|
249
|
-
httpRetryOn?: HttpRetryOn
|
|
250
|
-
grpcRetryOn?: GrpcRetryOn
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
export type HttpRetryOn = {
|
|
254
|
-
httpRetryOn?: HttpRetryOnEnum[]
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export type GrpcRetryOn = {
|
|
258
|
-
grpcRetryOn?: GrpcRetryOnEnum[]
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export type WebsocketPolicy = {
|
|
262
|
-
enabled?: boolean
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export type HealthCheckPolicy = {
|
|
266
|
-
healthThresholdCount?: string
|
|
267
|
-
host?: string
|
|
268
|
-
intervalSeconds?: string
|
|
269
|
-
path?: string
|
|
270
|
-
timeoutSeconds?: string
|
|
271
|
-
unhealthThresholdCount?: string
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export type HeaderPolicy = {
|
|
275
|
-
remove?: string[]
|
|
276
|
-
set?: Header[]
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export type Header = {
|
|
280
|
-
name?: string
|
|
281
|
-
value?: string
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
export type JWTPreRoutePolicyJWTConfig = {
|
|
285
|
-
require?: string
|
|
286
|
-
disabled?: boolean
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export type JWTPreRoutePolicy = {
|
|
290
|
-
default?: boolean
|
|
291
|
-
jwtConfig?: JWTPreRoutePolicyJWTConfig
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
export type AuthPreRoutePolicyAuthConfig = {
|
|
295
|
-
context?: {[key: string]: string}
|
|
296
|
-
disabled?: boolean
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export type AuthPreRoutePolicy = {
|
|
300
|
-
default?: boolean
|
|
301
|
-
authConfig?: AuthPreRoutePolicyAuthConfig
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export type CookieRewritePolicy = {
|
|
305
|
-
name?: string
|
|
306
|
-
cookieDomainRewrite?: CookieDomainRewrite
|
|
307
|
-
cookiePathRewrite?: CookiePathRewrite
|
|
308
|
-
cookieSameSite?: CookieSameSite
|
|
309
|
-
cookieSecure?: CookieSecure
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export type CookiePathRewrite = {
|
|
313
|
-
path?: string
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export type CookieDomainRewrite = {
|
|
317
|
-
domain?: string
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
export type CookieSecure = {
|
|
321
|
-
secure?: boolean
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export type CookieSameSite = {
|
|
325
|
-
sameSite?: CookieSameSitesameSite
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
export type IPPolicy = {
|
|
329
|
-
level?: IPPolicyLevel
|
|
330
|
-
allowRules?: IPPolicyRule[]
|
|
331
|
-
denyRules?: IPPolicyRule[]
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export type IPPolicyRule = {
|
|
335
|
-
cidr?: string
|
|
336
|
-
source?: IPSource
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
export type ExtProcPreRoutePolicyExtProcConfig = {
|
|
340
|
-
extProcPluginName?: string
|
|
341
|
-
disabled?: boolean
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
export type ExtProcPreRoutePolicy = {
|
|
345
|
-
default?: boolean
|
|
346
|
-
extProcConfig?: ExtProcPreRoutePolicyExtProcConfig
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
export type GlobalRateLimitPreRoutePolicyGlobalRatelimitConfig = {
|
|
350
|
-
disabled?: boolean
|
|
351
|
-
globalRateLimitConfig?: SkoalaApiGeneralV1alpha2Ratelimit.GlobalRatelimitPolicy
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
export type GlobalRateLimitPreRoutePolicy = {
|
|
355
|
-
default?: boolean
|
|
356
|
-
globalRateLimitConfig?: GlobalRateLimitPreRoutePolicyGlobalRatelimitConfig
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
export type LocalRateLimitPolicy = {
|
|
360
|
-
burst?: number
|
|
361
|
-
request?: number
|
|
362
|
-
responseHeadersToAdd?: Header[]
|
|
363
|
-
responseStatusCode?: SkoalaApiHostedV1alpha1Http.HttpStatus
|
|
364
|
-
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
export type DeleteAPIReq = {
|
|
368
|
-
workspaceId?: string
|
|
369
|
-
gatewayName?: string
|
|
370
|
-
clusterName?: string
|
|
371
|
-
namespaceName?: string
|
|
372
|
-
apiName?: string
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
export type ListAPIHistoryReq = {
|
|
376
|
-
workspaceId?: string
|
|
377
|
-
gatewayName?: string
|
|
378
|
-
clusterName?: string
|
|
379
|
-
namespaceName?: string
|
|
380
|
-
apiName?: string
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
export type ListAPIHistoryRes = {
|
|
384
|
-
items?: APIHistory[]
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
export type APIHistory = {
|
|
388
|
-
version?: string
|
|
389
|
-
createTime?: string
|
|
390
|
-
description?: string
|
|
391
|
-
enabled?: boolean
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
export type UpdateAPIStatusReq = {
|
|
395
|
-
workspaceId?: string
|
|
396
|
-
gatewayName?: string
|
|
397
|
-
clusterName?: string
|
|
398
|
-
namespaceName?: string
|
|
399
|
-
apiName?: string
|
|
400
|
-
apiVersion?: string
|
|
401
|
-
enabled?: boolean
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
export type UpdateAPIDescriptionReq = {
|
|
405
|
-
workspaceId?: string
|
|
406
|
-
gatewayName?: string
|
|
407
|
-
clusterName?: string
|
|
408
|
-
namespaceName?: string
|
|
409
|
-
apiName?: string
|
|
410
|
-
apiVersion?: string
|
|
411
|
-
description?: string
|
|
412
|
-
}
|