@ngrok/ngrok-api 0.3.0 → 0.7.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/README.md +0 -28
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/client.Ngrok.html +191 -100
- package/docs/classes/services.APIKeys.html +6 -105
- package/docs/classes/services.AbuseReports.html +3 -102
- package/docs/classes/services.AgentIngresses.html +6 -105
- package/docs/classes/services.CertificateAuthorities.html +6 -105
- package/docs/classes/services.Credentials.html +6 -105
- package/docs/classes/services.EdgeRouteBackendModule.html +270 -0
- package/docs/classes/services.EdgeRouteCircuitBreakerModule.html +270 -0
- package/docs/classes/services.EdgeRouteCompressionModule.html +270 -0
- package/docs/classes/{services.EndpointCircuitBreakerModule.html → services.EdgeRouteIPRestrictionModule.html} +28 -127
- package/docs/classes/services.EdgeRouteOAuthModule.html +270 -0
- package/docs/classes/services.EdgeRouteOIDCModule.html +270 -0
- package/docs/classes/{services.EndpointResponseHeadersModule.html → services.EdgeRouteRequestHeadersModule.html} +28 -127
- package/docs/classes/services.EdgeRouteResponseHeadersModule.html +270 -0
- package/docs/classes/services.EdgeRouteSAMLModule.html +270 -0
- package/docs/classes/services.EdgeRouteWebhookVerificationModule.html +270 -0
- package/docs/classes/services.EdgeRouteWebsocketTCPConverterModule.html +270 -0
- package/docs/classes/services.EdgesHTTPS.html +343 -0
- package/docs/classes/services.EdgesHTTPSRoutes.html +317 -0
- package/docs/classes/services.EdgesTCP.html +343 -0
- package/docs/classes/services.EdgesTLS.html +343 -0
- package/docs/classes/services.Endpoints.html +256 -0
- package/docs/classes/services.EventDestinations.html +7 -106
- package/docs/classes/services.EventSources.html +6 -105
- package/docs/classes/services.EventSubscriptions.html +6 -105
- package/docs/classes/services.FailoverBackends.html +353 -0
- package/docs/classes/services.HTTPResponseBackends.html +318 -0
- package/docs/classes/{services.EndpointMutualTLSModule.html → services.HTTPSEdgeMutualTLSModule.html} +22 -121
- package/docs/classes/{services.EndpointTLSTerminationModule.html → services.HTTPSEdgeTLSTerminationModule.html} +22 -121
- package/docs/classes/services.IPPolicies.html +6 -105
- package/docs/classes/services.IPPolicyRules.html +6 -105
- package/docs/classes/services.IPRestrictions.html +7 -106
- package/docs/classes/services.ReservedAddrs.html +6 -137
- package/docs/classes/services.ReservedDomains.html +8 -171
- package/docs/classes/services.SSHCertificateAuthorities.html +6 -105
- package/docs/classes/services.SSHCredentials.html +6 -105
- package/docs/classes/services.SSHHostCertificates.html +6 -105
- package/docs/classes/services.SSHUserCertificates.html +6 -105
- package/docs/classes/{services.EndpointSAMLModule.html → services.TCPEdgeBackendModule.html} +25 -124
- package/docs/classes/{services.EndpointIPPolicyModule.html → services.TCPEdgeIPRestrictionModule.html} +22 -121
- package/docs/classes/services.TLSCertificates.html +6 -105
- package/docs/classes/{services.EndpointLoggingModule.html → services.TLSEdgeBackendModule.html} +25 -124
- package/docs/classes/{services.EndpointOIDCModule.html → services.TLSEdgeIPRestrictionModule.html} +25 -124
- package/docs/classes/{services.EndpointOAuthModule.html → services.TLSEdgeMutualTLSModule.html} +25 -124
- package/docs/classes/services.TLSEdgeTLSTerminationModule.html +270 -0
- package/docs/classes/services.TunnelGroupBackends.html +351 -0
- package/docs/classes/services.TunnelSessions.html +6 -105
- package/docs/classes/services.Tunnels.html +34 -101
- package/docs/classes/{services.EventStreams.html → services.WeightedBackends.html} +51 -140
- package/docs/index.html +0 -27
- package/docs/interfaces/client.NgrokConfig.html +2 -2
- package/docs/interfaces/datatypes.APIKey.html +6 -6
- package/docs/interfaces/datatypes.APIKeyCreate.html +2 -2
- 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 +8 -8
- package/docs/interfaces/datatypes.AgentIngressCreate.html +3 -3
- package/docs/interfaces/datatypes.AgentIngressList.html +3 -3
- package/docs/interfaces/datatypes.AgentIngressUpdate.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 +7 -7
- package/docs/interfaces/datatypes.CredentialCreate.html +3 -3
- package/docs/interfaces/datatypes.CredentialList.html +3 -3
- package/docs/interfaces/datatypes.CredentialUpdate.html +4 -4
- package/docs/interfaces/{datatypes.EndpointOIDCReplace.html → datatypes.EdgeBackendReplace.html} +12 -12
- package/docs/interfaces/{datatypes.EndpointIPPolicyReplace.html → datatypes.EdgeIPRestrictionReplace.html} +11 -11
- package/docs/interfaces/{datatypes.EndpointMutualTLSReplace.html → datatypes.EdgeMutualTLSReplace.html} +11 -11
- package/docs/interfaces/datatypes.EdgeRouteBackendReplace.html +190 -0
- package/docs/interfaces/datatypes.EdgeRouteCircuitBreakerReplace.html +190 -0
- package/docs/interfaces/{datatypes.EndpointCompressionReplace.html → datatypes.EdgeRouteCompressionReplace.html} +25 -11
- package/docs/interfaces/datatypes.EdgeRouteIPRestrictionReplace.html +190 -0
- package/docs/interfaces/{datatypes.EndpointCircuitBreakerReplace.html → datatypes.EdgeRouteItem.html} +27 -17
- package/docs/interfaces/{datatypes.EndpointOAuthReplace.html → datatypes.EdgeRouteOAuthReplace.html} +25 -11
- package/docs/interfaces/datatypes.EdgeRouteOIDCReplace.html +190 -0
- package/docs/interfaces/{datatypes.EndpointRequestHeadersReplace.html → datatypes.EdgeRouteRequestHeadersReplace.html} +25 -11
- package/docs/interfaces/datatypes.EdgeRouteResponseHeadersReplace.html +190 -0
- package/docs/interfaces/{datatypes.EndpointSAMLReplace.html → datatypes.EdgeRouteSAMLReplace.html} +25 -11
- package/docs/interfaces/{datatypes.EndpointWebhookValidationReplace.html → datatypes.EdgeRouteWebhookVerificationReplace.html} +25 -11
- package/docs/interfaces/datatypes.EdgeRouteWebsocketTCPConverterReplace.html +190 -0
- package/docs/interfaces/{datatypes.EndpointResponseHeadersReplace.html → datatypes.EdgeTLSTerminationAtEdgeReplace.html} +12 -12
- package/docs/interfaces/{datatypes.EndpointTLSTerminationReplace.html → datatypes.EdgeTLSTerminationReplace.html} +11 -11
- package/docs/interfaces/datatypes.Endpoint.html +395 -0
- package/docs/interfaces/{datatypes.EndpointLogging.html → datatypes.EndpointBackend.html} +19 -19
- package/docs/interfaces/{datatypes.EndpointLoggingMutate.html → datatypes.EndpointBackendMutate.html} +19 -19
- package/docs/interfaces/datatypes.EndpointCircuitBreaker.html +6 -6
- package/docs/interfaces/datatypes.EndpointCompression.html +1 -1
- package/docs/interfaces/datatypes.EndpointIPPolicy.html +2 -2
- package/docs/interfaces/datatypes.EndpointIPPolicyMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointList.html +205 -0
- 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.EndpointOAuthFacebook.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthGitHub.html +7 -7
- package/docs/interfaces/datatypes.EndpointOAuthGoogle.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthMicrosoft.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthProvider.html +4 -4
- 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 +186 -0
- package/docs/interfaces/datatypes.EndpointWebhookValidation.html +4 -4
- package/docs/interfaces/datatypes.EndpointWebsocketTCPConverter.html +167 -0
- 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 +5 -5
- package/docs/interfaces/datatypes.EventSubscriptionList.html +3 -3
- package/docs/interfaces/datatypes.EventSubscriptionUpdate.html +6 -6
- package/docs/interfaces/datatypes.EventTarget.html +3 -3
- package/docs/interfaces/datatypes.EventTargetCloudwatchLogs.html +2 -2
- package/docs/interfaces/datatypes.EventTargetFirehose.html +2 -2
- package/docs/interfaces/datatypes.EventTargetKinesis.html +2 -2
- package/docs/interfaces/{datatypes.EventStreamCreate.html → datatypes.FailoverBackend.html} +44 -44
- package/docs/interfaces/datatypes.FailoverBackendCreate.html +205 -0
- package/docs/interfaces/datatypes.FailoverBackendList.html +205 -0
- package/docs/interfaces/datatypes.FailoverBackendUpdate.html +219 -0
- package/docs/interfaces/datatypes.HTTPResponseBackend.html +295 -0
- package/docs/interfaces/datatypes.HTTPResponseBackendCreate.html +243 -0
- package/docs/interfaces/datatypes.HTTPResponseBackendList.html +190 -0
- package/docs/interfaces/{datatypes.EventStreamUpdate.html → datatypes.HTTPResponseBackendUpdate.html} +40 -45
- package/docs/interfaces/{datatypes.EventStream.html → datatypes.HTTPSEdge.html} +58 -63
- package/docs/interfaces/datatypes.HTTPSEdgeCreate.html +238 -0
- package/docs/interfaces/{datatypes.EventStreamList.html → datatypes.HTTPSEdgeList.html} +20 -20
- package/docs/interfaces/{datatypes.EndpointConfiguration.html → datatypes.HTTPSEdgeRoute.html} +123 -104
- package/docs/interfaces/{datatypes.EndpointConfigurationCreate.html → datatypes.HTTPSEdgeRouteCreate.html} +108 -89
- package/docs/interfaces/{datatypes.EndpointConfigurationUpdate.html → datatypes.HTTPSEdgeRouteUpdate.html} +115 -77
- package/docs/interfaces/datatypes.HTTPSEdgeUpdate.html +257 -0
- package/docs/interfaces/datatypes.IPPolicy.html +5 -24
- package/docs/interfaces/datatypes.IPPolicyCreate.html +2 -21
- package/docs/interfaces/datatypes.IPPolicyList.html +3 -3
- package/docs/interfaces/datatypes.IPPolicyRule.html +26 -7
- package/docs/interfaces/datatypes.IPPolicyRuleCreate.html +23 -4
- 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.Item.html +1 -1
- package/docs/interfaces/datatypes.Paging.html +2 -2
- package/docs/interfaces/datatypes.Ref.html +2 -2
- package/docs/interfaces/datatypes.ReservedAddr.html +7 -26
- package/docs/interfaces/datatypes.ReservedAddrCreate.html +3 -22
- package/docs/interfaces/datatypes.ReservedAddrList.html +3 -3
- package/docs/interfaces/datatypes.ReservedAddrUpdate.html +3 -22
- package/docs/interfaces/datatypes.ReservedDomain.html +12 -50
- package/docs/interfaces/datatypes.ReservedDomainCertJob.html +4 -4
- package/docs/interfaces/datatypes.ReservedDomainCertPolicy.html +2 -2
- package/docs/interfaces/datatypes.ReservedDomainCertStatus.html +2 -2
- package/docs/interfaces/datatypes.ReservedDomainCreate.html +6 -44
- package/docs/interfaces/datatypes.ReservedDomainList.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomainUpdate.html +5 -43
- 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 +7 -7
- package/docs/interfaces/datatypes.SSHCredentialCreate.html +4 -4
- 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.TCPEdge.html +295 -0
- package/docs/interfaces/datatypes.TCPEdgeCreate.html +238 -0
- package/docs/interfaces/datatypes.TCPEdgeList.html +205 -0
- package/docs/interfaces/datatypes.TCPEdgeUpdate.html +257 -0
- 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 +323 -0
- package/docs/interfaces/datatypes.TLSEdgeCreate.html +266 -0
- package/docs/interfaces/datatypes.TLSEdgeList.html +205 -0
- package/docs/interfaces/datatypes.TLSEdgeUpdate.html +285 -0
- package/docs/interfaces/datatypes.Tunnel.html +85 -9
- package/docs/interfaces/datatypes.TunnelGroupBackend.html +281 -0
- package/docs/interfaces/datatypes.TunnelGroupBackendCreate.html +205 -0
- package/docs/interfaces/datatypes.TunnelGroupBackendList.html +205 -0
- package/docs/interfaces/datatypes.TunnelGroupBackendUpdate.html +219 -0
- 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.WeightedBackend.html +262 -0
- package/docs/interfaces/datatypes.WeightedBackendCreate.html +205 -0
- package/docs/interfaces/{datatypes.EndpointConfigurationList.html → datatypes.WeightedBackendList.html} +19 -19
- package/docs/interfaces/datatypes.WeightedBackendUpdate.html +219 -0
- package/docs/modules/datatypes.html +197 -69
- package/docs/modules/services.html +85 -29
- package/lib/client.d.ts +53 -19
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +42 -18
- package/lib/client.js.map +1 -1
- package/lib/datatypes.d.ts +570 -236
- package/lib/datatypes.d.ts.map +1 -1
- package/lib/services.d.ts +358 -138
- package/lib/services.d.ts.map +1 -1
- package/lib/services.js +1367 -528
- package/lib/services.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +95 -38
- package/src/datatypes.ts +618 -252
- package/src/services.ts +1363 -543
- package/docs/classes/services.EndpointCompressionModule.html +0 -369
- package/docs/classes/services.EndpointConfigurations.html +0 -451
- package/docs/classes/services.EndpointRequestHeadersModule.html +0 -369
- package/docs/classes/services.EndpointWebhookValidationModule.html +0 -369
- package/docs/interfaces/datatypes.EndpointLoggingReplace.html +0 -176
- package/test/endpointConfigurations.test.js +0 -67
package/lib/services.js
CHANGED
|
@@ -129,28 +129,42 @@ exports.Tunnels =
|
|
|
129
129
|
exports.SSHCertificateAuthorities =
|
|
130
130
|
exports.ReservedDomains =
|
|
131
131
|
exports.ReservedAddrs =
|
|
132
|
-
exports.EndpointOIDCModule =
|
|
133
|
-
exports.EndpointSAMLModule =
|
|
134
|
-
exports.EndpointWebhookValidationModule =
|
|
135
|
-
exports.EndpointOAuthModule =
|
|
136
|
-
exports.EndpointResponseHeadersModule =
|
|
137
|
-
exports.EndpointRequestHeadersModule =
|
|
138
|
-
exports.EndpointMutualTLSModule =
|
|
139
|
-
exports.EndpointIPPolicyModule =
|
|
140
|
-
exports.EndpointTLSTerminationModule =
|
|
141
|
-
exports.EndpointCompressionModule =
|
|
142
|
-
exports.EndpointCircuitBreakerModule =
|
|
143
|
-
exports.EndpointLoggingModule =
|
|
144
132
|
exports.IPRestrictions =
|
|
145
133
|
exports.IPPolicyRules =
|
|
146
134
|
exports.IPPolicies =
|
|
147
135
|
exports.EventSources =
|
|
148
136
|
exports.EventSubscriptions =
|
|
149
137
|
exports.EventDestinations =
|
|
150
|
-
exports.
|
|
151
|
-
exports.
|
|
138
|
+
exports.Endpoints =
|
|
139
|
+
exports.TLSEdgeTLSTerminationModule =
|
|
140
|
+
exports.TLSEdgeMutualTLSModule =
|
|
141
|
+
exports.TLSEdgeIPRestrictionModule =
|
|
142
|
+
exports.TLSEdgeBackendModule =
|
|
143
|
+
exports.EdgesTLS =
|
|
144
|
+
exports.TCPEdgeIPRestrictionModule =
|
|
145
|
+
exports.TCPEdgeBackendModule =
|
|
146
|
+
exports.EdgesTCP =
|
|
147
|
+
exports.EdgeRouteWebsocketTCPConverterModule =
|
|
148
|
+
exports.EdgeRouteOIDCModule =
|
|
149
|
+
exports.EdgeRouteSAMLModule =
|
|
150
|
+
exports.EdgeRouteOAuthModule =
|
|
151
|
+
exports.EdgeRouteWebhookVerificationModule =
|
|
152
|
+
exports.EdgeRouteCircuitBreakerModule =
|
|
153
|
+
exports.EdgeRouteCompressionModule =
|
|
154
|
+
exports.EdgeRouteResponseHeadersModule =
|
|
155
|
+
exports.EdgeRouteRequestHeadersModule =
|
|
156
|
+
exports.EdgeRouteIPRestrictionModule =
|
|
157
|
+
exports.EdgeRouteBackendModule =
|
|
158
|
+
exports.HTTPSEdgeTLSTerminationModule =
|
|
159
|
+
exports.HTTPSEdgeMutualTLSModule =
|
|
160
|
+
exports.EdgesHTTPS =
|
|
161
|
+
exports.EdgesHTTPSRoutes =
|
|
152
162
|
exports.Credentials =
|
|
153
163
|
exports.CertificateAuthorities =
|
|
164
|
+
exports.WeightedBackends =
|
|
165
|
+
exports.TunnelGroupBackends =
|
|
166
|
+
exports.HTTPResponseBackends =
|
|
167
|
+
exports.FailoverBackends =
|
|
154
168
|
exports.APIKeys =
|
|
155
169
|
exports.AgentIngresses =
|
|
156
170
|
exports.AbuseReports =
|
|
@@ -403,49 +417,48 @@ class APIKeys {
|
|
|
403
417
|
}
|
|
404
418
|
exports.APIKeys = APIKeys;
|
|
405
419
|
/**
|
|
406
|
-
*
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
thus a private key is not included in the resource.
|
|
420
|
+
* A Failover backend defines failover behavior within a list of referenced
|
|
421
|
+
backends. Traffic is sent to the first backend in the list. If that backend
|
|
422
|
+
is offline or no connection can be established, ngrok attempts to connect to
|
|
423
|
+
the next backend in the list until one is successful.
|
|
411
424
|
*/
|
|
412
|
-
class
|
|
413
|
-
/** Do not construct this object directly, use the <code>
|
|
425
|
+
class FailoverBackends {
|
|
426
|
+
/** Do not construct this object directly, use the <code>failoverBackends</code> property of an <code>Ngrok</code> client object instead. */
|
|
414
427
|
constructor(httpClient) {
|
|
415
428
|
this.httpClient = httpClient;
|
|
416
429
|
}
|
|
417
430
|
/**
|
|
418
|
-
*
|
|
431
|
+
* Create a new Failover backend
|
|
419
432
|
*/
|
|
420
433
|
create(arg) {
|
|
421
434
|
return this.httpClient
|
|
422
|
-
.url(`/
|
|
435
|
+
.url(`/backends/failover`)
|
|
423
436
|
.post(util.serializeArgument(arg))
|
|
424
437
|
.json(payload => util.deserializeResult(payload))
|
|
425
438
|
.then(f => f, util.onRejected);
|
|
426
439
|
}
|
|
427
440
|
/**
|
|
428
|
-
* Delete a
|
|
441
|
+
* Delete a Failover backend by ID. TODO what if used?
|
|
429
442
|
*/
|
|
430
443
|
delete(arg) {
|
|
431
444
|
return this.httpClient
|
|
432
|
-
.url(`/
|
|
445
|
+
.url(`/backends/failover/${arg.id}`)
|
|
433
446
|
.delete()
|
|
434
447
|
.json(payload => util.deserializeResult(payload))
|
|
435
448
|
.then(f => f, util.onRejected);
|
|
436
449
|
}
|
|
437
450
|
/**
|
|
438
|
-
* Get detailed information about a
|
|
451
|
+
* Get detailed information about a Failover backend by ID
|
|
439
452
|
*/
|
|
440
453
|
get(arg) {
|
|
441
454
|
return this.httpClient
|
|
442
|
-
.url(`/
|
|
455
|
+
.url(`/backends/failover/${arg.id}`)
|
|
443
456
|
.get()
|
|
444
457
|
.json(payload => util.deserializeResult(payload))
|
|
445
458
|
.then(f => f, util.onRejected);
|
|
446
459
|
}
|
|
447
460
|
/**
|
|
448
|
-
* List all
|
|
461
|
+
* List all Failover backends on this account
|
|
449
462
|
*/
|
|
450
463
|
list() {
|
|
451
464
|
var e_3, _a;
|
|
@@ -474,7 +487,7 @@ class CertificateAuthorities {
|
|
|
474
487
|
}
|
|
475
488
|
_pagedList(arg) {
|
|
476
489
|
return this.httpClient
|
|
477
|
-
.url(`/
|
|
490
|
+
.url(`/backends/failover`)
|
|
478
491
|
.query(arg)
|
|
479
492
|
.get()
|
|
480
493
|
.json(payload => util.deserializeResult(payload))
|
|
@@ -488,7 +501,7 @@ class CertificateAuthorities {
|
|
|
488
501
|
while (nextPage) {
|
|
489
502
|
const pagedList = yield __await(this._pagedList(page));
|
|
490
503
|
nextPage = pagedList.nextPageUri;
|
|
491
|
-
const items = pagedList.
|
|
504
|
+
const items = pagedList.backends;
|
|
492
505
|
if (nextPage) {
|
|
493
506
|
page = {
|
|
494
507
|
beforeId: items[items.length - 1].id,
|
|
@@ -502,61 +515,43 @@ class CertificateAuthorities {
|
|
|
502
515
|
});
|
|
503
516
|
}
|
|
504
517
|
/**
|
|
505
|
-
* Update
|
|
518
|
+
* Update Failover backend by ID
|
|
506
519
|
*/
|
|
507
520
|
update(arg) {
|
|
508
521
|
return this.httpClient
|
|
509
|
-
.url(`/
|
|
522
|
+
.url(`/backends/failover/${arg.id}`)
|
|
510
523
|
.patch(util.serializeArgument(arg))
|
|
511
524
|
.json(payload => util.deserializeResult(payload))
|
|
512
525
|
.then(f => f, util.onRejected);
|
|
513
526
|
}
|
|
514
527
|
}
|
|
515
|
-
exports.
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
agent to connect the ngrok service as your account. They are installed with
|
|
519
|
-
the `ngrok authtoken` command or by specifying it in the `ngrok.yml`
|
|
520
|
-
configuration file with the `authtoken` property.
|
|
521
|
-
*/
|
|
522
|
-
class Credentials {
|
|
523
|
-
/** Do not construct this object directly, use the <code>credentials</code> property of an <code>Ngrok</code> client object instead. */
|
|
528
|
+
exports.FailoverBackends = FailoverBackends;
|
|
529
|
+
class HTTPResponseBackends {
|
|
530
|
+
/** Do not construct this object directly, use the <code>httpResponseBackends</code> property of an <code>Ngrok</code> client object instead. */
|
|
524
531
|
constructor(httpClient) {
|
|
525
532
|
this.httpClient = httpClient;
|
|
526
533
|
}
|
|
527
|
-
/**
|
|
528
|
-
* Create a new tunnel authtoken credential. This authtoken credential can be used to start a new tunnel session. The response to this API call is the only time the generated token is available. If you need it for future use, you must save it securely yourself.
|
|
529
|
-
*/
|
|
530
534
|
create(arg) {
|
|
531
535
|
return this.httpClient
|
|
532
|
-
.url(`/
|
|
536
|
+
.url(`/backends/http_response`)
|
|
533
537
|
.post(util.serializeArgument(arg))
|
|
534
538
|
.json(payload => util.deserializeResult(payload))
|
|
535
539
|
.then(f => f, util.onRejected);
|
|
536
540
|
}
|
|
537
|
-
/**
|
|
538
|
-
* Delete a tunnel authtoken credential by ID
|
|
539
|
-
*/
|
|
540
541
|
delete(arg) {
|
|
541
542
|
return this.httpClient
|
|
542
|
-
.url(`/
|
|
543
|
+
.url(`/backends/http_response/${arg.id}`)
|
|
543
544
|
.delete()
|
|
544
545
|
.json(payload => util.deserializeResult(payload))
|
|
545
546
|
.then(f => f, util.onRejected);
|
|
546
547
|
}
|
|
547
|
-
/**
|
|
548
|
-
* Get detailed information about a tunnel authtoken credential
|
|
549
|
-
*/
|
|
550
548
|
get(arg) {
|
|
551
549
|
return this.httpClient
|
|
552
|
-
.url(`/
|
|
550
|
+
.url(`/backends/http_response/${arg.id}`)
|
|
553
551
|
.get()
|
|
554
552
|
.json(payload => util.deserializeResult(payload))
|
|
555
553
|
.then(f => f, util.onRejected);
|
|
556
554
|
}
|
|
557
|
-
/**
|
|
558
|
-
* List all tunnel authtoken credentials on this account
|
|
559
|
-
*/
|
|
560
555
|
list() {
|
|
561
556
|
var e_4, _a;
|
|
562
557
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -584,7 +579,7 @@ class Credentials {
|
|
|
584
579
|
}
|
|
585
580
|
_pagedList(arg) {
|
|
586
581
|
return this.httpClient
|
|
587
|
-
.url(`/
|
|
582
|
+
.url(`/backends/http_response`)
|
|
588
583
|
.query(arg)
|
|
589
584
|
.get()
|
|
590
585
|
.json(payload => util.deserializeResult(payload))
|
|
@@ -598,7 +593,7 @@ class Credentials {
|
|
|
598
593
|
while (nextPage) {
|
|
599
594
|
const pagedList = yield __await(this._pagedList(page));
|
|
600
595
|
nextPage = pagedList.nextPageUri;
|
|
601
|
-
const items = pagedList.
|
|
596
|
+
const items = pagedList.backends;
|
|
602
597
|
if (nextPage) {
|
|
603
598
|
page = {
|
|
604
599
|
beforeId: items[items.length - 1].id,
|
|
@@ -611,60 +606,56 @@ class Credentials {
|
|
|
611
606
|
}
|
|
612
607
|
});
|
|
613
608
|
}
|
|
614
|
-
/**
|
|
615
|
-
* Update attributes of an tunnel authtoken credential by ID
|
|
616
|
-
*/
|
|
617
609
|
update(arg) {
|
|
618
610
|
return this.httpClient
|
|
619
|
-
.url(`/
|
|
611
|
+
.url(`/backends/http_response/${arg.id}`)
|
|
620
612
|
.patch(util.serializeArgument(arg))
|
|
621
613
|
.json(payload => util.deserializeResult(payload))
|
|
622
614
|
.then(f => f, util.onRejected);
|
|
623
615
|
}
|
|
624
616
|
}
|
|
625
|
-
exports.
|
|
617
|
+
exports.HTTPResponseBackends = HTTPResponseBackends;
|
|
626
618
|
/**
|
|
627
|
-
*
|
|
628
|
-
|
|
629
|
-
applied to Domains and TCP Addresses they have been attached to.
|
|
619
|
+
* A Tunnel Group Backend balances traffic among all online tunnels that match
|
|
620
|
+
a label selector.
|
|
630
621
|
*/
|
|
631
|
-
class
|
|
632
|
-
/** Do not construct this object directly, use the <code>
|
|
622
|
+
class TunnelGroupBackends {
|
|
623
|
+
/** Do not construct this object directly, use the <code>tunnelGroupBackends</code> property of an <code>Ngrok</code> client object instead. */
|
|
633
624
|
constructor(httpClient) {
|
|
634
625
|
this.httpClient = httpClient;
|
|
635
626
|
}
|
|
636
627
|
/**
|
|
637
|
-
* Create a new
|
|
628
|
+
* Create a new TunnelGroup backend
|
|
638
629
|
*/
|
|
639
630
|
create(arg) {
|
|
640
631
|
return this.httpClient
|
|
641
|
-
.url(`/
|
|
632
|
+
.url(`/backends/tunnel_group`)
|
|
642
633
|
.post(util.serializeArgument(arg))
|
|
643
634
|
.json(payload => util.deserializeResult(payload))
|
|
644
635
|
.then(f => f, util.onRejected);
|
|
645
636
|
}
|
|
646
637
|
/**
|
|
647
|
-
* Delete
|
|
638
|
+
* Delete a TunnelGroup backend by ID. TODO what if used?
|
|
648
639
|
*/
|
|
649
640
|
delete(arg) {
|
|
650
641
|
return this.httpClient
|
|
651
|
-
.url(`/
|
|
642
|
+
.url(`/backends/tunnel_group/${arg.id}`)
|
|
652
643
|
.delete()
|
|
653
644
|
.json(payload => util.deserializeResult(payload))
|
|
654
645
|
.then(f => f, util.onRejected);
|
|
655
646
|
}
|
|
656
647
|
/**
|
|
657
|
-
*
|
|
648
|
+
* Get detailed information about a TunnelGroup backend by ID
|
|
658
649
|
*/
|
|
659
650
|
get(arg) {
|
|
660
651
|
return this.httpClient
|
|
661
|
-
.url(`/
|
|
652
|
+
.url(`/backends/tunnel_group/${arg.id}`)
|
|
662
653
|
.get()
|
|
663
654
|
.json(payload => util.deserializeResult(payload))
|
|
664
655
|
.then(f => f, util.onRejected);
|
|
665
656
|
}
|
|
666
657
|
/**
|
|
667
|
-
*
|
|
658
|
+
* List all TunnelGroup backends on this account
|
|
668
659
|
*/
|
|
669
660
|
list() {
|
|
670
661
|
var e_5, _a;
|
|
@@ -693,7 +684,7 @@ class EndpointConfigurations {
|
|
|
693
684
|
}
|
|
694
685
|
_pagedList(arg) {
|
|
695
686
|
return this.httpClient
|
|
696
|
-
.url(`/
|
|
687
|
+
.url(`/backends/tunnel_group`)
|
|
697
688
|
.query(arg)
|
|
698
689
|
.get()
|
|
699
690
|
.json(payload => util.deserializeResult(payload))
|
|
@@ -707,7 +698,7 @@ class EndpointConfigurations {
|
|
|
707
698
|
while (nextPage) {
|
|
708
699
|
const pagedList = yield __await(this._pagedList(page));
|
|
709
700
|
nextPage = pagedList.nextPageUri;
|
|
710
|
-
const items = pagedList.
|
|
701
|
+
const items = pagedList.backends;
|
|
711
702
|
if (nextPage) {
|
|
712
703
|
page = {
|
|
713
704
|
beforeId: items[items.length - 1].id,
|
|
@@ -721,54 +712,60 @@ class EndpointConfigurations {
|
|
|
721
712
|
});
|
|
722
713
|
}
|
|
723
714
|
/**
|
|
724
|
-
*
|
|
715
|
+
* Update TunnelGroup backend by ID
|
|
725
716
|
*/
|
|
726
717
|
update(arg) {
|
|
727
718
|
return this.httpClient
|
|
728
|
-
.url(`/
|
|
719
|
+
.url(`/backends/tunnel_group/${arg.id}`)
|
|
729
720
|
.patch(util.serializeArgument(arg))
|
|
730
721
|
.json(payload => util.deserializeResult(payload))
|
|
731
722
|
.then(f => f, util.onRejected);
|
|
732
723
|
}
|
|
733
724
|
}
|
|
734
|
-
exports.
|
|
735
|
-
|
|
736
|
-
|
|
725
|
+
exports.TunnelGroupBackends = TunnelGroupBackends;
|
|
726
|
+
/**
|
|
727
|
+
* A Weighted Backend balances traffic among the referenced backends. Traffic
|
|
728
|
+
is assigned proportionally to each based on its weight. The percentage of
|
|
729
|
+
traffic is calculated by dividing a backend's weight by the sum of all
|
|
730
|
+
weights.
|
|
731
|
+
*/
|
|
732
|
+
class WeightedBackends {
|
|
733
|
+
/** Do not construct this object directly, use the <code>weightedBackends</code> property of an <code>Ngrok</code> client object instead. */
|
|
737
734
|
constructor(httpClient) {
|
|
738
735
|
this.httpClient = httpClient;
|
|
739
736
|
}
|
|
740
737
|
/**
|
|
741
|
-
* Create a new
|
|
738
|
+
* Create a new Weighted backend
|
|
742
739
|
*/
|
|
743
740
|
create(arg) {
|
|
744
741
|
return this.httpClient
|
|
745
|
-
.url(`/
|
|
742
|
+
.url(`/backends/weighted`)
|
|
746
743
|
.post(util.serializeArgument(arg))
|
|
747
744
|
.json(payload => util.deserializeResult(payload))
|
|
748
745
|
.then(f => f, util.onRejected);
|
|
749
746
|
}
|
|
750
747
|
/**
|
|
751
|
-
* Delete
|
|
748
|
+
* Delete a Weighted backend by ID. TODO what if used?
|
|
752
749
|
*/
|
|
753
750
|
delete(arg) {
|
|
754
751
|
return this.httpClient
|
|
755
|
-
.url(`/
|
|
752
|
+
.url(`/backends/weighted/${arg.id}`)
|
|
756
753
|
.delete()
|
|
757
754
|
.json(payload => util.deserializeResult(payload))
|
|
758
755
|
.then(f => f, util.onRejected);
|
|
759
756
|
}
|
|
760
757
|
/**
|
|
761
|
-
* Get detailed information about
|
|
758
|
+
* Get detailed information about a Weighted backend by ID
|
|
762
759
|
*/
|
|
763
760
|
get(arg) {
|
|
764
761
|
return this.httpClient
|
|
765
|
-
.url(`/
|
|
762
|
+
.url(`/backends/weighted/${arg.id}`)
|
|
766
763
|
.get()
|
|
767
764
|
.json(payload => util.deserializeResult(payload))
|
|
768
765
|
.then(f => f, util.onRejected);
|
|
769
766
|
}
|
|
770
767
|
/**
|
|
771
|
-
* List all
|
|
768
|
+
* List all Weighted backends on this account
|
|
772
769
|
*/
|
|
773
770
|
list() {
|
|
774
771
|
var e_6, _a;
|
|
@@ -797,7 +794,7 @@ class EventStreams {
|
|
|
797
794
|
}
|
|
798
795
|
_pagedList(arg) {
|
|
799
796
|
return this.httpClient
|
|
800
|
-
.url(`/
|
|
797
|
+
.url(`/backends/weighted`)
|
|
801
798
|
.query(arg)
|
|
802
799
|
.get()
|
|
803
800
|
.json(payload => util.deserializeResult(payload))
|
|
@@ -811,7 +808,7 @@ class EventStreams {
|
|
|
811
808
|
while (nextPage) {
|
|
812
809
|
const pagedList = yield __await(this._pagedList(page));
|
|
813
810
|
nextPage = pagedList.nextPageUri;
|
|
814
|
-
const items = pagedList.
|
|
811
|
+
const items = pagedList.backends;
|
|
815
812
|
if (nextPage) {
|
|
816
813
|
page = {
|
|
817
814
|
beforeId: items[items.length - 1].id,
|
|
@@ -825,54 +822,61 @@ class EventStreams {
|
|
|
825
822
|
});
|
|
826
823
|
}
|
|
827
824
|
/**
|
|
828
|
-
* Update
|
|
825
|
+
* Update Weighted backend by ID
|
|
829
826
|
*/
|
|
830
827
|
update(arg) {
|
|
831
828
|
return this.httpClient
|
|
832
|
-
.url(`/
|
|
829
|
+
.url(`/backends/weighted/${arg.id}`)
|
|
833
830
|
.patch(util.serializeArgument(arg))
|
|
834
831
|
.json(payload => util.deserializeResult(payload))
|
|
835
832
|
.then(f => f, util.onRejected);
|
|
836
833
|
}
|
|
837
834
|
}
|
|
838
|
-
exports.
|
|
839
|
-
|
|
840
|
-
|
|
835
|
+
exports.WeightedBackends = WeightedBackends;
|
|
836
|
+
/**
|
|
837
|
+
* Certificate Authorities are x509 certificates that are used to sign other
|
|
838
|
+
x509 certificates. Attach a Certificate Authority to the Mutual TLS module
|
|
839
|
+
to verify that the TLS certificate presented by a client has been signed by
|
|
840
|
+
this CA. Certificate Authorities are used only for mTLS validation only and
|
|
841
|
+
thus a private key is not included in the resource.
|
|
842
|
+
*/
|
|
843
|
+
class CertificateAuthorities {
|
|
844
|
+
/** Do not construct this object directly, use the <code>certificateAuthorities</code> property of an <code>Ngrok</code> client object instead. */
|
|
841
845
|
constructor(httpClient) {
|
|
842
846
|
this.httpClient = httpClient;
|
|
843
847
|
}
|
|
844
848
|
/**
|
|
845
|
-
*
|
|
849
|
+
* Upload a new Certificate Authority
|
|
846
850
|
*/
|
|
847
851
|
create(arg) {
|
|
848
852
|
return this.httpClient
|
|
849
|
-
.url(`/
|
|
853
|
+
.url(`/certificate_authorities`)
|
|
850
854
|
.post(util.serializeArgument(arg))
|
|
851
855
|
.json(payload => util.deserializeResult(payload))
|
|
852
856
|
.then(f => f, util.onRejected);
|
|
853
857
|
}
|
|
854
858
|
/**
|
|
855
|
-
* Delete
|
|
859
|
+
* Delete a Certificate Authority
|
|
856
860
|
*/
|
|
857
861
|
delete(arg) {
|
|
858
862
|
return this.httpClient
|
|
859
|
-
.url(`/
|
|
863
|
+
.url(`/certificate_authorities/${arg.id}`)
|
|
860
864
|
.delete()
|
|
861
865
|
.json(payload => util.deserializeResult(payload))
|
|
862
866
|
.then(f => f, util.onRejected);
|
|
863
867
|
}
|
|
864
868
|
/**
|
|
865
|
-
* Get detailed information about
|
|
869
|
+
* Get detailed information about a certficate authority
|
|
866
870
|
*/
|
|
867
871
|
get(arg) {
|
|
868
872
|
return this.httpClient
|
|
869
|
-
.url(`/
|
|
873
|
+
.url(`/certificate_authorities/${arg.id}`)
|
|
870
874
|
.get()
|
|
871
875
|
.json(payload => util.deserializeResult(payload))
|
|
872
876
|
.then(f => f, util.onRejected);
|
|
873
877
|
}
|
|
874
878
|
/**
|
|
875
|
-
* List all
|
|
879
|
+
* List all Certificate Authority on this account
|
|
876
880
|
*/
|
|
877
881
|
list() {
|
|
878
882
|
var e_7, _a;
|
|
@@ -901,7 +905,7 @@ class EventDestinations {
|
|
|
901
905
|
}
|
|
902
906
|
_pagedList(arg) {
|
|
903
907
|
return this.httpClient
|
|
904
|
-
.url(`/
|
|
908
|
+
.url(`/certificate_authorities`)
|
|
905
909
|
.query(arg)
|
|
906
910
|
.get()
|
|
907
911
|
.json(payload => util.deserializeResult(payload))
|
|
@@ -915,7 +919,7 @@ class EventDestinations {
|
|
|
915
919
|
while (nextPage) {
|
|
916
920
|
const pagedList = yield __await(this._pagedList(page));
|
|
917
921
|
nextPage = pagedList.nextPageUri;
|
|
918
|
-
const items = pagedList.
|
|
922
|
+
const items = pagedList.certificateAuthorities;
|
|
919
923
|
if (nextPage) {
|
|
920
924
|
page = {
|
|
921
925
|
beforeId: items[items.length - 1].id,
|
|
@@ -929,54 +933,60 @@ class EventDestinations {
|
|
|
929
933
|
});
|
|
930
934
|
}
|
|
931
935
|
/**
|
|
932
|
-
* Update attributes of
|
|
936
|
+
* Update attributes of a Certificate Authority by ID
|
|
933
937
|
*/
|
|
934
938
|
update(arg) {
|
|
935
939
|
return this.httpClient
|
|
936
|
-
.url(`/
|
|
940
|
+
.url(`/certificate_authorities/${arg.id}`)
|
|
937
941
|
.patch(util.serializeArgument(arg))
|
|
938
942
|
.json(payload => util.deserializeResult(payload))
|
|
939
943
|
.then(f => f, util.onRejected);
|
|
940
944
|
}
|
|
941
945
|
}
|
|
942
|
-
exports.
|
|
943
|
-
|
|
944
|
-
|
|
946
|
+
exports.CertificateAuthorities = CertificateAuthorities;
|
|
947
|
+
/**
|
|
948
|
+
* Tunnel Credentials are ngrok agent authtokens. They authorize the ngrok
|
|
949
|
+
agent to connect the ngrok service as your account. They are installed with
|
|
950
|
+
the `ngrok authtoken` command or by specifying it in the `ngrok.yml`
|
|
951
|
+
configuration file with the `authtoken` property.
|
|
952
|
+
*/
|
|
953
|
+
class Credentials {
|
|
954
|
+
/** Do not construct this object directly, use the <code>credentials</code> property of an <code>Ngrok</code> client object instead. */
|
|
945
955
|
constructor(httpClient) {
|
|
946
956
|
this.httpClient = httpClient;
|
|
947
957
|
}
|
|
948
958
|
/**
|
|
949
|
-
* Create
|
|
959
|
+
* Create a new tunnel authtoken credential. This authtoken credential can be used to start a new tunnel session. The response to this API call is the only time the generated token is available. If you need it for future use, you must save it securely yourself.
|
|
950
960
|
*/
|
|
951
961
|
create(arg) {
|
|
952
962
|
return this.httpClient
|
|
953
|
-
.url(`/
|
|
963
|
+
.url(`/credentials`)
|
|
954
964
|
.post(util.serializeArgument(arg))
|
|
955
965
|
.json(payload => util.deserializeResult(payload))
|
|
956
966
|
.then(f => f, util.onRejected);
|
|
957
967
|
}
|
|
958
968
|
/**
|
|
959
|
-
* Delete
|
|
969
|
+
* Delete a tunnel authtoken credential by ID
|
|
960
970
|
*/
|
|
961
971
|
delete(arg) {
|
|
962
972
|
return this.httpClient
|
|
963
|
-
.url(`/
|
|
973
|
+
.url(`/credentials/${arg.id}`)
|
|
964
974
|
.delete()
|
|
965
975
|
.json(payload => util.deserializeResult(payload))
|
|
966
976
|
.then(f => f, util.onRejected);
|
|
967
977
|
}
|
|
968
978
|
/**
|
|
969
|
-
* Get
|
|
979
|
+
* Get detailed information about a tunnel authtoken credential
|
|
970
980
|
*/
|
|
971
981
|
get(arg) {
|
|
972
982
|
return this.httpClient
|
|
973
|
-
.url(`/
|
|
983
|
+
.url(`/credentials/${arg.id}`)
|
|
974
984
|
.get()
|
|
975
985
|
.json(payload => util.deserializeResult(payload))
|
|
976
986
|
.then(f => f, util.onRejected);
|
|
977
987
|
}
|
|
978
988
|
/**
|
|
979
|
-
* List
|
|
989
|
+
* List all tunnel authtoken credentials on this account
|
|
980
990
|
*/
|
|
981
991
|
list() {
|
|
982
992
|
var e_8, _a;
|
|
@@ -1005,7 +1015,7 @@ class EventSubscriptions {
|
|
|
1005
1015
|
}
|
|
1006
1016
|
_pagedList(arg) {
|
|
1007
1017
|
return this.httpClient
|
|
1008
|
-
.url(`/
|
|
1018
|
+
.url(`/credentials`)
|
|
1009
1019
|
.query(arg)
|
|
1010
1020
|
.get()
|
|
1011
1021
|
.json(payload => util.deserializeResult(payload))
|
|
@@ -1019,7 +1029,7 @@ class EventSubscriptions {
|
|
|
1019
1029
|
while (nextPage) {
|
|
1020
1030
|
const pagedList = yield __await(this._pagedList(page));
|
|
1021
1031
|
nextPage = pagedList.nextPageUri;
|
|
1022
|
-
const items = pagedList.
|
|
1032
|
+
const items = pagedList.credentials;
|
|
1023
1033
|
if (nextPage) {
|
|
1024
1034
|
page = {
|
|
1025
1035
|
beforeId: items[items.length - 1].id,
|
|
@@ -1033,117 +1043,91 @@ class EventSubscriptions {
|
|
|
1033
1043
|
});
|
|
1034
1044
|
}
|
|
1035
1045
|
/**
|
|
1036
|
-
* Update an
|
|
1046
|
+
* Update attributes of an tunnel authtoken credential by ID
|
|
1037
1047
|
*/
|
|
1038
1048
|
update(arg) {
|
|
1039
1049
|
return this.httpClient
|
|
1040
|
-
.url(`/
|
|
1050
|
+
.url(`/credentials/${arg.id}`)
|
|
1041
1051
|
.patch(util.serializeArgument(arg))
|
|
1042
1052
|
.json(payload => util.deserializeResult(payload))
|
|
1043
1053
|
.then(f => f, util.onRejected);
|
|
1044
1054
|
}
|
|
1045
1055
|
}
|
|
1046
|
-
exports.
|
|
1047
|
-
class
|
|
1048
|
-
/** Do not construct this object directly, use the <code>
|
|
1056
|
+
exports.Credentials = Credentials;
|
|
1057
|
+
class EdgesHTTPSRoutes {
|
|
1058
|
+
/** Do not construct this object directly, use the <code>edgesHttpsRoutes</code> property of an <code>Ngrok</code> client object instead. */
|
|
1049
1059
|
constructor(httpClient) {
|
|
1050
1060
|
this.httpClient = httpClient;
|
|
1051
1061
|
}
|
|
1052
1062
|
/**
|
|
1053
|
-
*
|
|
1063
|
+
* Create an HTTPS Edge Route
|
|
1054
1064
|
*/
|
|
1055
1065
|
create(arg) {
|
|
1056
1066
|
return this.httpClient
|
|
1057
|
-
.url(`/
|
|
1067
|
+
.url(`/edges/https/${arg.edgeId}/routes`)
|
|
1058
1068
|
.post(util.serializeArgument(arg))
|
|
1059
1069
|
.json(payload => util.deserializeResult(payload))
|
|
1060
1070
|
.then(f => f, util.onRejected);
|
|
1061
1071
|
}
|
|
1062
1072
|
/**
|
|
1063
|
-
*
|
|
1064
|
-
*/
|
|
1065
|
-
delete(arg) {
|
|
1066
|
-
return this.httpClient
|
|
1067
|
-
.url(`/event_subscriptions/${arg.subscriptionId}/sources/${arg.type}`)
|
|
1068
|
-
.delete()
|
|
1069
|
-
.json(payload => util.deserializeResult(payload))
|
|
1070
|
-
.then(f => f, util.onRejected);
|
|
1071
|
-
}
|
|
1072
|
-
/**
|
|
1073
|
-
* Get the details for a given type that triggers for the given event subscription
|
|
1073
|
+
* Get an HTTPS Edge Route by ID
|
|
1074
1074
|
*/
|
|
1075
1075
|
get(arg) {
|
|
1076
1076
|
return this.httpClient
|
|
1077
|
-
.url(`/
|
|
1077
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}`)
|
|
1078
1078
|
.get()
|
|
1079
1079
|
.json(payload => util.deserializeResult(payload))
|
|
1080
1080
|
.then(f => f, util.onRejected);
|
|
1081
1081
|
}
|
|
1082
1082
|
/**
|
|
1083
|
-
*
|
|
1083
|
+
* Updates an HTTPS Edge Route by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.
|
|
1084
1084
|
*/
|
|
1085
|
-
|
|
1085
|
+
update(arg) {
|
|
1086
1086
|
return this.httpClient
|
|
1087
|
-
.url(`/
|
|
1088
|
-
.
|
|
1087
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}`)
|
|
1088
|
+
.patch(util.serializeArgument(arg))
|
|
1089
1089
|
.json(payload => util.deserializeResult(payload))
|
|
1090
1090
|
.then(f => f, util.onRejected);
|
|
1091
1091
|
}
|
|
1092
1092
|
/**
|
|
1093
|
-
*
|
|
1093
|
+
* Delete an HTTPS Edge Route by ID
|
|
1094
1094
|
*/
|
|
1095
|
-
|
|
1095
|
+
delete(arg) {
|
|
1096
1096
|
return this.httpClient
|
|
1097
|
-
.url(`/
|
|
1098
|
-
.
|
|
1097
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}`)
|
|
1098
|
+
.delete()
|
|
1099
1099
|
.json(payload => util.deserializeResult(payload))
|
|
1100
1100
|
.then(f => f, util.onRejected);
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
|
-
exports.
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
action. They can be attached to endpoints via the Endpoint Configuration IP
|
|
1107
|
-
Policy module. They can also be used with IP Restrictions to control source
|
|
1108
|
-
IP ranges that can start tunnel sessions and connect to the API and dashboard.
|
|
1109
|
-
*/
|
|
1110
|
-
class IPPolicies {
|
|
1111
|
-
/** Do not construct this object directly, use the <code>ipPolicies</code> property of an <code>Ngrok</code> client object instead. */
|
|
1103
|
+
exports.EdgesHTTPSRoutes = EdgesHTTPSRoutes;
|
|
1104
|
+
class EdgesHTTPS {
|
|
1105
|
+
/** Do not construct this object directly, use the <code>edgesHttps</code> property of an <code>Ngrok</code> client object instead. */
|
|
1112
1106
|
constructor(httpClient) {
|
|
1113
1107
|
this.httpClient = httpClient;
|
|
1114
1108
|
}
|
|
1115
1109
|
/**
|
|
1116
|
-
* Create
|
|
1110
|
+
* Create an HTTPS Edge
|
|
1117
1111
|
*/
|
|
1118
1112
|
create(arg) {
|
|
1119
1113
|
return this.httpClient
|
|
1120
|
-
.url(`/
|
|
1114
|
+
.url(`/edges/https`)
|
|
1121
1115
|
.post(util.serializeArgument(arg))
|
|
1122
1116
|
.json(payload => util.deserializeResult(payload))
|
|
1123
1117
|
.then(f => f, util.onRejected);
|
|
1124
1118
|
}
|
|
1125
1119
|
/**
|
|
1126
|
-
*
|
|
1127
|
-
*/
|
|
1128
|
-
delete(arg) {
|
|
1129
|
-
return this.httpClient
|
|
1130
|
-
.url(`/ip_policies/${arg.id}`)
|
|
1131
|
-
.delete()
|
|
1132
|
-
.json(payload => util.deserializeResult(payload))
|
|
1133
|
-
.then(f => f, util.onRejected);
|
|
1134
|
-
}
|
|
1135
|
-
/**
|
|
1136
|
-
* Get detailed information about an IP policy by ID.
|
|
1120
|
+
* Get an HTTPS Edge by ID
|
|
1137
1121
|
*/
|
|
1138
1122
|
get(arg) {
|
|
1139
1123
|
return this.httpClient
|
|
1140
|
-
.url(`/
|
|
1124
|
+
.url(`/edges/https/${arg.id}`)
|
|
1141
1125
|
.get()
|
|
1142
1126
|
.json(payload => util.deserializeResult(payload))
|
|
1143
1127
|
.then(f => f, util.onRejected);
|
|
1144
1128
|
}
|
|
1145
1129
|
/**
|
|
1146
|
-
*
|
|
1130
|
+
* Returns a list of all HTTPS Edges on this account
|
|
1147
1131
|
*/
|
|
1148
1132
|
list() {
|
|
1149
1133
|
var e_9, _a;
|
|
@@ -1172,7 +1156,7 @@ class IPPolicies {
|
|
|
1172
1156
|
}
|
|
1173
1157
|
_pagedList(arg) {
|
|
1174
1158
|
return this.httpClient
|
|
1175
|
-
.url(`/
|
|
1159
|
+
.url(`/edges/https`)
|
|
1176
1160
|
.query(arg)
|
|
1177
1161
|
.get()
|
|
1178
1162
|
.json(payload => util.deserializeResult(payload))
|
|
@@ -1186,7 +1170,7 @@ class IPPolicies {
|
|
|
1186
1170
|
while (nextPage) {
|
|
1187
1171
|
const pagedList = yield __await(this._pagedList(page));
|
|
1188
1172
|
nextPage = pagedList.nextPageUri;
|
|
1189
|
-
const items = pagedList.
|
|
1173
|
+
const items = pagedList.httpsEdges;
|
|
1190
1174
|
if (nextPage) {
|
|
1191
1175
|
page = {
|
|
1192
1176
|
beforeId: items[items.length - 1].id,
|
|
@@ -1200,573 +1184,1448 @@ class IPPolicies {
|
|
|
1200
1184
|
});
|
|
1201
1185
|
}
|
|
1202
1186
|
/**
|
|
1203
|
-
*
|
|
1187
|
+
* Updates an HTTPS Edge by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.
|
|
1204
1188
|
*/
|
|
1205
1189
|
update(arg) {
|
|
1206
1190
|
return this.httpClient
|
|
1207
|
-
.url(`/
|
|
1191
|
+
.url(`/edges/https/${arg.id}`)
|
|
1208
1192
|
.patch(util.serializeArgument(arg))
|
|
1209
1193
|
.json(payload => util.deserializeResult(payload))
|
|
1210
1194
|
.then(f => f, util.onRejected);
|
|
1211
1195
|
}
|
|
1196
|
+
/**
|
|
1197
|
+
* Delete an HTTPS Edge by ID
|
|
1198
|
+
*/
|
|
1199
|
+
delete(arg) {
|
|
1200
|
+
return this.httpClient
|
|
1201
|
+
.url(`/edges/https/${arg.id}`)
|
|
1202
|
+
.delete()
|
|
1203
|
+
.json(payload => util.deserializeResult(payload))
|
|
1204
|
+
.then(f => f, util.onRejected);
|
|
1205
|
+
}
|
|
1212
1206
|
}
|
|
1213
|
-
exports.
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
make up an IP Policy.
|
|
1217
|
-
*/
|
|
1218
|
-
class IPPolicyRules {
|
|
1219
|
-
/** Do not construct this object directly, use the <code>ipPolicyRules</code> property of an <code>Ngrok</code> client object instead. */
|
|
1207
|
+
exports.EdgesHTTPS = EdgesHTTPS;
|
|
1208
|
+
class HTTPSEdgeMutualTLSModule {
|
|
1209
|
+
/** Do not construct this object directly, use the <code>httpsEdgeMutualTlsModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1220
1210
|
constructor(httpClient) {
|
|
1221
1211
|
this.httpClient = httpClient;
|
|
1222
1212
|
}
|
|
1223
|
-
|
|
1224
|
-
* Create a new IP policy rule attached to an IP Policy.
|
|
1225
|
-
*/
|
|
1226
|
-
create(arg) {
|
|
1213
|
+
replace(arg) {
|
|
1227
1214
|
return this.httpClient
|
|
1228
|
-
.url(`/
|
|
1229
|
-
.
|
|
1215
|
+
.url(`/edges/https/${arg.id}/mutual_tls`)
|
|
1216
|
+
.put(util.serializeArgument(arg))
|
|
1217
|
+
.json(payload => util.deserializeResult(payload))
|
|
1218
|
+
.then(f => f, util.onRejected);
|
|
1219
|
+
}
|
|
1220
|
+
get(arg) {
|
|
1221
|
+
return this.httpClient
|
|
1222
|
+
.url(`/edges/https/${arg.id}/mutual_tls`)
|
|
1223
|
+
.get()
|
|
1230
1224
|
.json(payload => util.deserializeResult(payload))
|
|
1231
1225
|
.then(f => f, util.onRejected);
|
|
1232
1226
|
}
|
|
1233
|
-
/**
|
|
1234
|
-
* Delete an IP policy rule.
|
|
1235
|
-
*/
|
|
1236
1227
|
delete(arg) {
|
|
1237
1228
|
return this.httpClient
|
|
1238
|
-
.url(`/
|
|
1229
|
+
.url(`/edges/https/${arg.id}/mutual_tls`)
|
|
1239
1230
|
.delete()
|
|
1240
1231
|
.json(payload => util.deserializeResult(payload))
|
|
1241
1232
|
.then(f => f, util.onRejected);
|
|
1242
1233
|
}
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1234
|
+
}
|
|
1235
|
+
exports.HTTPSEdgeMutualTLSModule = HTTPSEdgeMutualTLSModule;
|
|
1236
|
+
class HTTPSEdgeTLSTerminationModule {
|
|
1237
|
+
/** Do not construct this object directly, use the <code>httpsEdgeTlsTerminationModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1238
|
+
constructor(httpClient) {
|
|
1239
|
+
this.httpClient = httpClient;
|
|
1240
|
+
}
|
|
1241
|
+
replace(arg) {
|
|
1247
1242
|
return this.httpClient
|
|
1248
|
-
.url(`/
|
|
1249
|
-
.
|
|
1243
|
+
.url(`/edges/https/${arg.id}/tls_termination`)
|
|
1244
|
+
.put(util.serializeArgument(arg))
|
|
1250
1245
|
.json(payload => util.deserializeResult(payload))
|
|
1251
1246
|
.then(f => f, util.onRejected);
|
|
1252
1247
|
}
|
|
1253
|
-
|
|
1254
|
-
* List all IP policy rules on this account
|
|
1255
|
-
*/
|
|
1256
|
-
list() {
|
|
1257
|
-
var e_10, _a;
|
|
1258
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1259
|
-
const array = [];
|
|
1260
|
-
try {
|
|
1261
|
-
for (
|
|
1262
|
-
var _b = __asyncValues(this._asyncList()), _c;
|
|
1263
|
-
(_c = yield _b.next()), !_c.done;
|
|
1264
|
-
|
|
1265
|
-
) {
|
|
1266
|
-
let item = _c.value;
|
|
1267
|
-
array.push(item);
|
|
1268
|
-
}
|
|
1269
|
-
} catch (e_10_1) {
|
|
1270
|
-
e_10 = { error: e_10_1 };
|
|
1271
|
-
} finally {
|
|
1272
|
-
try {
|
|
1273
|
-
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1274
|
-
} finally {
|
|
1275
|
-
if (e_10) throw e_10.error;
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
return array;
|
|
1279
|
-
});
|
|
1280
|
-
}
|
|
1281
|
-
_pagedList(arg) {
|
|
1248
|
+
get(arg) {
|
|
1282
1249
|
return this.httpClient
|
|
1283
|
-
.url(`/
|
|
1284
|
-
.query(arg)
|
|
1250
|
+
.url(`/edges/https/${arg.id}/tls_termination`)
|
|
1285
1251
|
.get()
|
|
1286
1252
|
.json(payload => util.deserializeResult(payload))
|
|
1287
|
-
.then(
|
|
1253
|
+
.then(f => f, util.onRejected);
|
|
1288
1254
|
}
|
|
1289
|
-
|
|
1290
|
-
return __asyncGenerator(this, arguments, function* _asyncList_10() {
|
|
1291
|
-
const limit = '100';
|
|
1292
|
-
let nextPage = 'initial loop';
|
|
1293
|
-
let page = { limit: limit };
|
|
1294
|
-
while (nextPage) {
|
|
1295
|
-
const pagedList = yield __await(this._pagedList(page));
|
|
1296
|
-
nextPage = pagedList.nextPageUri;
|
|
1297
|
-
const items = pagedList.ipPolicyRules;
|
|
1298
|
-
if (nextPage) {
|
|
1299
|
-
page = {
|
|
1300
|
-
beforeId: items[items.length - 1].id,
|
|
1301
|
-
limit: limit,
|
|
1302
|
-
};
|
|
1303
|
-
}
|
|
1304
|
-
for (let item of items) {
|
|
1305
|
-
yield yield __await(item);
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
});
|
|
1309
|
-
}
|
|
1310
|
-
/**
|
|
1311
|
-
* Update attributes of an IP policy rule by ID
|
|
1312
|
-
*/
|
|
1313
|
-
update(arg) {
|
|
1255
|
+
delete(arg) {
|
|
1314
1256
|
return this.httpClient
|
|
1315
|
-
.url(`/
|
|
1316
|
-
.
|
|
1257
|
+
.url(`/edges/https/${arg.id}/tls_termination`)
|
|
1258
|
+
.delete()
|
|
1317
1259
|
.json(payload => util.deserializeResult(payload))
|
|
1318
1260
|
.then(f => f, util.onRejected);
|
|
1319
1261
|
}
|
|
1320
1262
|
}
|
|
1321
|
-
exports.
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
initate traffic to a specific aspect of your ngrok account. An IP
|
|
1325
|
-
restriction has a type which defines the ingress it applies to. IP
|
|
1326
|
-
restrictions can be used to enforce the source IPs that can make API
|
|
1327
|
-
requests, log in to the dashboard, start ngrok agents, and connect to your
|
|
1328
|
-
public-facing endpoints.
|
|
1329
|
-
*/
|
|
1330
|
-
class IPRestrictions {
|
|
1331
|
-
/** Do not construct this object directly, use the <code>ipRestrictions</code> property of an <code>Ngrok</code> client object instead. */
|
|
1263
|
+
exports.HTTPSEdgeTLSTerminationModule = HTTPSEdgeTLSTerminationModule;
|
|
1264
|
+
class EdgeRouteBackendModule {
|
|
1265
|
+
/** Do not construct this object directly, use the <code>edgeRouteBackendModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1332
1266
|
constructor(httpClient) {
|
|
1333
1267
|
this.httpClient = httpClient;
|
|
1334
1268
|
}
|
|
1335
|
-
|
|
1336
|
-
* Create a new IP restriction
|
|
1337
|
-
*/
|
|
1338
|
-
create(arg) {
|
|
1269
|
+
replace(arg) {
|
|
1339
1270
|
return this.httpClient
|
|
1340
|
-
.url(`/
|
|
1341
|
-
.
|
|
1271
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/backend`)
|
|
1272
|
+
.put(util.serializeArgument(arg))
|
|
1273
|
+
.json(payload => util.deserializeResult(payload))
|
|
1274
|
+
.then(f => f, util.onRejected);
|
|
1275
|
+
}
|
|
1276
|
+
get(arg) {
|
|
1277
|
+
return this.httpClient
|
|
1278
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/backend`)
|
|
1279
|
+
.get()
|
|
1342
1280
|
.json(payload => util.deserializeResult(payload))
|
|
1343
1281
|
.then(f => f, util.onRejected);
|
|
1344
1282
|
}
|
|
1345
|
-
/**
|
|
1346
|
-
* Delete an IP restriction
|
|
1347
|
-
*/
|
|
1348
1283
|
delete(arg) {
|
|
1349
1284
|
return this.httpClient
|
|
1350
|
-
.url(`/
|
|
1285
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/backend`)
|
|
1351
1286
|
.delete()
|
|
1352
1287
|
.json(payload => util.deserializeResult(payload))
|
|
1353
1288
|
.then(f => f, util.onRejected);
|
|
1354
1289
|
}
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1290
|
+
}
|
|
1291
|
+
exports.EdgeRouteBackendModule = EdgeRouteBackendModule;
|
|
1292
|
+
class EdgeRouteIPRestrictionModule {
|
|
1293
|
+
/** Do not construct this object directly, use the <code>edgeRouteIpRestrictionModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1294
|
+
constructor(httpClient) {
|
|
1295
|
+
this.httpClient = httpClient;
|
|
1296
|
+
}
|
|
1297
|
+
replace(arg) {
|
|
1298
|
+
return this.httpClient
|
|
1299
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/ip_restriction`)
|
|
1300
|
+
.put(util.serializeArgument(arg))
|
|
1301
|
+
.json(payload => util.deserializeResult(payload))
|
|
1302
|
+
.then(f => f, util.onRejected);
|
|
1303
|
+
}
|
|
1358
1304
|
get(arg) {
|
|
1359
1305
|
return this.httpClient
|
|
1360
|
-
.url(`/
|
|
1306
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/ip_restriction`)
|
|
1361
1307
|
.get()
|
|
1362
1308
|
.json(payload => util.deserializeResult(payload))
|
|
1363
1309
|
.then(f => f, util.onRejected);
|
|
1364
1310
|
}
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
const array = [];
|
|
1372
|
-
try {
|
|
1373
|
-
for (
|
|
1374
|
-
var _b = __asyncValues(this._asyncList()), _c;
|
|
1375
|
-
(_c = yield _b.next()), !_c.done;
|
|
1376
|
-
|
|
1377
|
-
) {
|
|
1378
|
-
let item = _c.value;
|
|
1379
|
-
array.push(item);
|
|
1380
|
-
}
|
|
1381
|
-
} catch (e_11_1) {
|
|
1382
|
-
e_11 = { error: e_11_1 };
|
|
1383
|
-
} finally {
|
|
1384
|
-
try {
|
|
1385
|
-
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1386
|
-
} finally {
|
|
1387
|
-
if (e_11) throw e_11.error;
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
return array;
|
|
1391
|
-
});
|
|
1311
|
+
delete(arg) {
|
|
1312
|
+
return this.httpClient
|
|
1313
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/ip_restriction`)
|
|
1314
|
+
.delete()
|
|
1315
|
+
.json(payload => util.deserializeResult(payload))
|
|
1316
|
+
.then(f => f, util.onRejected);
|
|
1392
1317
|
}
|
|
1393
|
-
|
|
1318
|
+
}
|
|
1319
|
+
exports.EdgeRouteIPRestrictionModule = EdgeRouteIPRestrictionModule;
|
|
1320
|
+
class EdgeRouteRequestHeadersModule {
|
|
1321
|
+
/** Do not construct this object directly, use the <code>edgeRouteRequestHeadersModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1322
|
+
constructor(httpClient) {
|
|
1323
|
+
this.httpClient = httpClient;
|
|
1324
|
+
}
|
|
1325
|
+
replace(arg) {
|
|
1394
1326
|
return this.httpClient
|
|
1395
|
-
.url(`/
|
|
1396
|
-
.
|
|
1397
|
-
.get()
|
|
1327
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/request_headers`)
|
|
1328
|
+
.put(util.serializeArgument(arg))
|
|
1398
1329
|
.json(payload => util.deserializeResult(payload))
|
|
1399
|
-
.then(
|
|
1330
|
+
.then(f => f, util.onRejected);
|
|
1400
1331
|
}
|
|
1401
|
-
|
|
1402
|
-
return
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
const pagedList = yield __await(this._pagedList(page));
|
|
1408
|
-
nextPage = pagedList.nextPageUri;
|
|
1409
|
-
const items = pagedList.ipRestrictions;
|
|
1410
|
-
if (nextPage) {
|
|
1411
|
-
page = {
|
|
1412
|
-
beforeId: items[items.length - 1].id,
|
|
1413
|
-
limit: limit,
|
|
1414
|
-
};
|
|
1415
|
-
}
|
|
1416
|
-
for (let item of items) {
|
|
1417
|
-
yield yield __await(item);
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
});
|
|
1332
|
+
get(arg) {
|
|
1333
|
+
return this.httpClient
|
|
1334
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/request_headers`)
|
|
1335
|
+
.get()
|
|
1336
|
+
.json(payload => util.deserializeResult(payload))
|
|
1337
|
+
.then(f => f, util.onRejected);
|
|
1421
1338
|
}
|
|
1422
|
-
|
|
1423
|
-
* Update attributes of an IP restriction by ID
|
|
1424
|
-
*/
|
|
1425
|
-
update(arg) {
|
|
1339
|
+
delete(arg) {
|
|
1426
1340
|
return this.httpClient
|
|
1427
|
-
.url(`/
|
|
1428
|
-
.
|
|
1341
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/request_headers`)
|
|
1342
|
+
.delete()
|
|
1429
1343
|
.json(payload => util.deserializeResult(payload))
|
|
1430
1344
|
.then(f => f, util.onRejected);
|
|
1431
1345
|
}
|
|
1432
1346
|
}
|
|
1433
|
-
exports.
|
|
1434
|
-
class
|
|
1435
|
-
/** Do not construct this object directly, use the <code>
|
|
1347
|
+
exports.EdgeRouteRequestHeadersModule = EdgeRouteRequestHeadersModule;
|
|
1348
|
+
class EdgeRouteResponseHeadersModule {
|
|
1349
|
+
/** Do not construct this object directly, use the <code>edgeRouteResponseHeadersModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1436
1350
|
constructor(httpClient) {
|
|
1437
1351
|
this.httpClient = httpClient;
|
|
1438
1352
|
}
|
|
1439
1353
|
replace(arg) {
|
|
1440
1354
|
return this.httpClient
|
|
1441
|
-
.url(`/
|
|
1355
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/response_headers`)
|
|
1442
1356
|
.put(util.serializeArgument(arg))
|
|
1443
1357
|
.json(payload => util.deserializeResult(payload))
|
|
1444
1358
|
.then(f => f, util.onRejected);
|
|
1445
1359
|
}
|
|
1446
1360
|
get(arg) {
|
|
1447
1361
|
return this.httpClient
|
|
1448
|
-
.url(`/
|
|
1362
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/response_headers`)
|
|
1449
1363
|
.get()
|
|
1450
1364
|
.json(payload => util.deserializeResult(payload))
|
|
1451
1365
|
.then(f => f, util.onRejected);
|
|
1452
1366
|
}
|
|
1453
1367
|
delete(arg) {
|
|
1454
1368
|
return this.httpClient
|
|
1455
|
-
.url(`/
|
|
1369
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/response_headers`)
|
|
1456
1370
|
.delete()
|
|
1457
1371
|
.json(payload => util.deserializeResult(payload))
|
|
1458
1372
|
.then(f => f, util.onRejected);
|
|
1459
1373
|
}
|
|
1460
1374
|
}
|
|
1461
|
-
exports.
|
|
1462
|
-
class
|
|
1463
|
-
/** Do not construct this object directly, use the <code>
|
|
1375
|
+
exports.EdgeRouteResponseHeadersModule = EdgeRouteResponseHeadersModule;
|
|
1376
|
+
class EdgeRouteCompressionModule {
|
|
1377
|
+
/** Do not construct this object directly, use the <code>edgeRouteCompressionModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1464
1378
|
constructor(httpClient) {
|
|
1465
1379
|
this.httpClient = httpClient;
|
|
1466
1380
|
}
|
|
1467
1381
|
replace(arg) {
|
|
1468
1382
|
return this.httpClient
|
|
1469
|
-
.url(`/
|
|
1383
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/compression`)
|
|
1470
1384
|
.put(util.serializeArgument(arg))
|
|
1471
1385
|
.json(payload => util.deserializeResult(payload))
|
|
1472
1386
|
.then(f => f, util.onRejected);
|
|
1473
1387
|
}
|
|
1474
1388
|
get(arg) {
|
|
1475
1389
|
return this.httpClient
|
|
1476
|
-
.url(`/
|
|
1390
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/compression`)
|
|
1477
1391
|
.get()
|
|
1478
1392
|
.json(payload => util.deserializeResult(payload))
|
|
1479
1393
|
.then(f => f, util.onRejected);
|
|
1480
1394
|
}
|
|
1481
1395
|
delete(arg) {
|
|
1482
1396
|
return this.httpClient
|
|
1483
|
-
.url(`/
|
|
1397
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/compression`)
|
|
1484
1398
|
.delete()
|
|
1485
1399
|
.json(payload => util.deserializeResult(payload))
|
|
1486
1400
|
.then(f => f, util.onRejected);
|
|
1487
1401
|
}
|
|
1488
1402
|
}
|
|
1489
|
-
exports.
|
|
1490
|
-
class
|
|
1491
|
-
/** Do not construct this object directly, use the <code>
|
|
1403
|
+
exports.EdgeRouteCompressionModule = EdgeRouteCompressionModule;
|
|
1404
|
+
class EdgeRouteCircuitBreakerModule {
|
|
1405
|
+
/** Do not construct this object directly, use the <code>edgeRouteCircuitBreakerModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1492
1406
|
constructor(httpClient) {
|
|
1493
1407
|
this.httpClient = httpClient;
|
|
1494
1408
|
}
|
|
1495
1409
|
replace(arg) {
|
|
1496
1410
|
return this.httpClient
|
|
1497
|
-
.url(`/
|
|
1411
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/circuit_breaker`)
|
|
1498
1412
|
.put(util.serializeArgument(arg))
|
|
1499
1413
|
.json(payload => util.deserializeResult(payload))
|
|
1500
1414
|
.then(f => f, util.onRejected);
|
|
1501
1415
|
}
|
|
1502
1416
|
get(arg) {
|
|
1503
1417
|
return this.httpClient
|
|
1504
|
-
.url(`/
|
|
1418
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/circuit_breaker`)
|
|
1505
1419
|
.get()
|
|
1506
1420
|
.json(payload => util.deserializeResult(payload))
|
|
1507
1421
|
.then(f => f, util.onRejected);
|
|
1508
1422
|
}
|
|
1509
1423
|
delete(arg) {
|
|
1510
1424
|
return this.httpClient
|
|
1511
|
-
.url(`/
|
|
1425
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/circuit_breaker`)
|
|
1512
1426
|
.delete()
|
|
1513
1427
|
.json(payload => util.deserializeResult(payload))
|
|
1514
1428
|
.then(f => f, util.onRejected);
|
|
1515
1429
|
}
|
|
1516
1430
|
}
|
|
1517
|
-
exports.
|
|
1518
|
-
class
|
|
1519
|
-
/** Do not construct this object directly, use the <code>
|
|
1431
|
+
exports.EdgeRouteCircuitBreakerModule = EdgeRouteCircuitBreakerModule;
|
|
1432
|
+
class EdgeRouteWebhookVerificationModule {
|
|
1433
|
+
/** Do not construct this object directly, use the <code>edgeRouteWebhookVerificationModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1520
1434
|
constructor(httpClient) {
|
|
1521
1435
|
this.httpClient = httpClient;
|
|
1522
1436
|
}
|
|
1523
1437
|
replace(arg) {
|
|
1524
1438
|
return this.httpClient
|
|
1525
|
-
.url(`/
|
|
1439
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/webhook_verification`)
|
|
1526
1440
|
.put(util.serializeArgument(arg))
|
|
1527
1441
|
.json(payload => util.deserializeResult(payload))
|
|
1528
1442
|
.then(f => f, util.onRejected);
|
|
1529
1443
|
}
|
|
1530
1444
|
get(arg) {
|
|
1531
1445
|
return this.httpClient
|
|
1532
|
-
.url(`/
|
|
1446
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/webhook_verification`)
|
|
1533
1447
|
.get()
|
|
1534
1448
|
.json(payload => util.deserializeResult(payload))
|
|
1535
1449
|
.then(f => f, util.onRejected);
|
|
1536
1450
|
}
|
|
1537
1451
|
delete(arg) {
|
|
1538
1452
|
return this.httpClient
|
|
1539
|
-
.url(`/
|
|
1453
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/webhook_verification`)
|
|
1540
1454
|
.delete()
|
|
1541
1455
|
.json(payload => util.deserializeResult(payload))
|
|
1542
1456
|
.then(f => f, util.onRejected);
|
|
1543
1457
|
}
|
|
1544
1458
|
}
|
|
1545
|
-
exports.
|
|
1546
|
-
class
|
|
1547
|
-
/** Do not construct this object directly, use the <code>
|
|
1459
|
+
exports.EdgeRouteWebhookVerificationModule = EdgeRouteWebhookVerificationModule;
|
|
1460
|
+
class EdgeRouteOAuthModule {
|
|
1461
|
+
/** Do not construct this object directly, use the <code>edgeRouteOAuthModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1548
1462
|
constructor(httpClient) {
|
|
1549
1463
|
this.httpClient = httpClient;
|
|
1550
1464
|
}
|
|
1551
1465
|
replace(arg) {
|
|
1552
1466
|
return this.httpClient
|
|
1553
|
-
.url(`/
|
|
1467
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oauth`)
|
|
1554
1468
|
.put(util.serializeArgument(arg))
|
|
1555
1469
|
.json(payload => util.deserializeResult(payload))
|
|
1556
1470
|
.then(f => f, util.onRejected);
|
|
1557
1471
|
}
|
|
1558
1472
|
get(arg) {
|
|
1559
1473
|
return this.httpClient
|
|
1560
|
-
.url(`/
|
|
1474
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oauth`)
|
|
1561
1475
|
.get()
|
|
1562
1476
|
.json(payload => util.deserializeResult(payload))
|
|
1563
1477
|
.then(f => f, util.onRejected);
|
|
1564
1478
|
}
|
|
1565
1479
|
delete(arg) {
|
|
1566
1480
|
return this.httpClient
|
|
1567
|
-
.url(`/
|
|
1481
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oauth`)
|
|
1568
1482
|
.delete()
|
|
1569
1483
|
.json(payload => util.deserializeResult(payload))
|
|
1570
1484
|
.then(f => f, util.onRejected);
|
|
1571
1485
|
}
|
|
1572
1486
|
}
|
|
1573
|
-
exports.
|
|
1574
|
-
class
|
|
1575
|
-
/** Do not construct this object directly, use the <code>
|
|
1487
|
+
exports.EdgeRouteOAuthModule = EdgeRouteOAuthModule;
|
|
1488
|
+
class EdgeRouteSAMLModule {
|
|
1489
|
+
/** Do not construct this object directly, use the <code>edgeRouteSamlModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1576
1490
|
constructor(httpClient) {
|
|
1577
1491
|
this.httpClient = httpClient;
|
|
1578
1492
|
}
|
|
1579
1493
|
replace(arg) {
|
|
1580
1494
|
return this.httpClient
|
|
1581
|
-
.url(`/
|
|
1495
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/saml`)
|
|
1582
1496
|
.put(util.serializeArgument(arg))
|
|
1583
1497
|
.json(payload => util.deserializeResult(payload))
|
|
1584
1498
|
.then(f => f, util.onRejected);
|
|
1585
1499
|
}
|
|
1586
1500
|
get(arg) {
|
|
1587
1501
|
return this.httpClient
|
|
1588
|
-
.url(`/
|
|
1502
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/saml`)
|
|
1589
1503
|
.get()
|
|
1590
1504
|
.json(payload => util.deserializeResult(payload))
|
|
1591
1505
|
.then(f => f, util.onRejected);
|
|
1592
1506
|
}
|
|
1593
1507
|
delete(arg) {
|
|
1594
1508
|
return this.httpClient
|
|
1595
|
-
.url(`/
|
|
1509
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/saml`)
|
|
1596
1510
|
.delete()
|
|
1597
1511
|
.json(payload => util.deserializeResult(payload))
|
|
1598
1512
|
.then(f => f, util.onRejected);
|
|
1599
1513
|
}
|
|
1600
1514
|
}
|
|
1601
|
-
exports.
|
|
1602
|
-
class
|
|
1603
|
-
/** Do not construct this object directly, use the <code>
|
|
1515
|
+
exports.EdgeRouteSAMLModule = EdgeRouteSAMLModule;
|
|
1516
|
+
class EdgeRouteOIDCModule {
|
|
1517
|
+
/** Do not construct this object directly, use the <code>edgeRouteOidcModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1604
1518
|
constructor(httpClient) {
|
|
1605
1519
|
this.httpClient = httpClient;
|
|
1606
1520
|
}
|
|
1607
1521
|
replace(arg) {
|
|
1608
1522
|
return this.httpClient
|
|
1609
|
-
.url(`/
|
|
1523
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oidc`)
|
|
1610
1524
|
.put(util.serializeArgument(arg))
|
|
1611
1525
|
.json(payload => util.deserializeResult(payload))
|
|
1612
1526
|
.then(f => f, util.onRejected);
|
|
1613
1527
|
}
|
|
1614
1528
|
get(arg) {
|
|
1615
1529
|
return this.httpClient
|
|
1616
|
-
.url(`/
|
|
1530
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oidc`)
|
|
1617
1531
|
.get()
|
|
1618
1532
|
.json(payload => util.deserializeResult(payload))
|
|
1619
1533
|
.then(f => f, util.onRejected);
|
|
1620
1534
|
}
|
|
1621
1535
|
delete(arg) {
|
|
1622
1536
|
return this.httpClient
|
|
1623
|
-
.url(`/
|
|
1537
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oidc`)
|
|
1624
1538
|
.delete()
|
|
1625
1539
|
.json(payload => util.deserializeResult(payload))
|
|
1626
1540
|
.then(f => f, util.onRejected);
|
|
1627
1541
|
}
|
|
1628
1542
|
}
|
|
1629
|
-
exports.
|
|
1630
|
-
class
|
|
1631
|
-
/** Do not construct this object directly, use the <code>
|
|
1543
|
+
exports.EdgeRouteOIDCModule = EdgeRouteOIDCModule;
|
|
1544
|
+
class EdgeRouteWebsocketTCPConverterModule {
|
|
1545
|
+
/** Do not construct this object directly, use the <code>edgeRouteWebsocketTcpConverterModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1632
1546
|
constructor(httpClient) {
|
|
1633
1547
|
this.httpClient = httpClient;
|
|
1634
1548
|
}
|
|
1635
1549
|
replace(arg) {
|
|
1636
1550
|
return this.httpClient
|
|
1637
|
-
.url(
|
|
1551
|
+
.url(
|
|
1552
|
+
`/edges/https/${arg.edgeId}/routes/${arg.id}/websocket_tcp_converter`
|
|
1553
|
+
)
|
|
1638
1554
|
.put(util.serializeArgument(arg))
|
|
1639
1555
|
.json(payload => util.deserializeResult(payload))
|
|
1640
1556
|
.then(f => f, util.onRejected);
|
|
1641
1557
|
}
|
|
1642
1558
|
get(arg) {
|
|
1643
1559
|
return this.httpClient
|
|
1644
|
-
.url(
|
|
1560
|
+
.url(
|
|
1561
|
+
`/edges/https/${arg.edgeId}/routes/${arg.id}/websocket_tcp_converter`
|
|
1562
|
+
)
|
|
1563
|
+
.get()
|
|
1564
|
+
.json(payload => util.deserializeResult(payload))
|
|
1565
|
+
.then(f => f, util.onRejected);
|
|
1566
|
+
}
|
|
1567
|
+
delete(arg) {
|
|
1568
|
+
return this.httpClient
|
|
1569
|
+
.url(
|
|
1570
|
+
`/edges/https/${arg.edgeId}/routes/${arg.id}/websocket_tcp_converter`
|
|
1571
|
+
)
|
|
1572
|
+
.delete()
|
|
1573
|
+
.json(payload => util.deserializeResult(payload))
|
|
1574
|
+
.then(f => f, util.onRejected);
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
exports.EdgeRouteWebsocketTCPConverterModule =
|
|
1578
|
+
EdgeRouteWebsocketTCPConverterModule;
|
|
1579
|
+
class EdgesTCP {
|
|
1580
|
+
/** Do not construct this object directly, use the <code>edgesTcp</code> property of an <code>Ngrok</code> client object instead. */
|
|
1581
|
+
constructor(httpClient) {
|
|
1582
|
+
this.httpClient = httpClient;
|
|
1583
|
+
}
|
|
1584
|
+
/**
|
|
1585
|
+
* Create a TCP Edge
|
|
1586
|
+
*/
|
|
1587
|
+
create(arg) {
|
|
1588
|
+
return this.httpClient
|
|
1589
|
+
.url(`/edges/tcp`)
|
|
1590
|
+
.post(util.serializeArgument(arg))
|
|
1591
|
+
.json(payload => util.deserializeResult(payload))
|
|
1592
|
+
.then(f => f, util.onRejected);
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* Get a TCP Edge by ID
|
|
1596
|
+
*/
|
|
1597
|
+
get(arg) {
|
|
1598
|
+
return this.httpClient
|
|
1599
|
+
.url(`/edges/tcp/${arg.id}`)
|
|
1600
|
+
.get()
|
|
1601
|
+
.json(payload => util.deserializeResult(payload))
|
|
1602
|
+
.then(f => f, util.onRejected);
|
|
1603
|
+
}
|
|
1604
|
+
/**
|
|
1605
|
+
* Returns a list of all TCP Edges on this account
|
|
1606
|
+
*/
|
|
1607
|
+
list() {
|
|
1608
|
+
var e_10, _a;
|
|
1609
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1610
|
+
const array = [];
|
|
1611
|
+
try {
|
|
1612
|
+
for (
|
|
1613
|
+
var _b = __asyncValues(this._asyncList()), _c;
|
|
1614
|
+
(_c = yield _b.next()), !_c.done;
|
|
1615
|
+
|
|
1616
|
+
) {
|
|
1617
|
+
let item = _c.value;
|
|
1618
|
+
array.push(item);
|
|
1619
|
+
}
|
|
1620
|
+
} catch (e_10_1) {
|
|
1621
|
+
e_10 = { error: e_10_1 };
|
|
1622
|
+
} finally {
|
|
1623
|
+
try {
|
|
1624
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1625
|
+
} finally {
|
|
1626
|
+
if (e_10) throw e_10.error;
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
return array;
|
|
1630
|
+
});
|
|
1631
|
+
}
|
|
1632
|
+
_pagedList(arg) {
|
|
1633
|
+
return this.httpClient
|
|
1634
|
+
.url(`/edges/tcp`)
|
|
1635
|
+
.query(arg)
|
|
1645
1636
|
.get()
|
|
1646
1637
|
.json(payload => util.deserializeResult(payload))
|
|
1638
|
+
.then(util.onFulfilled, util.onRejected);
|
|
1639
|
+
}
|
|
1640
|
+
_asyncList() {
|
|
1641
|
+
return __asyncGenerator(this, arguments, function* _asyncList_10() {
|
|
1642
|
+
const limit = '100';
|
|
1643
|
+
let nextPage = 'initial loop';
|
|
1644
|
+
let page = { limit: limit };
|
|
1645
|
+
while (nextPage) {
|
|
1646
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
1647
|
+
nextPage = pagedList.nextPageUri;
|
|
1648
|
+
const items = pagedList.tcpEdges;
|
|
1649
|
+
if (nextPage) {
|
|
1650
|
+
page = {
|
|
1651
|
+
beforeId: items[items.length - 1].id,
|
|
1652
|
+
limit: limit,
|
|
1653
|
+
};
|
|
1654
|
+
}
|
|
1655
|
+
for (let item of items) {
|
|
1656
|
+
yield yield __await(item);
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
});
|
|
1660
|
+
}
|
|
1661
|
+
/**
|
|
1662
|
+
* Updates a TCP Edge by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.
|
|
1663
|
+
*/
|
|
1664
|
+
update(arg) {
|
|
1665
|
+
return this.httpClient
|
|
1666
|
+
.url(`/edges/tcp/${arg.id}`)
|
|
1667
|
+
.patch(util.serializeArgument(arg))
|
|
1668
|
+
.json(payload => util.deserializeResult(payload))
|
|
1647
1669
|
.then(f => f, util.onRejected);
|
|
1648
1670
|
}
|
|
1671
|
+
/**
|
|
1672
|
+
* Delete a TCP Edge by ID
|
|
1673
|
+
*/
|
|
1649
1674
|
delete(arg) {
|
|
1650
1675
|
return this.httpClient
|
|
1651
|
-
.url(`/
|
|
1676
|
+
.url(`/edges/tcp/${arg.id}`)
|
|
1652
1677
|
.delete()
|
|
1653
1678
|
.json(payload => util.deserializeResult(payload))
|
|
1654
1679
|
.then(f => f, util.onRejected);
|
|
1655
1680
|
}
|
|
1656
1681
|
}
|
|
1657
|
-
exports.
|
|
1658
|
-
class
|
|
1659
|
-
/** Do not construct this object directly, use the <code>
|
|
1682
|
+
exports.EdgesTCP = EdgesTCP;
|
|
1683
|
+
class TCPEdgeBackendModule {
|
|
1684
|
+
/** Do not construct this object directly, use the <code>tcpEdgeBackendModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1660
1685
|
constructor(httpClient) {
|
|
1661
1686
|
this.httpClient = httpClient;
|
|
1662
1687
|
}
|
|
1663
1688
|
replace(arg) {
|
|
1664
1689
|
return this.httpClient
|
|
1665
|
-
.url(`/
|
|
1690
|
+
.url(`/edges/tcp/${arg.id}/backend`)
|
|
1666
1691
|
.put(util.serializeArgument(arg))
|
|
1667
1692
|
.json(payload => util.deserializeResult(payload))
|
|
1668
1693
|
.then(f => f, util.onRejected);
|
|
1669
1694
|
}
|
|
1670
|
-
get(arg) {
|
|
1695
|
+
get(arg) {
|
|
1696
|
+
return this.httpClient
|
|
1697
|
+
.url(`/edges/tcp/${arg.id}/backend`)
|
|
1698
|
+
.get()
|
|
1699
|
+
.json(payload => util.deserializeResult(payload))
|
|
1700
|
+
.then(f => f, util.onRejected);
|
|
1701
|
+
}
|
|
1702
|
+
delete(arg) {
|
|
1703
|
+
return this.httpClient
|
|
1704
|
+
.url(`/edges/tcp/${arg.id}/backend`)
|
|
1705
|
+
.delete()
|
|
1706
|
+
.json(payload => util.deserializeResult(payload))
|
|
1707
|
+
.then(f => f, util.onRejected);
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
exports.TCPEdgeBackendModule = TCPEdgeBackendModule;
|
|
1711
|
+
class TCPEdgeIPRestrictionModule {
|
|
1712
|
+
/** Do not construct this object directly, use the <code>tcpEdgeIpRestrictionModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1713
|
+
constructor(httpClient) {
|
|
1714
|
+
this.httpClient = httpClient;
|
|
1715
|
+
}
|
|
1716
|
+
replace(arg) {
|
|
1717
|
+
return this.httpClient
|
|
1718
|
+
.url(`/edges/tcp/${arg.id}/ip_restriction`)
|
|
1719
|
+
.put(util.serializeArgument(arg))
|
|
1720
|
+
.json(payload => util.deserializeResult(payload))
|
|
1721
|
+
.then(f => f, util.onRejected);
|
|
1722
|
+
}
|
|
1723
|
+
get(arg) {
|
|
1724
|
+
return this.httpClient
|
|
1725
|
+
.url(`/edges/tcp/${arg.id}/ip_restriction`)
|
|
1726
|
+
.get()
|
|
1727
|
+
.json(payload => util.deserializeResult(payload))
|
|
1728
|
+
.then(f => f, util.onRejected);
|
|
1729
|
+
}
|
|
1730
|
+
delete(arg) {
|
|
1731
|
+
return this.httpClient
|
|
1732
|
+
.url(`/edges/tcp/${arg.id}/ip_restriction`)
|
|
1733
|
+
.delete()
|
|
1734
|
+
.json(payload => util.deserializeResult(payload))
|
|
1735
|
+
.then(f => f, util.onRejected);
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
exports.TCPEdgeIPRestrictionModule = TCPEdgeIPRestrictionModule;
|
|
1739
|
+
class EdgesTLS {
|
|
1740
|
+
/** Do not construct this object directly, use the <code>edgesTls</code> property of an <code>Ngrok</code> client object instead. */
|
|
1741
|
+
constructor(httpClient) {
|
|
1742
|
+
this.httpClient = httpClient;
|
|
1743
|
+
}
|
|
1744
|
+
/**
|
|
1745
|
+
* Create a TLS Edge
|
|
1746
|
+
*/
|
|
1747
|
+
create(arg) {
|
|
1748
|
+
return this.httpClient
|
|
1749
|
+
.url(`/edges/tls`)
|
|
1750
|
+
.post(util.serializeArgument(arg))
|
|
1751
|
+
.json(payload => util.deserializeResult(payload))
|
|
1752
|
+
.then(f => f, util.onRejected);
|
|
1753
|
+
}
|
|
1754
|
+
/**
|
|
1755
|
+
* Get a TLS Edge by ID
|
|
1756
|
+
*/
|
|
1757
|
+
get(arg) {
|
|
1758
|
+
return this.httpClient
|
|
1759
|
+
.url(`/edges/tls/${arg.id}`)
|
|
1760
|
+
.get()
|
|
1761
|
+
.json(payload => util.deserializeResult(payload))
|
|
1762
|
+
.then(f => f, util.onRejected);
|
|
1763
|
+
}
|
|
1764
|
+
/**
|
|
1765
|
+
* Returns a list of all TLS Edges on this account
|
|
1766
|
+
*/
|
|
1767
|
+
list() {
|
|
1768
|
+
var e_11, _a;
|
|
1769
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1770
|
+
const array = [];
|
|
1771
|
+
try {
|
|
1772
|
+
for (
|
|
1773
|
+
var _b = __asyncValues(this._asyncList()), _c;
|
|
1774
|
+
(_c = yield _b.next()), !_c.done;
|
|
1775
|
+
|
|
1776
|
+
) {
|
|
1777
|
+
let item = _c.value;
|
|
1778
|
+
array.push(item);
|
|
1779
|
+
}
|
|
1780
|
+
} catch (e_11_1) {
|
|
1781
|
+
e_11 = { error: e_11_1 };
|
|
1782
|
+
} finally {
|
|
1783
|
+
try {
|
|
1784
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1785
|
+
} finally {
|
|
1786
|
+
if (e_11) throw e_11.error;
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
return array;
|
|
1790
|
+
});
|
|
1791
|
+
}
|
|
1792
|
+
_pagedList(arg) {
|
|
1793
|
+
return this.httpClient
|
|
1794
|
+
.url(`/edges/tls`)
|
|
1795
|
+
.query(arg)
|
|
1796
|
+
.get()
|
|
1797
|
+
.json(payload => util.deserializeResult(payload))
|
|
1798
|
+
.then(util.onFulfilled, util.onRejected);
|
|
1799
|
+
}
|
|
1800
|
+
_asyncList() {
|
|
1801
|
+
return __asyncGenerator(this, arguments, function* _asyncList_11() {
|
|
1802
|
+
const limit = '100';
|
|
1803
|
+
let nextPage = 'initial loop';
|
|
1804
|
+
let page = { limit: limit };
|
|
1805
|
+
while (nextPage) {
|
|
1806
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
1807
|
+
nextPage = pagedList.nextPageUri;
|
|
1808
|
+
const items = pagedList.tlsEdges;
|
|
1809
|
+
if (nextPage) {
|
|
1810
|
+
page = {
|
|
1811
|
+
beforeId: items[items.length - 1].id,
|
|
1812
|
+
limit: limit,
|
|
1813
|
+
};
|
|
1814
|
+
}
|
|
1815
|
+
for (let item of items) {
|
|
1816
|
+
yield yield __await(item);
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
});
|
|
1820
|
+
}
|
|
1821
|
+
/**
|
|
1822
|
+
* Updates a TLS Edge by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.
|
|
1823
|
+
*/
|
|
1824
|
+
update(arg) {
|
|
1825
|
+
return this.httpClient
|
|
1826
|
+
.url(`/edges/tls/${arg.id}`)
|
|
1827
|
+
.patch(util.serializeArgument(arg))
|
|
1828
|
+
.json(payload => util.deserializeResult(payload))
|
|
1829
|
+
.then(f => f, util.onRejected);
|
|
1830
|
+
}
|
|
1831
|
+
/**
|
|
1832
|
+
* Delete a TLS Edge by ID
|
|
1833
|
+
*/
|
|
1834
|
+
delete(arg) {
|
|
1835
|
+
return this.httpClient
|
|
1836
|
+
.url(`/edges/tls/${arg.id}`)
|
|
1837
|
+
.delete()
|
|
1838
|
+
.json(payload => util.deserializeResult(payload))
|
|
1839
|
+
.then(f => f, util.onRejected);
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
exports.EdgesTLS = EdgesTLS;
|
|
1843
|
+
class TLSEdgeBackendModule {
|
|
1844
|
+
/** Do not construct this object directly, use the <code>tlsEdgeBackendModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1845
|
+
constructor(httpClient) {
|
|
1846
|
+
this.httpClient = httpClient;
|
|
1847
|
+
}
|
|
1848
|
+
replace(arg) {
|
|
1849
|
+
return this.httpClient
|
|
1850
|
+
.url(`/edges/tls/${arg.id}/backend`)
|
|
1851
|
+
.put(util.serializeArgument(arg))
|
|
1852
|
+
.json(payload => util.deserializeResult(payload))
|
|
1853
|
+
.then(f => f, util.onRejected);
|
|
1854
|
+
}
|
|
1855
|
+
get(arg) {
|
|
1856
|
+
return this.httpClient
|
|
1857
|
+
.url(`/edges/tls/${arg.id}/backend`)
|
|
1858
|
+
.get()
|
|
1859
|
+
.json(payload => util.deserializeResult(payload))
|
|
1860
|
+
.then(f => f, util.onRejected);
|
|
1861
|
+
}
|
|
1862
|
+
delete(arg) {
|
|
1863
|
+
return this.httpClient
|
|
1864
|
+
.url(`/edges/tls/${arg.id}/backend`)
|
|
1865
|
+
.delete()
|
|
1866
|
+
.json(payload => util.deserializeResult(payload))
|
|
1867
|
+
.then(f => f, util.onRejected);
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
exports.TLSEdgeBackendModule = TLSEdgeBackendModule;
|
|
1871
|
+
class TLSEdgeIPRestrictionModule {
|
|
1872
|
+
/** Do not construct this object directly, use the <code>tlsEdgeIpRestrictionModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1873
|
+
constructor(httpClient) {
|
|
1874
|
+
this.httpClient = httpClient;
|
|
1875
|
+
}
|
|
1876
|
+
replace(arg) {
|
|
1877
|
+
return this.httpClient
|
|
1878
|
+
.url(`/edges/tls/${arg.id}/ip_restriction`)
|
|
1879
|
+
.put(util.serializeArgument(arg))
|
|
1880
|
+
.json(payload => util.deserializeResult(payload))
|
|
1881
|
+
.then(f => f, util.onRejected);
|
|
1882
|
+
}
|
|
1883
|
+
get(arg) {
|
|
1884
|
+
return this.httpClient
|
|
1885
|
+
.url(`/edges/tls/${arg.id}/ip_restriction`)
|
|
1886
|
+
.get()
|
|
1887
|
+
.json(payload => util.deserializeResult(payload))
|
|
1888
|
+
.then(f => f, util.onRejected);
|
|
1889
|
+
}
|
|
1890
|
+
delete(arg) {
|
|
1891
|
+
return this.httpClient
|
|
1892
|
+
.url(`/edges/tls/${arg.id}/ip_restriction`)
|
|
1893
|
+
.delete()
|
|
1894
|
+
.json(payload => util.deserializeResult(payload))
|
|
1895
|
+
.then(f => f, util.onRejected);
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
exports.TLSEdgeIPRestrictionModule = TLSEdgeIPRestrictionModule;
|
|
1899
|
+
class TLSEdgeMutualTLSModule {
|
|
1900
|
+
/** Do not construct this object directly, use the <code>tlsEdgeMutualTlsModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1901
|
+
constructor(httpClient) {
|
|
1902
|
+
this.httpClient = httpClient;
|
|
1903
|
+
}
|
|
1904
|
+
replace(arg) {
|
|
1905
|
+
return this.httpClient
|
|
1906
|
+
.url(`/edges/tls/${arg.id}/mutual_tls`)
|
|
1907
|
+
.put(util.serializeArgument(arg))
|
|
1908
|
+
.json(payload => util.deserializeResult(payload))
|
|
1909
|
+
.then(f => f, util.onRejected);
|
|
1910
|
+
}
|
|
1911
|
+
get(arg) {
|
|
1912
|
+
return this.httpClient
|
|
1913
|
+
.url(`/edges/tls/${arg.id}/mutual_tls`)
|
|
1914
|
+
.get()
|
|
1915
|
+
.json(payload => util.deserializeResult(payload))
|
|
1916
|
+
.then(f => f, util.onRejected);
|
|
1917
|
+
}
|
|
1918
|
+
delete(arg) {
|
|
1919
|
+
return this.httpClient
|
|
1920
|
+
.url(`/edges/tls/${arg.id}/mutual_tls`)
|
|
1921
|
+
.delete()
|
|
1922
|
+
.json(payload => util.deserializeResult(payload))
|
|
1923
|
+
.then(f => f, util.onRejected);
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
exports.TLSEdgeMutualTLSModule = TLSEdgeMutualTLSModule;
|
|
1927
|
+
class TLSEdgeTLSTerminationModule {
|
|
1928
|
+
/** Do not construct this object directly, use the <code>tlsEdgeTlsTerminationModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1929
|
+
constructor(httpClient) {
|
|
1930
|
+
this.httpClient = httpClient;
|
|
1931
|
+
}
|
|
1932
|
+
replace(arg) {
|
|
1933
|
+
return this.httpClient
|
|
1934
|
+
.url(`/edges/tls/${arg.id}/tls_termination`)
|
|
1935
|
+
.put(util.serializeArgument(arg))
|
|
1936
|
+
.json(payload => util.deserializeResult(payload))
|
|
1937
|
+
.then(f => f, util.onRejected);
|
|
1938
|
+
}
|
|
1939
|
+
get(arg) {
|
|
1940
|
+
return this.httpClient
|
|
1941
|
+
.url(`/edges/tls/${arg.id}/tls_termination`)
|
|
1942
|
+
.get()
|
|
1943
|
+
.json(payload => util.deserializeResult(payload))
|
|
1944
|
+
.then(f => f, util.onRejected);
|
|
1945
|
+
}
|
|
1946
|
+
delete(arg) {
|
|
1947
|
+
return this.httpClient
|
|
1948
|
+
.url(`/edges/tls/${arg.id}/tls_termination`)
|
|
1949
|
+
.delete()
|
|
1950
|
+
.json(payload => util.deserializeResult(payload))
|
|
1951
|
+
.then(f => f, util.onRejected);
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
exports.TLSEdgeTLSTerminationModule = TLSEdgeTLSTerminationModule;
|
|
1955
|
+
/**
|
|
1956
|
+
* Endpoints provides an API for querying the endpoint objects
|
|
1957
|
+
which define what tunnel or edge is used to serve a hostport.
|
|
1958
|
+
Only active endpoints associated with a tunnel or backend are returned.
|
|
1959
|
+
*/
|
|
1960
|
+
class Endpoints {
|
|
1961
|
+
/** Do not construct this object directly, use the <code>endpoints</code> property of an <code>Ngrok</code> client object instead. */
|
|
1962
|
+
constructor(httpClient) {
|
|
1963
|
+
this.httpClient = httpClient;
|
|
1964
|
+
}
|
|
1965
|
+
/**
|
|
1966
|
+
* List all active endpoints on the account
|
|
1967
|
+
*/
|
|
1968
|
+
list() {
|
|
1969
|
+
var e_12, _a;
|
|
1970
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1971
|
+
const array = [];
|
|
1972
|
+
try {
|
|
1973
|
+
for (
|
|
1974
|
+
var _b = __asyncValues(this._asyncList()), _c;
|
|
1975
|
+
(_c = yield _b.next()), !_c.done;
|
|
1976
|
+
|
|
1977
|
+
) {
|
|
1978
|
+
let item = _c.value;
|
|
1979
|
+
array.push(item);
|
|
1980
|
+
}
|
|
1981
|
+
} catch (e_12_1) {
|
|
1982
|
+
e_12 = { error: e_12_1 };
|
|
1983
|
+
} finally {
|
|
1984
|
+
try {
|
|
1985
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1986
|
+
} finally {
|
|
1987
|
+
if (e_12) throw e_12.error;
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
return array;
|
|
1991
|
+
});
|
|
1992
|
+
}
|
|
1993
|
+
_pagedList(arg) {
|
|
1994
|
+
return this.httpClient
|
|
1995
|
+
.url(`/endpoints`)
|
|
1996
|
+
.query(arg)
|
|
1997
|
+
.get()
|
|
1998
|
+
.json(payload => util.deserializeResult(payload))
|
|
1999
|
+
.then(util.onFulfilled, util.onRejected);
|
|
2000
|
+
}
|
|
2001
|
+
_asyncList() {
|
|
2002
|
+
return __asyncGenerator(this, arguments, function* _asyncList_12() {
|
|
2003
|
+
const limit = '100';
|
|
2004
|
+
let nextPage = 'initial loop';
|
|
2005
|
+
let page = { limit: limit };
|
|
2006
|
+
while (nextPage) {
|
|
2007
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
2008
|
+
nextPage = pagedList.nextPageUri;
|
|
2009
|
+
const items = pagedList.endpoints;
|
|
2010
|
+
if (nextPage) {
|
|
2011
|
+
page = {
|
|
2012
|
+
beforeId: items[items.length - 1].id,
|
|
2013
|
+
limit: limit,
|
|
2014
|
+
};
|
|
2015
|
+
}
|
|
2016
|
+
for (let item of items) {
|
|
2017
|
+
yield yield __await(item);
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
});
|
|
2021
|
+
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Get the status of an endpoint by ID
|
|
2024
|
+
*/
|
|
2025
|
+
get(arg) {
|
|
2026
|
+
return this.httpClient
|
|
2027
|
+
.url(`/endpoints/${arg.id}`)
|
|
2028
|
+
.get()
|
|
2029
|
+
.json(payload => util.deserializeResult(payload))
|
|
2030
|
+
.then(f => f, util.onRejected);
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
exports.Endpoints = Endpoints;
|
|
2034
|
+
class EventDestinations {
|
|
2035
|
+
/** Do not construct this object directly, use the <code>eventDestinations</code> property of an <code>Ngrok</code> client object instead. */
|
|
2036
|
+
constructor(httpClient) {
|
|
2037
|
+
this.httpClient = httpClient;
|
|
2038
|
+
}
|
|
2039
|
+
/**
|
|
2040
|
+
* Create a new Event Destination. It will not apply to anything until it is associated with an Event Stream, and that Event Stream is associated with an Endpoint Config.
|
|
2041
|
+
*/
|
|
2042
|
+
create(arg) {
|
|
2043
|
+
return this.httpClient
|
|
2044
|
+
.url(`/event_destinations`)
|
|
2045
|
+
.post(util.serializeArgument(arg))
|
|
2046
|
+
.json(payload => util.deserializeResult(payload))
|
|
2047
|
+
.then(f => f, util.onRejected);
|
|
2048
|
+
}
|
|
2049
|
+
/**
|
|
2050
|
+
* Delete an Event Destination. If the Event Destination is still referenced by an Event Subscription.
|
|
2051
|
+
*/
|
|
2052
|
+
delete(arg) {
|
|
2053
|
+
return this.httpClient
|
|
2054
|
+
.url(`/event_destinations/${arg.id}`)
|
|
2055
|
+
.delete()
|
|
2056
|
+
.json(payload => util.deserializeResult(payload))
|
|
2057
|
+
.then(f => f, util.onRejected);
|
|
2058
|
+
}
|
|
2059
|
+
/**
|
|
2060
|
+
* Get detailed information about an Event Destination by ID.
|
|
2061
|
+
*/
|
|
2062
|
+
get(arg) {
|
|
2063
|
+
return this.httpClient
|
|
2064
|
+
.url(`/event_destinations/${arg.id}`)
|
|
2065
|
+
.get()
|
|
2066
|
+
.json(payload => util.deserializeResult(payload))
|
|
2067
|
+
.then(f => f, util.onRejected);
|
|
2068
|
+
}
|
|
2069
|
+
/**
|
|
2070
|
+
* List all Event Destinations on this account.
|
|
2071
|
+
*/
|
|
2072
|
+
list() {
|
|
2073
|
+
var e_13, _a;
|
|
2074
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2075
|
+
const array = [];
|
|
2076
|
+
try {
|
|
2077
|
+
for (
|
|
2078
|
+
var _b = __asyncValues(this._asyncList()), _c;
|
|
2079
|
+
(_c = yield _b.next()), !_c.done;
|
|
2080
|
+
|
|
2081
|
+
) {
|
|
2082
|
+
let item = _c.value;
|
|
2083
|
+
array.push(item);
|
|
2084
|
+
}
|
|
2085
|
+
} catch (e_13_1) {
|
|
2086
|
+
e_13 = { error: e_13_1 };
|
|
2087
|
+
} finally {
|
|
2088
|
+
try {
|
|
2089
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2090
|
+
} finally {
|
|
2091
|
+
if (e_13) throw e_13.error;
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
return array;
|
|
2095
|
+
});
|
|
2096
|
+
}
|
|
2097
|
+
_pagedList(arg) {
|
|
2098
|
+
return this.httpClient
|
|
2099
|
+
.url(`/event_destinations`)
|
|
2100
|
+
.query(arg)
|
|
2101
|
+
.get()
|
|
2102
|
+
.json(payload => util.deserializeResult(payload))
|
|
2103
|
+
.then(util.onFulfilled, util.onRejected);
|
|
2104
|
+
}
|
|
2105
|
+
_asyncList() {
|
|
2106
|
+
return __asyncGenerator(this, arguments, function* _asyncList_13() {
|
|
2107
|
+
const limit = '100';
|
|
2108
|
+
let nextPage = 'initial loop';
|
|
2109
|
+
let page = { limit: limit };
|
|
2110
|
+
while (nextPage) {
|
|
2111
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
2112
|
+
nextPage = pagedList.nextPageUri;
|
|
2113
|
+
const items = pagedList.eventDestinations;
|
|
2114
|
+
if (nextPage) {
|
|
2115
|
+
page = {
|
|
2116
|
+
beforeId: items[items.length - 1].id,
|
|
2117
|
+
limit: limit,
|
|
2118
|
+
};
|
|
2119
|
+
}
|
|
2120
|
+
for (let item of items) {
|
|
2121
|
+
yield yield __await(item);
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
});
|
|
2125
|
+
}
|
|
2126
|
+
/**
|
|
2127
|
+
* Update attributes of an Event Destination.
|
|
2128
|
+
*/
|
|
2129
|
+
update(arg) {
|
|
2130
|
+
return this.httpClient
|
|
2131
|
+
.url(`/event_destinations/${arg.id}`)
|
|
2132
|
+
.patch(util.serializeArgument(arg))
|
|
2133
|
+
.json(payload => util.deserializeResult(payload))
|
|
2134
|
+
.then(f => f, util.onRejected);
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
exports.EventDestinations = EventDestinations;
|
|
2138
|
+
class EventSubscriptions {
|
|
2139
|
+
/** Do not construct this object directly, use the <code>eventSubscriptions</code> property of an <code>Ngrok</code> client object instead. */
|
|
2140
|
+
constructor(httpClient) {
|
|
2141
|
+
this.httpClient = httpClient;
|
|
2142
|
+
}
|
|
2143
|
+
/**
|
|
2144
|
+
* Create an Event Subscription.
|
|
2145
|
+
*/
|
|
2146
|
+
create(arg) {
|
|
2147
|
+
return this.httpClient
|
|
2148
|
+
.url(`/event_subscriptions`)
|
|
2149
|
+
.post(util.serializeArgument(arg))
|
|
2150
|
+
.json(payload => util.deserializeResult(payload))
|
|
2151
|
+
.then(f => f, util.onRejected);
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
* Delete an Event Subscription.
|
|
2155
|
+
*/
|
|
2156
|
+
delete(arg) {
|
|
2157
|
+
return this.httpClient
|
|
2158
|
+
.url(`/event_subscriptions/${arg.id}`)
|
|
2159
|
+
.delete()
|
|
2160
|
+
.json(payload => util.deserializeResult(payload))
|
|
2161
|
+
.then(f => f, util.onRejected);
|
|
2162
|
+
}
|
|
2163
|
+
/**
|
|
2164
|
+
* Get an Event Subscription by ID.
|
|
2165
|
+
*/
|
|
2166
|
+
get(arg) {
|
|
2167
|
+
return this.httpClient
|
|
2168
|
+
.url(`/event_subscriptions/${arg.id}`)
|
|
2169
|
+
.get()
|
|
2170
|
+
.json(payload => util.deserializeResult(payload))
|
|
2171
|
+
.then(f => f, util.onRejected);
|
|
2172
|
+
}
|
|
2173
|
+
/**
|
|
2174
|
+
* List this Account's Event Subscriptions.
|
|
2175
|
+
*/
|
|
2176
|
+
list() {
|
|
2177
|
+
var e_14, _a;
|
|
2178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2179
|
+
const array = [];
|
|
2180
|
+
try {
|
|
2181
|
+
for (
|
|
2182
|
+
var _b = __asyncValues(this._asyncList()), _c;
|
|
2183
|
+
(_c = yield _b.next()), !_c.done;
|
|
2184
|
+
|
|
2185
|
+
) {
|
|
2186
|
+
let item = _c.value;
|
|
2187
|
+
array.push(item);
|
|
2188
|
+
}
|
|
2189
|
+
} catch (e_14_1) {
|
|
2190
|
+
e_14 = { error: e_14_1 };
|
|
2191
|
+
} finally {
|
|
2192
|
+
try {
|
|
2193
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2194
|
+
} finally {
|
|
2195
|
+
if (e_14) throw e_14.error;
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
return array;
|
|
2199
|
+
});
|
|
2200
|
+
}
|
|
2201
|
+
_pagedList(arg) {
|
|
2202
|
+
return this.httpClient
|
|
2203
|
+
.url(`/event_subscriptions`)
|
|
2204
|
+
.query(arg)
|
|
2205
|
+
.get()
|
|
2206
|
+
.json(payload => util.deserializeResult(payload))
|
|
2207
|
+
.then(util.onFulfilled, util.onRejected);
|
|
2208
|
+
}
|
|
2209
|
+
_asyncList() {
|
|
2210
|
+
return __asyncGenerator(this, arguments, function* _asyncList_14() {
|
|
2211
|
+
const limit = '100';
|
|
2212
|
+
let nextPage = 'initial loop';
|
|
2213
|
+
let page = { limit: limit };
|
|
2214
|
+
while (nextPage) {
|
|
2215
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
2216
|
+
nextPage = pagedList.nextPageUri;
|
|
2217
|
+
const items = pagedList.eventSubscriptions;
|
|
2218
|
+
if (nextPage) {
|
|
2219
|
+
page = {
|
|
2220
|
+
beforeId: items[items.length - 1].id,
|
|
2221
|
+
limit: limit,
|
|
2222
|
+
};
|
|
2223
|
+
}
|
|
2224
|
+
for (let item of items) {
|
|
2225
|
+
yield yield __await(item);
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
});
|
|
2229
|
+
}
|
|
2230
|
+
/**
|
|
2231
|
+
* Update an Event Subscription.
|
|
2232
|
+
*/
|
|
2233
|
+
update(arg) {
|
|
2234
|
+
return this.httpClient
|
|
2235
|
+
.url(`/event_subscriptions/${arg.id}`)
|
|
2236
|
+
.patch(util.serializeArgument(arg))
|
|
2237
|
+
.json(payload => util.deserializeResult(payload))
|
|
2238
|
+
.then(f => f, util.onRejected);
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
exports.EventSubscriptions = EventSubscriptions;
|
|
2242
|
+
class EventSources {
|
|
2243
|
+
/** Do not construct this object directly, use the <code>eventSources</code> property of an <code>Ngrok</code> client object instead. */
|
|
2244
|
+
constructor(httpClient) {
|
|
2245
|
+
this.httpClient = httpClient;
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
* Add an additional type for which this event subscription will trigger
|
|
2249
|
+
*/
|
|
2250
|
+
create(arg) {
|
|
2251
|
+
return this.httpClient
|
|
2252
|
+
.url(`/event_subscriptions/${arg.subscriptionId}/sources`)
|
|
2253
|
+
.post(util.serializeArgument(arg))
|
|
2254
|
+
.json(payload => util.deserializeResult(payload))
|
|
2255
|
+
.then(f => f, util.onRejected);
|
|
2256
|
+
}
|
|
2257
|
+
/**
|
|
2258
|
+
* Remove a type for which this event subscription will trigger
|
|
2259
|
+
*/
|
|
2260
|
+
delete(arg) {
|
|
2261
|
+
return this.httpClient
|
|
2262
|
+
.url(`/event_subscriptions/${arg.subscriptionId}/sources/${arg.type}`)
|
|
2263
|
+
.delete()
|
|
2264
|
+
.json(payload => util.deserializeResult(payload))
|
|
2265
|
+
.then(f => f, util.onRejected);
|
|
2266
|
+
}
|
|
2267
|
+
/**
|
|
2268
|
+
* Get the details for a given type that triggers for the given event subscription
|
|
2269
|
+
*/
|
|
2270
|
+
get(arg) {
|
|
2271
|
+
return this.httpClient
|
|
2272
|
+
.url(`/event_subscriptions/${arg.subscriptionId}/sources/${arg.type}`)
|
|
2273
|
+
.get()
|
|
2274
|
+
.json(payload => util.deserializeResult(payload))
|
|
2275
|
+
.then(f => f, util.onRejected);
|
|
2276
|
+
}
|
|
2277
|
+
/**
|
|
2278
|
+
* List the types for which this event subscription will trigger
|
|
2279
|
+
*/
|
|
2280
|
+
list(arg) {
|
|
2281
|
+
return this.httpClient
|
|
2282
|
+
.url(`/event_subscriptions/${arg.subscriptionId}/sources`)
|
|
2283
|
+
.get()
|
|
2284
|
+
.json(payload => util.deserializeResult(payload))
|
|
2285
|
+
.then(f => f, util.onRejected);
|
|
2286
|
+
}
|
|
2287
|
+
/**
|
|
2288
|
+
* Update the type for which this event subscription will trigger
|
|
2289
|
+
*/
|
|
2290
|
+
update(arg) {
|
|
2291
|
+
return this.httpClient
|
|
2292
|
+
.url(`/event_subscriptions/${arg.subscriptionId}/sources/${arg.type}`)
|
|
2293
|
+
.patch(util.serializeArgument(arg))
|
|
2294
|
+
.json(payload => util.deserializeResult(payload))
|
|
2295
|
+
.then(f => f, util.onRejected);
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
exports.EventSources = EventSources;
|
|
2299
|
+
/**
|
|
2300
|
+
* IP Policies are reusable groups of CIDR ranges with an `allow` or `deny`
|
|
2301
|
+
action. They can be attached to endpoints via the Endpoint Configuration IP
|
|
2302
|
+
Policy module. They can also be used with IP Restrictions to control source
|
|
2303
|
+
IP ranges that can start tunnel sessions and connect to the API and dashboard.
|
|
2304
|
+
*/
|
|
2305
|
+
class IPPolicies {
|
|
2306
|
+
/** Do not construct this object directly, use the <code>ipPolicies</code> property of an <code>Ngrok</code> client object instead. */
|
|
2307
|
+
constructor(httpClient) {
|
|
2308
|
+
this.httpClient = httpClient;
|
|
2309
|
+
}
|
|
2310
|
+
/**
|
|
2311
|
+
* Create a new IP policy. It will not apply to any traffic until you associate to a traffic source via an endpoint configuration or IP restriction.
|
|
2312
|
+
*/
|
|
2313
|
+
create(arg) {
|
|
2314
|
+
return this.httpClient
|
|
2315
|
+
.url(`/ip_policies`)
|
|
2316
|
+
.post(util.serializeArgument(arg))
|
|
2317
|
+
.json(payload => util.deserializeResult(payload))
|
|
2318
|
+
.then(f => f, util.onRejected);
|
|
2319
|
+
}
|
|
2320
|
+
/**
|
|
2321
|
+
* Delete an IP policy. If the IP policy is referenced by another object for the purposes of traffic restriction it will be treated as if the IP policy remains but has zero rules.
|
|
2322
|
+
*/
|
|
2323
|
+
delete(arg) {
|
|
2324
|
+
return this.httpClient
|
|
2325
|
+
.url(`/ip_policies/${arg.id}`)
|
|
2326
|
+
.delete()
|
|
2327
|
+
.json(payload => util.deserializeResult(payload))
|
|
2328
|
+
.then(f => f, util.onRejected);
|
|
2329
|
+
}
|
|
2330
|
+
/**
|
|
2331
|
+
* Get detailed information about an IP policy by ID.
|
|
2332
|
+
*/
|
|
2333
|
+
get(arg) {
|
|
2334
|
+
return this.httpClient
|
|
2335
|
+
.url(`/ip_policies/${arg.id}`)
|
|
2336
|
+
.get()
|
|
2337
|
+
.json(payload => util.deserializeResult(payload))
|
|
2338
|
+
.then(f => f, util.onRejected);
|
|
2339
|
+
}
|
|
2340
|
+
/**
|
|
2341
|
+
* List all IP policies on this account
|
|
2342
|
+
*/
|
|
2343
|
+
list() {
|
|
2344
|
+
var e_15, _a;
|
|
2345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2346
|
+
const array = [];
|
|
2347
|
+
try {
|
|
2348
|
+
for (
|
|
2349
|
+
var _b = __asyncValues(this._asyncList()), _c;
|
|
2350
|
+
(_c = yield _b.next()), !_c.done;
|
|
2351
|
+
|
|
2352
|
+
) {
|
|
2353
|
+
let item = _c.value;
|
|
2354
|
+
array.push(item);
|
|
2355
|
+
}
|
|
2356
|
+
} catch (e_15_1) {
|
|
2357
|
+
e_15 = { error: e_15_1 };
|
|
2358
|
+
} finally {
|
|
2359
|
+
try {
|
|
2360
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2361
|
+
} finally {
|
|
2362
|
+
if (e_15) throw e_15.error;
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
return array;
|
|
2366
|
+
});
|
|
2367
|
+
}
|
|
2368
|
+
_pagedList(arg) {
|
|
2369
|
+
return this.httpClient
|
|
2370
|
+
.url(`/ip_policies`)
|
|
2371
|
+
.query(arg)
|
|
2372
|
+
.get()
|
|
2373
|
+
.json(payload => util.deserializeResult(payload))
|
|
2374
|
+
.then(util.onFulfilled, util.onRejected);
|
|
2375
|
+
}
|
|
2376
|
+
_asyncList() {
|
|
2377
|
+
return __asyncGenerator(this, arguments, function* _asyncList_15() {
|
|
2378
|
+
const limit = '100';
|
|
2379
|
+
let nextPage = 'initial loop';
|
|
2380
|
+
let page = { limit: limit };
|
|
2381
|
+
while (nextPage) {
|
|
2382
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
2383
|
+
nextPage = pagedList.nextPageUri;
|
|
2384
|
+
const items = pagedList.ipPolicies;
|
|
2385
|
+
if (nextPage) {
|
|
2386
|
+
page = {
|
|
2387
|
+
beforeId: items[items.length - 1].id,
|
|
2388
|
+
limit: limit,
|
|
2389
|
+
};
|
|
2390
|
+
}
|
|
2391
|
+
for (let item of items) {
|
|
2392
|
+
yield yield __await(item);
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
});
|
|
2396
|
+
}
|
|
2397
|
+
/**
|
|
2398
|
+
* Update attributes of an IP policy by ID
|
|
2399
|
+
*/
|
|
2400
|
+
update(arg) {
|
|
2401
|
+
return this.httpClient
|
|
2402
|
+
.url(`/ip_policies/${arg.id}`)
|
|
2403
|
+
.patch(util.serializeArgument(arg))
|
|
2404
|
+
.json(payload => util.deserializeResult(payload))
|
|
2405
|
+
.then(f => f, util.onRejected);
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
exports.IPPolicies = IPPolicies;
|
|
2409
|
+
/**
|
|
2410
|
+
* IP Policy Rules are the IPv4 or IPv6 CIDRs entries that
|
|
2411
|
+
make up an IP Policy.
|
|
2412
|
+
*/
|
|
2413
|
+
class IPPolicyRules {
|
|
2414
|
+
/** Do not construct this object directly, use the <code>ipPolicyRules</code> property of an <code>Ngrok</code> client object instead. */
|
|
2415
|
+
constructor(httpClient) {
|
|
2416
|
+
this.httpClient = httpClient;
|
|
2417
|
+
}
|
|
2418
|
+
/**
|
|
2419
|
+
* Create a new IP policy rule attached to an IP Policy.
|
|
2420
|
+
*/
|
|
2421
|
+
create(arg) {
|
|
2422
|
+
return this.httpClient
|
|
2423
|
+
.url(`/ip_policy_rules`)
|
|
2424
|
+
.post(util.serializeArgument(arg))
|
|
2425
|
+
.json(payload => util.deserializeResult(payload))
|
|
2426
|
+
.then(f => f, util.onRejected);
|
|
2427
|
+
}
|
|
2428
|
+
/**
|
|
2429
|
+
* Delete an IP policy rule.
|
|
2430
|
+
*/
|
|
2431
|
+
delete(arg) {
|
|
2432
|
+
return this.httpClient
|
|
2433
|
+
.url(`/ip_policy_rules/${arg.id}`)
|
|
2434
|
+
.delete()
|
|
2435
|
+
.json(payload => util.deserializeResult(payload))
|
|
2436
|
+
.then(f => f, util.onRejected);
|
|
2437
|
+
}
|
|
2438
|
+
/**
|
|
2439
|
+
* Get detailed information about an IP policy rule by ID.
|
|
2440
|
+
*/
|
|
2441
|
+
get(arg) {
|
|
2442
|
+
return this.httpClient
|
|
2443
|
+
.url(`/ip_policy_rules/${arg.id}`)
|
|
2444
|
+
.get()
|
|
2445
|
+
.json(payload => util.deserializeResult(payload))
|
|
2446
|
+
.then(f => f, util.onRejected);
|
|
2447
|
+
}
|
|
2448
|
+
/**
|
|
2449
|
+
* List all IP policy rules on this account
|
|
2450
|
+
*/
|
|
2451
|
+
list() {
|
|
2452
|
+
var e_16, _a;
|
|
2453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2454
|
+
const array = [];
|
|
2455
|
+
try {
|
|
2456
|
+
for (
|
|
2457
|
+
var _b = __asyncValues(this._asyncList()), _c;
|
|
2458
|
+
(_c = yield _b.next()), !_c.done;
|
|
2459
|
+
|
|
2460
|
+
) {
|
|
2461
|
+
let item = _c.value;
|
|
2462
|
+
array.push(item);
|
|
2463
|
+
}
|
|
2464
|
+
} catch (e_16_1) {
|
|
2465
|
+
e_16 = { error: e_16_1 };
|
|
2466
|
+
} finally {
|
|
2467
|
+
try {
|
|
2468
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2469
|
+
} finally {
|
|
2470
|
+
if (e_16) throw e_16.error;
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
return array;
|
|
2474
|
+
});
|
|
2475
|
+
}
|
|
2476
|
+
_pagedList(arg) {
|
|
1671
2477
|
return this.httpClient
|
|
1672
|
-
.url(`/
|
|
2478
|
+
.url(`/ip_policy_rules`)
|
|
2479
|
+
.query(arg)
|
|
1673
2480
|
.get()
|
|
1674
2481
|
.json(payload => util.deserializeResult(payload))
|
|
1675
|
-
.then(
|
|
2482
|
+
.then(util.onFulfilled, util.onRejected);
|
|
1676
2483
|
}
|
|
1677
|
-
|
|
2484
|
+
_asyncList() {
|
|
2485
|
+
return __asyncGenerator(this, arguments, function* _asyncList_16() {
|
|
2486
|
+
const limit = '100';
|
|
2487
|
+
let nextPage = 'initial loop';
|
|
2488
|
+
let page = { limit: limit };
|
|
2489
|
+
while (nextPage) {
|
|
2490
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
2491
|
+
nextPage = pagedList.nextPageUri;
|
|
2492
|
+
const items = pagedList.ipPolicyRules;
|
|
2493
|
+
if (nextPage) {
|
|
2494
|
+
page = {
|
|
2495
|
+
beforeId: items[items.length - 1].id,
|
|
2496
|
+
limit: limit,
|
|
2497
|
+
};
|
|
2498
|
+
}
|
|
2499
|
+
for (let item of items) {
|
|
2500
|
+
yield yield __await(item);
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
});
|
|
2504
|
+
}
|
|
2505
|
+
/**
|
|
2506
|
+
* Update attributes of an IP policy rule by ID
|
|
2507
|
+
*/
|
|
2508
|
+
update(arg) {
|
|
1678
2509
|
return this.httpClient
|
|
1679
|
-
.url(`/
|
|
1680
|
-
.
|
|
2510
|
+
.url(`/ip_policy_rules/${arg.id}`)
|
|
2511
|
+
.patch(util.serializeArgument(arg))
|
|
1681
2512
|
.json(payload => util.deserializeResult(payload))
|
|
1682
2513
|
.then(f => f, util.onRejected);
|
|
1683
2514
|
}
|
|
1684
2515
|
}
|
|
1685
|
-
exports.
|
|
1686
|
-
|
|
1687
|
-
|
|
2516
|
+
exports.IPPolicyRules = IPPolicyRules;
|
|
2517
|
+
/**
|
|
2518
|
+
* An IP restriction is a restriction placed on the CIDRs that are allowed to
|
|
2519
|
+
initiate traffic to a specific aspect of your ngrok account. An IP
|
|
2520
|
+
restriction has a type which defines the ingress it applies to. IP
|
|
2521
|
+
restrictions can be used to enforce the source IPs that can make API
|
|
2522
|
+
requests, log in to the dashboard, start ngrok agents, and connect to your
|
|
2523
|
+
public-facing endpoints.
|
|
2524
|
+
*/
|
|
2525
|
+
class IPRestrictions {
|
|
2526
|
+
/** Do not construct this object directly, use the <code>ipRestrictions</code> property of an <code>Ngrok</code> client object instead. */
|
|
1688
2527
|
constructor(httpClient) {
|
|
1689
2528
|
this.httpClient = httpClient;
|
|
1690
2529
|
}
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
.json(payload => util.deserializeResult(payload))
|
|
1696
|
-
.then(f => f, util.onRejected);
|
|
1697
|
-
}
|
|
1698
|
-
get(arg) {
|
|
2530
|
+
/**
|
|
2531
|
+
* Create a new IP restriction
|
|
2532
|
+
*/
|
|
2533
|
+
create(arg) {
|
|
1699
2534
|
return this.httpClient
|
|
1700
|
-
.url(`/
|
|
1701
|
-
.
|
|
2535
|
+
.url(`/ip_restrictions`)
|
|
2536
|
+
.post(util.serializeArgument(arg))
|
|
1702
2537
|
.json(payload => util.deserializeResult(payload))
|
|
1703
2538
|
.then(f => f, util.onRejected);
|
|
1704
2539
|
}
|
|
2540
|
+
/**
|
|
2541
|
+
* Delete an IP restriction
|
|
2542
|
+
*/
|
|
1705
2543
|
delete(arg) {
|
|
1706
2544
|
return this.httpClient
|
|
1707
|
-
.url(`/
|
|
2545
|
+
.url(`/ip_restrictions/${arg.id}`)
|
|
1708
2546
|
.delete()
|
|
1709
2547
|
.json(payload => util.deserializeResult(payload))
|
|
1710
2548
|
.then(f => f, util.onRejected);
|
|
1711
2549
|
}
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
/** Do not construct this object directly, use the <code>endpointSamlModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1716
|
-
constructor(httpClient) {
|
|
1717
|
-
this.httpClient = httpClient;
|
|
1718
|
-
}
|
|
1719
|
-
replace(arg) {
|
|
1720
|
-
return this.httpClient
|
|
1721
|
-
.url(`/endpoint_configurations/${arg.id}/saml`)
|
|
1722
|
-
.put(util.serializeArgument(arg))
|
|
1723
|
-
.json(payload => util.deserializeResult(payload))
|
|
1724
|
-
.then(f => f, util.onRejected);
|
|
1725
|
-
}
|
|
2550
|
+
/**
|
|
2551
|
+
* Get detailed information about an IP restriction
|
|
2552
|
+
*/
|
|
1726
2553
|
get(arg) {
|
|
1727
2554
|
return this.httpClient
|
|
1728
|
-
.url(`/
|
|
2555
|
+
.url(`/ip_restrictions/${arg.id}`)
|
|
1729
2556
|
.get()
|
|
1730
2557
|
.json(payload => util.deserializeResult(payload))
|
|
1731
2558
|
.then(f => f, util.onRejected);
|
|
1732
2559
|
}
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
2560
|
+
/**
|
|
2561
|
+
* List all IP restrictions on this account
|
|
2562
|
+
*/
|
|
2563
|
+
list() {
|
|
2564
|
+
var e_17, _a;
|
|
2565
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2566
|
+
const array = [];
|
|
2567
|
+
try {
|
|
2568
|
+
for (
|
|
2569
|
+
var _b = __asyncValues(this._asyncList()), _c;
|
|
2570
|
+
(_c = yield _b.next()), !_c.done;
|
|
2571
|
+
|
|
2572
|
+
) {
|
|
2573
|
+
let item = _c.value;
|
|
2574
|
+
array.push(item);
|
|
2575
|
+
}
|
|
2576
|
+
} catch (e_17_1) {
|
|
2577
|
+
e_17 = { error: e_17_1 };
|
|
2578
|
+
} finally {
|
|
2579
|
+
try {
|
|
2580
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2581
|
+
} finally {
|
|
2582
|
+
if (e_17) throw e_17.error;
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
return array;
|
|
2586
|
+
});
|
|
1753
2587
|
}
|
|
1754
|
-
|
|
2588
|
+
_pagedList(arg) {
|
|
1755
2589
|
return this.httpClient
|
|
1756
|
-
.url(`/
|
|
2590
|
+
.url(`/ip_restrictions`)
|
|
2591
|
+
.query(arg)
|
|
1757
2592
|
.get()
|
|
1758
2593
|
.json(payload => util.deserializeResult(payload))
|
|
1759
|
-
.then(
|
|
2594
|
+
.then(util.onFulfilled, util.onRejected);
|
|
1760
2595
|
}
|
|
1761
|
-
|
|
2596
|
+
_asyncList() {
|
|
2597
|
+
return __asyncGenerator(this, arguments, function* _asyncList_17() {
|
|
2598
|
+
const limit = '100';
|
|
2599
|
+
let nextPage = 'initial loop';
|
|
2600
|
+
let page = { limit: limit };
|
|
2601
|
+
while (nextPage) {
|
|
2602
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
2603
|
+
nextPage = pagedList.nextPageUri;
|
|
2604
|
+
const items = pagedList.ipRestrictions;
|
|
2605
|
+
if (nextPage) {
|
|
2606
|
+
page = {
|
|
2607
|
+
beforeId: items[items.length - 1].id,
|
|
2608
|
+
limit: limit,
|
|
2609
|
+
};
|
|
2610
|
+
}
|
|
2611
|
+
for (let item of items) {
|
|
2612
|
+
yield yield __await(item);
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
});
|
|
2616
|
+
}
|
|
2617
|
+
/**
|
|
2618
|
+
* Update attributes of an IP restriction by ID
|
|
2619
|
+
*/
|
|
2620
|
+
update(arg) {
|
|
1762
2621
|
return this.httpClient
|
|
1763
|
-
.url(`/
|
|
1764
|
-
.
|
|
2622
|
+
.url(`/ip_restrictions/${arg.id}`)
|
|
2623
|
+
.patch(util.serializeArgument(arg))
|
|
1765
2624
|
.json(payload => util.deserializeResult(payload))
|
|
1766
2625
|
.then(f => f, util.onRejected);
|
|
1767
2626
|
}
|
|
1768
2627
|
}
|
|
1769
|
-
exports.
|
|
2628
|
+
exports.IPRestrictions = IPRestrictions;
|
|
1770
2629
|
/**
|
|
1771
2630
|
* Reserved Addresses are TCP addresses that can be used to listen for traffic.
|
|
1772
2631
|
TCP address hostnames and ports are assigned by ngrok, they cannot be
|
|
@@ -1811,7 +2670,7 @@ class ReservedAddrs {
|
|
|
1811
2670
|
* List all reserved addresses on this account.
|
|
1812
2671
|
*/
|
|
1813
2672
|
list() {
|
|
1814
|
-
var
|
|
2673
|
+
var e_18, _a;
|
|
1815
2674
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1816
2675
|
const array = [];
|
|
1817
2676
|
try {
|
|
@@ -1823,13 +2682,13 @@ class ReservedAddrs {
|
|
|
1823
2682
|
let item = _c.value;
|
|
1824
2683
|
array.push(item);
|
|
1825
2684
|
}
|
|
1826
|
-
} catch (
|
|
1827
|
-
|
|
2685
|
+
} catch (e_18_1) {
|
|
2686
|
+
e_18 = { error: e_18_1 };
|
|
1828
2687
|
} finally {
|
|
1829
2688
|
try {
|
|
1830
2689
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1831
2690
|
} finally {
|
|
1832
|
-
if (
|
|
2691
|
+
if (e_18) throw e_18.error;
|
|
1833
2692
|
}
|
|
1834
2693
|
}
|
|
1835
2694
|
return array;
|
|
@@ -1844,7 +2703,7 @@ class ReservedAddrs {
|
|
|
1844
2703
|
.then(util.onFulfilled, util.onRejected);
|
|
1845
2704
|
}
|
|
1846
2705
|
_asyncList() {
|
|
1847
|
-
return __asyncGenerator(this, arguments, function*
|
|
2706
|
+
return __asyncGenerator(this, arguments, function* _asyncList_18() {
|
|
1848
2707
|
const limit = '100';
|
|
1849
2708
|
let nextPage = 'initial loop';
|
|
1850
2709
|
let page = { limit: limit };
|
|
@@ -1874,16 +2733,6 @@ class ReservedAddrs {
|
|
|
1874
2733
|
.json(payload => util.deserializeResult(payload))
|
|
1875
2734
|
.then(f => f, util.onRejected);
|
|
1876
2735
|
}
|
|
1877
|
-
/**
|
|
1878
|
-
* Detach the endpoint configuration attached to a reserved address.
|
|
1879
|
-
*/
|
|
1880
|
-
deleteEndpointConfig(arg) {
|
|
1881
|
-
return this.httpClient
|
|
1882
|
-
.url(`/reserved_addrs/${arg.id}/endpoint_configuration`)
|
|
1883
|
-
.delete()
|
|
1884
|
-
.json(payload => util.deserializeResult(payload))
|
|
1885
|
-
.then(f => f, util.onRejected);
|
|
1886
|
-
}
|
|
1887
2736
|
}
|
|
1888
2737
|
exports.ReservedAddrs = ReservedAddrs;
|
|
1889
2738
|
/**
|
|
@@ -1931,7 +2780,7 @@ class ReservedDomains {
|
|
|
1931
2780
|
* List all reserved domains on this account.
|
|
1932
2781
|
*/
|
|
1933
2782
|
list() {
|
|
1934
|
-
var
|
|
2783
|
+
var e_19, _a;
|
|
1935
2784
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1936
2785
|
const array = [];
|
|
1937
2786
|
try {
|
|
@@ -1943,13 +2792,13 @@ class ReservedDomains {
|
|
|
1943
2792
|
let item = _c.value;
|
|
1944
2793
|
array.push(item);
|
|
1945
2794
|
}
|
|
1946
|
-
} catch (
|
|
1947
|
-
|
|
2795
|
+
} catch (e_19_1) {
|
|
2796
|
+
e_19 = { error: e_19_1 };
|
|
1948
2797
|
} finally {
|
|
1949
2798
|
try {
|
|
1950
2799
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1951
2800
|
} finally {
|
|
1952
|
-
if (
|
|
2801
|
+
if (e_19) throw e_19.error;
|
|
1953
2802
|
}
|
|
1954
2803
|
}
|
|
1955
2804
|
return array;
|
|
@@ -1964,7 +2813,7 @@ class ReservedDomains {
|
|
|
1964
2813
|
.then(util.onFulfilled, util.onRejected);
|
|
1965
2814
|
}
|
|
1966
2815
|
_asyncList() {
|
|
1967
|
-
return __asyncGenerator(this, arguments, function*
|
|
2816
|
+
return __asyncGenerator(this, arguments, function* _asyncList_19() {
|
|
1968
2817
|
const limit = '100';
|
|
1969
2818
|
let nextPage = 'initial loop';
|
|
1970
2819
|
let page = { limit: limit };
|
|
@@ -2014,26 +2863,6 @@ class ReservedDomains {
|
|
|
2014
2863
|
.json(payload => util.deserializeResult(payload))
|
|
2015
2864
|
.then(f => f, util.onRejected);
|
|
2016
2865
|
}
|
|
2017
|
-
/**
|
|
2018
|
-
* Detach the http endpoint configuration attached to a reserved domain.
|
|
2019
|
-
*/
|
|
2020
|
-
deleteHttpEndpointConfig(arg) {
|
|
2021
|
-
return this.httpClient
|
|
2022
|
-
.url(`/reserved_domains/${arg.id}/http_endpoint_configuration`)
|
|
2023
|
-
.delete()
|
|
2024
|
-
.json(payload => util.deserializeResult(payload))
|
|
2025
|
-
.then(f => f, util.onRejected);
|
|
2026
|
-
}
|
|
2027
|
-
/**
|
|
2028
|
-
* Detach the https endpoint configuration attached to a reserved domain.
|
|
2029
|
-
*/
|
|
2030
|
-
deleteHttpsEndpointConfig(arg) {
|
|
2031
|
-
return this.httpClient
|
|
2032
|
-
.url(`/reserved_domains/${arg.id}/https_endpoint_configuration`)
|
|
2033
|
-
.delete()
|
|
2034
|
-
.json(payload => util.deserializeResult(payload))
|
|
2035
|
-
.then(f => f, util.onRejected);
|
|
2036
|
-
}
|
|
2037
2866
|
}
|
|
2038
2867
|
exports.ReservedDomains = ReservedDomains;
|
|
2039
2868
|
/**
|
|
@@ -2079,7 +2908,7 @@ class SSHCertificateAuthorities {
|
|
|
2079
2908
|
* List all SSH Certificate Authorities on this account
|
|
2080
2909
|
*/
|
|
2081
2910
|
list() {
|
|
2082
|
-
var
|
|
2911
|
+
var e_20, _a;
|
|
2083
2912
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2084
2913
|
const array = [];
|
|
2085
2914
|
try {
|
|
@@ -2091,13 +2920,13 @@ class SSHCertificateAuthorities {
|
|
|
2091
2920
|
let item = _c.value;
|
|
2092
2921
|
array.push(item);
|
|
2093
2922
|
}
|
|
2094
|
-
} catch (
|
|
2095
|
-
|
|
2923
|
+
} catch (e_20_1) {
|
|
2924
|
+
e_20 = { error: e_20_1 };
|
|
2096
2925
|
} finally {
|
|
2097
2926
|
try {
|
|
2098
2927
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2099
2928
|
} finally {
|
|
2100
|
-
if (
|
|
2929
|
+
if (e_20) throw e_20.error;
|
|
2101
2930
|
}
|
|
2102
2931
|
}
|
|
2103
2932
|
return array;
|
|
@@ -2112,7 +2941,7 @@ class SSHCertificateAuthorities {
|
|
|
2112
2941
|
.then(util.onFulfilled, util.onRejected);
|
|
2113
2942
|
}
|
|
2114
2943
|
_asyncList() {
|
|
2115
|
-
return __asyncGenerator(this, arguments, function*
|
|
2944
|
+
return __asyncGenerator(this, arguments, function* _asyncList_20() {
|
|
2116
2945
|
const limit = '100';
|
|
2117
2946
|
let nextPage = 'initial loop';
|
|
2118
2947
|
let page = { limit: limit };
|
|
@@ -2187,7 +3016,7 @@ class SSHCredentials {
|
|
|
2187
3016
|
* List all ssh credentials on this account
|
|
2188
3017
|
*/
|
|
2189
3018
|
list() {
|
|
2190
|
-
var
|
|
3019
|
+
var e_21, _a;
|
|
2191
3020
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2192
3021
|
const array = [];
|
|
2193
3022
|
try {
|
|
@@ -2199,13 +3028,13 @@ class SSHCredentials {
|
|
|
2199
3028
|
let item = _c.value;
|
|
2200
3029
|
array.push(item);
|
|
2201
3030
|
}
|
|
2202
|
-
} catch (
|
|
2203
|
-
|
|
3031
|
+
} catch (e_21_1) {
|
|
3032
|
+
e_21 = { error: e_21_1 };
|
|
2204
3033
|
} finally {
|
|
2205
3034
|
try {
|
|
2206
3035
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2207
3036
|
} finally {
|
|
2208
|
-
if (
|
|
3037
|
+
if (e_21) throw e_21.error;
|
|
2209
3038
|
}
|
|
2210
3039
|
}
|
|
2211
3040
|
return array;
|
|
@@ -2220,7 +3049,7 @@ class SSHCredentials {
|
|
|
2220
3049
|
.then(util.onFulfilled, util.onRejected);
|
|
2221
3050
|
}
|
|
2222
3051
|
_asyncList() {
|
|
2223
|
-
return __asyncGenerator(this, arguments, function*
|
|
3052
|
+
return __asyncGenerator(this, arguments, function* _asyncList_21() {
|
|
2224
3053
|
const limit = '100';
|
|
2225
3054
|
let nextPage = 'initial loop';
|
|
2226
3055
|
let page = { limit: limit };
|
|
@@ -2296,7 +3125,7 @@ class SSHHostCertificates {
|
|
|
2296
3125
|
* List all SSH Host Certificates issued on this account
|
|
2297
3126
|
*/
|
|
2298
3127
|
list() {
|
|
2299
|
-
var
|
|
3128
|
+
var e_22, _a;
|
|
2300
3129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2301
3130
|
const array = [];
|
|
2302
3131
|
try {
|
|
@@ -2308,13 +3137,13 @@ class SSHHostCertificates {
|
|
|
2308
3137
|
let item = _c.value;
|
|
2309
3138
|
array.push(item);
|
|
2310
3139
|
}
|
|
2311
|
-
} catch (
|
|
2312
|
-
|
|
3140
|
+
} catch (e_22_1) {
|
|
3141
|
+
e_22 = { error: e_22_1 };
|
|
2313
3142
|
} finally {
|
|
2314
3143
|
try {
|
|
2315
3144
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2316
3145
|
} finally {
|
|
2317
|
-
if (
|
|
3146
|
+
if (e_22) throw e_22.error;
|
|
2318
3147
|
}
|
|
2319
3148
|
}
|
|
2320
3149
|
return array;
|
|
@@ -2329,7 +3158,7 @@ class SSHHostCertificates {
|
|
|
2329
3158
|
.then(util.onFulfilled, util.onRejected);
|
|
2330
3159
|
}
|
|
2331
3160
|
_asyncList() {
|
|
2332
|
-
return __asyncGenerator(this, arguments, function*
|
|
3161
|
+
return __asyncGenerator(this, arguments, function* _asyncList_22() {
|
|
2333
3162
|
const limit = '100';
|
|
2334
3163
|
let nextPage = 'initial loop';
|
|
2335
3164
|
let page = { limit: limit };
|
|
@@ -2405,7 +3234,7 @@ class SSHUserCertificates {
|
|
|
2405
3234
|
* List all SSH User Certificates issued on this account
|
|
2406
3235
|
*/
|
|
2407
3236
|
list() {
|
|
2408
|
-
var
|
|
3237
|
+
var e_23, _a;
|
|
2409
3238
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2410
3239
|
const array = [];
|
|
2411
3240
|
try {
|
|
@@ -2417,13 +3246,13 @@ class SSHUserCertificates {
|
|
|
2417
3246
|
let item = _c.value;
|
|
2418
3247
|
array.push(item);
|
|
2419
3248
|
}
|
|
2420
|
-
} catch (
|
|
2421
|
-
|
|
3249
|
+
} catch (e_23_1) {
|
|
3250
|
+
e_23 = { error: e_23_1 };
|
|
2422
3251
|
} finally {
|
|
2423
3252
|
try {
|
|
2424
3253
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2425
3254
|
} finally {
|
|
2426
|
-
if (
|
|
3255
|
+
if (e_23) throw e_23.error;
|
|
2427
3256
|
}
|
|
2428
3257
|
}
|
|
2429
3258
|
return array;
|
|
@@ -2438,7 +3267,7 @@ class SSHUserCertificates {
|
|
|
2438
3267
|
.then(util.onFulfilled, util.onRejected);
|
|
2439
3268
|
}
|
|
2440
3269
|
_asyncList() {
|
|
2441
|
-
return __asyncGenerator(this, arguments, function*
|
|
3270
|
+
return __asyncGenerator(this, arguments, function* _asyncList_23() {
|
|
2442
3271
|
const limit = '100';
|
|
2443
3272
|
let nextPage = 'initial loop';
|
|
2444
3273
|
let page = { limit: limit };
|
|
@@ -2516,7 +3345,7 @@ class TLSCertificates {
|
|
|
2516
3345
|
* List all TLS certificates on this account
|
|
2517
3346
|
*/
|
|
2518
3347
|
list() {
|
|
2519
|
-
var
|
|
3348
|
+
var e_24, _a;
|
|
2520
3349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2521
3350
|
const array = [];
|
|
2522
3351
|
try {
|
|
@@ -2528,13 +3357,13 @@ class TLSCertificates {
|
|
|
2528
3357
|
let item = _c.value;
|
|
2529
3358
|
array.push(item);
|
|
2530
3359
|
}
|
|
2531
|
-
} catch (
|
|
2532
|
-
|
|
3360
|
+
} catch (e_24_1) {
|
|
3361
|
+
e_24 = { error: e_24_1 };
|
|
2533
3362
|
} finally {
|
|
2534
3363
|
try {
|
|
2535
3364
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2536
3365
|
} finally {
|
|
2537
|
-
if (
|
|
3366
|
+
if (e_24) throw e_24.error;
|
|
2538
3367
|
}
|
|
2539
3368
|
}
|
|
2540
3369
|
return array;
|
|
@@ -2549,7 +3378,7 @@ class TLSCertificates {
|
|
|
2549
3378
|
.then(util.onFulfilled, util.onRejected);
|
|
2550
3379
|
}
|
|
2551
3380
|
_asyncList() {
|
|
2552
|
-
return __asyncGenerator(this, arguments, function*
|
|
3381
|
+
return __asyncGenerator(this, arguments, function* _asyncList_24() {
|
|
2553
3382
|
const limit = '100';
|
|
2554
3383
|
let nextPage = 'initial loop';
|
|
2555
3384
|
let page = { limit: limit };
|
|
@@ -2595,7 +3424,7 @@ class TunnelSessions {
|
|
|
2595
3424
|
* List all online tunnel sessions running on this account.
|
|
2596
3425
|
*/
|
|
2597
3426
|
list() {
|
|
2598
|
-
var
|
|
3427
|
+
var e_25, _a;
|
|
2599
3428
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2600
3429
|
const array = [];
|
|
2601
3430
|
try {
|
|
@@ -2607,13 +3436,13 @@ class TunnelSessions {
|
|
|
2607
3436
|
let item = _c.value;
|
|
2608
3437
|
array.push(item);
|
|
2609
3438
|
}
|
|
2610
|
-
} catch (
|
|
2611
|
-
|
|
3439
|
+
} catch (e_25_1) {
|
|
3440
|
+
e_25 = { error: e_25_1 };
|
|
2612
3441
|
} finally {
|
|
2613
3442
|
try {
|
|
2614
3443
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2615
3444
|
} finally {
|
|
2616
|
-
if (
|
|
3445
|
+
if (e_25) throw e_25.error;
|
|
2617
3446
|
}
|
|
2618
3447
|
}
|
|
2619
3448
|
return array;
|
|
@@ -2628,7 +3457,7 @@ class TunnelSessions {
|
|
|
2628
3457
|
.then(util.onFulfilled, util.onRejected);
|
|
2629
3458
|
}
|
|
2630
3459
|
_asyncList() {
|
|
2631
|
-
return __asyncGenerator(this, arguments, function*
|
|
3460
|
+
return __asyncGenerator(this, arguments, function* _asyncList_25() {
|
|
2632
3461
|
const limit = '100';
|
|
2633
3462
|
let nextPage = 'initial loop';
|
|
2634
3463
|
let page = { limit: limit };
|
|
@@ -2703,7 +3532,7 @@ class Tunnels {
|
|
|
2703
3532
|
* List all online tunnels currently running on the account.
|
|
2704
3533
|
*/
|
|
2705
3534
|
list() {
|
|
2706
|
-
var
|
|
3535
|
+
var e_26, _a;
|
|
2707
3536
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2708
3537
|
const array = [];
|
|
2709
3538
|
try {
|
|
@@ -2715,13 +3544,13 @@ class Tunnels {
|
|
|
2715
3544
|
let item = _c.value;
|
|
2716
3545
|
array.push(item);
|
|
2717
3546
|
}
|
|
2718
|
-
} catch (
|
|
2719
|
-
|
|
3547
|
+
} catch (e_26_1) {
|
|
3548
|
+
e_26 = { error: e_26_1 };
|
|
2720
3549
|
} finally {
|
|
2721
3550
|
try {
|
|
2722
3551
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2723
3552
|
} finally {
|
|
2724
|
-
if (
|
|
3553
|
+
if (e_26) throw e_26.error;
|
|
2725
3554
|
}
|
|
2726
3555
|
}
|
|
2727
3556
|
return array;
|
|
@@ -2736,7 +3565,7 @@ class Tunnels {
|
|
|
2736
3565
|
.then(util.onFulfilled, util.onRejected);
|
|
2737
3566
|
}
|
|
2738
3567
|
_asyncList() {
|
|
2739
|
-
return __asyncGenerator(this, arguments, function*
|
|
3568
|
+
return __asyncGenerator(this, arguments, function* _asyncList_26() {
|
|
2740
3569
|
const limit = '100';
|
|
2741
3570
|
let nextPage = 'initial loop';
|
|
2742
3571
|
let page = { limit: limit };
|
|
@@ -2756,6 +3585,16 @@ class Tunnels {
|
|
|
2756
3585
|
}
|
|
2757
3586
|
});
|
|
2758
3587
|
}
|
|
3588
|
+
/**
|
|
3589
|
+
* Get the status of a tunnel by ID
|
|
3590
|
+
*/
|
|
3591
|
+
get(arg) {
|
|
3592
|
+
return this.httpClient
|
|
3593
|
+
.url(`/tunnels/${arg.id}`)
|
|
3594
|
+
.get()
|
|
3595
|
+
.json(payload => util.deserializeResult(payload))
|
|
3596
|
+
.then(f => f, util.onRejected);
|
|
3597
|
+
}
|
|
2759
3598
|
}
|
|
2760
3599
|
exports.Tunnels = Tunnels;
|
|
2761
3600
|
//# sourceMappingURL=services.js.map
|