@ngrok/ngrok-api 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/client.Ngrok.html +55 -29
- package/docs/classes/services.APIKeys.html +6 -6
- package/docs/classes/services.AbuseReports.html +3 -3
- package/docs/classes/services.AgentIngresses.html +6 -6
- package/docs/classes/services.ApplicationSessions.html +4 -4
- package/docs/classes/services.ApplicationUsers.html +4 -4
- package/docs/classes/services.BotUsers.html +352 -0
- package/docs/classes/services.CertificateAuthorities.html +6 -6
- package/docs/classes/services.Credentials.html +6 -6
- package/docs/classes/services.EdgeRouteBackendModule.html +4 -4
- package/docs/classes/services.EdgeRouteCircuitBreakerModule.html +4 -4
- package/docs/classes/services.EdgeRouteCompressionModule.html +4 -4
- package/docs/classes/services.EdgeRouteIPRestrictionModule.html +4 -4
- package/docs/classes/services.EdgeRouteOAuthModule.html +4 -4
- package/docs/classes/services.EdgeRouteOIDCModule.html +4 -4
- package/docs/classes/services.EdgeRoutePolicyModule.html +270 -0
- package/docs/classes/services.EdgeRouteRequestHeadersModule.html +4 -4
- package/docs/classes/services.EdgeRouteResponseHeadersModule.html +4 -4
- package/docs/classes/services.EdgeRouteSAMLModule.html +4 -4
- package/docs/classes/services.EdgeRouteUserAgentFilterModule.html +270 -0
- package/docs/classes/services.EdgeRouteWebhookVerificationModule.html +4 -4
- package/docs/classes/services.EdgeRouteWebsocketTCPConverterModule.html +4 -4
- package/docs/classes/services.EdgesHTTPS.html +6 -6
- package/docs/classes/services.EdgesHTTPSRoutes.html +5 -5
- package/docs/classes/services.EdgesTCP.html +6 -6
- package/docs/classes/services.EdgesTLS.html +6 -6
- package/docs/classes/services.Endpoints.html +3 -3
- package/docs/classes/services.EventDestinations.html +6 -6
- package/docs/classes/services.EventSources.html +6 -6
- package/docs/classes/services.EventSubscriptions.html +6 -6
- package/docs/classes/services.FailoverBackends.html +6 -6
- package/docs/classes/services.HTTPResponseBackends.html +6 -6
- package/docs/classes/services.HTTPSEdgeMutualTLSModule.html +4 -4
- package/docs/classes/services.HTTPSEdgeTLSTerminationModule.html +4 -4
- package/docs/classes/services.IPPolicies.html +6 -6
- package/docs/classes/services.IPPolicyRules.html +6 -6
- package/docs/classes/services.IPRestrictions.html +6 -6
- package/docs/classes/services.ReservedAddrs.html +6 -6
- package/docs/classes/services.ReservedDomains.html +8 -8
- package/docs/classes/services.SSHCertificateAuthorities.html +6 -6
- package/docs/classes/services.SSHCredentials.html +6 -6
- package/docs/classes/services.SSHHostCertificates.html +6 -6
- package/docs/classes/services.SSHUserCertificates.html +6 -6
- package/docs/classes/services.StaticBackends.html +360 -0
- package/docs/classes/services.TCPEdgeBackendModule.html +4 -4
- package/docs/classes/services.TCPEdgeIPRestrictionModule.html +4 -4
- package/docs/classes/services.TCPEdgePolicyModule.html +270 -0
- package/docs/classes/services.TLSCertificates.html +6 -6
- package/docs/classes/services.TLSEdgeBackendModule.html +4 -4
- package/docs/classes/services.TLSEdgeIPRestrictionModule.html +4 -4
- package/docs/classes/services.TLSEdgeMutualTLSModule.html +4 -4
- package/docs/classes/services.TLSEdgePolicyModule.html +270 -0
- package/docs/classes/services.TLSEdgeTLSTerminationModule.html +4 -4
- package/docs/classes/services.TunnelGroupBackends.html +6 -6
- package/docs/classes/services.TunnelSessions.html +6 -6
- package/docs/classes/services.Tunnels.html +3 -3
- package/docs/classes/services.WeightedBackends.html +6 -6
- package/docs/interfaces/client.NgrokConfig.html +3 -3
- package/docs/interfaces/datatypes.APIKey.html +7 -7
- package/docs/interfaces/datatypes.APIKeyCreate.html +3 -3
- package/docs/interfaces/datatypes.APIKeyList.html +3 -3
- package/docs/interfaces/datatypes.APIKeyUpdate.html +3 -3
- package/docs/interfaces/datatypes.AWSAuth.html +2 -2
- package/docs/interfaces/datatypes.AWSCredentials.html +2 -2
- package/docs/interfaces/datatypes.AWSRole.html +1 -1
- package/docs/interfaces/datatypes.AbuseReport.html +7 -7
- package/docs/interfaces/datatypes.AbuseReportCreate.html +2 -2
- package/docs/interfaces/datatypes.AbuseReportHostname.html +2 -2
- package/docs/interfaces/datatypes.AgentIngress.html +10 -10
- package/docs/interfaces/datatypes.AgentIngressCertJob.html +4 -4
- package/docs/interfaces/datatypes.AgentIngressCertPolicy.html +2 -2
- package/docs/interfaces/datatypes.AgentIngressCertStatus.html +2 -2
- package/docs/interfaces/datatypes.AgentIngressCreate.html +4 -4
- package/docs/interfaces/datatypes.AgentIngressList.html +3 -3
- package/docs/interfaces/datatypes.AgentIngressUpdate.html +4 -4
- package/docs/interfaces/datatypes.ApplicationSession.html +11 -11
- package/docs/interfaces/datatypes.ApplicationSessionList.html +3 -3
- package/docs/interfaces/datatypes.ApplicationUser.html +10 -10
- package/docs/interfaces/datatypes.ApplicationUserList.html +3 -3
- package/docs/interfaces/datatypes.BotUser.html +243 -0
- package/docs/interfaces/datatypes.BotUserCreate.html +186 -0
- package/docs/interfaces/datatypes.BotUserList.html +205 -0
- package/docs/interfaces/datatypes.BotUserUpdate.html +200 -0
- package/docs/interfaces/datatypes.BrowserSession.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthority.html +11 -11
- package/docs/interfaces/datatypes.CertificateAuthorityCreate.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthorityList.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthorityUpdate.html +3 -3
- package/docs/interfaces/datatypes.Credential.html +8 -8
- package/docs/interfaces/datatypes.CredentialCreate.html +4 -4
- package/docs/interfaces/datatypes.CredentialList.html +3 -3
- package/docs/interfaces/datatypes.CredentialUpdate.html +4 -4
- package/docs/interfaces/datatypes.EdgeBackendReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeIPRestrictionReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeMutualTLSReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgePolicyReplace.html +176 -0
- package/docs/interfaces/datatypes.EdgeRouteBackendReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteCircuitBreakerReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteCompressionReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteIPRestrictionReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteItem.html +2 -2
- package/docs/interfaces/datatypes.EdgeRouteOAuthReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteOIDCReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRoutePolicyReplace.html +190 -0
- package/docs/interfaces/datatypes.EdgeRouteRequestHeadersReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteResponseHeadersReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteSAMLReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteUserAgentFilterReplace.html +190 -0
- package/docs/interfaces/datatypes.EdgeRouteWebhookVerificationReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteWebsocketTCPConverterReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeTLSTerminationAtEdgeReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeTLSTerminationReplace.html +2 -2
- package/docs/interfaces/datatypes.Endpoint.html +13 -13
- package/docs/interfaces/datatypes.EndpointAction.html +186 -0
- package/docs/interfaces/datatypes.EndpointBackend.html +2 -2
- package/docs/interfaces/datatypes.EndpointBackendMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointCircuitBreaker.html +6 -6
- package/docs/interfaces/datatypes.EndpointCompression.html +1 -1
- package/docs/interfaces/datatypes.EndpointIPPolicy.html +2 -2
- package/docs/interfaces/datatypes.EndpointIPPolicyMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointList.html +3 -3
- package/docs/interfaces/datatypes.EndpointMutualTLS.html +2 -2
- package/docs/interfaces/datatypes.EndpointMutualTLSMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointOAuth.html +7 -7
- package/docs/interfaces/datatypes.EndpointOAuthAmazon.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthFacebook.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthGitHub.html +7 -7
- package/docs/interfaces/datatypes.EndpointOAuthGitLab.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthGoogle.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthLinkedIn.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthMicrosoft.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthProvider.html +8 -8
- package/docs/interfaces/datatypes.EndpointOAuthTwitch.html +5 -5
- package/docs/interfaces/datatypes.EndpointOIDC.html +9 -9
- package/docs/interfaces/datatypes.EndpointPolicy.html +205 -0
- package/docs/interfaces/datatypes.EndpointRequestHeaders.html +3 -3
- package/docs/interfaces/datatypes.EndpointResponseHeaders.html +3 -3
- package/docs/interfaces/datatypes.EndpointRule.html +205 -0
- package/docs/interfaces/datatypes.EndpointSAML.html +15 -15
- package/docs/interfaces/datatypes.EndpointSAMLMutate.html +10 -10
- package/docs/interfaces/datatypes.EndpointTLSTermination.html +3 -3
- package/docs/interfaces/datatypes.EndpointTLSTerminationAtEdge.html +2 -2
- package/docs/interfaces/datatypes.EndpointUserAgentFilter.html +190 -0
- package/docs/interfaces/datatypes.EndpointWebhookValidation.html +4 -4
- package/docs/interfaces/datatypes.EndpointWebsocketTCPConverter.html +1 -1
- package/docs/interfaces/datatypes.Error.html +4 -4
- package/docs/interfaces/datatypes.EventDestination.html +7 -7
- package/docs/interfaces/datatypes.EventDestinationCreate.html +4 -4
- package/docs/interfaces/datatypes.EventDestinationList.html +3 -3
- package/docs/interfaces/datatypes.EventDestinationUpdate.html +5 -5
- package/docs/interfaces/datatypes.EventSource.html +2 -2
- package/docs/interfaces/datatypes.EventSourceCreate.html +2 -2
- package/docs/interfaces/datatypes.EventSourceItem.html +2 -2
- package/docs/interfaces/datatypes.EventSourceList.html +2 -2
- package/docs/interfaces/datatypes.EventSourcePaging.html +1 -1
- package/docs/interfaces/datatypes.EventSourceReplace.html +1 -1
- package/docs/interfaces/datatypes.EventSourceUpdate.html +2 -2
- package/docs/interfaces/datatypes.EventSubscription.html +7 -7
- package/docs/interfaces/datatypes.EventSubscriptionCreate.html +4 -4
- package/docs/interfaces/datatypes.EventSubscriptionList.html +3 -3
- package/docs/interfaces/datatypes.EventSubscriptionUpdate.html +5 -5
- package/docs/interfaces/datatypes.EventTarget.html +4 -4
- package/docs/interfaces/datatypes.EventTargetCloudwatchLogs.html +2 -2
- package/docs/interfaces/datatypes.EventTargetDatadog.html +4 -4
- package/docs/interfaces/datatypes.EventTargetFirehose.html +2 -2
- package/docs/interfaces/datatypes.EventTargetKinesis.html +2 -2
- package/docs/interfaces/datatypes.FailoverBackend.html +6 -6
- package/docs/interfaces/datatypes.FailoverBackendCreate.html +3 -3
- package/docs/interfaces/datatypes.FailoverBackendList.html +3 -3
- package/docs/interfaces/datatypes.FailoverBackendUpdate.html +4 -4
- package/docs/interfaces/datatypes.HTTPResponseBackend.html +8 -8
- package/docs/interfaces/datatypes.HTTPResponseBackendCreate.html +5 -5
- package/docs/interfaces/datatypes.HTTPResponseBackendList.html +3 -3
- package/docs/interfaces/datatypes.HTTPResponseBackendUpdate.html +6 -6
- package/docs/interfaces/datatypes.HTTPSEdge.html +9 -9
- package/docs/interfaces/datatypes.HTTPSEdgeCreate.html +5 -5
- package/docs/interfaces/datatypes.HTTPSEdgeList.html +3 -3
- package/docs/interfaces/datatypes.HTTPSEdgeRoute.html +52 -19
- package/docs/interfaces/datatypes.HTTPSEdgeRouteCreate.html +49 -16
- package/docs/interfaces/datatypes.HTTPSEdgeRouteUpdate.html +50 -17
- package/docs/interfaces/datatypes.HTTPSEdgeUpdate.html +6 -6
- package/docs/interfaces/datatypes.IPPolicy.html +5 -5
- package/docs/interfaces/datatypes.IPPolicyCreate.html +2 -2
- package/docs/interfaces/datatypes.IPPolicyList.html +3 -3
- package/docs/interfaces/datatypes.IPPolicyRule.html +8 -8
- package/docs/interfaces/datatypes.IPPolicyRuleCreate.html +5 -5
- package/docs/interfaces/datatypes.IPPolicyRuleList.html +3 -3
- package/docs/interfaces/datatypes.IPPolicyRuleUpdate.html +4 -4
- package/docs/interfaces/datatypes.IPPolicyUpdate.html +3 -3
- package/docs/interfaces/datatypes.IPRestriction.html +8 -8
- package/docs/interfaces/datatypes.IPRestrictionCreate.html +5 -5
- package/docs/interfaces/datatypes.IPRestrictionList.html +3 -3
- package/docs/interfaces/datatypes.IPRestrictionUpdate.html +5 -5
- package/docs/interfaces/datatypes.IdentityProvider.html +2 -2
- package/docs/interfaces/datatypes.Item.html +1 -1
- package/docs/interfaces/datatypes.Location.html +4 -4
- package/docs/interfaces/datatypes.Paging.html +2 -2
- package/docs/interfaces/datatypes.Ref.html +2 -2
- package/docs/interfaces/datatypes.ReservedAddr.html +7 -7
- package/docs/interfaces/datatypes.ReservedAddrCreate.html +3 -3
- package/docs/interfaces/datatypes.ReservedAddrList.html +3 -3
- package/docs/interfaces/datatypes.ReservedAddrUpdate.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomain.html +14 -14
- 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 +7 -7
- package/docs/interfaces/datatypes.ReservedDomainList.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomainUpdate.html +5 -5
- package/docs/interfaces/datatypes.SSHCertificateAuthority.html +7 -7
- package/docs/interfaces/datatypes.SSHCertificateAuthorityCreate.html +5 -5
- package/docs/interfaces/datatypes.SSHCertificateAuthorityList.html +3 -3
- package/docs/interfaces/datatypes.SSHCertificateAuthorityUpdate.html +3 -3
- package/docs/interfaces/datatypes.SSHCredential.html +8 -8
- package/docs/interfaces/datatypes.SSHCredentialCreate.html +5 -5
- package/docs/interfaces/datatypes.SSHCredentialList.html +3 -3
- package/docs/interfaces/datatypes.SSHCredentialUpdate.html +4 -4
- package/docs/interfaces/datatypes.SSHHostCertificate.html +12 -12
- package/docs/interfaces/datatypes.SSHHostCertificateCreate.html +7 -7
- package/docs/interfaces/datatypes.SSHHostCertificateList.html +3 -3
- package/docs/interfaces/datatypes.SSHHostCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.SSHUserCertificate.html +14 -14
- package/docs/interfaces/datatypes.SSHUserCertificateCreate.html +9 -9
- package/docs/interfaces/datatypes.SSHUserCertificateList.html +3 -3
- package/docs/interfaces/datatypes.SSHUserCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.StaticBackend.html +281 -0
- package/docs/interfaces/datatypes.StaticBackendCreate.html +224 -0
- package/docs/interfaces/datatypes.StaticBackendList.html +205 -0
- package/docs/interfaces/datatypes.StaticBackendTLS.html +167 -0
- package/docs/interfaces/datatypes.StaticBackendUpdate.html +238 -0
- package/docs/interfaces/datatypes.TCPEdge.html +27 -8
- package/docs/interfaces/datatypes.TCPEdgeCreate.html +24 -5
- package/docs/interfaces/datatypes.TCPEdgeList.html +3 -3
- package/docs/interfaces/datatypes.TCPEdgeUpdate.html +25 -6
- 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 +29 -10
- package/docs/interfaces/datatypes.TLSEdgeCreate.html +26 -7
- package/docs/interfaces/datatypes.TLSEdgeList.html +3 -3
- package/docs/interfaces/datatypes.TLSEdgeUpdate.html +27 -8
- package/docs/interfaces/datatypes.Tunnel.html +11 -11
- package/docs/interfaces/datatypes.TunnelGroupBackend.html +7 -7
- package/docs/interfaces/datatypes.TunnelGroupBackendCreate.html +3 -3
- package/docs/interfaces/datatypes.TunnelGroupBackendList.html +3 -3
- package/docs/interfaces/datatypes.TunnelGroupBackendUpdate.html +4 -4
- package/docs/interfaces/datatypes.TunnelList.html +3 -3
- package/docs/interfaces/datatypes.TunnelSession.html +10 -10
- package/docs/interfaces/datatypes.TunnelSessionList.html +3 -3
- package/docs/interfaces/datatypes.TunnelSessionsUpdate.html +1 -1
- package/docs/interfaces/datatypes.UserAgent.html +6 -6
- package/docs/interfaces/datatypes.WeightedBackend.html +6 -6
- package/docs/interfaces/datatypes.WeightedBackendCreate.html +3 -3
- package/docs/interfaces/datatypes.WeightedBackendList.html +3 -3
- package/docs/interfaces/datatypes.WeightedBackendUpdate.html +4 -4
- package/docs/modules/datatypes.html +64 -0
- package/docs/modules/services.html +24 -0
- package/lib/client.d.ts +8 -1
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +3 -0
- package/lib/client.js.map +1 -1
- package/lib/datatypes.d.ts +148 -4
- package/lib/datatypes.d.ts.map +1 -1
- package/lib/services.d.ts +90 -0
- package/lib/services.d.ts.map +1 -1
- package/lib/services.js +404 -85
- package/lib/services.js.map +1 -1
- package/package.json +2 -1
- package/src/client.ts +12 -1
- package/src/datatypes.ts +164 -4
- package/src/services.ts +334 -0
package/lib/services.js
CHANGED
|
@@ -29,7 +29,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
|
|
|
29
29
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.
|
|
32
|
+
exports.ReservedDomains = exports.ReservedAddrs = exports.IPRestrictions = exports.IPPolicyRules = exports.IPPolicies = exports.EventSources = exports.EventSubscriptions = exports.EventDestinations = exports.Endpoints = exports.TLSEdgePolicyModule = exports.TLSEdgeTLSTerminationModule = exports.TLSEdgeMutualTLSModule = exports.TLSEdgeIPRestrictionModule = exports.TLSEdgeBackendModule = exports.EdgesTLS = exports.TCPEdgePolicyModule = exports.TCPEdgeIPRestrictionModule = exports.TCPEdgeBackendModule = exports.EdgesTCP = exports.EdgeRoutePolicyModule = exports.EdgeRouteUserAgentFilterModule = exports.EdgeRouteWebsocketTCPConverterModule = exports.EdgeRouteOIDCModule = exports.EdgeRouteSAMLModule = exports.EdgeRouteOAuthModule = exports.EdgeRouteWebhookVerificationModule = exports.EdgeRouteCircuitBreakerModule = exports.EdgeRouteCompressionModule = exports.EdgeRouteResponseHeadersModule = exports.EdgeRouteRequestHeadersModule = exports.EdgeRouteIPRestrictionModule = exports.EdgeRouteBackendModule = exports.HTTPSEdgeTLSTerminationModule = exports.HTTPSEdgeMutualTLSModule = exports.EdgesHTTPS = exports.EdgesHTTPSRoutes = exports.Credentials = exports.CertificateAuthorities = exports.BotUsers = exports.WeightedBackends = exports.TunnelGroupBackends = exports.StaticBackends = exports.HTTPResponseBackends = exports.FailoverBackends = exports.TunnelSessions = exports.ApplicationUsers = exports.ApplicationSessions = exports.APIKeys = exports.AgentIngresses = exports.AbuseReports = void 0;
|
|
33
|
+
exports.Tunnels = exports.TLSCertificates = exports.SSHUserCertificates = exports.SSHHostCertificates = exports.SSHCredentials = exports.SSHCertificateAuthorities = void 0;
|
|
33
34
|
const util = require("./util");
|
|
34
35
|
/**
|
|
35
36
|
* Abuse Reports allow you to submit take-down requests for URLs hosted by
|
|
@@ -732,6 +733,111 @@ class HTTPResponseBackends {
|
|
|
732
733
|
}
|
|
733
734
|
}
|
|
734
735
|
exports.HTTPResponseBackends = HTTPResponseBackends;
|
|
736
|
+
/**
|
|
737
|
+
* A static backend sends traffic to a TCP address (hostname and port) that
|
|
738
|
+
is reachable on the public internet.
|
|
739
|
+
*/
|
|
740
|
+
class StaticBackends {
|
|
741
|
+
/** Do not construct this object directly, use the <code>staticBackends</code> property of an <code>Ngrok</code> client object instead. */
|
|
742
|
+
constructor(httpClient) {
|
|
743
|
+
this.httpClient = httpClient;
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Create a new static backend
|
|
747
|
+
*/
|
|
748
|
+
create(arg) {
|
|
749
|
+
return this.httpClient
|
|
750
|
+
.url(`/backends/static`)
|
|
751
|
+
.post(util.serializeArgument(arg))
|
|
752
|
+
.json(payload => util.deserializeResult(payload))
|
|
753
|
+
.then(f => f, util.onRejected);
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* Delete a static backend by ID.
|
|
757
|
+
*/
|
|
758
|
+
delete(id) {
|
|
759
|
+
return this.httpClient
|
|
760
|
+
.url(`/backends/static/${id}`)
|
|
761
|
+
.delete(id)
|
|
762
|
+
.json(payload => util.deserializeResult(payload))
|
|
763
|
+
.then(f => f, util.onRejected);
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* Get detailed information about a static backend by ID
|
|
767
|
+
*/
|
|
768
|
+
get(id) {
|
|
769
|
+
return this.httpClient
|
|
770
|
+
.url(`/backends/static/${id}`)
|
|
771
|
+
.get(id)
|
|
772
|
+
.json(payload => util.deserializeResult(payload))
|
|
773
|
+
.then(f => f, util.onRejected);
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* List all static backends on this account
|
|
777
|
+
*/
|
|
778
|
+
list(beforeId, limit) {
|
|
779
|
+
var e_8, _a;
|
|
780
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
781
|
+
const array = [];
|
|
782
|
+
try {
|
|
783
|
+
for (var _b = __asyncValues(this._asyncList(beforeId, limit)), _c; _c = yield _b.next(), !_c.done;) {
|
|
784
|
+
let item = _c.value;
|
|
785
|
+
array.push(item);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
789
|
+
finally {
|
|
790
|
+
try {
|
|
791
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
792
|
+
}
|
|
793
|
+
finally { if (e_8) throw e_8.error; }
|
|
794
|
+
}
|
|
795
|
+
return array;
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
_pagedList(arg) {
|
|
799
|
+
return this.httpClient
|
|
800
|
+
.url(`/backends/static`)
|
|
801
|
+
.query(arg)
|
|
802
|
+
.get()
|
|
803
|
+
.json(payload => util.deserializeResult(payload))
|
|
804
|
+
.then(util.onFulfilled, util.onRejected);
|
|
805
|
+
}
|
|
806
|
+
_asyncList(beforeId, limit = '100') {
|
|
807
|
+
return __asyncGenerator(this, arguments, function* _asyncList_8() {
|
|
808
|
+
let nextPage = 'initial loop';
|
|
809
|
+
let page = { limit: limit };
|
|
810
|
+
if (beforeId) {
|
|
811
|
+
page.beforeId = beforeId;
|
|
812
|
+
}
|
|
813
|
+
while (nextPage) {
|
|
814
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
815
|
+
nextPage = pagedList.nextPageUri;
|
|
816
|
+
const items = pagedList.backends;
|
|
817
|
+
if (nextPage) {
|
|
818
|
+
page = {
|
|
819
|
+
beforeId: items[items.length - 1].id,
|
|
820
|
+
limit: limit,
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
for (const item of items) {
|
|
824
|
+
yield yield __await(item);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* Update static backend by ID
|
|
831
|
+
*/
|
|
832
|
+
update(arg) {
|
|
833
|
+
return this.httpClient
|
|
834
|
+
.url(`/backends/static/${arg.id}`)
|
|
835
|
+
.patch(util.serializeArgument(arg))
|
|
836
|
+
.json(payload => util.deserializeResult(payload))
|
|
837
|
+
.then(f => f, util.onRejected);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
exports.StaticBackends = StaticBackends;
|
|
735
841
|
/**
|
|
736
842
|
* A Tunnel Group Backend balances traffic among all online tunnels that match
|
|
737
843
|
a label selector.
|
|
@@ -775,7 +881,7 @@ class TunnelGroupBackends {
|
|
|
775
881
|
* List all TunnelGroup backends on this account
|
|
776
882
|
*/
|
|
777
883
|
list(beforeId, limit) {
|
|
778
|
-
var
|
|
884
|
+
var e_9, _a;
|
|
779
885
|
return __awaiter(this, void 0, void 0, function* () {
|
|
780
886
|
const array = [];
|
|
781
887
|
try {
|
|
@@ -784,12 +890,12 @@ class TunnelGroupBackends {
|
|
|
784
890
|
array.push(item);
|
|
785
891
|
}
|
|
786
892
|
}
|
|
787
|
-
catch (
|
|
893
|
+
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
788
894
|
finally {
|
|
789
895
|
try {
|
|
790
896
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
791
897
|
}
|
|
792
|
-
finally { if (
|
|
898
|
+
finally { if (e_9) throw e_9.error; }
|
|
793
899
|
}
|
|
794
900
|
return array;
|
|
795
901
|
});
|
|
@@ -803,7 +909,7 @@ class TunnelGroupBackends {
|
|
|
803
909
|
.then(util.onFulfilled, util.onRejected);
|
|
804
910
|
}
|
|
805
911
|
_asyncList(beforeId, limit = '100') {
|
|
806
|
-
return __asyncGenerator(this, arguments, function*
|
|
912
|
+
return __asyncGenerator(this, arguments, function* _asyncList_9() {
|
|
807
913
|
let nextPage = 'initial loop';
|
|
808
914
|
let page = { limit: limit };
|
|
809
915
|
if (beforeId) {
|
|
@@ -882,7 +988,7 @@ class WeightedBackends {
|
|
|
882
988
|
* List all Weighted backends on this account
|
|
883
989
|
*/
|
|
884
990
|
list(beforeId, limit) {
|
|
885
|
-
var
|
|
991
|
+
var e_10, _a;
|
|
886
992
|
return __awaiter(this, void 0, void 0, function* () {
|
|
887
993
|
const array = [];
|
|
888
994
|
try {
|
|
@@ -891,12 +997,12 @@ class WeightedBackends {
|
|
|
891
997
|
array.push(item);
|
|
892
998
|
}
|
|
893
999
|
}
|
|
894
|
-
catch (
|
|
1000
|
+
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
895
1001
|
finally {
|
|
896
1002
|
try {
|
|
897
1003
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
898
1004
|
}
|
|
899
|
-
finally { if (
|
|
1005
|
+
finally { if (e_10) throw e_10.error; }
|
|
900
1006
|
}
|
|
901
1007
|
return array;
|
|
902
1008
|
});
|
|
@@ -910,7 +1016,7 @@ class WeightedBackends {
|
|
|
910
1016
|
.then(util.onFulfilled, util.onRejected);
|
|
911
1017
|
}
|
|
912
1018
|
_asyncList(beforeId, limit = '100') {
|
|
913
|
-
return __asyncGenerator(this, arguments, function*
|
|
1019
|
+
return __asyncGenerator(this, arguments, function* _asyncList_10() {
|
|
914
1020
|
let nextPage = 'initial loop';
|
|
915
1021
|
let page = { limit: limit };
|
|
916
1022
|
if (beforeId) {
|
|
@@ -944,6 +1050,107 @@ class WeightedBackends {
|
|
|
944
1050
|
}
|
|
945
1051
|
}
|
|
946
1052
|
exports.WeightedBackends = WeightedBackends;
|
|
1053
|
+
class BotUsers {
|
|
1054
|
+
/** Do not construct this object directly, use the <code>botUsers</code> property of an <code>Ngrok</code> client object instead. */
|
|
1055
|
+
constructor(httpClient) {
|
|
1056
|
+
this.httpClient = httpClient;
|
|
1057
|
+
}
|
|
1058
|
+
/**
|
|
1059
|
+
* Create a new bot user
|
|
1060
|
+
*/
|
|
1061
|
+
create(arg) {
|
|
1062
|
+
return this.httpClient
|
|
1063
|
+
.url(`/bot_users`)
|
|
1064
|
+
.post(util.serializeArgument(arg))
|
|
1065
|
+
.json(payload => util.deserializeResult(payload))
|
|
1066
|
+
.then(f => f, util.onRejected);
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Delete a bot user by ID
|
|
1070
|
+
*/
|
|
1071
|
+
delete(id) {
|
|
1072
|
+
return this.httpClient
|
|
1073
|
+
.url(`/bot_users/${id}`)
|
|
1074
|
+
.delete(id)
|
|
1075
|
+
.json(payload => util.deserializeResult(payload))
|
|
1076
|
+
.then(f => f, util.onRejected);
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
* Get the details of a Bot User by ID.
|
|
1080
|
+
*/
|
|
1081
|
+
get(id) {
|
|
1082
|
+
return this.httpClient
|
|
1083
|
+
.url(`/bot_users/${id}`)
|
|
1084
|
+
.get(id)
|
|
1085
|
+
.json(payload => util.deserializeResult(payload))
|
|
1086
|
+
.then(f => f, util.onRejected);
|
|
1087
|
+
}
|
|
1088
|
+
/**
|
|
1089
|
+
* List all bot users in this account.
|
|
1090
|
+
*/
|
|
1091
|
+
list(beforeId, limit) {
|
|
1092
|
+
var e_11, _a;
|
|
1093
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1094
|
+
const array = [];
|
|
1095
|
+
try {
|
|
1096
|
+
for (var _b = __asyncValues(this._asyncList(beforeId, limit)), _c; _c = yield _b.next(), !_c.done;) {
|
|
1097
|
+
let item = _c.value;
|
|
1098
|
+
array.push(item);
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
|
1102
|
+
finally {
|
|
1103
|
+
try {
|
|
1104
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1105
|
+
}
|
|
1106
|
+
finally { if (e_11) throw e_11.error; }
|
|
1107
|
+
}
|
|
1108
|
+
return array;
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
_pagedList(arg) {
|
|
1112
|
+
return this.httpClient
|
|
1113
|
+
.url(`/bot_users`)
|
|
1114
|
+
.query(arg)
|
|
1115
|
+
.get()
|
|
1116
|
+
.json(payload => util.deserializeResult(payload))
|
|
1117
|
+
.then(util.onFulfilled, util.onRejected);
|
|
1118
|
+
}
|
|
1119
|
+
_asyncList(beforeId, limit = '100') {
|
|
1120
|
+
return __asyncGenerator(this, arguments, function* _asyncList_11() {
|
|
1121
|
+
let nextPage = 'initial loop';
|
|
1122
|
+
let page = { limit: limit };
|
|
1123
|
+
if (beforeId) {
|
|
1124
|
+
page.beforeId = beforeId;
|
|
1125
|
+
}
|
|
1126
|
+
while (nextPage) {
|
|
1127
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
1128
|
+
nextPage = pagedList.nextPageUri;
|
|
1129
|
+
const items = pagedList.botUsers;
|
|
1130
|
+
if (nextPage) {
|
|
1131
|
+
page = {
|
|
1132
|
+
beforeId: items[items.length - 1].id,
|
|
1133
|
+
limit: limit,
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
for (const item of items) {
|
|
1137
|
+
yield yield __await(item);
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* Update attributes of a bot user by ID.
|
|
1144
|
+
*/
|
|
1145
|
+
update(arg) {
|
|
1146
|
+
return this.httpClient
|
|
1147
|
+
.url(`/bot_users/${arg.id}`)
|
|
1148
|
+
.patch(util.serializeArgument(arg))
|
|
1149
|
+
.json(payload => util.deserializeResult(payload))
|
|
1150
|
+
.then(f => f, util.onRejected);
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
exports.BotUsers = BotUsers;
|
|
947
1154
|
/**
|
|
948
1155
|
* Certificate Authorities are x509 certificates that are used to sign other
|
|
949
1156
|
x509 certificates. Attach a Certificate Authority to the Mutual TLS module
|
|
@@ -990,7 +1197,7 @@ class CertificateAuthorities {
|
|
|
990
1197
|
* List all Certificate Authority on this account
|
|
991
1198
|
*/
|
|
992
1199
|
list(beforeId, limit) {
|
|
993
|
-
var
|
|
1200
|
+
var e_12, _a;
|
|
994
1201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
995
1202
|
const array = [];
|
|
996
1203
|
try {
|
|
@@ -999,12 +1206,12 @@ class CertificateAuthorities {
|
|
|
999
1206
|
array.push(item);
|
|
1000
1207
|
}
|
|
1001
1208
|
}
|
|
1002
|
-
catch (
|
|
1209
|
+
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
|
1003
1210
|
finally {
|
|
1004
1211
|
try {
|
|
1005
1212
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1006
1213
|
}
|
|
1007
|
-
finally { if (
|
|
1214
|
+
finally { if (e_12) throw e_12.error; }
|
|
1008
1215
|
}
|
|
1009
1216
|
return array;
|
|
1010
1217
|
});
|
|
@@ -1018,7 +1225,7 @@ class CertificateAuthorities {
|
|
|
1018
1225
|
.then(util.onFulfilled, util.onRejected);
|
|
1019
1226
|
}
|
|
1020
1227
|
_asyncList(beforeId, limit = '100') {
|
|
1021
|
-
return __asyncGenerator(this, arguments, function*
|
|
1228
|
+
return __asyncGenerator(this, arguments, function* _asyncList_12() {
|
|
1022
1229
|
let nextPage = 'initial loop';
|
|
1023
1230
|
let page = { limit: limit };
|
|
1024
1231
|
if (beforeId) {
|
|
@@ -1097,7 +1304,7 @@ class Credentials {
|
|
|
1097
1304
|
* List all tunnel authtoken credentials on this account
|
|
1098
1305
|
*/
|
|
1099
1306
|
list(beforeId, limit) {
|
|
1100
|
-
var
|
|
1307
|
+
var e_13, _a;
|
|
1101
1308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1102
1309
|
const array = [];
|
|
1103
1310
|
try {
|
|
@@ -1106,12 +1313,12 @@ class Credentials {
|
|
|
1106
1313
|
array.push(item);
|
|
1107
1314
|
}
|
|
1108
1315
|
}
|
|
1109
|
-
catch (
|
|
1316
|
+
catch (e_13_1) { e_13 = { error: e_13_1 }; }
|
|
1110
1317
|
finally {
|
|
1111
1318
|
try {
|
|
1112
1319
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1113
1320
|
}
|
|
1114
|
-
finally { if (
|
|
1321
|
+
finally { if (e_13) throw e_13.error; }
|
|
1115
1322
|
}
|
|
1116
1323
|
return array;
|
|
1117
1324
|
});
|
|
@@ -1125,7 +1332,7 @@ class Credentials {
|
|
|
1125
1332
|
.then(util.onFulfilled, util.onRejected);
|
|
1126
1333
|
}
|
|
1127
1334
|
_asyncList(beforeId, limit = '100') {
|
|
1128
|
-
return __asyncGenerator(this, arguments, function*
|
|
1335
|
+
return __asyncGenerator(this, arguments, function* _asyncList_13() {
|
|
1129
1336
|
let nextPage = 'initial loop';
|
|
1130
1337
|
let page = { limit: limit };
|
|
1131
1338
|
if (beforeId) {
|
|
@@ -1235,7 +1442,7 @@ class EdgesHTTPS {
|
|
|
1235
1442
|
* Returns a list of all HTTPS Edges on this account
|
|
1236
1443
|
*/
|
|
1237
1444
|
list(beforeId, limit) {
|
|
1238
|
-
var
|
|
1445
|
+
var e_14, _a;
|
|
1239
1446
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1240
1447
|
const array = [];
|
|
1241
1448
|
try {
|
|
@@ -1244,12 +1451,12 @@ class EdgesHTTPS {
|
|
|
1244
1451
|
array.push(item);
|
|
1245
1452
|
}
|
|
1246
1453
|
}
|
|
1247
|
-
catch (
|
|
1454
|
+
catch (e_14_1) { e_14 = { error: e_14_1 }; }
|
|
1248
1455
|
finally {
|
|
1249
1456
|
try {
|
|
1250
1457
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1251
1458
|
}
|
|
1252
|
-
finally { if (
|
|
1459
|
+
finally { if (e_14) throw e_14.error; }
|
|
1253
1460
|
}
|
|
1254
1461
|
return array;
|
|
1255
1462
|
});
|
|
@@ -1263,7 +1470,7 @@ class EdgesHTTPS {
|
|
|
1263
1470
|
.then(util.onFulfilled, util.onRejected);
|
|
1264
1471
|
}
|
|
1265
1472
|
_asyncList(beforeId, limit = '100') {
|
|
1266
|
-
return __asyncGenerator(this, arguments, function*
|
|
1473
|
+
return __asyncGenerator(this, arguments, function* _asyncList_14() {
|
|
1267
1474
|
let nextPage = 'initial loop';
|
|
1268
1475
|
let page = { limit: limit };
|
|
1269
1476
|
if (beforeId) {
|
|
@@ -1671,6 +1878,62 @@ class EdgeRouteWebsocketTCPConverterModule {
|
|
|
1671
1878
|
}
|
|
1672
1879
|
}
|
|
1673
1880
|
exports.EdgeRouteWebsocketTCPConverterModule = EdgeRouteWebsocketTCPConverterModule;
|
|
1881
|
+
class EdgeRouteUserAgentFilterModule {
|
|
1882
|
+
/** Do not construct this object directly, use the <code>edgeRouteUserAgentFilterModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1883
|
+
constructor(httpClient) {
|
|
1884
|
+
this.httpClient = httpClient;
|
|
1885
|
+
}
|
|
1886
|
+
replace(arg) {
|
|
1887
|
+
return this.httpClient
|
|
1888
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/user_agent_filter`)
|
|
1889
|
+
.put(util.serializeArgument(arg))
|
|
1890
|
+
.json(payload => util.deserializeResult(payload))
|
|
1891
|
+
.then(f => f, util.onRejected);
|
|
1892
|
+
}
|
|
1893
|
+
get(arg) {
|
|
1894
|
+
return this.httpClient
|
|
1895
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/user_agent_filter`)
|
|
1896
|
+
.get()
|
|
1897
|
+
.json(payload => util.deserializeResult(payload))
|
|
1898
|
+
.then(f => f, util.onRejected);
|
|
1899
|
+
}
|
|
1900
|
+
delete(arg) {
|
|
1901
|
+
return this.httpClient
|
|
1902
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/user_agent_filter`)
|
|
1903
|
+
.delete()
|
|
1904
|
+
.json(payload => util.deserializeResult(payload))
|
|
1905
|
+
.then(f => f, util.onRejected);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
exports.EdgeRouteUserAgentFilterModule = EdgeRouteUserAgentFilterModule;
|
|
1909
|
+
class EdgeRoutePolicyModule {
|
|
1910
|
+
/** Do not construct this object directly, use the <code>edgeRoutePolicyModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1911
|
+
constructor(httpClient) {
|
|
1912
|
+
this.httpClient = httpClient;
|
|
1913
|
+
}
|
|
1914
|
+
replace(arg) {
|
|
1915
|
+
return this.httpClient
|
|
1916
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/policy`)
|
|
1917
|
+
.put(util.serializeArgument(arg))
|
|
1918
|
+
.json(payload => util.deserializeResult(payload))
|
|
1919
|
+
.then(f => f, util.onRejected);
|
|
1920
|
+
}
|
|
1921
|
+
get(arg) {
|
|
1922
|
+
return this.httpClient
|
|
1923
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/policy`)
|
|
1924
|
+
.get()
|
|
1925
|
+
.json(payload => util.deserializeResult(payload))
|
|
1926
|
+
.then(f => f, util.onRejected);
|
|
1927
|
+
}
|
|
1928
|
+
delete(arg) {
|
|
1929
|
+
return this.httpClient
|
|
1930
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/policy`)
|
|
1931
|
+
.delete()
|
|
1932
|
+
.json(payload => util.deserializeResult(payload))
|
|
1933
|
+
.then(f => f, util.onRejected);
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
exports.EdgeRoutePolicyModule = EdgeRoutePolicyModule;
|
|
1674
1937
|
class EdgesTCP {
|
|
1675
1938
|
/** Do not construct this object directly, use the <code>edgesTcp</code> property of an <code>Ngrok</code> client object instead. */
|
|
1676
1939
|
constructor(httpClient) {
|
|
@@ -1700,7 +1963,7 @@ class EdgesTCP {
|
|
|
1700
1963
|
* Returns a list of all TCP Edges on this account
|
|
1701
1964
|
*/
|
|
1702
1965
|
list(beforeId, limit) {
|
|
1703
|
-
var
|
|
1966
|
+
var e_15, _a;
|
|
1704
1967
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1705
1968
|
const array = [];
|
|
1706
1969
|
try {
|
|
@@ -1709,12 +1972,12 @@ class EdgesTCP {
|
|
|
1709
1972
|
array.push(item);
|
|
1710
1973
|
}
|
|
1711
1974
|
}
|
|
1712
|
-
catch (
|
|
1975
|
+
catch (e_15_1) { e_15 = { error: e_15_1 }; }
|
|
1713
1976
|
finally {
|
|
1714
1977
|
try {
|
|
1715
1978
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1716
1979
|
}
|
|
1717
|
-
finally { if (
|
|
1980
|
+
finally { if (e_15) throw e_15.error; }
|
|
1718
1981
|
}
|
|
1719
1982
|
return array;
|
|
1720
1983
|
});
|
|
@@ -1728,7 +1991,7 @@ class EdgesTCP {
|
|
|
1728
1991
|
.then(util.onFulfilled, util.onRejected);
|
|
1729
1992
|
}
|
|
1730
1993
|
_asyncList(beforeId, limit = '100') {
|
|
1731
|
-
return __asyncGenerator(this, arguments, function*
|
|
1994
|
+
return __asyncGenerator(this, arguments, function* _asyncList_15() {
|
|
1732
1995
|
let nextPage = 'initial loop';
|
|
1733
1996
|
let page = { limit: limit };
|
|
1734
1997
|
if (beforeId) {
|
|
@@ -1828,6 +2091,34 @@ class TCPEdgeIPRestrictionModule {
|
|
|
1828
2091
|
}
|
|
1829
2092
|
}
|
|
1830
2093
|
exports.TCPEdgeIPRestrictionModule = TCPEdgeIPRestrictionModule;
|
|
2094
|
+
class TCPEdgePolicyModule {
|
|
2095
|
+
/** Do not construct this object directly, use the <code>tcpEdgePolicyModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
2096
|
+
constructor(httpClient) {
|
|
2097
|
+
this.httpClient = httpClient;
|
|
2098
|
+
}
|
|
2099
|
+
replace(arg) {
|
|
2100
|
+
return this.httpClient
|
|
2101
|
+
.url(`/edges/tcp/${arg.id}/policy`)
|
|
2102
|
+
.put(util.serializeArgument(arg))
|
|
2103
|
+
.json(payload => util.deserializeResult(payload))
|
|
2104
|
+
.then(f => f, util.onRejected);
|
|
2105
|
+
}
|
|
2106
|
+
get(id) {
|
|
2107
|
+
return this.httpClient
|
|
2108
|
+
.url(`/edges/tcp/${id}/policy`)
|
|
2109
|
+
.get(id)
|
|
2110
|
+
.json(payload => util.deserializeResult(payload))
|
|
2111
|
+
.then(f => f, util.onRejected);
|
|
2112
|
+
}
|
|
2113
|
+
delete(id) {
|
|
2114
|
+
return this.httpClient
|
|
2115
|
+
.url(`/edges/tcp/${id}/policy`)
|
|
2116
|
+
.delete(id)
|
|
2117
|
+
.json(payload => util.deserializeResult(payload))
|
|
2118
|
+
.then(f => f, util.onRejected);
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
exports.TCPEdgePolicyModule = TCPEdgePolicyModule;
|
|
1831
2122
|
class EdgesTLS {
|
|
1832
2123
|
/** Do not construct this object directly, use the <code>edgesTls</code> property of an <code>Ngrok</code> client object instead. */
|
|
1833
2124
|
constructor(httpClient) {
|
|
@@ -1857,7 +2148,7 @@ class EdgesTLS {
|
|
|
1857
2148
|
* Returns a list of all TLS Edges on this account
|
|
1858
2149
|
*/
|
|
1859
2150
|
list(beforeId, limit) {
|
|
1860
|
-
var
|
|
2151
|
+
var e_16, _a;
|
|
1861
2152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1862
2153
|
const array = [];
|
|
1863
2154
|
try {
|
|
@@ -1866,12 +2157,12 @@ class EdgesTLS {
|
|
|
1866
2157
|
array.push(item);
|
|
1867
2158
|
}
|
|
1868
2159
|
}
|
|
1869
|
-
catch (
|
|
2160
|
+
catch (e_16_1) { e_16 = { error: e_16_1 }; }
|
|
1870
2161
|
finally {
|
|
1871
2162
|
try {
|
|
1872
2163
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
1873
2164
|
}
|
|
1874
|
-
finally { if (
|
|
2165
|
+
finally { if (e_16) throw e_16.error; }
|
|
1875
2166
|
}
|
|
1876
2167
|
return array;
|
|
1877
2168
|
});
|
|
@@ -1885,7 +2176,7 @@ class EdgesTLS {
|
|
|
1885
2176
|
.then(util.onFulfilled, util.onRejected);
|
|
1886
2177
|
}
|
|
1887
2178
|
_asyncList(beforeId, limit = '100') {
|
|
1888
|
-
return __asyncGenerator(this, arguments, function*
|
|
2179
|
+
return __asyncGenerator(this, arguments, function* _asyncList_16() {
|
|
1889
2180
|
let nextPage = 'initial loop';
|
|
1890
2181
|
let page = { limit: limit };
|
|
1891
2182
|
if (beforeId) {
|
|
@@ -2041,6 +2332,34 @@ class TLSEdgeTLSTerminationModule {
|
|
|
2041
2332
|
}
|
|
2042
2333
|
}
|
|
2043
2334
|
exports.TLSEdgeTLSTerminationModule = TLSEdgeTLSTerminationModule;
|
|
2335
|
+
class TLSEdgePolicyModule {
|
|
2336
|
+
/** Do not construct this object directly, use the <code>tlsEdgePolicyModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
2337
|
+
constructor(httpClient) {
|
|
2338
|
+
this.httpClient = httpClient;
|
|
2339
|
+
}
|
|
2340
|
+
replace(arg) {
|
|
2341
|
+
return this.httpClient
|
|
2342
|
+
.url(`/edges/tls/${arg.id}/policy`)
|
|
2343
|
+
.put(util.serializeArgument(arg))
|
|
2344
|
+
.json(payload => util.deserializeResult(payload))
|
|
2345
|
+
.then(f => f, util.onRejected);
|
|
2346
|
+
}
|
|
2347
|
+
get(id) {
|
|
2348
|
+
return this.httpClient
|
|
2349
|
+
.url(`/edges/tls/${id}/policy`)
|
|
2350
|
+
.get(id)
|
|
2351
|
+
.json(payload => util.deserializeResult(payload))
|
|
2352
|
+
.then(f => f, util.onRejected);
|
|
2353
|
+
}
|
|
2354
|
+
delete(id) {
|
|
2355
|
+
return this.httpClient
|
|
2356
|
+
.url(`/edges/tls/${id}/policy`)
|
|
2357
|
+
.delete(id)
|
|
2358
|
+
.json(payload => util.deserializeResult(payload))
|
|
2359
|
+
.then(f => f, util.onRejected);
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
exports.TLSEdgePolicyModule = TLSEdgePolicyModule;
|
|
2044
2363
|
/**
|
|
2045
2364
|
* Endpoints provides an API for querying the endpoint objects
|
|
2046
2365
|
which define what tunnel or edge is used to serve a hostport.
|
|
@@ -2055,7 +2374,7 @@ class Endpoints {
|
|
|
2055
2374
|
* List all active endpoints on the account
|
|
2056
2375
|
*/
|
|
2057
2376
|
list(beforeId, limit) {
|
|
2058
|
-
var
|
|
2377
|
+
var e_17, _a;
|
|
2059
2378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2060
2379
|
const array = [];
|
|
2061
2380
|
try {
|
|
@@ -2064,12 +2383,12 @@ class Endpoints {
|
|
|
2064
2383
|
array.push(item);
|
|
2065
2384
|
}
|
|
2066
2385
|
}
|
|
2067
|
-
catch (
|
|
2386
|
+
catch (e_17_1) { e_17 = { error: e_17_1 }; }
|
|
2068
2387
|
finally {
|
|
2069
2388
|
try {
|
|
2070
2389
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2071
2390
|
}
|
|
2072
|
-
finally { if (
|
|
2391
|
+
finally { if (e_17) throw e_17.error; }
|
|
2073
2392
|
}
|
|
2074
2393
|
return array;
|
|
2075
2394
|
});
|
|
@@ -2083,7 +2402,7 @@ class Endpoints {
|
|
|
2083
2402
|
.then(util.onFulfilled, util.onRejected);
|
|
2084
2403
|
}
|
|
2085
2404
|
_asyncList(beforeId, limit = '100') {
|
|
2086
|
-
return __asyncGenerator(this, arguments, function*
|
|
2405
|
+
return __asyncGenerator(this, arguments, function* _asyncList_17() {
|
|
2087
2406
|
let nextPage = 'initial loop';
|
|
2088
2407
|
let page = { limit: limit };
|
|
2089
2408
|
if (beforeId) {
|
|
@@ -2156,7 +2475,7 @@ class EventDestinations {
|
|
|
2156
2475
|
* List all Event Destinations on this account.
|
|
2157
2476
|
*/
|
|
2158
2477
|
list(beforeId, limit) {
|
|
2159
|
-
var
|
|
2478
|
+
var e_18, _a;
|
|
2160
2479
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2161
2480
|
const array = [];
|
|
2162
2481
|
try {
|
|
@@ -2165,12 +2484,12 @@ class EventDestinations {
|
|
|
2165
2484
|
array.push(item);
|
|
2166
2485
|
}
|
|
2167
2486
|
}
|
|
2168
|
-
catch (
|
|
2487
|
+
catch (e_18_1) { e_18 = { error: e_18_1 }; }
|
|
2169
2488
|
finally {
|
|
2170
2489
|
try {
|
|
2171
2490
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2172
2491
|
}
|
|
2173
|
-
finally { if (
|
|
2492
|
+
finally { if (e_18) throw e_18.error; }
|
|
2174
2493
|
}
|
|
2175
2494
|
return array;
|
|
2176
2495
|
});
|
|
@@ -2184,7 +2503,7 @@ class EventDestinations {
|
|
|
2184
2503
|
.then(util.onFulfilled, util.onRejected);
|
|
2185
2504
|
}
|
|
2186
2505
|
_asyncList(beforeId, limit = '100') {
|
|
2187
|
-
return __asyncGenerator(this, arguments, function*
|
|
2506
|
+
return __asyncGenerator(this, arguments, function* _asyncList_18() {
|
|
2188
2507
|
let nextPage = 'initial loop';
|
|
2189
2508
|
let page = { limit: limit };
|
|
2190
2509
|
if (beforeId) {
|
|
@@ -2257,7 +2576,7 @@ class EventSubscriptions {
|
|
|
2257
2576
|
* List this Account's Event Subscriptions.
|
|
2258
2577
|
*/
|
|
2259
2578
|
list(beforeId, limit) {
|
|
2260
|
-
var
|
|
2579
|
+
var e_19, _a;
|
|
2261
2580
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2262
2581
|
const array = [];
|
|
2263
2582
|
try {
|
|
@@ -2266,12 +2585,12 @@ class EventSubscriptions {
|
|
|
2266
2585
|
array.push(item);
|
|
2267
2586
|
}
|
|
2268
2587
|
}
|
|
2269
|
-
catch (
|
|
2588
|
+
catch (e_19_1) { e_19 = { error: e_19_1 }; }
|
|
2270
2589
|
finally {
|
|
2271
2590
|
try {
|
|
2272
2591
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2273
2592
|
}
|
|
2274
|
-
finally { if (
|
|
2593
|
+
finally { if (e_19) throw e_19.error; }
|
|
2275
2594
|
}
|
|
2276
2595
|
return array;
|
|
2277
2596
|
});
|
|
@@ -2285,7 +2604,7 @@ class EventSubscriptions {
|
|
|
2285
2604
|
.then(util.onFulfilled, util.onRejected);
|
|
2286
2605
|
}
|
|
2287
2606
|
_asyncList(beforeId, limit = '100') {
|
|
2288
|
-
return __asyncGenerator(this, arguments, function*
|
|
2607
|
+
return __asyncGenerator(this, arguments, function* _asyncList_19() {
|
|
2289
2608
|
let nextPage = 'initial loop';
|
|
2290
2609
|
let page = { limit: limit };
|
|
2291
2610
|
if (beforeId) {
|
|
@@ -2421,7 +2740,7 @@ class IPPolicies {
|
|
|
2421
2740
|
* List all IP policies on this account
|
|
2422
2741
|
*/
|
|
2423
2742
|
list(beforeId, limit) {
|
|
2424
|
-
var
|
|
2743
|
+
var e_20, _a;
|
|
2425
2744
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2426
2745
|
const array = [];
|
|
2427
2746
|
try {
|
|
@@ -2430,12 +2749,12 @@ class IPPolicies {
|
|
|
2430
2749
|
array.push(item);
|
|
2431
2750
|
}
|
|
2432
2751
|
}
|
|
2433
|
-
catch (
|
|
2752
|
+
catch (e_20_1) { e_20 = { error: e_20_1 }; }
|
|
2434
2753
|
finally {
|
|
2435
2754
|
try {
|
|
2436
2755
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2437
2756
|
}
|
|
2438
|
-
finally { if (
|
|
2757
|
+
finally { if (e_20) throw e_20.error; }
|
|
2439
2758
|
}
|
|
2440
2759
|
return array;
|
|
2441
2760
|
});
|
|
@@ -2449,7 +2768,7 @@ class IPPolicies {
|
|
|
2449
2768
|
.then(util.onFulfilled, util.onRejected);
|
|
2450
2769
|
}
|
|
2451
2770
|
_asyncList(beforeId, limit = '100') {
|
|
2452
|
-
return __asyncGenerator(this, arguments, function*
|
|
2771
|
+
return __asyncGenerator(this, arguments, function* _asyncList_20() {
|
|
2453
2772
|
let nextPage = 'initial loop';
|
|
2454
2773
|
let page = { limit: limit };
|
|
2455
2774
|
if (beforeId) {
|
|
@@ -2526,7 +2845,7 @@ class IPPolicyRules {
|
|
|
2526
2845
|
* List all IP policy rules on this account
|
|
2527
2846
|
*/
|
|
2528
2847
|
list(beforeId, limit) {
|
|
2529
|
-
var
|
|
2848
|
+
var e_21, _a;
|
|
2530
2849
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2531
2850
|
const array = [];
|
|
2532
2851
|
try {
|
|
@@ -2535,12 +2854,12 @@ class IPPolicyRules {
|
|
|
2535
2854
|
array.push(item);
|
|
2536
2855
|
}
|
|
2537
2856
|
}
|
|
2538
|
-
catch (
|
|
2857
|
+
catch (e_21_1) { e_21 = { error: e_21_1 }; }
|
|
2539
2858
|
finally {
|
|
2540
2859
|
try {
|
|
2541
2860
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2542
2861
|
}
|
|
2543
|
-
finally { if (
|
|
2862
|
+
finally { if (e_21) throw e_21.error; }
|
|
2544
2863
|
}
|
|
2545
2864
|
return array;
|
|
2546
2865
|
});
|
|
@@ -2554,7 +2873,7 @@ class IPPolicyRules {
|
|
|
2554
2873
|
.then(util.onFulfilled, util.onRejected);
|
|
2555
2874
|
}
|
|
2556
2875
|
_asyncList(beforeId, limit = '100') {
|
|
2557
|
-
return __asyncGenerator(this, arguments, function*
|
|
2876
|
+
return __asyncGenerator(this, arguments, function* _asyncList_21() {
|
|
2558
2877
|
let nextPage = 'initial loop';
|
|
2559
2878
|
let page = { limit: limit };
|
|
2560
2879
|
if (beforeId) {
|
|
@@ -2635,7 +2954,7 @@ class IPRestrictions {
|
|
|
2635
2954
|
* List all IP restrictions on this account
|
|
2636
2955
|
*/
|
|
2637
2956
|
list(beforeId, limit) {
|
|
2638
|
-
var
|
|
2957
|
+
var e_22, _a;
|
|
2639
2958
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2640
2959
|
const array = [];
|
|
2641
2960
|
try {
|
|
@@ -2644,12 +2963,12 @@ class IPRestrictions {
|
|
|
2644
2963
|
array.push(item);
|
|
2645
2964
|
}
|
|
2646
2965
|
}
|
|
2647
|
-
catch (
|
|
2966
|
+
catch (e_22_1) { e_22 = { error: e_22_1 }; }
|
|
2648
2967
|
finally {
|
|
2649
2968
|
try {
|
|
2650
2969
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2651
2970
|
}
|
|
2652
|
-
finally { if (
|
|
2971
|
+
finally { if (e_22) throw e_22.error; }
|
|
2653
2972
|
}
|
|
2654
2973
|
return array;
|
|
2655
2974
|
});
|
|
@@ -2663,7 +2982,7 @@ class IPRestrictions {
|
|
|
2663
2982
|
.then(util.onFulfilled, util.onRejected);
|
|
2664
2983
|
}
|
|
2665
2984
|
_asyncList(beforeId, limit = '100') {
|
|
2666
|
-
return __asyncGenerator(this, arguments, function*
|
|
2985
|
+
return __asyncGenerator(this, arguments, function* _asyncList_22() {
|
|
2667
2986
|
let nextPage = 'initial loop';
|
|
2668
2987
|
let page = { limit: limit };
|
|
2669
2988
|
if (beforeId) {
|
|
@@ -2741,7 +3060,7 @@ class ReservedAddrs {
|
|
|
2741
3060
|
* List all reserved addresses on this account.
|
|
2742
3061
|
*/
|
|
2743
3062
|
list(beforeId, limit) {
|
|
2744
|
-
var
|
|
3063
|
+
var e_23, _a;
|
|
2745
3064
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2746
3065
|
const array = [];
|
|
2747
3066
|
try {
|
|
@@ -2750,12 +3069,12 @@ class ReservedAddrs {
|
|
|
2750
3069
|
array.push(item);
|
|
2751
3070
|
}
|
|
2752
3071
|
}
|
|
2753
|
-
catch (
|
|
3072
|
+
catch (e_23_1) { e_23 = { error: e_23_1 }; }
|
|
2754
3073
|
finally {
|
|
2755
3074
|
try {
|
|
2756
3075
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2757
3076
|
}
|
|
2758
|
-
finally { if (
|
|
3077
|
+
finally { if (e_23) throw e_23.error; }
|
|
2759
3078
|
}
|
|
2760
3079
|
return array;
|
|
2761
3080
|
});
|
|
@@ -2769,7 +3088,7 @@ class ReservedAddrs {
|
|
|
2769
3088
|
.then(util.onFulfilled, util.onRejected);
|
|
2770
3089
|
}
|
|
2771
3090
|
_asyncList(beforeId, limit = '100') {
|
|
2772
|
-
return __asyncGenerator(this, arguments, function*
|
|
3091
|
+
return __asyncGenerator(this, arguments, function* _asyncList_23() {
|
|
2773
3092
|
let nextPage = 'initial loop';
|
|
2774
3093
|
let page = { limit: limit };
|
|
2775
3094
|
if (beforeId) {
|
|
@@ -2848,7 +3167,7 @@ class ReservedDomains {
|
|
|
2848
3167
|
* List all reserved domains on this account.
|
|
2849
3168
|
*/
|
|
2850
3169
|
list(beforeId, limit) {
|
|
2851
|
-
var
|
|
3170
|
+
var e_24, _a;
|
|
2852
3171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2853
3172
|
const array = [];
|
|
2854
3173
|
try {
|
|
@@ -2857,12 +3176,12 @@ class ReservedDomains {
|
|
|
2857
3176
|
array.push(item);
|
|
2858
3177
|
}
|
|
2859
3178
|
}
|
|
2860
|
-
catch (
|
|
3179
|
+
catch (e_24_1) { e_24 = { error: e_24_1 }; }
|
|
2861
3180
|
finally {
|
|
2862
3181
|
try {
|
|
2863
3182
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2864
3183
|
}
|
|
2865
|
-
finally { if (
|
|
3184
|
+
finally { if (e_24) throw e_24.error; }
|
|
2866
3185
|
}
|
|
2867
3186
|
return array;
|
|
2868
3187
|
});
|
|
@@ -2876,7 +3195,7 @@ class ReservedDomains {
|
|
|
2876
3195
|
.then(util.onFulfilled, util.onRejected);
|
|
2877
3196
|
}
|
|
2878
3197
|
_asyncList(beforeId, limit = '100') {
|
|
2879
|
-
return __asyncGenerator(this, arguments, function*
|
|
3198
|
+
return __asyncGenerator(this, arguments, function* _asyncList_24() {
|
|
2880
3199
|
let nextPage = 'initial loop';
|
|
2881
3200
|
let page = { limit: limit };
|
|
2882
3201
|
if (beforeId) {
|
|
@@ -2973,7 +3292,7 @@ class SSHCertificateAuthorities {
|
|
|
2973
3292
|
* List all SSH Certificate Authorities on this account
|
|
2974
3293
|
*/
|
|
2975
3294
|
list(beforeId, limit) {
|
|
2976
|
-
var
|
|
3295
|
+
var e_25, _a;
|
|
2977
3296
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2978
3297
|
const array = [];
|
|
2979
3298
|
try {
|
|
@@ -2982,12 +3301,12 @@ class SSHCertificateAuthorities {
|
|
|
2982
3301
|
array.push(item);
|
|
2983
3302
|
}
|
|
2984
3303
|
}
|
|
2985
|
-
catch (
|
|
3304
|
+
catch (e_25_1) { e_25 = { error: e_25_1 }; }
|
|
2986
3305
|
finally {
|
|
2987
3306
|
try {
|
|
2988
3307
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
2989
3308
|
}
|
|
2990
|
-
finally { if (
|
|
3309
|
+
finally { if (e_25) throw e_25.error; }
|
|
2991
3310
|
}
|
|
2992
3311
|
return array;
|
|
2993
3312
|
});
|
|
@@ -3001,7 +3320,7 @@ class SSHCertificateAuthorities {
|
|
|
3001
3320
|
.then(util.onFulfilled, util.onRejected);
|
|
3002
3321
|
}
|
|
3003
3322
|
_asyncList(beforeId, limit = '100') {
|
|
3004
|
-
return __asyncGenerator(this, arguments, function*
|
|
3323
|
+
return __asyncGenerator(this, arguments, function* _asyncList_25() {
|
|
3005
3324
|
let nextPage = 'initial loop';
|
|
3006
3325
|
let page = { limit: limit };
|
|
3007
3326
|
if (beforeId) {
|
|
@@ -3078,7 +3397,7 @@ class SSHCredentials {
|
|
|
3078
3397
|
* List all ssh credentials on this account
|
|
3079
3398
|
*/
|
|
3080
3399
|
list(beforeId, limit) {
|
|
3081
|
-
var
|
|
3400
|
+
var e_26, _a;
|
|
3082
3401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3083
3402
|
const array = [];
|
|
3084
3403
|
try {
|
|
@@ -3087,12 +3406,12 @@ class SSHCredentials {
|
|
|
3087
3406
|
array.push(item);
|
|
3088
3407
|
}
|
|
3089
3408
|
}
|
|
3090
|
-
catch (
|
|
3409
|
+
catch (e_26_1) { e_26 = { error: e_26_1 }; }
|
|
3091
3410
|
finally {
|
|
3092
3411
|
try {
|
|
3093
3412
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3094
3413
|
}
|
|
3095
|
-
finally { if (
|
|
3414
|
+
finally { if (e_26) throw e_26.error; }
|
|
3096
3415
|
}
|
|
3097
3416
|
return array;
|
|
3098
3417
|
});
|
|
@@ -3106,7 +3425,7 @@ class SSHCredentials {
|
|
|
3106
3425
|
.then(util.onFulfilled, util.onRejected);
|
|
3107
3426
|
}
|
|
3108
3427
|
_asyncList(beforeId, limit = '100') {
|
|
3109
|
-
return __asyncGenerator(this, arguments, function*
|
|
3428
|
+
return __asyncGenerator(this, arguments, function* _asyncList_26() {
|
|
3110
3429
|
let nextPage = 'initial loop';
|
|
3111
3430
|
let page = { limit: limit };
|
|
3112
3431
|
if (beforeId) {
|
|
@@ -3184,7 +3503,7 @@ class SSHHostCertificates {
|
|
|
3184
3503
|
* List all SSH Host Certificates issued on this account
|
|
3185
3504
|
*/
|
|
3186
3505
|
list(beforeId, limit) {
|
|
3187
|
-
var
|
|
3506
|
+
var e_27, _a;
|
|
3188
3507
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3189
3508
|
const array = [];
|
|
3190
3509
|
try {
|
|
@@ -3193,12 +3512,12 @@ class SSHHostCertificates {
|
|
|
3193
3512
|
array.push(item);
|
|
3194
3513
|
}
|
|
3195
3514
|
}
|
|
3196
|
-
catch (
|
|
3515
|
+
catch (e_27_1) { e_27 = { error: e_27_1 }; }
|
|
3197
3516
|
finally {
|
|
3198
3517
|
try {
|
|
3199
3518
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3200
3519
|
}
|
|
3201
|
-
finally { if (
|
|
3520
|
+
finally { if (e_27) throw e_27.error; }
|
|
3202
3521
|
}
|
|
3203
3522
|
return array;
|
|
3204
3523
|
});
|
|
@@ -3212,7 +3531,7 @@ class SSHHostCertificates {
|
|
|
3212
3531
|
.then(util.onFulfilled, util.onRejected);
|
|
3213
3532
|
}
|
|
3214
3533
|
_asyncList(beforeId, limit = '100') {
|
|
3215
|
-
return __asyncGenerator(this, arguments, function*
|
|
3534
|
+
return __asyncGenerator(this, arguments, function* _asyncList_27() {
|
|
3216
3535
|
let nextPage = 'initial loop';
|
|
3217
3536
|
let page = { limit: limit };
|
|
3218
3537
|
if (beforeId) {
|
|
@@ -3290,7 +3609,7 @@ class SSHUserCertificates {
|
|
|
3290
3609
|
* List all SSH User Certificates issued on this account
|
|
3291
3610
|
*/
|
|
3292
3611
|
list(beforeId, limit) {
|
|
3293
|
-
var
|
|
3612
|
+
var e_28, _a;
|
|
3294
3613
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3295
3614
|
const array = [];
|
|
3296
3615
|
try {
|
|
@@ -3299,12 +3618,12 @@ class SSHUserCertificates {
|
|
|
3299
3618
|
array.push(item);
|
|
3300
3619
|
}
|
|
3301
3620
|
}
|
|
3302
|
-
catch (
|
|
3621
|
+
catch (e_28_1) { e_28 = { error: e_28_1 }; }
|
|
3303
3622
|
finally {
|
|
3304
3623
|
try {
|
|
3305
3624
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3306
3625
|
}
|
|
3307
|
-
finally { if (
|
|
3626
|
+
finally { if (e_28) throw e_28.error; }
|
|
3308
3627
|
}
|
|
3309
3628
|
return array;
|
|
3310
3629
|
});
|
|
@@ -3318,7 +3637,7 @@ class SSHUserCertificates {
|
|
|
3318
3637
|
.then(util.onFulfilled, util.onRejected);
|
|
3319
3638
|
}
|
|
3320
3639
|
_asyncList(beforeId, limit = '100') {
|
|
3321
|
-
return __asyncGenerator(this, arguments, function*
|
|
3640
|
+
return __asyncGenerator(this, arguments, function* _asyncList_28() {
|
|
3322
3641
|
let nextPage = 'initial loop';
|
|
3323
3642
|
let page = { limit: limit };
|
|
3324
3643
|
if (beforeId) {
|
|
@@ -3398,7 +3717,7 @@ class TLSCertificates {
|
|
|
3398
3717
|
* List all TLS certificates on this account
|
|
3399
3718
|
*/
|
|
3400
3719
|
list(beforeId, limit) {
|
|
3401
|
-
var
|
|
3720
|
+
var e_29, _a;
|
|
3402
3721
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3403
3722
|
const array = [];
|
|
3404
3723
|
try {
|
|
@@ -3407,12 +3726,12 @@ class TLSCertificates {
|
|
|
3407
3726
|
array.push(item);
|
|
3408
3727
|
}
|
|
3409
3728
|
}
|
|
3410
|
-
catch (
|
|
3729
|
+
catch (e_29_1) { e_29 = { error: e_29_1 }; }
|
|
3411
3730
|
finally {
|
|
3412
3731
|
try {
|
|
3413
3732
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3414
3733
|
}
|
|
3415
|
-
finally { if (
|
|
3734
|
+
finally { if (e_29) throw e_29.error; }
|
|
3416
3735
|
}
|
|
3417
3736
|
return array;
|
|
3418
3737
|
});
|
|
@@ -3426,7 +3745,7 @@ class TLSCertificates {
|
|
|
3426
3745
|
.then(util.onFulfilled, util.onRejected);
|
|
3427
3746
|
}
|
|
3428
3747
|
_asyncList(beforeId, limit = '100') {
|
|
3429
|
-
return __asyncGenerator(this, arguments, function*
|
|
3748
|
+
return __asyncGenerator(this, arguments, function* _asyncList_29() {
|
|
3430
3749
|
let nextPage = 'initial loop';
|
|
3431
3750
|
let page = { limit: limit };
|
|
3432
3751
|
if (beforeId) {
|
|
@@ -3473,7 +3792,7 @@ class Tunnels {
|
|
|
3473
3792
|
* List all online tunnels currently running on the account.
|
|
3474
3793
|
*/
|
|
3475
3794
|
list(beforeId, limit) {
|
|
3476
|
-
var
|
|
3795
|
+
var e_30, _a;
|
|
3477
3796
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3478
3797
|
const array = [];
|
|
3479
3798
|
try {
|
|
@@ -3482,12 +3801,12 @@ class Tunnels {
|
|
|
3482
3801
|
array.push(item);
|
|
3483
3802
|
}
|
|
3484
3803
|
}
|
|
3485
|
-
catch (
|
|
3804
|
+
catch (e_30_1) { e_30 = { error: e_30_1 }; }
|
|
3486
3805
|
finally {
|
|
3487
3806
|
try {
|
|
3488
3807
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3489
3808
|
}
|
|
3490
|
-
finally { if (
|
|
3809
|
+
finally { if (e_30) throw e_30.error; }
|
|
3491
3810
|
}
|
|
3492
3811
|
return array;
|
|
3493
3812
|
});
|
|
@@ -3501,7 +3820,7 @@ class Tunnels {
|
|
|
3501
3820
|
.then(util.onFulfilled, util.onRejected);
|
|
3502
3821
|
}
|
|
3503
3822
|
_asyncList(beforeId, limit = '100') {
|
|
3504
|
-
return __asyncGenerator(this, arguments, function*
|
|
3823
|
+
return __asyncGenerator(this, arguments, function* _asyncList_30() {
|
|
3505
3824
|
let nextPage = 'initial loop';
|
|
3506
3825
|
let page = { limit: limit };
|
|
3507
3826
|
if (beforeId) {
|