@controlplane/schema 1.0.7 → 1.0.8

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.
Files changed (63) hide show
  1. package/build/src/interfaces/accessreport.d.ts +11 -11
  2. package/build/src/interfaces/agent.d.ts +14 -10
  3. package/build/src/interfaces/auditctx.d.ts +4 -4
  4. package/build/src/interfaces/base.d.ts +20 -20
  5. package/build/src/interfaces/cloudaccount.d.ts +7 -7
  6. package/build/src/interfaces/command.d.ts +155 -148
  7. package/build/src/interfaces/config.d.ts +2 -4
  8. package/build/src/interfaces/containerstatus.d.ts +6 -6
  9. package/build/src/interfaces/cronjob.d.ts +1 -1
  10. package/build/src/interfaces/dbcluster.d.ts +1 -1
  11. package/build/src/interfaces/deployment.d.ts +20 -20
  12. package/build/src/interfaces/domain.d.ts +67 -67
  13. package/build/src/interfaces/env.d.ts +1 -1
  14. package/build/src/interfaces/envoy.d.ts +5 -5
  15. package/build/src/interfaces/envoyAccessLog.d.ts +1 -1
  16. package/build/src/interfaces/envoyCluster.d.ts +9 -9
  17. package/build/src/interfaces/envoyCommon.d.ts +301 -301
  18. package/build/src/interfaces/envoyExcExtAuth.d.ts +2 -2
  19. package/build/src/interfaces/envoyHttp.d.ts +146 -146
  20. package/build/src/interfaces/envoyRateLimit.d.ts +1 -1
  21. package/build/src/interfaces/event.d.ts +9 -9
  22. package/build/src/interfaces/group.d.ts +2 -2
  23. package/build/src/interfaces/gvc.d.ts +185 -66
  24. package/build/src/interfaces/identity.d.ts +96 -63
  25. package/build/src/interfaces/image.d.ts +1 -1
  26. package/build/src/interfaces/ipSet.d.ts +14 -14
  27. package/build/src/interfaces/location.d.ts +16 -16
  28. package/build/src/interfaces/memcache.d.ts +7 -7
  29. package/build/src/interfaces/mk8s.d.ts +65 -65
  30. package/build/src/interfaces/mk8sAddons.d.ts +64 -64
  31. package/build/src/interfaces/mk8sAws.d.ts +6 -6
  32. package/build/src/interfaces/mk8sAzure.d.ts +10 -10
  33. package/build/src/interfaces/mk8sCommon.d.ts +26 -26
  34. package/build/src/interfaces/mk8sDigitalOcean.d.ts +2 -2
  35. package/build/src/interfaces/mk8sEphemeral.d.ts +1 -1
  36. package/build/src/interfaces/mk8sGcp.d.ts +9 -9
  37. package/build/src/interfaces/mk8sGeneric.d.ts +5 -5
  38. package/build/src/interfaces/mk8sHetzner.d.ts +10 -10
  39. package/build/src/interfaces/mk8sLambdalabs.d.ts +5 -5
  40. package/build/src/interfaces/mk8sLinode.d.ts +6 -6
  41. package/build/src/interfaces/mk8sOblivus.d.ts +5 -5
  42. package/build/src/interfaces/mk8sPaperspace.d.ts +5 -5
  43. package/build/src/interfaces/mk8sTriton.d.ts +23 -23
  44. package/build/src/interfaces/org.d.ts +32 -32
  45. package/build/src/interfaces/orgLogging.d.ts +32 -32
  46. package/build/src/interfaces/permissions.d.ts +1 -1
  47. package/build/src/interfaces/policy.d.ts +2 -2
  48. package/build/src/interfaces/policyMembership.d.ts +6 -6
  49. package/build/src/interfaces/query.d.ts +24 -17
  50. package/build/src/interfaces/quota.d.ts +1 -1
  51. package/build/src/interfaces/resourcePolicy.d.ts +1 -1
  52. package/build/src/interfaces/secret.d.ts +23 -23
  53. package/build/src/interfaces/serviceaccount.d.ts +7 -7
  54. package/build/src/interfaces/spicedb.d.ts +1 -1
  55. package/build/src/interfaces/statefulSet.d.ts +1 -1
  56. package/build/src/interfaces/task.d.ts +1 -1
  57. package/build/src/interfaces/tenant.d.ts +5 -5
  58. package/build/src/interfaces/tracing.d.ts +16 -8
  59. package/build/src/interfaces/user.d.ts +12 -12
  60. package/build/src/interfaces/volumeSet.d.ts +54 -46
  61. package/build/src/interfaces/workload.d.ts +203 -222
  62. package/build/src/interfaces/workloadOptions.d.ts +47 -14
  63. package/package.json +1 -1
@@ -1,164 +1,90 @@
1
- export type UInt32 = number;
2
- export type UInt64 = number;
3
- export type Percent = number;
4
- export interface FractionalPercent {
5
- numerator?: number;
6
- denominator?: number;
7
- }
8
- export interface IntRange {
9
- start?: number;
10
- end?: number;
11
- }
12
- export interface DoubleRange {
13
- start?: number;
14
- end?: number;
15
- }
16
- export interface RuntimeFractionalPercent {
17
- default_value?: FractionalPercent;
18
- runtime_key: string;
1
+ export interface AdditionalAddress {
2
+ address?: Address;
19
3
  }
20
- export interface RuntimeDouble {
21
- default_value?: number;
22
- runtime_key: string;
4
+ export interface Address {
5
+ socket_address?: SocketAddress;
6
+ pipe?: Pipe;
7
+ envoy_internal_address?: EnvoyInternalAddress;
23
8
  }
24
- export interface RuntimeFeatureFlag {
25
- default_value: boolean;
26
- runtime_key: string;
9
+ export interface ApiConfigSource {
10
+ api_type?: ApiType;
11
+ transport_api_version?: ApiVersion;
12
+ cluster_names?: string[];
13
+ grpc_services?: GrpcService[];
14
+ refresh_delay?: Duration;
15
+ request_timeout?: Duration;
16
+ rate_limit_settings?: RateLimitSettings;
17
+ set_node_on_first_message_only?: boolean;
18
+ config_validators?: TypedExtensionConfig[];
27
19
  }
28
- export type HealthStatus = 'UNKNOWN' | 'HEALTHY' | 'UNHEALTHY' | 'DRAINING' | 'TIMEOUT' | 'DEGRADED';
29
- export interface HealthStatusSet {
30
- statuses?: HealthStatus[];
20
+ export type ApiType = 'DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE' | 'REST' | 'GRPC' | 'DELTA_GRPC';
21
+ export type ApiVersion = 'AUTO' | 'V2' | 'V3';
22
+ export interface BindConfig {
23
+ source_address?: SocketAddress;
24
+ freebind?: boolean;
25
+ socket_options?: SocketOption[];
26
+ extra_source_addresses?: ExtraSourceAddress[];
27
+ additional_source_addresses?: SocketAddress[];
28
+ local_address_selector?: TypedExtensionConfig;
31
29
  }
32
- export type Port = number;
33
- export interface Empty {
30
+ export type CodecClientType = 'HTTP1' | 'HTTP2';
31
+ export interface ConfigSource {
32
+ path?: string;
33
+ path_config_source?: PathConfigSource;
34
+ api_config_source?: ApiConfigSource;
35
+ initial_fetch_timeout?: Duration;
36
+ resource_api_version?: ApiVersion;
34
37
  }
35
- export type ListValue = any[];
36
- export interface Struct {
37
- [x: string]: any;
38
+ export interface CustomHealthCheck {
39
+ name: string;
40
+ typed_config?: any;
38
41
  }
39
- export type Priority = number;
40
- export type ApiVersion = 'AUTO' | 'V2' | 'V3';
41
- export type ApiType = 'DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE' | 'REST' | 'GRPC' | 'DELTA_GRPC';
42
- export type CodecClientType = 'HTTP1' | 'HTTP2';
43
- export type RequestMethod = 'METHOD_UNSPECIFIED' | 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
44
- export type RoutingPriority = 'DEFAULT' | 'HIGH';
45
- export type Duration = string | {
46
- seconds?: number;
47
- nanos?: number;
48
- };
49
- export type DurationRestricted = string;
50
42
  export interface DataSource {
51
43
  filename?: string;
52
44
  inline_bytes?: any;
53
45
  inline_string?: string;
54
46
  environment_variable?: string;
55
47
  }
56
- export interface TypedExtensionConfig {
57
- name: string;
58
- typed_config?: any;
59
- }
60
- export interface RegexMatcher {
61
- google_re2?: {
62
- max_program_size?: number;
63
- };
64
- regex: string;
48
+ export interface DnsResolutionConfig {
49
+ resolvers?: Address[];
50
+ dns_resolver_options?: DnsResolverOptions;
65
51
  }
66
- export interface StringMatcher {
67
- exact?: string;
68
- prefix?: string;
69
- suffix?: string;
70
- safe_regex?: RegexMatcher;
71
- contains?: string;
72
- ignore_case?: boolean;
52
+ export interface DnsResolverOptions {
53
+ use_tcp_for_dns_lookups?: boolean;
54
+ no_default_search_domain?: boolean;
73
55
  }
74
56
  export interface DoubleMatcher {
75
57
  range?: DoubleRange;
76
58
  exact?: number;
77
59
  }
78
- export interface ValueMatcher {
79
- null_match?: any;
80
- double_match?: DoubleMatcher;
81
- string_match?: StringMatcher;
82
- bool_match?: boolean;
83
- present_match?: boolean;
84
- }
85
- export interface QueryParameterMatcher {
86
- name: string;
87
- string_match?: StringMatcher;
88
- present_match?: boolean;
89
- }
90
- export interface MetadataMatcher {
91
- filter: string;
92
- path?: {
93
- key: string;
94
- }[];
95
- value: {
96
- null_match?: any;
97
- double_match?: DoubleMatcher;
98
- string_match?: StringMatcher;
99
- bool_match?: boolean;
100
- present_match?: boolean;
101
- };
102
- invert?: boolean;
103
- }
104
- export interface HeaderMatcher {
105
- name: string;
106
- safe_regex_match?: RegexMatcher;
107
- range_match?: IntRange;
108
- present_match?: boolean;
109
- string_match?: StringMatcher;
110
- invert_match?: boolean;
111
- treat_missing_header_as_empty?: boolean;
112
- }
113
- export interface RouteMatch {
114
- prefix?: string;
115
- path?: string;
116
- safe_regex?: RegexMatcher;
117
- path_separated_prefix?: string;
118
- path_match_policy?: TypedExtensionConfig;
119
- case_sensitive?: boolean;
120
- runtime_fraction?: RuntimeFractionalPercent;
121
- headers?: HeaderMatcher[];
122
- query_parameters?: QueryParameterMatcher[];
123
- grpc?: {
124
- presented?: boolean;
125
- validated?: boolean;
126
- };
127
- tls_context?: {
128
- presented?: boolean;
129
- validated?: boolean;
130
- };
131
- dynamic_metadata?: MetadataMatcher[];
132
- }
133
- export interface RouteMatchRestricted {
134
- prefix?: string;
135
- headers?: HeaderMatcher[];
60
+ export interface DoubleRange {
61
+ start?: number;
62
+ end?: number;
136
63
  }
137
- export interface ListStringMatcher {
138
- patterns?: StringMatcher[];
64
+ export type Duration = string | {
65
+ seconds?: number;
66
+ nanos?: number;
67
+ };
68
+ export type DurationRestricted = string;
69
+ export interface Empty {
139
70
  }
140
- export interface TimeInterval {
141
- base_interval: string | {
142
- seconds?: number;
143
- nanos?: number;
144
- };
145
- max_interval?: Duration;
71
+ export interface EnvoyInternalAddress {
72
+ server_listener_name: string;
73
+ endpoint_id?: string;
146
74
  }
147
- export interface RetryPolicy {
148
- retry_back_off?: TimeInterval;
149
- num_retries?: number;
75
+ export interface ExtensionConfigSource {
76
+ config_source?: ConfigSource;
77
+ default_config?: any;
78
+ apply_default_config_without_warming?: boolean;
79
+ type_urls?: string[];
150
80
  }
151
- export type HeaderAppendAction = 'APPEND_IF_EXISTS_OR_ADD' | 'ADD_IF_ABSENT' | 'OVERWRITE_IF_EXISTS_OR_ADD' | 'OVERWRITE_IF_EXISTS';
152
- export interface HeaderValue {
153
- key: string;
154
- value?: string;
155
- raw_value?: any;
81
+ export interface ExtraSourceAddress {
82
+ address?: Address;
83
+ socket_options?: SocketOptionsOverride;
156
84
  }
157
- export interface HeaderValueOption {
158
- header?: HeaderValue;
159
- append?: boolean;
160
- append_action?: HeaderAppendAction;
161
- keep_empty_value?: boolean;
85
+ export interface FractionalPercent {
86
+ numerator?: number;
87
+ denominator?: number;
162
88
  }
163
89
  export interface GoogleCallCredentials {
164
90
  access_token?: string;
@@ -188,6 +114,11 @@ export interface GoogleCallCredentials {
188
114
  actor_token_type?: string;
189
115
  };
190
116
  }
117
+ export interface GrpcHealthCheck {
118
+ service_name?: string;
119
+ authority?: string;
120
+ initial_metadata?: HeaderValueOption[];
121
+ }
191
122
  export interface GrpcService {
192
123
  envoy_grpc?: {
193
124
  cluster_name: string;
@@ -215,139 +146,60 @@ export interface GrpcService {
215
146
  };
216
147
  initial_metadata?: HeaderValue[];
217
148
  }
218
- export interface Locality {
219
- region?: string;
220
- zone?: string;
221
- sub_zone?: string;
222
- }
223
- export interface SocketAddress {
224
- protocol?: 'TCP' | 'UDP';
225
- address: string;
226
- port_value?: number;
227
- named_port?: string;
228
- resolver_name?: any;
229
- ipv4_compat?: boolean;
230
- }
231
- export interface SocketOption {
232
- description?: string;
233
- level?: number;
234
- name?: number;
235
- int_value?: number;
236
- buf_value?: any;
237
- state?: 'STATE_PREBIND' | 'STATE_BOUND' | 'STATE_LISTENING';
238
- }
239
- export interface SocketOptionsOverride {
240
- socket_options?: SocketOption[];
149
+ export type HeaderAppendAction = 'APPEND_IF_EXISTS_OR_ADD' | 'ADD_IF_ABSENT' | 'OVERWRITE_IF_EXISTS_OR_ADD' | 'OVERWRITE_IF_EXISTS';
150
+ export interface HeaderMatcher {
151
+ name: string;
152
+ safe_regex_match?: RegexMatcher;
153
+ range_match?: IntRange;
154
+ present_match?: boolean;
155
+ string_match?: StringMatcher;
156
+ invert_match?: boolean;
157
+ treat_missing_header_as_empty?: boolean;
241
158
  }
242
- export interface Pipe {
243
- path: string;
244
- mode?: number;
159
+ export interface HeaderValue {
160
+ key: string;
161
+ value?: string;
162
+ raw_value?: any;
245
163
  }
246
- export interface EnvoyInternalAddress {
247
- server_listener_name: string;
248
- endpoint_id?: string;
164
+ export interface HeaderValueOption {
165
+ header?: HeaderValue;
166
+ append?: boolean;
167
+ append_action?: HeaderAppendAction;
168
+ keep_empty_value?: boolean;
249
169
  }
250
- export interface Address {
251
- socket_address?: SocketAddress;
252
- pipe?: Pipe;
253
- envoy_internal_address?: EnvoyInternalAddress;
254
- }
255
- export interface AdditionalAddress {
256
- address?: Address;
257
- }
258
- export interface ExtraSourceAddress {
259
- address?: Address;
260
- socket_options?: SocketOptionsOverride;
261
- }
262
- export interface DnsResolverOptions {
263
- use_tcp_for_dns_lookups?: boolean;
264
- no_default_search_domain?: boolean;
265
- }
266
- export interface DnsResolutionConfig {
267
- resolvers?: Address[];
268
- dns_resolver_options?: DnsResolverOptions;
269
- }
270
- export interface BindConfig {
271
- source_address?: SocketAddress;
272
- freebind?: boolean;
273
- socket_options?: SocketOption[];
274
- extra_source_addresses?: ExtraSourceAddress[];
275
- additional_source_addresses?: SocketAddress[];
276
- local_address_selector?: TypedExtensionConfig;
277
- }
278
- export interface TransportSocket {
279
- name: string;
280
- typed_config?: {
281
- "@type"?: 'type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext';
282
- sni?: string;
283
- };
284
- }
285
- export interface WatchedDirectory {
286
- path: string;
287
- }
288
- export interface PathConfigSource {
289
- path: string;
290
- watched_directory?: WatchedDirectory;
291
- }
292
- export interface RateLimitSettings {
293
- max_tokens?: UInt32;
294
- fill_rate?: number;
295
- }
296
- export interface ApiConfigSource {
297
- api_type?: ApiType;
298
- transport_api_version?: ApiVersion;
299
- cluster_names?: string[];
300
- grpc_services?: GrpcService[];
301
- refresh_delay?: Duration;
302
- request_timeout?: Duration;
303
- rate_limit_settings?: RateLimitSettings;
304
- set_node_on_first_message_only?: boolean;
305
- config_validators?: TypedExtensionConfig[];
306
- }
307
- export interface ConfigSource {
308
- path?: string;
309
- path_config_source?: PathConfigSource;
310
- api_config_source?: ApiConfigSource;
311
- initial_fetch_timeout?: Duration;
312
- resource_api_version?: ApiVersion;
313
- }
314
- export interface HealthCheckTlsOptions {
315
- alpn_protocols?: string[];
170
+ export interface HealthCheck {
171
+ timeout?: Duration;
172
+ interval?: Duration;
173
+ initial_jitter?: Duration;
174
+ interval_jitter?: Duration;
175
+ interval_jitter_percent?: UInt32;
176
+ unhealthy_threshold?: UInt32;
177
+ healthy_threshold?: UInt32;
178
+ reuse_connection?: boolean;
179
+ http_health_check?: HttpHealthCheck;
180
+ tcp_health_check?: TcpHealthCheck;
181
+ grpc_health_check?: GrpcHealthCheck;
182
+ custom_health_check?: CustomHealthCheck;
183
+ no_traffic_interval?: Duration;
184
+ no_traffic_healthy_interval?: Duration;
185
+ unhealthy_interval?: Duration;
186
+ healthy_edge_interval?: Duration;
187
+ event_log_path?: string;
188
+ event_logger?: TypedExtensionConfig[];
189
+ always_log_health_check_failures?: boolean;
190
+ tls_options?: HealthCheckTlsOptions;
191
+ transport_socket_match_criteria?: Struct;
316
192
  }
317
193
  export interface HealthCheckPayload {
318
194
  text?: string;
319
195
  binary?: any;
320
196
  }
321
- export type StatusCode = 'Empty' | 'Continue' | 'OK' | 'Created' | 'Accepted' | 'NonAuthoritativeInformation' | 'NoContent' | 'ResetContent' | 'PartialContent' | 'MultiStatus' | 'AlradyReported' | 'IMUsed' | 'MultipleChoices' | 'MovedPermanently' | 'Found' | 'SeeOther' | 'NotModified' | 'UseProxy' | 'TemporaryRedirect' | 'PermanentRedirect' | 'BadRequest' | 'Unauthroized' | 'PaymentRequired' | 'Forbidden' | 'NotFound' | 'MethodNotAllowed' | 'NotAcceptable' | 'ProxyAuthenticationRequired' | 'RequestTimeout' | 'Conflict' | 'Gone' | 'LengthRequired' | 'PreconditionFailed' | 'PayloadTooLarge' | 'URITooLong' | 'UnsupportedMediaType' | 'RangeNotSatisfiable' | 'ExpectationFailed' | 'MisdirectedRequest' | 'UnprocessableEntity' | 'Locked' | 'FailedDependency' | 'UpgradeRequired' | 'PreconditionRequired' | 'TooManyRequests' | 'RequestHeaderFieldsTooLarge' | 'InternalServerError' | 'NotImplemented' | 'BadGateway' | 'ServiceUnavailable' | 'GatewayTimeout' | 'HTTPVersionNotSupported' | 'VariantAlsoNegotiates' | 'InsufficientStorage' | 'LoopDetected' | 'NotExtended' | 'NetworkAuthenticationRequired';
322
- export interface HttpStatus {
323
- code?: StatusCode;
324
- }
325
- export interface HttpHealthCheck {
326
- host?: string;
327
- path: string;
328
- receive?: HealthCheckPayload[];
329
- response_buffer_size?: UInt64;
330
- request_headers_to_add?: HeaderValueOption[];
331
- request_headers_to_remove?: string[];
332
- expected_statuses?: IntRange[];
333
- retriable_statuses?: IntRange[];
334
- codec_client_type?: CodecClientType;
335
- service_name_matcher?: StringMatcher;
336
- method?: RequestMethod;
337
- }
338
- export interface KeepaliveSettings {
339
- interval?: Duration;
340
- timeout: string | {
341
- seconds?: number;
342
- nanos?: number;
343
- };
344
- interval_jitter?: Percent;
345
- connection_idle_interval?: Duration;
197
+ export interface HealthCheckTlsOptions {
198
+ alpn_protocols?: string[];
346
199
  }
347
- export interface UpstreamHttpProtocolOptions {
348
- auto_sni?: boolean;
349
- auto_san_validation?: boolean;
350
- override_auto_sni_header?: string;
200
+ export type HealthStatus = 'UNKNOWN' | 'HEALTHY' | 'UNHEALTHY' | 'DRAINING' | 'TIMEOUT' | 'DEGRADED';
201
+ export interface HealthStatusSet {
202
+ statuses?: HealthStatus[];
351
203
  }
352
204
  export interface Http1ProtocolOptions {
353
205
  allow_absolute_url?: boolean;
@@ -367,13 +219,6 @@ export interface Http1ProtocolOptions {
367
219
  override_stream_error_on_invalid_http_message?: boolean;
368
220
  send_fully_qualified_url?: boolean;
369
221
  }
370
- export interface HttpProtocolOptions {
371
- idle_timeout?: Duration;
372
- max_connection_duration?: Duration;
373
- max_headers_count?: UInt32;
374
- max_stream_duration?: Duration;
375
- headers_with_underscores_action?: 'ALLOW' | 'REJECT_REQUEST' | 'DROP_HEADER';
376
- }
377
222
  export interface Http2ProtocolOptions {
378
223
  hpack_table_size?: UInt32;
379
224
  max_concurrent_streams?: UInt32;
@@ -389,6 +234,164 @@ export interface Http2ProtocolOptions {
389
234
  override_stream_error_on_invalid_http_message?: boolean;
390
235
  connection_keepalive?: KeepaliveSettings;
391
236
  }
237
+ export interface HttpHealthCheck {
238
+ host?: string;
239
+ path: string;
240
+ receive?: HealthCheckPayload[];
241
+ response_buffer_size?: UInt64;
242
+ request_headers_to_add?: HeaderValueOption[];
243
+ request_headers_to_remove?: string[];
244
+ expected_statuses?: IntRange[];
245
+ retriable_statuses?: IntRange[];
246
+ codec_client_type?: CodecClientType;
247
+ service_name_matcher?: StringMatcher;
248
+ method?: RequestMethod;
249
+ }
250
+ export interface HttpProtocolOptions {
251
+ idle_timeout?: Duration;
252
+ max_connection_duration?: Duration;
253
+ max_headers_count?: UInt32;
254
+ max_stream_duration?: Duration;
255
+ headers_with_underscores_action?: 'ALLOW' | 'REJECT_REQUEST' | 'DROP_HEADER';
256
+ }
257
+ export interface HttpStatus {
258
+ code?: StatusCode;
259
+ }
260
+ export interface IntRange {
261
+ start?: number;
262
+ end?: number;
263
+ }
264
+ export interface KeepaliveSettings {
265
+ interval?: Duration;
266
+ timeout: string | {
267
+ seconds?: number;
268
+ nanos?: number;
269
+ };
270
+ interval_jitter?: Percent;
271
+ connection_idle_interval?: Duration;
272
+ }
273
+ export interface ListStringMatcher {
274
+ patterns?: StringMatcher[];
275
+ }
276
+ export type ListValue = any[];
277
+ export interface Locality {
278
+ region?: string;
279
+ zone?: string;
280
+ sub_zone?: string;
281
+ }
282
+ export interface MetadataMatcher {
283
+ filter: string;
284
+ path?: {
285
+ key: string;
286
+ }[];
287
+ value: {
288
+ null_match?: any;
289
+ double_match?: DoubleMatcher;
290
+ string_match?: StringMatcher;
291
+ bool_match?: boolean;
292
+ present_match?: boolean;
293
+ };
294
+ invert?: boolean;
295
+ }
296
+ export interface PathConfigSource {
297
+ path: string;
298
+ watched_directory?: WatchedDirectory;
299
+ }
300
+ export type Percent = number;
301
+ export interface Pipe {
302
+ path: string;
303
+ mode?: number;
304
+ }
305
+ export type Port = number;
306
+ export type Priority = number;
307
+ export interface QueryParameterMatcher {
308
+ name: string;
309
+ string_match?: StringMatcher;
310
+ present_match?: boolean;
311
+ }
312
+ export interface RateLimitSettings {
313
+ max_tokens?: UInt32;
314
+ fill_rate?: number;
315
+ }
316
+ export interface RegexMatcher {
317
+ google_re2?: {
318
+ max_program_size?: number;
319
+ };
320
+ regex: string;
321
+ }
322
+ export type RequestMethod = 'METHOD_UNSPECIFIED' | 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
323
+ export interface RetryPolicy {
324
+ retry_back_off?: TimeInterval;
325
+ num_retries?: number;
326
+ }
327
+ export interface RouteMatch {
328
+ prefix?: string;
329
+ path?: string;
330
+ safe_regex?: RegexMatcher;
331
+ path_separated_prefix?: string;
332
+ path_match_policy?: TypedExtensionConfig;
333
+ case_sensitive?: boolean;
334
+ runtime_fraction?: RuntimeFractionalPercent;
335
+ headers?: HeaderMatcher[];
336
+ query_parameters?: QueryParameterMatcher[];
337
+ grpc?: {
338
+ presented?: boolean;
339
+ validated?: boolean;
340
+ };
341
+ tls_context?: {
342
+ presented?: boolean;
343
+ validated?: boolean;
344
+ };
345
+ dynamic_metadata?: MetadataMatcher[];
346
+ }
347
+ export interface RouteMatchRestricted {
348
+ prefix?: string;
349
+ headers?: HeaderMatcher[];
350
+ }
351
+ export type RoutingPriority = 'DEFAULT' | 'HIGH';
352
+ export interface RuntimeDouble {
353
+ default_value?: number;
354
+ runtime_key: string;
355
+ }
356
+ export interface RuntimeFeatureFlag {
357
+ default_value: boolean;
358
+ runtime_key: string;
359
+ }
360
+ export interface RuntimeFractionalPercent {
361
+ default_value?: FractionalPercent;
362
+ runtime_key: string;
363
+ }
364
+ export interface SocketAddress {
365
+ protocol?: 'TCP' | 'UDP';
366
+ address: string;
367
+ port_value?: number;
368
+ named_port?: string;
369
+ resolver_name?: any;
370
+ ipv4_compat?: boolean;
371
+ }
372
+ export interface SocketOption {
373
+ description?: string;
374
+ level?: number;
375
+ name?: number;
376
+ int_value?: number;
377
+ buf_value?: any;
378
+ state?: 'STATE_PREBIND' | 'STATE_BOUND' | 'STATE_LISTENING';
379
+ }
380
+ export interface SocketOptionsOverride {
381
+ socket_options?: SocketOption[];
382
+ }
383
+ export type StatusCode = 'Empty' | 'Continue' | 'OK' | 'Created' | 'Accepted' | 'NonAuthoritativeInformation' | 'NoContent' | 'ResetContent' | 'PartialContent' | 'MultiStatus' | 'AlradyReported' | 'IMUsed' | 'MultipleChoices' | 'MovedPermanently' | 'Found' | 'SeeOther' | 'NotModified' | 'UseProxy' | 'TemporaryRedirect' | 'PermanentRedirect' | 'BadRequest' | 'Unauthroized' | 'PaymentRequired' | 'Forbidden' | 'NotFound' | 'MethodNotAllowed' | 'NotAcceptable' | 'ProxyAuthenticationRequired' | 'RequestTimeout' | 'Conflict' | 'Gone' | 'LengthRequired' | 'PreconditionFailed' | 'PayloadTooLarge' | 'URITooLong' | 'UnsupportedMediaType' | 'RangeNotSatisfiable' | 'ExpectationFailed' | 'MisdirectedRequest' | 'UnprocessableEntity' | 'Locked' | 'FailedDependency' | 'UpgradeRequired' | 'PreconditionRequired' | 'TooManyRequests' | 'RequestHeaderFieldsTooLarge' | 'InternalServerError' | 'NotImplemented' | 'BadGateway' | 'ServiceUnavailable' | 'GatewayTimeout' | 'HTTPVersionNotSupported' | 'VariantAlsoNegotiates' | 'InsufficientStorage' | 'LoopDetected' | 'NotExtended' | 'NetworkAuthenticationRequired';
384
+ export interface StringMatcher {
385
+ exact?: string;
386
+ prefix?: string;
387
+ suffix?: string;
388
+ safe_regex?: RegexMatcher;
389
+ contains?: string;
390
+ ignore_case?: boolean;
391
+ }
392
+ export interface Struct {
393
+ [x: string]: any;
394
+ }
392
395
  export interface TcpHealthCheck {
393
396
  send?: HealthCheckPayload;
394
397
  receive?: HealthCheckPayload[];
@@ -398,41 +401,38 @@ export interface TcpKeepalive {
398
401
  keepalive_time?: UInt32;
399
402
  keepalive_interval?: UInt32;
400
403
  }
401
- export interface ExtensionConfigSource {
402
- config_source?: ConfigSource;
403
- default_config?: any;
404
- apply_default_config_without_warming?: boolean;
405
- type_urls?: string[];
404
+ export interface TimeInterval {
405
+ base_interval: string | {
406
+ seconds?: number;
407
+ nanos?: number;
408
+ };
409
+ max_interval?: Duration;
406
410
  }
407
- export interface GrpcHealthCheck {
408
- service_name?: string;
409
- authority?: string;
410
- initial_metadata?: HeaderValueOption[];
411
+ export interface TransportSocket {
412
+ name: string;
413
+ typed_config?: {
414
+ "@type"?: 'type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext';
415
+ sni?: string;
416
+ };
411
417
  }
412
- export interface CustomHealthCheck {
418
+ export interface TypedExtensionConfig {
413
419
  name: string;
414
420
  typed_config?: any;
415
421
  }
416
- export interface HealthCheck {
417
- timeout?: Duration;
418
- interval?: Duration;
419
- initial_jitter?: Duration;
420
- interval_jitter?: Duration;
421
- interval_jitter_percent?: UInt32;
422
- unhealthy_threshold?: UInt32;
423
- healthy_threshold?: UInt32;
424
- reuse_connection?: boolean;
425
- http_health_check?: HttpHealthCheck;
426
- tcp_health_check?: TcpHealthCheck;
427
- grpc_health_check?: GrpcHealthCheck;
428
- custom_health_check?: CustomHealthCheck;
429
- no_traffic_interval?: Duration;
430
- no_traffic_healthy_interval?: Duration;
431
- unhealthy_interval?: Duration;
432
- healthy_edge_interval?: Duration;
433
- event_log_path?: string;
434
- event_logger?: TypedExtensionConfig[];
435
- always_log_health_check_failures?: boolean;
436
- tls_options?: HealthCheckTlsOptions;
437
- transport_socket_match_criteria?: Struct;
422
+ export type UInt32 = number;
423
+ export type UInt64 = number;
424
+ export interface UpstreamHttpProtocolOptions {
425
+ auto_sni?: boolean;
426
+ auto_san_validation?: boolean;
427
+ override_auto_sni_header?: string;
428
+ }
429
+ export interface ValueMatcher {
430
+ null_match?: any;
431
+ double_match?: DoubleMatcher;
432
+ string_match?: StringMatcher;
433
+ bool_match?: boolean;
434
+ present_match?: boolean;
435
+ }
436
+ export interface WatchedDirectory {
437
+ path: string;
438
438
  }
@@ -1,5 +1,5 @@
1
- import { RouteMatch } from './envoyCommon';
2
- import { Port } from './port';
1
+ import { RouteMatch } from './envoyCommon.js';
2
+ import { Port } from './port.js';
3
3
  export interface ExcExtAuth {
4
4
  match?: RouteMatch;
5
5
  port?: Port;