@ngrok/ngrok-api 0.11.0 → 0.13.0
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/CHANGELOG.md +9 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/client.Ngrok.html +38 -29
- package/docs/classes/services.APIKeys.html +6 -6
- package/docs/classes/services.AbuseReports.html +3 -3
- package/docs/classes/services.AgentIngresses.html +6 -6
- package/docs/classes/services.ApplicationSessions.html +4 -4
- package/docs/classes/services.ApplicationUsers.html +4 -4
- package/docs/classes/services.BotUsers.html +6 -6
- package/docs/classes/services.CertificateAuthorities.html +6 -6
- package/docs/classes/services.Credentials.html +6 -6
- package/docs/classes/services.EdgeRouteBackendModule.html +4 -4
- package/docs/classes/services.EdgeRouteCircuitBreakerModule.html +4 -4
- package/docs/classes/services.EdgeRouteCompressionModule.html +4 -4
- package/docs/classes/services.EdgeRouteIPRestrictionModule.html +4 -4
- package/docs/classes/services.EdgeRouteOAuthModule.html +4 -4
- package/docs/classes/services.EdgeRouteOIDCModule.html +4 -4
- package/docs/classes/services.EdgeRouteRequestHeadersModule.html +4 -4
- package/docs/classes/services.EdgeRouteResponseHeadersModule.html +4 -4
- package/docs/classes/services.EdgeRouteSAMLModule.html +4 -4
- package/docs/classes/services.EdgeRouteTrafficPolicyModule.html +270 -0
- package/docs/classes/services.EdgeRouteUserAgentFilterModule.html +4 -4
- package/docs/classes/services.EdgeRouteWebhookVerificationModule.html +4 -4
- package/docs/classes/services.EdgeRouteWebsocketTCPConverterModule.html +4 -4
- package/docs/classes/services.EdgesHTTPS.html +6 -6
- package/docs/classes/services.EdgesHTTPSRoutes.html +5 -5
- package/docs/classes/services.EdgesTCP.html +6 -6
- package/docs/classes/services.EdgesTLS.html +6 -6
- package/docs/classes/services.Endpoints.html +99 -3
- package/docs/classes/services.EventDestinations.html +6 -6
- package/docs/classes/services.EventSources.html +6 -6
- package/docs/classes/services.EventSubscriptions.html +6 -6
- package/docs/classes/services.FailoverBackends.html +6 -6
- package/docs/classes/services.HTTPResponseBackends.html +6 -6
- package/docs/classes/services.HTTPSEdgeMutualTLSModule.html +4 -4
- package/docs/classes/services.HTTPSEdgeTLSTerminationModule.html +4 -4
- package/docs/classes/services.IPPolicies.html +6 -6
- package/docs/classes/services.IPPolicyRules.html +6 -6
- package/docs/classes/services.IPRestrictions.html +6 -6
- package/docs/classes/services.ReservedAddrs.html +6 -6
- package/docs/classes/services.ReservedDomains.html +8 -8
- package/docs/classes/services.SSHCertificateAuthorities.html +6 -6
- package/docs/classes/services.SSHCredentials.html +6 -6
- package/docs/classes/services.SSHHostCertificates.html +6 -6
- package/docs/classes/services.SSHUserCertificates.html +6 -6
- package/docs/classes/services.StaticBackends.html +6 -6
- package/docs/classes/services.TCPEdgeBackendModule.html +4 -4
- package/docs/classes/services.TCPEdgeIPRestrictionModule.html +4 -4
- package/docs/classes/services.TCPEdgeTrafficPolicyModule.html +270 -0
- package/docs/classes/services.TLSCertificates.html +6 -6
- package/docs/classes/services.TLSEdgeBackendModule.html +4 -4
- package/docs/classes/services.TLSEdgeIPRestrictionModule.html +4 -4
- package/docs/classes/services.TLSEdgeMutualTLSModule.html +4 -4
- package/docs/classes/services.TLSEdgeTLSTerminationModule.html +4 -4
- package/docs/classes/services.TLSEdgeTrafficPolicyModule.html +270 -0
- package/docs/classes/services.TunnelGroupBackends.html +6 -6
- package/docs/classes/services.TunnelSessions.html +6 -6
- package/docs/classes/services.Tunnels.html +3 -3
- package/docs/classes/services.WeightedBackends.html +6 -6
- package/docs/interfaces/client.NgrokConfig.html +2 -2
- package/docs/interfaces/datatypes.APIKey.html +7 -7
- package/docs/interfaces/datatypes.APIKeyCreate.html +3 -3
- package/docs/interfaces/datatypes.APIKeyList.html +3 -3
- package/docs/interfaces/datatypes.APIKeyUpdate.html +3 -3
- package/docs/interfaces/datatypes.AWSAuth.html +2 -2
- package/docs/interfaces/datatypes.AWSCredentials.html +2 -2
- package/docs/interfaces/datatypes.AWSRole.html +1 -1
- package/docs/interfaces/datatypes.AbuseReport.html +7 -7
- package/docs/interfaces/datatypes.AbuseReportCreate.html +2 -2
- package/docs/interfaces/datatypes.AbuseReportHostname.html +2 -2
- package/docs/interfaces/datatypes.AgentIngress.html +10 -10
- package/docs/interfaces/datatypes.AgentIngressCertJob.html +4 -4
- package/docs/interfaces/datatypes.AgentIngressCertPolicy.html +2 -2
- package/docs/interfaces/datatypes.AgentIngressCertStatus.html +2 -2
- package/docs/interfaces/datatypes.AgentIngressCreate.html +4 -4
- package/docs/interfaces/datatypes.AgentIngressList.html +3 -3
- package/docs/interfaces/datatypes.AgentIngressUpdate.html +4 -4
- package/docs/interfaces/datatypes.ApplicationSession.html +11 -11
- package/docs/interfaces/datatypes.ApplicationSessionList.html +3 -3
- package/docs/interfaces/datatypes.ApplicationUser.html +10 -10
- package/docs/interfaces/datatypes.ApplicationUserList.html +3 -3
- package/docs/interfaces/datatypes.BotUser.html +5 -5
- package/docs/interfaces/datatypes.BotUserCreate.html +2 -2
- package/docs/interfaces/datatypes.BotUserList.html +3 -3
- package/docs/interfaces/datatypes.BotUserUpdate.html +3 -3
- package/docs/interfaces/datatypes.BrowserSession.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthority.html +11 -11
- package/docs/interfaces/datatypes.CertificateAuthorityCreate.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthorityList.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthorityUpdate.html +3 -3
- package/docs/interfaces/datatypes.Credential.html +8 -8
- package/docs/interfaces/datatypes.CredentialCreate.html +4 -4
- package/docs/interfaces/datatypes.CredentialList.html +3 -3
- package/docs/interfaces/datatypes.CredentialUpdate.html +4 -4
- package/docs/interfaces/datatypes.EdgeBackendReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeIPRestrictionReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeMutualTLSReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeRouteBackendReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteCircuitBreakerReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteCompressionReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteIPRestrictionReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteItem.html +2 -2
- package/docs/interfaces/datatypes.EdgeRouteOAuthReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteOIDCReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteRequestHeadersReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteResponseHeadersReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteSAMLReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteTrafficPolicyReplace.html +190 -0
- package/docs/interfaces/datatypes.EdgeRouteUserAgentFilterReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteWebhookVerificationReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteWebsocketTCPConverterReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeTLSTerminationAtEdgeReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeTLSTerminationReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeTrafficPolicyReplace.html +176 -0
- package/docs/interfaces/datatypes.Endpoint.html +266 -15
- package/docs/interfaces/datatypes.EndpointBackend.html +2 -2
- package/docs/interfaces/datatypes.EndpointBackendMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointCircuitBreaker.html +6 -6
- package/docs/interfaces/datatypes.EndpointCompression.html +1 -1
- package/docs/interfaces/datatypes.EndpointCreate.html +262 -0
- package/docs/interfaces/datatypes.EndpointIPPolicy.html +2 -2
- package/docs/interfaces/datatypes.EndpointIPPolicyMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointList.html +3 -3
- package/docs/interfaces/datatypes.EndpointMutualTLS.html +2 -2
- package/docs/interfaces/datatypes.EndpointMutualTLSMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointOAuth.html +7 -7
- package/docs/interfaces/datatypes.EndpointOAuthAmazon.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthFacebook.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthGitHub.html +7 -7
- package/docs/interfaces/datatypes.EndpointOAuthGitLab.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthGoogle.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthLinkedIn.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthMicrosoft.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthProvider.html +8 -8
- package/docs/interfaces/datatypes.EndpointOAuthTwitch.html +5 -5
- package/docs/interfaces/datatypes.EndpointOIDC.html +9 -9
- package/docs/interfaces/datatypes.EndpointRequestHeaders.html +3 -3
- package/docs/interfaces/datatypes.EndpointResponseHeaders.html +3 -3
- package/docs/interfaces/datatypes.EndpointSAML.html +15 -15
- package/docs/interfaces/datatypes.EndpointSAMLMutate.html +10 -10
- package/docs/interfaces/datatypes.EndpointTLSTermination.html +3 -3
- package/docs/interfaces/datatypes.EndpointTLSTerminationAtEdge.html +2 -2
- package/docs/interfaces/datatypes.EndpointTrafficPolicy.html +186 -0
- package/docs/interfaces/datatypes.EndpointUpdate.html +262 -0
- package/docs/interfaces/datatypes.EndpointUserAgentFilter.html +3 -3
- package/docs/interfaces/datatypes.EndpointWebhookValidation.html +3 -3
- package/docs/interfaces/datatypes.EndpointWebsocketTCPConverter.html +1 -1
- package/docs/interfaces/datatypes.Error.html +4 -4
- package/docs/interfaces/datatypes.EventDestination.html +7 -7
- package/docs/interfaces/datatypes.EventDestinationCreate.html +4 -4
- package/docs/interfaces/datatypes.EventDestinationList.html +3 -3
- package/docs/interfaces/datatypes.EventDestinationUpdate.html +5 -5
- package/docs/interfaces/datatypes.EventSource.html +2 -2
- package/docs/interfaces/datatypes.EventSourceCreate.html +2 -2
- package/docs/interfaces/datatypes.EventSourceItem.html +2 -2
- package/docs/interfaces/datatypes.EventSourceList.html +2 -2
- package/docs/interfaces/datatypes.EventSourcePaging.html +1 -1
- package/docs/interfaces/datatypes.EventSourceReplace.html +1 -1
- package/docs/interfaces/datatypes.EventSourceUpdate.html +2 -2
- package/docs/interfaces/datatypes.EventSubscription.html +7 -7
- package/docs/interfaces/datatypes.EventSubscriptionCreate.html +4 -4
- package/docs/interfaces/datatypes.EventSubscriptionList.html +3 -3
- package/docs/interfaces/datatypes.EventSubscriptionUpdate.html +5 -5
- package/docs/interfaces/datatypes.EventTarget.html +18 -4
- package/docs/interfaces/datatypes.EventTargetAzureLogsIngestion.html +262 -0
- package/docs/interfaces/datatypes.EventTargetCloudwatchLogs.html +2 -2
- package/docs/interfaces/datatypes.EventTargetDatadog.html +4 -4
- package/docs/interfaces/datatypes.EventTargetFirehose.html +2 -2
- package/docs/interfaces/datatypes.EventTargetKinesis.html +2 -2
- package/docs/interfaces/datatypes.FailoverBackend.html +6 -6
- package/docs/interfaces/datatypes.FailoverBackendCreate.html +3 -3
- package/docs/interfaces/datatypes.FailoverBackendList.html +3 -3
- package/docs/interfaces/datatypes.FailoverBackendUpdate.html +4 -4
- package/docs/interfaces/datatypes.HTTPResponseBackend.html +8 -8
- package/docs/interfaces/datatypes.HTTPResponseBackendCreate.html +5 -5
- package/docs/interfaces/datatypes.HTTPResponseBackendList.html +3 -3
- package/docs/interfaces/datatypes.HTTPResponseBackendUpdate.html +6 -6
- package/docs/interfaces/datatypes.HTTPSEdge.html +9 -9
- package/docs/interfaces/datatypes.HTTPSEdgeCreate.html +5 -5
- package/docs/interfaces/datatypes.HTTPSEdgeList.html +3 -3
- package/docs/interfaces/datatypes.HTTPSEdgeRoute.html +39 -39
- package/docs/interfaces/datatypes.HTTPSEdgeRouteCreate.html +36 -36
- package/docs/interfaces/datatypes.HTTPSEdgeRouteUpdate.html +37 -37
- package/docs/interfaces/datatypes.HTTPSEdgeUpdate.html +6 -6
- package/docs/interfaces/datatypes.IPPolicy.html +5 -5
- package/docs/interfaces/datatypes.IPPolicyCreate.html +2 -2
- package/docs/interfaces/datatypes.IPPolicyList.html +3 -3
- package/docs/interfaces/datatypes.IPPolicyRule.html +8 -8
- package/docs/interfaces/datatypes.IPPolicyRuleCreate.html +5 -5
- package/docs/interfaces/datatypes.IPPolicyRuleList.html +3 -3
- package/docs/interfaces/datatypes.IPPolicyRuleUpdate.html +4 -4
- package/docs/interfaces/datatypes.IPPolicyUpdate.html +3 -3
- package/docs/interfaces/datatypes.IPRestriction.html +8 -8
- package/docs/interfaces/datatypes.IPRestrictionCreate.html +5 -5
- package/docs/interfaces/datatypes.IPRestrictionList.html +3 -3
- package/docs/interfaces/datatypes.IPRestrictionUpdate.html +5 -5
- package/docs/interfaces/datatypes.IdentityProvider.html +2 -2
- package/docs/interfaces/datatypes.Item.html +1 -1
- package/docs/interfaces/datatypes.Location.html +4 -4
- package/docs/interfaces/datatypes.Paging.html +2 -2
- package/docs/interfaces/datatypes.Ref.html +2 -2
- package/docs/interfaces/datatypes.ReservedAddr.html +7 -7
- package/docs/interfaces/datatypes.ReservedAddrCreate.html +3 -3
- package/docs/interfaces/datatypes.ReservedAddrList.html +3 -3
- package/docs/interfaces/datatypes.ReservedAddrUpdate.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomain.html +12 -12
- package/docs/interfaces/datatypes.ReservedDomainCertJob.html +4 -4
- package/docs/interfaces/datatypes.ReservedDomainCertPolicy.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomainCertStatus.html +2 -2
- package/docs/interfaces/datatypes.ReservedDomainCreate.html +6 -6
- package/docs/interfaces/datatypes.ReservedDomainList.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomainUpdate.html +5 -5
- package/docs/interfaces/datatypes.SSHCertificateAuthority.html +7 -7
- package/docs/interfaces/datatypes.SSHCertificateAuthorityCreate.html +5 -5
- package/docs/interfaces/datatypes.SSHCertificateAuthorityList.html +3 -3
- package/docs/interfaces/datatypes.SSHCertificateAuthorityUpdate.html +3 -3
- package/docs/interfaces/datatypes.SSHCredential.html +8 -8
- package/docs/interfaces/datatypes.SSHCredentialCreate.html +5 -5
- package/docs/interfaces/datatypes.SSHCredentialList.html +3 -3
- package/docs/interfaces/datatypes.SSHCredentialUpdate.html +4 -4
- package/docs/interfaces/datatypes.SSHHostCertificate.html +12 -12
- package/docs/interfaces/datatypes.SSHHostCertificateCreate.html +7 -7
- package/docs/interfaces/datatypes.SSHHostCertificateList.html +3 -3
- package/docs/interfaces/datatypes.SSHHostCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.SSHUserCertificate.html +14 -14
- package/docs/interfaces/datatypes.SSHUserCertificateCreate.html +9 -9
- package/docs/interfaces/datatypes.SSHUserCertificateList.html +3 -3
- package/docs/interfaces/datatypes.SSHUserCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.StaticBackend.html +7 -7
- package/docs/interfaces/datatypes.StaticBackendCreate.html +4 -4
- package/docs/interfaces/datatypes.StaticBackendList.html +3 -3
- package/docs/interfaces/datatypes.StaticBackendTLS.html +1 -1
- package/docs/interfaces/datatypes.StaticBackendUpdate.html +5 -5
- package/docs/interfaces/datatypes.TCPEdge.html +14 -14
- package/docs/interfaces/datatypes.TCPEdgeCreate.html +11 -11
- package/docs/interfaces/datatypes.TCPEdgeList.html +3 -3
- package/docs/interfaces/datatypes.TCPEdgeUpdate.html +12 -12
- package/docs/interfaces/datatypes.TLSCertificate.html +21 -21
- package/docs/interfaces/datatypes.TLSCertificateCreate.html +4 -4
- package/docs/interfaces/datatypes.TLSCertificateList.html +3 -3
- package/docs/interfaces/datatypes.TLSCertificateSANs.html +2 -2
- package/docs/interfaces/datatypes.TLSCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.TLSEdge.html +25 -25
- package/docs/interfaces/datatypes.TLSEdgeCreate.html +22 -22
- package/docs/interfaces/datatypes.TLSEdgeList.html +3 -3
- package/docs/interfaces/datatypes.TLSEdgeUpdate.html +23 -23
- package/docs/interfaces/datatypes.Tunnel.html +11 -11
- package/docs/interfaces/datatypes.TunnelGroupBackend.html +7 -7
- package/docs/interfaces/datatypes.TunnelGroupBackendCreate.html +3 -3
- package/docs/interfaces/datatypes.TunnelGroupBackendList.html +3 -3
- package/docs/interfaces/datatypes.TunnelGroupBackendUpdate.html +4 -4
- package/docs/interfaces/datatypes.TunnelList.html +3 -3
- package/docs/interfaces/datatypes.TunnelSession.html +10 -10
- package/docs/interfaces/datatypes.TunnelSessionList.html +3 -3
- package/docs/interfaces/datatypes.TunnelSessionsUpdate.html +1 -1
- package/docs/interfaces/datatypes.UserAgent.html +6 -6
- package/docs/interfaces/datatypes.WeightedBackend.html +6 -6
- package/docs/interfaces/datatypes.WeightedBackendCreate.html +3 -3
- package/docs/interfaces/datatypes.WeightedBackendList.html +3 -3
- package/docs/interfaces/datatypes.WeightedBackendUpdate.html +4 -4
- package/docs/modules/datatypes.html +24 -20
- package/docs/modules/services.html +9 -9
- package/lib/client.d.ts +3 -0
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +4 -1
- package/lib/client.js.map +1 -1
- package/lib/datatypes.d.ts +87 -35
- package/lib/datatypes.d.ts.map +1 -1
- package/lib/services.d.ts +24 -12
- package/lib/services.d.ts.map +1 -1
- package/lib/services.js +188 -158
- package/lib/services.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +13 -1
- package/src/datatypes.ts +90 -37
- package/src/services.ts +195 -163
package/src/datatypes.ts
CHANGED
|
@@ -1012,29 +1012,11 @@ export interface EndpointUserAgentFilter {
|
|
|
1012
1012
|
deny: Array<string>;
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
|
-
export interface
|
|
1015
|
+
export interface EndpointTrafficPolicy {
|
|
1016
1016
|
/** `true` if the module will be applied to traffic, `false` to disable. default `true` if unspecified */
|
|
1017
1017
|
enabled?: boolean;
|
|
1018
|
-
/** the
|
|
1019
|
-
|
|
1020
|
-
/** the outbound rules on the traffic policy. */
|
|
1021
|
-
outbound: Array<EndpointRule>;
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
export interface EndpointRule {
|
|
1025
|
-
/** cel expressions that filter traffic the policy rule applies to. */
|
|
1026
|
-
expressions: Array<string>;
|
|
1027
|
-
/** the set of actions on a policy rule. */
|
|
1028
|
-
actions: Array<EndpointAction>;
|
|
1029
|
-
/** the name of the rule that is part of the traffic policy. */
|
|
1030
|
-
name: string;
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
export interface EndpointAction {
|
|
1034
|
-
/** the type of action on the policy rule. */
|
|
1035
|
-
type: string;
|
|
1036
|
-
/** the configuration for the action on the policy rule. */
|
|
1037
|
-
config: Record<string, unknown> | undefined;
|
|
1018
|
+
/** the traffic policy that should be applied to the traffic on your endpoint. */
|
|
1019
|
+
value: string;
|
|
1038
1020
|
}
|
|
1039
1021
|
|
|
1040
1022
|
export interface EdgeRouteItem {
|
|
@@ -1079,7 +1061,7 @@ export interface HTTPSEdgeRouteCreate {
|
|
|
1079
1061
|
websocketTcpConverter?: EndpointWebsocketTCPConverter;
|
|
1080
1062
|
userAgentFilter?: EndpointUserAgentFilter;
|
|
1081
1063
|
/** the traffic policy associated with this edge or null */
|
|
1082
|
-
|
|
1064
|
+
trafficPolicy?: EndpointTrafficPolicy;
|
|
1083
1065
|
}
|
|
1084
1066
|
|
|
1085
1067
|
export interface HTTPSEdgeRouteUpdate {
|
|
@@ -1119,7 +1101,7 @@ export interface HTTPSEdgeRouteUpdate {
|
|
|
1119
1101
|
websocketTcpConverter?: EndpointWebsocketTCPConverter;
|
|
1120
1102
|
userAgentFilter?: EndpointUserAgentFilter;
|
|
1121
1103
|
/** the traffic policy associated with this edge or null */
|
|
1122
|
-
|
|
1104
|
+
trafficPolicy?: EndpointTrafficPolicy;
|
|
1123
1105
|
}
|
|
1124
1106
|
|
|
1125
1107
|
export interface HTTPSEdgeRoute {
|
|
@@ -1163,7 +1145,7 @@ export interface HTTPSEdgeRoute {
|
|
|
1163
1145
|
websocketTcpConverter?: EndpointWebsocketTCPConverter;
|
|
1164
1146
|
userAgentFilter?: EndpointUserAgentFilter;
|
|
1165
1147
|
/** the traffic policy associated with this edge or null */
|
|
1166
|
-
|
|
1148
|
+
trafficPolicy?: EndpointTrafficPolicy;
|
|
1167
1149
|
}
|
|
1168
1150
|
|
|
1169
1151
|
export interface HTTPSEdgeList {
|
|
@@ -1246,9 +1228,9 @@ export interface EdgeTLSTerminationAtEdgeReplace {
|
|
|
1246
1228
|
module: EndpointTLSTerminationAtEdge;
|
|
1247
1229
|
}
|
|
1248
1230
|
|
|
1249
|
-
export interface
|
|
1231
|
+
export interface EdgeTrafficPolicyReplace {
|
|
1250
1232
|
id: string;
|
|
1251
|
-
module:
|
|
1233
|
+
module: EndpointTrafficPolicy;
|
|
1252
1234
|
}
|
|
1253
1235
|
|
|
1254
1236
|
export interface EdgeRouteBackendReplace {
|
|
@@ -1323,10 +1305,10 @@ export interface EdgeRouteUserAgentFilterReplace {
|
|
|
1323
1305
|
module: EndpointUserAgentFilter;
|
|
1324
1306
|
}
|
|
1325
1307
|
|
|
1326
|
-
export interface
|
|
1308
|
+
export interface EdgeRouteTrafficPolicyReplace {
|
|
1327
1309
|
edgeId: string;
|
|
1328
1310
|
id: string;
|
|
1329
|
-
module:
|
|
1311
|
+
module: EndpointTrafficPolicy;
|
|
1330
1312
|
}
|
|
1331
1313
|
|
|
1332
1314
|
export interface TCPEdgeList {
|
|
@@ -1349,7 +1331,7 @@ export interface TCPEdgeCreate {
|
|
|
1349
1331
|
backend?: EndpointBackendMutate;
|
|
1350
1332
|
ipRestriction?: EndpointIPPolicyMutate;
|
|
1351
1333
|
/** the traffic policy associated with this edge or null */
|
|
1352
|
-
|
|
1334
|
+
trafficPolicy?: EndpointTrafficPolicy;
|
|
1353
1335
|
}
|
|
1354
1336
|
|
|
1355
1337
|
export interface TCPEdgeUpdate {
|
|
@@ -1365,7 +1347,7 @@ export interface TCPEdgeUpdate {
|
|
|
1365
1347
|
backend?: EndpointBackendMutate;
|
|
1366
1348
|
ipRestriction?: EndpointIPPolicyMutate;
|
|
1367
1349
|
/** the traffic policy associated with this edge or null */
|
|
1368
|
-
|
|
1350
|
+
trafficPolicy?: EndpointTrafficPolicy;
|
|
1369
1351
|
}
|
|
1370
1352
|
|
|
1371
1353
|
export interface TCPEdge {
|
|
@@ -1385,7 +1367,7 @@ export interface TCPEdge {
|
|
|
1385
1367
|
backend?: EndpointBackend;
|
|
1386
1368
|
ipRestriction?: EndpointIPPolicy;
|
|
1387
1369
|
/** the traffic policy associated with this edge or null */
|
|
1388
|
-
|
|
1370
|
+
trafficPolicy?: EndpointTrafficPolicy;
|
|
1389
1371
|
}
|
|
1390
1372
|
|
|
1391
1373
|
export interface TLSEdgeList {
|
|
@@ -1410,7 +1392,7 @@ export interface TLSEdgeCreate {
|
|
|
1410
1392
|
mutualTls?: EndpointMutualTLSMutate;
|
|
1411
1393
|
tlsTermination?: EndpointTLSTermination;
|
|
1412
1394
|
/** the traffic policy associated with this edge or null */
|
|
1413
|
-
|
|
1395
|
+
trafficPolicy?: EndpointTrafficPolicy;
|
|
1414
1396
|
}
|
|
1415
1397
|
|
|
1416
1398
|
export interface TLSEdgeUpdate {
|
|
@@ -1428,7 +1410,7 @@ export interface TLSEdgeUpdate {
|
|
|
1428
1410
|
mutualTls?: EndpointMutualTLSMutate;
|
|
1429
1411
|
tlsTermination?: EndpointTLSTermination;
|
|
1430
1412
|
/** the traffic policy associated with this edge or null */
|
|
1431
|
-
|
|
1413
|
+
trafficPolicy?: EndpointTrafficPolicy;
|
|
1432
1414
|
}
|
|
1433
1415
|
|
|
1434
1416
|
export interface TLSEdge {
|
|
@@ -1450,7 +1432,7 @@ export interface TLSEdge {
|
|
|
1450
1432
|
mutualTls?: EndpointMutualTLS;
|
|
1451
1433
|
tlsTermination?: EndpointTLSTermination;
|
|
1452
1434
|
/** the traffic policy associated with this edge or null */
|
|
1453
|
-
|
|
1435
|
+
trafficPolicy?: EndpointTrafficPolicy;
|
|
1454
1436
|
}
|
|
1455
1437
|
|
|
1456
1438
|
export interface Endpoint {
|
|
@@ -1466,12 +1448,17 @@ export interface Endpoint {
|
|
|
1466
1448
|
publicUrl: string;
|
|
1467
1449
|
/** protocol served by this endpoint. one of `http`, `https`, `tcp`, or `tls` */
|
|
1468
1450
|
proto: string;
|
|
1469
|
-
|
|
1451
|
+
scheme?: string;
|
|
1452
|
+
/** hostport served by this endpoint (hostname:port) -> soon to be deprecated */
|
|
1470
1453
|
hostport: string;
|
|
1471
|
-
|
|
1454
|
+
host?: string;
|
|
1455
|
+
port?: number;
|
|
1456
|
+
/** whether the endpoint is `ephemeral` (served directly by an agent-initiated tunnel) or `edge` (served by an edge) or `cloud (represents a cloud endpoint)` */
|
|
1472
1457
|
type: string;
|
|
1473
1458
|
/** user-supplied metadata of the associated tunnel or edge object */
|
|
1474
1459
|
metadata?: string;
|
|
1460
|
+
/** user-supplied description of the associated tunnel */
|
|
1461
|
+
description?: string;
|
|
1475
1462
|
/** the domain reserved for this endpoint */
|
|
1476
1463
|
domain?: Ref;
|
|
1477
1464
|
/** the address reserved for this endpoint */
|
|
@@ -1480,6 +1467,26 @@ export interface Endpoint {
|
|
|
1480
1467
|
tunnel?: Ref;
|
|
1481
1468
|
/** the edge serving requests to this endpoint, if this is an edge endpoint */
|
|
1482
1469
|
edge?: Ref;
|
|
1470
|
+
/** the local address the tunnel forwards to */
|
|
1471
|
+
upstreamUrl?: string;
|
|
1472
|
+
/** the protocol the agent uses to forward with */
|
|
1473
|
+
upstreamProto?: string;
|
|
1474
|
+
/** the url of the endpoint */
|
|
1475
|
+
url?: string;
|
|
1476
|
+
/** The ID of the owner (bot or user) that owns this endpoint */
|
|
1477
|
+
principal?: Ref;
|
|
1478
|
+
/** TODO: deprecate me! */
|
|
1479
|
+
principalId?: Ref;
|
|
1480
|
+
/** The traffic policy attached to this endpoint */
|
|
1481
|
+
trafficPolicy?: string;
|
|
1482
|
+
/** the bindings associated with this endpoint */
|
|
1483
|
+
bindings?: Array<string>;
|
|
1484
|
+
/** The tunnel session of the agent for this endpoint */
|
|
1485
|
+
tunnelSession?: Ref;
|
|
1486
|
+
/** URI of the clep API resource */
|
|
1487
|
+
uri?: string;
|
|
1488
|
+
/** user supplied name for the endpoint */
|
|
1489
|
+
name?: string;
|
|
1483
1490
|
}
|
|
1484
1491
|
|
|
1485
1492
|
export interface EndpointList {
|
|
@@ -1491,6 +1498,36 @@ export interface EndpointList {
|
|
|
1491
1498
|
nextPageUri?: string;
|
|
1492
1499
|
}
|
|
1493
1500
|
|
|
1501
|
+
export interface EndpointCreate {
|
|
1502
|
+
/** the url of the endpoint */
|
|
1503
|
+
url: string;
|
|
1504
|
+
/** whether the endpoint is `ephemeral` (served directly by an agent-initiated tunnel) or `edge` (served by an edge) or `cloud (represents a cloud endpoint)` */
|
|
1505
|
+
type: string;
|
|
1506
|
+
/** The traffic policy attached to this endpoint */
|
|
1507
|
+
trafficPolicy: string;
|
|
1508
|
+
/** user-supplied description of the associated tunnel */
|
|
1509
|
+
description?: string;
|
|
1510
|
+
/** user-supplied metadata of the associated tunnel or edge object */
|
|
1511
|
+
metadata?: string;
|
|
1512
|
+
/** the bindings associated with this endpoint */
|
|
1513
|
+
bindings?: Array<string>;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
export interface EndpointUpdate {
|
|
1517
|
+
/** unique endpoint resource identifier */
|
|
1518
|
+
id: string;
|
|
1519
|
+
/** the url of the endpoint */
|
|
1520
|
+
url?: string;
|
|
1521
|
+
/** The traffic policy attached to this endpoint */
|
|
1522
|
+
trafficPolicy?: string;
|
|
1523
|
+
/** user-supplied description of the associated tunnel */
|
|
1524
|
+
description?: string;
|
|
1525
|
+
/** user-supplied metadata of the associated tunnel or edge object */
|
|
1526
|
+
metadata?: string;
|
|
1527
|
+
/** the bindings associated with this endpoint */
|
|
1528
|
+
bindings?: Array<string>;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1494
1531
|
export interface EventDestinationCreate {
|
|
1495
1532
|
/** Arbitrary user-defined machine-readable data of this Event Destination. Optional, max 4096 bytes. */
|
|
1496
1533
|
metadata?: string;
|
|
@@ -1550,6 +1587,7 @@ export interface EventTarget {
|
|
|
1550
1587
|
cloudwatchLogs?: EventTargetCloudwatchLogs;
|
|
1551
1588
|
/** Configuration used to send events to Datadog. */
|
|
1552
1589
|
datadog?: EventTargetDatadog;
|
|
1590
|
+
azureLogsIngestion?: EventTargetAzureLogsIngestion;
|
|
1553
1591
|
}
|
|
1554
1592
|
|
|
1555
1593
|
export interface EventTargetFirehose {
|
|
@@ -1584,6 +1622,21 @@ export interface EventTargetDatadog {
|
|
|
1584
1622
|
ddsite?: string;
|
|
1585
1623
|
}
|
|
1586
1624
|
|
|
1625
|
+
export interface EventTargetAzureLogsIngestion {
|
|
1626
|
+
/** Tenant ID for the Azure account */
|
|
1627
|
+
tenantId: string;
|
|
1628
|
+
/** Client ID for the application client */
|
|
1629
|
+
clientId: string;
|
|
1630
|
+
/** Client Secret for the application client */
|
|
1631
|
+
clientSecret: string;
|
|
1632
|
+
/** Data collection endpoint logs ingestion URI */
|
|
1633
|
+
logsIngestionUri: string;
|
|
1634
|
+
/** Data collection rule immutable ID */
|
|
1635
|
+
dataCollectionRuleId: string;
|
|
1636
|
+
/** Data collection stream name to use as destination, located inside the DCR */
|
|
1637
|
+
dataCollectionStreamName: string;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1587
1640
|
export interface AWSAuth {
|
|
1588
1641
|
/** A role for ngrok to assume on your behalf to deposit events into your AWS account. */
|
|
1589
1642
|
role?: AWSRole;
|
|
@@ -1950,7 +2003,7 @@ export interface ReservedDomainList {
|
|
|
1950
2003
|
export interface ReservedDomainCertPolicy {
|
|
1951
2004
|
/** certificate authority to request certificates from. The only supported value is letsencrypt. */
|
|
1952
2005
|
authority: string;
|
|
1953
|
-
/** type of private key to use when requesting certificates. Defaults to
|
|
2006
|
+
/** type of private key to use when requesting certificates. Defaults to ecdsa, can be either rsa or ecdsa. */
|
|
1954
2007
|
privateKeyType: string;
|
|
1955
2008
|
}
|
|
1956
2009
|
|