Skip to content

Commit 095a3b4

Browse files
committed
Add generated code for Envoy APIs
1 parent 3fa1c09 commit 095a3b4

File tree

205 files changed

+9962
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+9962
-0
lines changed

packages/grpc-js/src/generated/ads.d.ts

Lines changed: 745 additions & 0 deletions
Large diffs are not rendered by default.

packages/grpc-js/src/generated/cluster.d.ts

Lines changed: 1067 additions & 0 deletions
Large diffs are not rendered by default.

packages/grpc-js/src/generated/endpoint.d.ts

Lines changed: 838 additions & 0 deletions
Large diffs are not rendered by default.

packages/grpc-js/src/generated/envoy/api/v2/Cluster.d.ts

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Original file: deps/envoy-api/envoy/api/v2/endpoint.proto
2+
3+
import { LocalityLbEndpoints as _envoy_api_v2_endpoint_LocalityLbEndpoints, LocalityLbEndpoints__Output as _envoy_api_v2_endpoint_LocalityLbEndpoints__Output } from '../../../envoy/api/v2/endpoint/LocalityLbEndpoints';
4+
import { Endpoint as _envoy_api_v2_endpoint_Endpoint, Endpoint__Output as _envoy_api_v2_endpoint_Endpoint__Output } from '../../../envoy/api/v2/endpoint/Endpoint';
5+
import { UInt32Value as _google_protobuf_UInt32Value, UInt32Value__Output as _google_protobuf_UInt32Value__Output } from '../../../google/protobuf/UInt32Value';
6+
import { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../../../google/protobuf/Duration';
7+
import { FractionalPercent as _envoy_type_FractionalPercent, FractionalPercent__Output as _envoy_type_FractionalPercent__Output } from '../../../envoy/type/FractionalPercent';
8+
9+
export interface _envoy_api_v2_ClusterLoadAssignment_Policy {
10+
'drop_overloads'?: (_envoy_api_v2_ClusterLoadAssignment_Policy_DropOverload)[];
11+
'overprovisioning_factor'?: (_google_protobuf_UInt32Value);
12+
'endpoint_stale_after'?: (_google_protobuf_Duration);
13+
'disable_overprovisioning'?: (boolean);
14+
}
15+
16+
export interface _envoy_api_v2_ClusterLoadAssignment_Policy__Output {
17+
'drop_overloads': (_envoy_api_v2_ClusterLoadAssignment_Policy_DropOverload__Output)[];
18+
'overprovisioning_factor': (_google_protobuf_UInt32Value__Output);
19+
'endpoint_stale_after': (_google_protobuf_Duration__Output);
20+
'disable_overprovisioning': (boolean);
21+
}
22+
23+
export interface _envoy_api_v2_ClusterLoadAssignment_Policy_DropOverload {
24+
'category'?: (string);
25+
'drop_percentage'?: (_envoy_type_FractionalPercent);
26+
}
27+
28+
export interface _envoy_api_v2_ClusterLoadAssignment_Policy_DropOverload__Output {
29+
'category': (string);
30+
'drop_percentage': (_envoy_type_FractionalPercent__Output);
31+
}
32+
33+
export interface ClusterLoadAssignment {
34+
'cluster_name'?: (string);
35+
'endpoints'?: (_envoy_api_v2_endpoint_LocalityLbEndpoints)[];
36+
'named_endpoints'?: (_envoy_api_v2_endpoint_Endpoint);
37+
'policy'?: (_envoy_api_v2_ClusterLoadAssignment_Policy);
38+
}
39+
40+
export interface ClusterLoadAssignment__Output {
41+
'cluster_name': (string);
42+
'endpoints': (_envoy_api_v2_endpoint_LocalityLbEndpoints__Output)[];
43+
'named_endpoints': (_envoy_api_v2_endpoint_Endpoint__Output);
44+
'policy': (_envoy_api_v2_ClusterLoadAssignment_Policy__Output);
45+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Original file: deps/envoy-api/envoy/api/v2/discovery.proto
2+
3+
import { Node as _envoy_api_v2_core_Node, Node__Output as _envoy_api_v2_core_Node__Output } from '../../../envoy/api/v2/core/Node';
4+
import { Status as _google_rpc_Status, Status__Output as _google_rpc_Status__Output } from '../../../google/rpc/Status';
5+
6+
export interface DeltaDiscoveryRequest {
7+
'node'?: (_envoy_api_v2_core_Node);
8+
'type_url'?: (string);
9+
'resource_names_subscribe'?: (string)[];
10+
'resource_names_unsubscribe'?: (string)[];
11+
'initial_resource_versions'?: (string);
12+
'response_nonce'?: (string);
13+
'error_detail'?: (_google_rpc_Status);
14+
}
15+
16+
export interface DeltaDiscoveryRequest__Output {
17+
'node': (_envoy_api_v2_core_Node__Output);
18+
'type_url': (string);
19+
'resource_names_subscribe': (string)[];
20+
'resource_names_unsubscribe': (string)[];
21+
'initial_resource_versions': (string);
22+
'response_nonce': (string);
23+
'error_detail': (_google_rpc_Status__Output);
24+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Original file: deps/envoy-api/envoy/api/v2/discovery.proto
2+
3+
import { Resource as _envoy_api_v2_Resource, Resource__Output as _envoy_api_v2_Resource__Output } from '../../../envoy/api/v2/Resource';
4+
5+
export interface DeltaDiscoveryResponse {
6+
'system_version_info'?: (string);
7+
'resources'?: (_envoy_api_v2_Resource)[];
8+
'type_url'?: (string);
9+
'removed_resources'?: (string)[];
10+
'nonce'?: (string);
11+
}
12+
13+
export interface DeltaDiscoveryResponse__Output {
14+
'system_version_info': (string);
15+
'resources': (_envoy_api_v2_Resource__Output)[];
16+
'type_url': (string);
17+
'removed_resources': (string)[];
18+
'nonce': (string);
19+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Original file: deps/envoy-api/envoy/api/v2/discovery.proto
2+
3+
import { Node as _envoy_api_v2_core_Node, Node__Output as _envoy_api_v2_core_Node__Output } from '../../../envoy/api/v2/core/Node';
4+
import { Status as _google_rpc_Status, Status__Output as _google_rpc_Status__Output } from '../../../google/rpc/Status';
5+
6+
export interface DiscoveryRequest {
7+
'version_info'?: (string);
8+
'node'?: (_envoy_api_v2_core_Node);
9+
'resource_names'?: (string)[];
10+
'type_url'?: (string);
11+
'response_nonce'?: (string);
12+
'error_detail'?: (_google_rpc_Status);
13+
}
14+
15+
export interface DiscoveryRequest__Output {
16+
'version_info': (string);
17+
'node': (_envoy_api_v2_core_Node__Output);
18+
'resource_names': (string)[];
19+
'type_url': (string);
20+
'response_nonce': (string);
21+
'error_detail': (_google_rpc_Status__Output);
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Original file: deps/envoy-api/envoy/api/v2/discovery.proto
2+
3+
import { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../google/protobuf/Any';
4+
import { ControlPlane as _envoy_api_v2_core_ControlPlane, ControlPlane__Output as _envoy_api_v2_core_ControlPlane__Output } from '../../../envoy/api/v2/core/ControlPlane';
5+
6+
export interface DiscoveryResponse {
7+
'version_info'?: (string);
8+
'resources'?: (_google_protobuf_Any)[];
9+
'canary'?: (boolean);
10+
'type_url'?: (string);
11+
'nonce'?: (string);
12+
'control_plane'?: (_envoy_api_v2_core_ControlPlane);
13+
}
14+
15+
export interface DiscoveryResponse__Output {
16+
'version_info': (string);
17+
'resources': (_google_protobuf_Any__Output)[];
18+
'canary': (boolean);
19+
'type_url': (string);
20+
'nonce': (string);
21+
'control_plane': (_envoy_api_v2_core_ControlPlane__Output);
22+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
// Original file: deps/envoy-api/envoy/api/v2/listener.proto
2+
3+
import { Address as _envoy_api_v2_core_Address, Address__Output as _envoy_api_v2_core_Address__Output } from '../../../envoy/api/v2/core/Address';
4+
import { FilterChain as _envoy_api_v2_listener_FilterChain, FilterChain__Output as _envoy_api_v2_listener_FilterChain__Output } from '../../../envoy/api/v2/listener/FilterChain';
5+
import { BoolValue as _google_protobuf_BoolValue, BoolValue__Output as _google_protobuf_BoolValue__Output } from '../../../google/protobuf/BoolValue';
6+
import { UInt32Value as _google_protobuf_UInt32Value, UInt32Value__Output as _google_protobuf_UInt32Value__Output } from '../../../google/protobuf/UInt32Value';
7+
import { Metadata as _envoy_api_v2_core_Metadata, Metadata__Output as _envoy_api_v2_core_Metadata__Output } from '../../../envoy/api/v2/core/Metadata';
8+
import { ListenerFilter as _envoy_api_v2_listener_ListenerFilter, ListenerFilter__Output as _envoy_api_v2_listener_ListenerFilter__Output } from '../../../envoy/api/v2/listener/ListenerFilter';
9+
import { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../../../google/protobuf/Duration';
10+
import { SocketOption as _envoy_api_v2_core_SocketOption, SocketOption__Output as _envoy_api_v2_core_SocketOption__Output } from '../../../envoy/api/v2/core/SocketOption';
11+
import { TrafficDirection as _envoy_api_v2_core_TrafficDirection } from '../../../envoy/api/v2/core/TrafficDirection';
12+
import { UdpListenerConfig as _envoy_api_v2_listener_UdpListenerConfig, UdpListenerConfig__Output as _envoy_api_v2_listener_UdpListenerConfig__Output } from '../../../envoy/api/v2/listener/UdpListenerConfig';
13+
import { ApiListener as _envoy_config_listener_v2_ApiListener, ApiListener__Output as _envoy_config_listener_v2_ApiListener__Output } from '../../../envoy/config/listener/v2/ApiListener';
14+
import { AccessLog as _envoy_config_filter_accesslog_v2_AccessLog, AccessLog__Output as _envoy_config_filter_accesslog_v2_AccessLog__Output } from '../../../envoy/config/filter/accesslog/v2/AccessLog';
15+
16+
// Original file: deps/envoy-api/envoy/api/v2/listener.proto
17+
18+
export enum _envoy_api_v2_Listener_DrainType {
19+
DEFAULT = 0,
20+
MODIFY_ONLY = 1,
21+
}
22+
23+
export interface _envoy_api_v2_Listener_DeprecatedV1 {
24+
'bind_to_port'?: (_google_protobuf_BoolValue);
25+
}
26+
27+
export interface _envoy_api_v2_Listener_DeprecatedV1__Output {
28+
'bind_to_port': (_google_protobuf_BoolValue__Output);
29+
}
30+
31+
export interface _envoy_api_v2_Listener_ConnectionBalanceConfig {
32+
'exact_balance'?: (_envoy_api_v2_Listener_ConnectionBalanceConfig_ExactBalance);
33+
'balance_type'?: "exact_balance";
34+
}
35+
36+
export interface _envoy_api_v2_Listener_ConnectionBalanceConfig__Output {
37+
'exact_balance'?: (_envoy_api_v2_Listener_ConnectionBalanceConfig_ExactBalance__Output);
38+
'balance_type': "exact_balance";
39+
}
40+
41+
export interface _envoy_api_v2_Listener_ConnectionBalanceConfig_ExactBalance {
42+
}
43+
44+
export interface _envoy_api_v2_Listener_ConnectionBalanceConfig_ExactBalance__Output {
45+
}
46+
47+
export interface Listener {
48+
'name'?: (string);
49+
'address'?: (_envoy_api_v2_core_Address);
50+
'filter_chains'?: (_envoy_api_v2_listener_FilterChain)[];
51+
'use_original_dst'?: (_google_protobuf_BoolValue);
52+
'per_connection_buffer_limit_bytes'?: (_google_protobuf_UInt32Value);
53+
'metadata'?: (_envoy_api_v2_core_Metadata);
54+
'deprecated_v1'?: (_envoy_api_v2_Listener_DeprecatedV1);
55+
'drain_type'?: (_envoy_api_v2_Listener_DrainType | keyof typeof _envoy_api_v2_Listener_DrainType);
56+
'listener_filters'?: (_envoy_api_v2_listener_ListenerFilter)[];
57+
'listener_filters_timeout'?: (_google_protobuf_Duration);
58+
'continue_on_listener_filters_timeout'?: (boolean);
59+
'transparent'?: (_google_protobuf_BoolValue);
60+
'freebind'?: (_google_protobuf_BoolValue);
61+
'socket_options'?: (_envoy_api_v2_core_SocketOption)[];
62+
'tcp_fast_open_queue_length'?: (_google_protobuf_UInt32Value);
63+
'traffic_direction'?: (_envoy_api_v2_core_TrafficDirection | keyof typeof _envoy_api_v2_core_TrafficDirection);
64+
'udp_listener_config'?: (_envoy_api_v2_listener_UdpListenerConfig);
65+
'api_listener'?: (_envoy_config_listener_v2_ApiListener);
66+
'connection_balance_config'?: (_envoy_api_v2_Listener_ConnectionBalanceConfig);
67+
'reuse_port'?: (boolean);
68+
'access_log'?: (_envoy_config_filter_accesslog_v2_AccessLog)[];
69+
}
70+
71+
export interface Listener__Output {
72+
'name': (string);
73+
'address': (_envoy_api_v2_core_Address__Output);
74+
'filter_chains': (_envoy_api_v2_listener_FilterChain__Output)[];
75+
'use_original_dst': (_google_protobuf_BoolValue__Output);
76+
'per_connection_buffer_limit_bytes': (_google_protobuf_UInt32Value__Output);
77+
'metadata': (_envoy_api_v2_core_Metadata__Output);
78+
'deprecated_v1': (_envoy_api_v2_Listener_DeprecatedV1__Output);
79+
'drain_type': (keyof typeof _envoy_api_v2_Listener_DrainType);
80+
'listener_filters': (_envoy_api_v2_listener_ListenerFilter__Output)[];
81+
'listener_filters_timeout': (_google_protobuf_Duration__Output);
82+
'continue_on_listener_filters_timeout': (boolean);
83+
'transparent': (_google_protobuf_BoolValue__Output);
84+
'freebind': (_google_protobuf_BoolValue__Output);
85+
'socket_options': (_envoy_api_v2_core_SocketOption__Output)[];
86+
'tcp_fast_open_queue_length': (_google_protobuf_UInt32Value__Output);
87+
'traffic_direction': (keyof typeof _envoy_api_v2_core_TrafficDirection);
88+
'udp_listener_config': (_envoy_api_v2_listener_UdpListenerConfig__Output);
89+
'api_listener': (_envoy_config_listener_v2_ApiListener__Output);
90+
'connection_balance_config': (_envoy_api_v2_Listener_ConnectionBalanceConfig__Output);
91+
'reuse_port': (boolean);
92+
'access_log': (_envoy_config_filter_accesslog_v2_AccessLog__Output)[];
93+
}

0 commit comments

Comments
 (0)