@daocloud-proto/skoala 0.49.0-26 → 0.49.0-6
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/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
|
@@ -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
|
-
}
|