Skip to content

Commit

Permalink
Add generated code for Envoy APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Jun 24, 2020
1 parent 3fa1c09 commit 095a3b4
Show file tree
Hide file tree
Showing 205 changed files with 9,962 additions and 0 deletions.
745 changes: 745 additions & 0 deletions packages/grpc-js/src/generated/ads.d.ts

Large diffs are not rendered by default.

1,067 changes: 1,067 additions & 0 deletions packages/grpc-js/src/generated/cluster.d.ts

Large diffs are not rendered by default.

838 changes: 838 additions & 0 deletions packages/grpc-js/src/generated/endpoint.d.ts

Large diffs are not rendered by default.

339 changes: 339 additions & 0 deletions packages/grpc-js/src/generated/envoy/api/v2/Cluster.d.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Original file: deps/envoy-api/envoy/api/v2/endpoint.proto

import { LocalityLbEndpoints as _envoy_api_v2_endpoint_LocalityLbEndpoints, LocalityLbEndpoints__Output as _envoy_api_v2_endpoint_LocalityLbEndpoints__Output } from '../../../envoy/api/v2/endpoint/LocalityLbEndpoints';
import { Endpoint as _envoy_api_v2_endpoint_Endpoint, Endpoint__Output as _envoy_api_v2_endpoint_Endpoint__Output } from '../../../envoy/api/v2/endpoint/Endpoint';
import { UInt32Value as _google_protobuf_UInt32Value, UInt32Value__Output as _google_protobuf_UInt32Value__Output } from '../../../google/protobuf/UInt32Value';
import { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../../../google/protobuf/Duration';
import { FractionalPercent as _envoy_type_FractionalPercent, FractionalPercent__Output as _envoy_type_FractionalPercent__Output } from '../../../envoy/type/FractionalPercent';

export interface _envoy_api_v2_ClusterLoadAssignment_Policy {
'drop_overloads'?: (_envoy_api_v2_ClusterLoadAssignment_Policy_DropOverload)[];
'overprovisioning_factor'?: (_google_protobuf_UInt32Value);
'endpoint_stale_after'?: (_google_protobuf_Duration);
'disable_overprovisioning'?: (boolean);
}

export interface _envoy_api_v2_ClusterLoadAssignment_Policy__Output {
'drop_overloads': (_envoy_api_v2_ClusterLoadAssignment_Policy_DropOverload__Output)[];
'overprovisioning_factor': (_google_protobuf_UInt32Value__Output);
'endpoint_stale_after': (_google_protobuf_Duration__Output);
'disable_overprovisioning': (boolean);
}

export interface _envoy_api_v2_ClusterLoadAssignment_Policy_DropOverload {
'category'?: (string);
'drop_percentage'?: (_envoy_type_FractionalPercent);
}

export interface _envoy_api_v2_ClusterLoadAssignment_Policy_DropOverload__Output {
'category': (string);
'drop_percentage': (_envoy_type_FractionalPercent__Output);
}

export interface ClusterLoadAssignment {
'cluster_name'?: (string);
'endpoints'?: (_envoy_api_v2_endpoint_LocalityLbEndpoints)[];
'named_endpoints'?: (_envoy_api_v2_endpoint_Endpoint);
'policy'?: (_envoy_api_v2_ClusterLoadAssignment_Policy);
}

export interface ClusterLoadAssignment__Output {
'cluster_name': (string);
'endpoints': (_envoy_api_v2_endpoint_LocalityLbEndpoints__Output)[];
'named_endpoints': (_envoy_api_v2_endpoint_Endpoint__Output);
'policy': (_envoy_api_v2_ClusterLoadAssignment_Policy__Output);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Original file: deps/envoy-api/envoy/api/v2/discovery.proto

import { Node as _envoy_api_v2_core_Node, Node__Output as _envoy_api_v2_core_Node__Output } from '../../../envoy/api/v2/core/Node';
import { Status as _google_rpc_Status, Status__Output as _google_rpc_Status__Output } from '../../../google/rpc/Status';

export interface DeltaDiscoveryRequest {
'node'?: (_envoy_api_v2_core_Node);
'type_url'?: (string);
'resource_names_subscribe'?: (string)[];
'resource_names_unsubscribe'?: (string)[];
'initial_resource_versions'?: (string);
'response_nonce'?: (string);
'error_detail'?: (_google_rpc_Status);
}

export interface DeltaDiscoveryRequest__Output {
'node': (_envoy_api_v2_core_Node__Output);
'type_url': (string);
'resource_names_subscribe': (string)[];
'resource_names_unsubscribe': (string)[];
'initial_resource_versions': (string);
'response_nonce': (string);
'error_detail': (_google_rpc_Status__Output);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Original file: deps/envoy-api/envoy/api/v2/discovery.proto

import { Resource as _envoy_api_v2_Resource, Resource__Output as _envoy_api_v2_Resource__Output } from '../../../envoy/api/v2/Resource';

export interface DeltaDiscoveryResponse {
'system_version_info'?: (string);
'resources'?: (_envoy_api_v2_Resource)[];
'type_url'?: (string);
'removed_resources'?: (string)[];
'nonce'?: (string);
}

export interface DeltaDiscoveryResponse__Output {
'system_version_info': (string);
'resources': (_envoy_api_v2_Resource__Output)[];
'type_url': (string);
'removed_resources': (string)[];
'nonce': (string);
}
22 changes: 22 additions & 0 deletions packages/grpc-js/src/generated/envoy/api/v2/DiscoveryRequest.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Original file: deps/envoy-api/envoy/api/v2/discovery.proto

import { Node as _envoy_api_v2_core_Node, Node__Output as _envoy_api_v2_core_Node__Output } from '../../../envoy/api/v2/core/Node';
import { Status as _google_rpc_Status, Status__Output as _google_rpc_Status__Output } from '../../../google/rpc/Status';

export interface DiscoveryRequest {
'version_info'?: (string);
'node'?: (_envoy_api_v2_core_Node);
'resource_names'?: (string)[];
'type_url'?: (string);
'response_nonce'?: (string);
'error_detail'?: (_google_rpc_Status);
}

export interface DiscoveryRequest__Output {
'version_info': (string);
'node': (_envoy_api_v2_core_Node__Output);
'resource_names': (string)[];
'type_url': (string);
'response_nonce': (string);
'error_detail': (_google_rpc_Status__Output);
}
22 changes: 22 additions & 0 deletions packages/grpc-js/src/generated/envoy/api/v2/DiscoveryResponse.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Original file: deps/envoy-api/envoy/api/v2/discovery.proto

import { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../google/protobuf/Any';
import { ControlPlane as _envoy_api_v2_core_ControlPlane, ControlPlane__Output as _envoy_api_v2_core_ControlPlane__Output } from '../../../envoy/api/v2/core/ControlPlane';

export interface DiscoveryResponse {
'version_info'?: (string);
'resources'?: (_google_protobuf_Any)[];
'canary'?: (boolean);
'type_url'?: (string);
'nonce'?: (string);
'control_plane'?: (_envoy_api_v2_core_ControlPlane);
}

export interface DiscoveryResponse__Output {
'version_info': (string);
'resources': (_google_protobuf_Any__Output)[];
'canary': (boolean);
'type_url': (string);
'nonce': (string);
'control_plane': (_envoy_api_v2_core_ControlPlane__Output);
}
93 changes: 93 additions & 0 deletions packages/grpc-js/src/generated/envoy/api/v2/Listener.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
// Original file: deps/envoy-api/envoy/api/v2/listener.proto

import { Address as _envoy_api_v2_core_Address, Address__Output as _envoy_api_v2_core_Address__Output } from '../../../envoy/api/v2/core/Address';
import { FilterChain as _envoy_api_v2_listener_FilterChain, FilterChain__Output as _envoy_api_v2_listener_FilterChain__Output } from '../../../envoy/api/v2/listener/FilterChain';
import { BoolValue as _google_protobuf_BoolValue, BoolValue__Output as _google_protobuf_BoolValue__Output } from '../../../google/protobuf/BoolValue';
import { UInt32Value as _google_protobuf_UInt32Value, UInt32Value__Output as _google_protobuf_UInt32Value__Output } from '../../../google/protobuf/UInt32Value';
import { Metadata as _envoy_api_v2_core_Metadata, Metadata__Output as _envoy_api_v2_core_Metadata__Output } from '../../../envoy/api/v2/core/Metadata';
import { ListenerFilter as _envoy_api_v2_listener_ListenerFilter, ListenerFilter__Output as _envoy_api_v2_listener_ListenerFilter__Output } from '../../../envoy/api/v2/listener/ListenerFilter';
import { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../../../google/protobuf/Duration';
import { SocketOption as _envoy_api_v2_core_SocketOption, SocketOption__Output as _envoy_api_v2_core_SocketOption__Output } from '../../../envoy/api/v2/core/SocketOption';
import { TrafficDirection as _envoy_api_v2_core_TrafficDirection } from '../../../envoy/api/v2/core/TrafficDirection';
import { UdpListenerConfig as _envoy_api_v2_listener_UdpListenerConfig, UdpListenerConfig__Output as _envoy_api_v2_listener_UdpListenerConfig__Output } from '../../../envoy/api/v2/listener/UdpListenerConfig';
import { ApiListener as _envoy_config_listener_v2_ApiListener, ApiListener__Output as _envoy_config_listener_v2_ApiListener__Output } from '../../../envoy/config/listener/v2/ApiListener';
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';

// Original file: deps/envoy-api/envoy/api/v2/listener.proto

export enum _envoy_api_v2_Listener_DrainType {
DEFAULT = 0,
MODIFY_ONLY = 1,
}

export interface _envoy_api_v2_Listener_DeprecatedV1 {
'bind_to_port'?: (_google_protobuf_BoolValue);
}

export interface _envoy_api_v2_Listener_DeprecatedV1__Output {
'bind_to_port': (_google_protobuf_BoolValue__Output);
}

export interface _envoy_api_v2_Listener_ConnectionBalanceConfig {
'exact_balance'?: (_envoy_api_v2_Listener_ConnectionBalanceConfig_ExactBalance);
'balance_type'?: "exact_balance";
}

export interface _envoy_api_v2_Listener_ConnectionBalanceConfig__Output {
'exact_balance'?: (_envoy_api_v2_Listener_ConnectionBalanceConfig_ExactBalance__Output);
'balance_type': "exact_balance";
}

export interface _envoy_api_v2_Listener_ConnectionBalanceConfig_ExactBalance {
}

export interface _envoy_api_v2_Listener_ConnectionBalanceConfig_ExactBalance__Output {
}

export interface Listener {
'name'?: (string);
'address'?: (_envoy_api_v2_core_Address);
'filter_chains'?: (_envoy_api_v2_listener_FilterChain)[];
'use_original_dst'?: (_google_protobuf_BoolValue);
'per_connection_buffer_limit_bytes'?: (_google_protobuf_UInt32Value);
'metadata'?: (_envoy_api_v2_core_Metadata);
'deprecated_v1'?: (_envoy_api_v2_Listener_DeprecatedV1);
'drain_type'?: (_envoy_api_v2_Listener_DrainType | keyof typeof _envoy_api_v2_Listener_DrainType);
'listener_filters'?: (_envoy_api_v2_listener_ListenerFilter)[];
'listener_filters_timeout'?: (_google_protobuf_Duration);
'continue_on_listener_filters_timeout'?: (boolean);
'transparent'?: (_google_protobuf_BoolValue);
'freebind'?: (_google_protobuf_BoolValue);
'socket_options'?: (_envoy_api_v2_core_SocketOption)[];
'tcp_fast_open_queue_length'?: (_google_protobuf_UInt32Value);
'traffic_direction'?: (_envoy_api_v2_core_TrafficDirection | keyof typeof _envoy_api_v2_core_TrafficDirection);
'udp_listener_config'?: (_envoy_api_v2_listener_UdpListenerConfig);
'api_listener'?: (_envoy_config_listener_v2_ApiListener);
'connection_balance_config'?: (_envoy_api_v2_Listener_ConnectionBalanceConfig);
'reuse_port'?: (boolean);
'access_log'?: (_envoy_config_filter_accesslog_v2_AccessLog)[];
}

export interface Listener__Output {
'name': (string);
'address': (_envoy_api_v2_core_Address__Output);
'filter_chains': (_envoy_api_v2_listener_FilterChain__Output)[];
'use_original_dst': (_google_protobuf_BoolValue__Output);
'per_connection_buffer_limit_bytes': (_google_protobuf_UInt32Value__Output);
'metadata': (_envoy_api_v2_core_Metadata__Output);
'deprecated_v1': (_envoy_api_v2_Listener_DeprecatedV1__Output);
'drain_type': (keyof typeof _envoy_api_v2_Listener_DrainType);
'listener_filters': (_envoy_api_v2_listener_ListenerFilter__Output)[];
'listener_filters_timeout': (_google_protobuf_Duration__Output);
'continue_on_listener_filters_timeout': (boolean);
'transparent': (_google_protobuf_BoolValue__Output);
'freebind': (_google_protobuf_BoolValue__Output);
'socket_options': (_envoy_api_v2_core_SocketOption__Output)[];
'tcp_fast_open_queue_length': (_google_protobuf_UInt32Value__Output);
'traffic_direction': (keyof typeof _envoy_api_v2_core_TrafficDirection);
'udp_listener_config': (_envoy_api_v2_listener_UdpListenerConfig__Output);
'api_listener': (_envoy_config_listener_v2_ApiListener__Output);
'connection_balance_config': (_envoy_api_v2_Listener_ConnectionBalanceConfig__Output);
'reuse_port': (boolean);
'access_log': (_envoy_config_filter_accesslog_v2_AccessLog__Output)[];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Original file: deps/envoy-api/envoy/api/v2/cluster.proto

import { Struct as _google_protobuf_Struct, Struct__Output as _google_protobuf_Struct__Output } from '../../../google/protobuf/Struct';
import { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../google/protobuf/Any';

export interface _envoy_api_v2_LoadBalancingPolicy_Policy {
'name'?: (string);
'config'?: (_google_protobuf_Struct);
'typed_config'?: (_google_protobuf_Any);
}

export interface _envoy_api_v2_LoadBalancingPolicy_Policy__Output {
'name': (string);
'config': (_google_protobuf_Struct__Output);
'typed_config': (_google_protobuf_Any__Output);
}

export interface LoadBalancingPolicy {
'policies'?: (_envoy_api_v2_LoadBalancingPolicy_Policy)[];
}

export interface LoadBalancingPolicy__Output {
'policies': (_envoy_api_v2_LoadBalancingPolicy_Policy__Output)[];
}
17 changes: 17 additions & 0 deletions packages/grpc-js/src/generated/envoy/api/v2/Resource.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Original file: deps/envoy-api/envoy/api/v2/discovery.proto

import { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../google/protobuf/Any';

export interface Resource {
'name'?: (string);
'aliases'?: (string)[];
'version'?: (string);
'resource'?: (_google_protobuf_Any);
}

export interface Resource__Output {
'name': (string);
'aliases': (string)[];
'version': (string);
'resource': (_google_protobuf_Any__Output);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Original file: deps/envoy-api/envoy/api/v2/route.proto

import { VirtualHost as _envoy_api_v2_route_VirtualHost, VirtualHost__Output as _envoy_api_v2_route_VirtualHost__Output } from '../../../envoy/api/v2/route/VirtualHost';
import { Vhds as _envoy_api_v2_Vhds, Vhds__Output as _envoy_api_v2_Vhds__Output } from '../../../envoy/api/v2/Vhds';
import { HeaderValueOption as _envoy_api_v2_core_HeaderValueOption, HeaderValueOption__Output as _envoy_api_v2_core_HeaderValueOption__Output } from '../../../envoy/api/v2/core/HeaderValueOption';
import { BoolValue as _google_protobuf_BoolValue, BoolValue__Output as _google_protobuf_BoolValue__Output } from '../../../google/protobuf/BoolValue';

export interface RouteConfiguration {
'name'?: (string);
'virtual_hosts'?: (_envoy_api_v2_route_VirtualHost)[];
'vhds'?: (_envoy_api_v2_Vhds);
'internal_only_headers'?: (string)[];
'response_headers_to_add'?: (_envoy_api_v2_core_HeaderValueOption)[];
'response_headers_to_remove'?: (string)[];
'request_headers_to_add'?: (_envoy_api_v2_core_HeaderValueOption)[];
'request_headers_to_remove'?: (string)[];
'most_specific_header_mutations_wins'?: (boolean);
'validate_clusters'?: (_google_protobuf_BoolValue);
}

export interface RouteConfiguration__Output {
'name': (string);
'virtual_hosts': (_envoy_api_v2_route_VirtualHost__Output)[];
'vhds': (_envoy_api_v2_Vhds__Output);
'internal_only_headers': (string)[];
'response_headers_to_add': (_envoy_api_v2_core_HeaderValueOption__Output)[];
'response_headers_to_remove': (string)[];
'request_headers_to_add': (_envoy_api_v2_core_HeaderValueOption__Output)[];
'request_headers_to_remove': (string)[];
'most_specific_header_mutations_wins': (boolean);
'validate_clusters': (_google_protobuf_BoolValue__Output);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Original file: deps/envoy-api/envoy/api/v2/cluster.proto

import { Address as _envoy_api_v2_core_Address, Address__Output as _envoy_api_v2_core_Address__Output } from '../../../envoy/api/v2/core/Address';

export interface UpstreamBindConfig {
'source_address'?: (_envoy_api_v2_core_Address);
}

export interface UpstreamBindConfig__Output {
'source_address': (_envoy_api_v2_core_Address__Output);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Original file: deps/envoy-api/envoy/api/v2/cluster.proto

import { TcpKeepalive as _envoy_api_v2_core_TcpKeepalive, TcpKeepalive__Output as _envoy_api_v2_core_TcpKeepalive__Output } from '../../../envoy/api/v2/core/TcpKeepalive';

export interface UpstreamConnectionOptions {
'tcp_keepalive'?: (_envoy_api_v2_core_TcpKeepalive);
}

export interface UpstreamConnectionOptions__Output {
'tcp_keepalive': (_envoy_api_v2_core_TcpKeepalive__Output);
}
11 changes: 11 additions & 0 deletions packages/grpc-js/src/generated/envoy/api/v2/Vhds.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Original file: deps/envoy-api/envoy/api/v2/route.proto

import { ConfigSource as _envoy_api_v2_core_ConfigSource, ConfigSource__Output as _envoy_api_v2_core_ConfigSource__Output } from '../../../envoy/api/v2/core/ConfigSource';

export interface Vhds {
'config_source'?: (_envoy_api_v2_core_ConfigSource);
}

export interface Vhds__Output {
'config_source': (_envoy_api_v2_core_ConfigSource__Output);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Original file: deps/envoy-api/envoy/api/v2/auth/common.proto

import { DataSource as _envoy_api_v2_core_DataSource, DataSource__Output as _envoy_api_v2_core_DataSource__Output } from '../../../../envoy/api/v2/core/DataSource';
import { StringMatcher as _envoy_type_matcher_StringMatcher, StringMatcher__Output as _envoy_type_matcher_StringMatcher__Output } from '../../../../envoy/type/matcher/StringMatcher';
import { BoolValue as _google_protobuf_BoolValue, BoolValue__Output as _google_protobuf_BoolValue__Output } from '../../../../google/protobuf/BoolValue';

// Original file: deps/envoy-api/envoy/api/v2/auth/common.proto

export enum _envoy_api_v2_auth_CertificateValidationContext_TrustChainVerification {
VERIFY_TRUST_CHAIN = 0,
ACCEPT_UNTRUSTED = 1,
}

export interface CertificateValidationContext {
'trusted_ca'?: (_envoy_api_v2_core_DataSource);
'verify_certificate_spki'?: (string)[];
'verify_certificate_hash'?: (string)[];
'verify_subject_alt_name'?: (string)[];
'match_subject_alt_names'?: (_envoy_type_matcher_StringMatcher)[];
'require_ocsp_staple'?: (_google_protobuf_BoolValue);
'require_signed_certificate_timestamp'?: (_google_protobuf_BoolValue);
'crl'?: (_envoy_api_v2_core_DataSource);
'allow_expired_certificate'?: (boolean);
'trust_chain_verification'?: (_envoy_api_v2_auth_CertificateValidationContext_TrustChainVerification | keyof typeof _envoy_api_v2_auth_CertificateValidationContext_TrustChainVerification);
}

export interface CertificateValidationContext__Output {
'trusted_ca': (_envoy_api_v2_core_DataSource__Output);
'verify_certificate_spki': (string)[];
'verify_certificate_hash': (string)[];
'verify_subject_alt_name': (string)[];
'match_subject_alt_names': (_envoy_type_matcher_StringMatcher__Output)[];
'require_ocsp_staple': (_google_protobuf_BoolValue__Output);
'require_signed_certificate_timestamp': (_google_protobuf_BoolValue__Output);
'crl': (_envoy_api_v2_core_DataSource__Output);
'allow_expired_certificate': (boolean);
'trust_chain_verification': (keyof typeof _envoy_api_v2_auth_CertificateValidationContext_TrustChainVerification);
}
Loading

0 comments on commit 095a3b4

Please sign in to comment.