@ngrok/ngrok-api 0.13.0 → 0.17.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/.github/workflows/ci.yml +28 -0
- package/CHANGELOG.md +15 -0
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/client.Ngrok.html +66 -28
- package/docs/classes/services.APIKeys.html +6 -6
- package/docs/classes/services.AbuseReports.html +3 -3
- package/docs/classes/services.AgentIngresses.html +6 -6
- package/docs/classes/services.ApplicationSessions.html +4 -4
- package/docs/classes/services.ApplicationUsers.html +4 -4
- package/docs/classes/services.BotUsers.html +6 -6
- package/docs/classes/services.CertificateAuthorities.html +6 -6
- package/docs/classes/services.Credentials.html +6 -6
- package/docs/classes/services.EdgeRouteBackendModule.html +4 -4
- package/docs/classes/services.EdgeRouteCircuitBreakerModule.html +4 -4
- package/docs/classes/services.EdgeRouteCompressionModule.html +4 -4
- package/docs/classes/services.EdgeRouteIPRestrictionModule.html +4 -4
- package/docs/classes/services.EdgeRouteOAuthModule.html +4 -4
- package/docs/classes/services.EdgeRouteOIDCModule.html +4 -4
- package/docs/classes/services.EdgeRouteRequestHeadersModule.html +4 -4
- package/docs/classes/services.EdgeRouteResponseHeadersModule.html +4 -4
- package/docs/classes/services.EdgeRouteSAMLModule.html +4 -4
- package/docs/classes/services.EdgeRouteTrafficPolicyModule.html +4 -4
- package/docs/classes/services.EdgeRouteUserAgentFilterModule.html +4 -4
- package/docs/classes/services.EdgeRouteWebhookVerificationModule.html +4 -4
- package/docs/classes/services.EdgeRouteWebsocketTCPConverterModule.html +4 -4
- package/docs/classes/services.EdgesHTTPS.html +6 -6
- package/docs/classes/services.EdgesHTTPSRoutes.html +5 -5
- package/docs/classes/services.EdgesTCP.html +6 -6
- package/docs/classes/services.EdgesTLS.html +6 -6
- package/docs/classes/services.Endpoints.html +6 -6
- 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.Secrets.html +359 -0
- package/docs/classes/services.StaticBackends.html +6 -6
- package/docs/classes/services.TCPEdgeBackendModule.html +4 -4
- package/docs/classes/services.TCPEdgeIPRestrictionModule.html +4 -4
- package/docs/classes/services.TCPEdgeTrafficPolicyModule.html +4 -4
- package/docs/classes/services.TLSCertificates.html +6 -6
- package/docs/classes/services.TLSEdgeBackendModule.html +4 -4
- package/docs/classes/services.TLSEdgeIPRestrictionModule.html +4 -4
- package/docs/classes/services.TLSEdgeMutualTLSModule.html +4 -4
- package/docs/classes/services.TLSEdgeTLSTerminationModule.html +4 -4
- package/docs/classes/services.TLSEdgeTrafficPolicyModule.html +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.Vaults.html +397 -0
- package/docs/classes/services.WeightedBackends.html +6 -6
- package/docs/interfaces/client.NgrokConfig.html +2 -2
- package/docs/interfaces/datatypes.APIKey.html +7 -7
- package/docs/interfaces/datatypes.APIKeyCreate.html +3 -3
- package/docs/interfaces/datatypes.APIKeyList.html +3 -3
- package/docs/interfaces/datatypes.APIKeyUpdate.html +3 -3
- package/docs/interfaces/datatypes.AWSAuth.html +2 -2
- package/docs/interfaces/datatypes.AWSCredentials.html +2 -2
- package/docs/interfaces/datatypes.AWSRole.html +1 -1
- package/docs/interfaces/datatypes.AbuseReport.html +7 -7
- package/docs/interfaces/datatypes.AbuseReportCreate.html +2 -2
- package/docs/interfaces/datatypes.AbuseReportHostname.html +2 -2
- package/docs/interfaces/datatypes.AgentIngress.html +10 -10
- package/docs/interfaces/datatypes.AgentIngressCertJob.html +4 -4
- package/docs/interfaces/datatypes.AgentIngressCertPolicy.html +2 -2
- package/docs/interfaces/datatypes.AgentIngressCertStatus.html +2 -2
- package/docs/interfaces/datatypes.AgentIngressCreate.html +4 -4
- package/docs/interfaces/datatypes.AgentIngressList.html +3 -3
- package/docs/interfaces/datatypes.AgentIngressUpdate.html +4 -4
- package/docs/interfaces/datatypes.ApplicationSession.html +11 -11
- package/docs/interfaces/datatypes.ApplicationSessionList.html +3 -3
- package/docs/interfaces/datatypes.ApplicationUser.html +10 -10
- package/docs/interfaces/datatypes.ApplicationUserList.html +3 -3
- package/docs/interfaces/datatypes.BotUser.html +5 -5
- package/docs/interfaces/datatypes.BotUserCreate.html +2 -2
- package/docs/interfaces/datatypes.BotUserList.html +3 -3
- package/docs/interfaces/datatypes.BotUserUpdate.html +3 -3
- package/docs/interfaces/datatypes.BrowserSession.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthority.html +11 -11
- package/docs/interfaces/datatypes.CertificateAuthorityCreate.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthorityList.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthorityUpdate.html +3 -3
- package/docs/interfaces/datatypes.Credential.html +8 -8
- package/docs/interfaces/datatypes.CredentialCreate.html +4 -4
- package/docs/interfaces/datatypes.CredentialList.html +3 -3
- package/docs/interfaces/datatypes.CredentialUpdate.html +4 -4
- package/docs/interfaces/datatypes.EdgeBackendReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeIPRestrictionReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeMutualTLSReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeRouteBackendReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteCircuitBreakerReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteCompressionReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteIPRestrictionReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteItem.html +2 -2
- package/docs/interfaces/datatypes.EdgeRouteOAuthReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteOIDCReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteRequestHeadersReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteResponseHeadersReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteSAMLReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteTrafficPolicyReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteUserAgentFilterReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteWebhookVerificationReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteWebsocketTCPConverterReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeTLSTerminationAtEdgeReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeTLSTerminationReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeTrafficPolicyReplace.html +2 -2
- package/docs/interfaces/datatypes.Endpoint.html +51 -51
- package/docs/interfaces/datatypes.EndpointBackend.html +2 -2
- package/docs/interfaces/datatypes.EndpointBackendMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointCircuitBreaker.html +6 -6
- package/docs/interfaces/datatypes.EndpointCompression.html +1 -1
- package/docs/interfaces/datatypes.EndpointCreate.html +21 -7
- 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.EndpointListArgs.html +204 -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.EndpointOAuthAmazon.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthFacebook.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthGitHub.html +7 -7
- package/docs/interfaces/datatypes.EndpointOAuthGitLab.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthGoogle.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthLinkedIn.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthMicrosoft.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthProvider.html +8 -8
- package/docs/interfaces/datatypes.EndpointOAuthTwitch.html +5 -5
- package/docs/interfaces/datatypes.EndpointOIDC.html +9 -9
- package/docs/interfaces/datatypes.EndpointRequestHeaders.html +3 -3
- package/docs/interfaces/datatypes.EndpointResponseHeaders.html +3 -3
- package/docs/interfaces/datatypes.EndpointSAML.html +15 -15
- package/docs/interfaces/datatypes.EndpointSAMLMutate.html +10 -10
- package/docs/interfaces/datatypes.EndpointTLSTermination.html +3 -3
- package/docs/interfaces/datatypes.EndpointTLSTerminationAtEdge.html +2 -2
- package/docs/interfaces/datatypes.EndpointTrafficPolicy.html +2 -2
- package/docs/interfaces/datatypes.EndpointUpdate.html +20 -6
- package/docs/interfaces/datatypes.EndpointUserAgentFilter.html +3 -3
- package/docs/interfaces/datatypes.EndpointWebhookValidation.html +3 -3
- package/docs/interfaces/datatypes.EndpointWebsocketTCPConverter.html +1 -1
- package/docs/interfaces/datatypes.Error.html +4 -4
- package/docs/interfaces/datatypes.EventDestination.html +7 -7
- package/docs/interfaces/datatypes.EventDestinationCreate.html +4 -4
- package/docs/interfaces/datatypes.EventDestinationList.html +3 -3
- package/docs/interfaces/datatypes.EventDestinationUpdate.html +5 -5
- package/docs/interfaces/datatypes.EventSource.html +2 -2
- package/docs/interfaces/datatypes.EventSourceCreate.html +2 -2
- package/docs/interfaces/datatypes.EventSourceItem.html +2 -2
- package/docs/interfaces/datatypes.EventSourceList.html +2 -2
- package/docs/interfaces/datatypes.EventSourcePaging.html +1 -1
- package/docs/interfaces/datatypes.EventSourceReplace.html +1 -1
- package/docs/interfaces/datatypes.EventSourceUpdate.html +2 -2
- package/docs/interfaces/datatypes.EventSubscription.html +7 -7
- package/docs/interfaces/datatypes.EventSubscriptionCreate.html +4 -4
- package/docs/interfaces/datatypes.EventSubscriptionList.html +3 -3
- package/docs/interfaces/datatypes.EventSubscriptionUpdate.html +5 -5
- package/docs/interfaces/datatypes.EventTarget.html +5 -5
- package/docs/interfaces/datatypes.EventTargetAzureLogsIngestion.html +6 -6
- 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 +21 -21
- package/docs/interfaces/datatypes.HTTPSEdgeRouteCreate.html +18 -18
- package/docs/interfaces/datatypes.HTTPSEdgeRouteUpdate.html +19 -19
- 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.ItemPaging.html +195 -0
- package/docs/interfaces/datatypes.Location.html +4 -4
- package/docs/interfaces/datatypes.Paging.html +2 -2
- package/docs/interfaces/datatypes.Ref.html +2 -2
- package/docs/interfaces/datatypes.ReservedAddr.html +7 -7
- package/docs/interfaces/datatypes.ReservedAddrCreate.html +3 -3
- package/docs/interfaces/datatypes.ReservedAddrList.html +3 -3
- package/docs/interfaces/datatypes.ReservedAddrUpdate.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomain.html +12 -12
- package/docs/interfaces/datatypes.ReservedDomainCertJob.html +4 -4
- package/docs/interfaces/datatypes.ReservedDomainCertPolicy.html +2 -2
- package/docs/interfaces/datatypes.ReservedDomainCertStatus.html +2 -2
- package/docs/interfaces/datatypes.ReservedDomainCreate.html +6 -6
- package/docs/interfaces/datatypes.ReservedDomainList.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomainUpdate.html +5 -5
- package/docs/interfaces/datatypes.SSHCertificateAuthority.html +7 -7
- package/docs/interfaces/datatypes.SSHCertificateAuthorityCreate.html +5 -5
- package/docs/interfaces/datatypes.SSHCertificateAuthorityList.html +3 -3
- package/docs/interfaces/datatypes.SSHCertificateAuthorityUpdate.html +3 -3
- package/docs/interfaces/datatypes.SSHCredential.html +8 -8
- package/docs/interfaces/datatypes.SSHCredentialCreate.html +5 -5
- package/docs/interfaces/datatypes.SSHCredentialList.html +3 -3
- package/docs/interfaces/datatypes.SSHCredentialUpdate.html +4 -4
- package/docs/interfaces/datatypes.SSHHostCertificate.html +12 -12
- package/docs/interfaces/datatypes.SSHHostCertificateCreate.html +7 -7
- package/docs/interfaces/datatypes.SSHHostCertificateList.html +3 -3
- package/docs/interfaces/datatypes.SSHHostCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.SSHUserCertificate.html +14 -14
- package/docs/interfaces/datatypes.SSHUserCertificateCreate.html +9 -9
- package/docs/interfaces/datatypes.SSHUserCertificateList.html +3 -3
- package/docs/interfaces/datatypes.SSHUserCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.Secret.html +338 -0
- package/docs/interfaces/datatypes.SecretCreate.html +243 -0
- package/docs/interfaces/datatypes.SecretList.html +200 -0
- package/docs/interfaces/datatypes.SecretUpdate.html +243 -0
- package/docs/interfaces/datatypes.StaticBackend.html +7 -7
- package/docs/interfaces/datatypes.StaticBackendCreate.html +4 -4
- package/docs/interfaces/datatypes.StaticBackendList.html +3 -3
- package/docs/interfaces/datatypes.StaticBackendTLS.html +1 -1
- package/docs/interfaces/datatypes.StaticBackendUpdate.html +5 -5
- package/docs/interfaces/datatypes.TCPEdge.html +9 -9
- package/docs/interfaces/datatypes.TCPEdgeCreate.html +6 -6
- package/docs/interfaces/datatypes.TCPEdgeList.html +3 -3
- package/docs/interfaces/datatypes.TCPEdgeUpdate.html +7 -7
- 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 +11 -11
- package/docs/interfaces/datatypes.TLSEdgeCreate.html +8 -8
- package/docs/interfaces/datatypes.TLSEdgeList.html +3 -3
- package/docs/interfaces/datatypes.TLSEdgeUpdate.html +9 -9
- 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.Vault.html +319 -0
- package/docs/interfaces/datatypes.VaultCreate.html +205 -0
- package/docs/interfaces/datatypes.VaultList.html +200 -0
- package/docs/interfaces/datatypes.VaultUpdate.html +224 -0
- 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 +40 -0
- package/docs/modules/services.html +8 -0
- package/lib/client.d.ts +8 -0
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +3 -1
- package/lib/client.js.map +1 -1
- package/lib/datatypes.d.ts +117 -5
- package/lib/datatypes.d.ts.map +1 -1
- package/lib/services.d.ts +66 -0
- package/lib/services.d.ts.map +1 -1
- package/lib/services.js +289 -25
- package/lib/services.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +11 -1
- package/src/datatypes.ts +127 -5
- package/src/services.ts +265 -2
package/lib/services.js
CHANGED
|
@@ -30,7 +30,7 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
|
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
32
|
exports.ReservedDomains = exports.ReservedAddrs = exports.IPRestrictions = exports.IPPolicyRules = exports.IPPolicies = exports.EventSources = exports.EventSubscriptions = exports.EventDestinations = exports.Endpoints = exports.TLSEdgeTrafficPolicyModule = exports.TLSEdgeTLSTerminationModule = exports.TLSEdgeMutualTLSModule = exports.TLSEdgeIPRestrictionModule = exports.TLSEdgeBackendModule = exports.EdgesTLS = exports.TCPEdgeTrafficPolicyModule = exports.TCPEdgeIPRestrictionModule = exports.TCPEdgeBackendModule = exports.EdgesTCP = exports.EdgeRouteTrafficPolicyModule = 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
|
+
exports.Vaults = exports.Tunnels = exports.TLSCertificates = exports.SSHUserCertificates = exports.SSHHostCertificates = exports.SSHCredentials = exports.SSHCertificateAuthorities = exports.Secrets = void 0;
|
|
34
34
|
const util = require("./util");
|
|
35
35
|
/**
|
|
36
36
|
* Abuse Reports allow you to submit take-down requests for URLs hosted by
|
|
@@ -3279,6 +3279,110 @@ class ReservedDomains {
|
|
|
3279
3279
|
}
|
|
3280
3280
|
}
|
|
3281
3281
|
exports.ReservedDomains = ReservedDomains;
|
|
3282
|
+
/**
|
|
3283
|
+
* Secrets is an api service for securely storing and managing sensitive data such as secrets, credentials, and tokens.
|
|
3284
|
+
*/
|
|
3285
|
+
class Secrets {
|
|
3286
|
+
/** Do not construct this object directly, use the <code>secrets</code> property of an <code>Ngrok</code> client object instead. */
|
|
3287
|
+
constructor(httpClient) {
|
|
3288
|
+
this.httpClient = httpClient;
|
|
3289
|
+
}
|
|
3290
|
+
/**
|
|
3291
|
+
* Create a new Secret
|
|
3292
|
+
*/
|
|
3293
|
+
create(arg) {
|
|
3294
|
+
return this.httpClient
|
|
3295
|
+
.url(`/vault_secrets`)
|
|
3296
|
+
.post(util.serializeArgument(arg))
|
|
3297
|
+
.json(payload => util.deserializeResult(payload))
|
|
3298
|
+
.then(f => f, util.onRejected);
|
|
3299
|
+
}
|
|
3300
|
+
/**
|
|
3301
|
+
* Update an existing Secret by ID
|
|
3302
|
+
*/
|
|
3303
|
+
update(arg) {
|
|
3304
|
+
return this.httpClient
|
|
3305
|
+
.url(`/vault_secrets/${arg.id}`)
|
|
3306
|
+
.patch(util.serializeArgument(arg))
|
|
3307
|
+
.json(payload => util.deserializeResult(payload))
|
|
3308
|
+
.then(f => f, util.onRejected);
|
|
3309
|
+
}
|
|
3310
|
+
/**
|
|
3311
|
+
* Delete a Secret
|
|
3312
|
+
*/
|
|
3313
|
+
delete(id) {
|
|
3314
|
+
return this.httpClient
|
|
3315
|
+
.url(`/vault_secrets/${id}`)
|
|
3316
|
+
.delete()
|
|
3317
|
+
.res()
|
|
3318
|
+
.then(f => f, util.onRejected);
|
|
3319
|
+
}
|
|
3320
|
+
/**
|
|
3321
|
+
* Get a Secret by ID
|
|
3322
|
+
*/
|
|
3323
|
+
get(id) {
|
|
3324
|
+
return this.httpClient
|
|
3325
|
+
.url(`/vault_secrets/${id}`)
|
|
3326
|
+
.get()
|
|
3327
|
+
.json(payload => util.deserializeResult(payload))
|
|
3328
|
+
.then(f => f, util.onRejected);
|
|
3329
|
+
}
|
|
3330
|
+
/**
|
|
3331
|
+
* List all Secrets owned by account
|
|
3332
|
+
*/
|
|
3333
|
+
list(beforeId, limit) {
|
|
3334
|
+
var e_25, _a;
|
|
3335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3336
|
+
const array = [];
|
|
3337
|
+
try {
|
|
3338
|
+
for (var _b = __asyncValues(this._asyncList(beforeId, limit)), _c; _c = yield _b.next(), !_c.done;) {
|
|
3339
|
+
let item = _c.value;
|
|
3340
|
+
array.push(item);
|
|
3341
|
+
}
|
|
3342
|
+
}
|
|
3343
|
+
catch (e_25_1) { e_25 = { error: e_25_1 }; }
|
|
3344
|
+
finally {
|
|
3345
|
+
try {
|
|
3346
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3347
|
+
}
|
|
3348
|
+
finally { if (e_25) throw e_25.error; }
|
|
3349
|
+
}
|
|
3350
|
+
return array;
|
|
3351
|
+
});
|
|
3352
|
+
}
|
|
3353
|
+
_pagedList(arg) {
|
|
3354
|
+
return this.httpClient
|
|
3355
|
+
.url(`/vault_secrets`)
|
|
3356
|
+
.query(arg)
|
|
3357
|
+
.get()
|
|
3358
|
+
.json(payload => util.deserializeResult(payload))
|
|
3359
|
+
.then(util.onFulfilled, util.onRejected);
|
|
3360
|
+
}
|
|
3361
|
+
_asyncList(beforeId, limit = '100') {
|
|
3362
|
+
return __asyncGenerator(this, arguments, function* _asyncList_25() {
|
|
3363
|
+
let nextPage = 'initial loop';
|
|
3364
|
+
let page = { limit: limit };
|
|
3365
|
+
if (beforeId) {
|
|
3366
|
+
page.beforeId = beforeId;
|
|
3367
|
+
}
|
|
3368
|
+
while (nextPage) {
|
|
3369
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
3370
|
+
nextPage = pagedList.nextPageUri;
|
|
3371
|
+
const items = pagedList.secrets;
|
|
3372
|
+
if (nextPage) {
|
|
3373
|
+
page = {
|
|
3374
|
+
beforeId: items[items.length - 1].id,
|
|
3375
|
+
limit: limit,
|
|
3376
|
+
};
|
|
3377
|
+
}
|
|
3378
|
+
for (const item of items) {
|
|
3379
|
+
yield yield __await(item);
|
|
3380
|
+
}
|
|
3381
|
+
}
|
|
3382
|
+
});
|
|
3383
|
+
}
|
|
3384
|
+
}
|
|
3385
|
+
exports.Secrets = Secrets;
|
|
3282
3386
|
/**
|
|
3283
3387
|
* An SSH Certificate Authority is a pair of an SSH Certificate and its private
|
|
3284
3388
|
key that can be used to sign other SSH host and user certificates.
|
|
@@ -3322,7 +3426,7 @@ class SSHCertificateAuthorities {
|
|
|
3322
3426
|
* List all SSH Certificate Authorities on this account
|
|
3323
3427
|
*/
|
|
3324
3428
|
list(beforeId, limit) {
|
|
3325
|
-
var
|
|
3429
|
+
var e_26, _a;
|
|
3326
3430
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3327
3431
|
const array = [];
|
|
3328
3432
|
try {
|
|
@@ -3331,12 +3435,12 @@ class SSHCertificateAuthorities {
|
|
|
3331
3435
|
array.push(item);
|
|
3332
3436
|
}
|
|
3333
3437
|
}
|
|
3334
|
-
catch (
|
|
3438
|
+
catch (e_26_1) { e_26 = { error: e_26_1 }; }
|
|
3335
3439
|
finally {
|
|
3336
3440
|
try {
|
|
3337
3441
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3338
3442
|
}
|
|
3339
|
-
finally { if (
|
|
3443
|
+
finally { if (e_26) throw e_26.error; }
|
|
3340
3444
|
}
|
|
3341
3445
|
return array;
|
|
3342
3446
|
});
|
|
@@ -3350,7 +3454,7 @@ class SSHCertificateAuthorities {
|
|
|
3350
3454
|
.then(util.onFulfilled, util.onRejected);
|
|
3351
3455
|
}
|
|
3352
3456
|
_asyncList(beforeId, limit = '100') {
|
|
3353
|
-
return __asyncGenerator(this, arguments, function*
|
|
3457
|
+
return __asyncGenerator(this, arguments, function* _asyncList_26() {
|
|
3354
3458
|
let nextPage = 'initial loop';
|
|
3355
3459
|
let page = { limit: limit };
|
|
3356
3460
|
if (beforeId) {
|
|
@@ -3427,7 +3531,7 @@ class SSHCredentials {
|
|
|
3427
3531
|
* List all ssh credentials on this account
|
|
3428
3532
|
*/
|
|
3429
3533
|
list(beforeId, limit) {
|
|
3430
|
-
var
|
|
3534
|
+
var e_27, _a;
|
|
3431
3535
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3432
3536
|
const array = [];
|
|
3433
3537
|
try {
|
|
@@ -3436,12 +3540,12 @@ class SSHCredentials {
|
|
|
3436
3540
|
array.push(item);
|
|
3437
3541
|
}
|
|
3438
3542
|
}
|
|
3439
|
-
catch (
|
|
3543
|
+
catch (e_27_1) { e_27 = { error: e_27_1 }; }
|
|
3440
3544
|
finally {
|
|
3441
3545
|
try {
|
|
3442
3546
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3443
3547
|
}
|
|
3444
|
-
finally { if (
|
|
3548
|
+
finally { if (e_27) throw e_27.error; }
|
|
3445
3549
|
}
|
|
3446
3550
|
return array;
|
|
3447
3551
|
});
|
|
@@ -3455,7 +3559,7 @@ class SSHCredentials {
|
|
|
3455
3559
|
.then(util.onFulfilled, util.onRejected);
|
|
3456
3560
|
}
|
|
3457
3561
|
_asyncList(beforeId, limit = '100') {
|
|
3458
|
-
return __asyncGenerator(this, arguments, function*
|
|
3562
|
+
return __asyncGenerator(this, arguments, function* _asyncList_27() {
|
|
3459
3563
|
let nextPage = 'initial loop';
|
|
3460
3564
|
let page = { limit: limit };
|
|
3461
3565
|
if (beforeId) {
|
|
@@ -3533,7 +3637,7 @@ class SSHHostCertificates {
|
|
|
3533
3637
|
* List all SSH Host Certificates issued on this account
|
|
3534
3638
|
*/
|
|
3535
3639
|
list(beforeId, limit) {
|
|
3536
|
-
var
|
|
3640
|
+
var e_28, _a;
|
|
3537
3641
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3538
3642
|
const array = [];
|
|
3539
3643
|
try {
|
|
@@ -3542,12 +3646,12 @@ class SSHHostCertificates {
|
|
|
3542
3646
|
array.push(item);
|
|
3543
3647
|
}
|
|
3544
3648
|
}
|
|
3545
|
-
catch (
|
|
3649
|
+
catch (e_28_1) { e_28 = { error: e_28_1 }; }
|
|
3546
3650
|
finally {
|
|
3547
3651
|
try {
|
|
3548
3652
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3549
3653
|
}
|
|
3550
|
-
finally { if (
|
|
3654
|
+
finally { if (e_28) throw e_28.error; }
|
|
3551
3655
|
}
|
|
3552
3656
|
return array;
|
|
3553
3657
|
});
|
|
@@ -3561,7 +3665,7 @@ class SSHHostCertificates {
|
|
|
3561
3665
|
.then(util.onFulfilled, util.onRejected);
|
|
3562
3666
|
}
|
|
3563
3667
|
_asyncList(beforeId, limit = '100') {
|
|
3564
|
-
return __asyncGenerator(this, arguments, function*
|
|
3668
|
+
return __asyncGenerator(this, arguments, function* _asyncList_28() {
|
|
3565
3669
|
let nextPage = 'initial loop';
|
|
3566
3670
|
let page = { limit: limit };
|
|
3567
3671
|
if (beforeId) {
|
|
@@ -3639,7 +3743,7 @@ class SSHUserCertificates {
|
|
|
3639
3743
|
* List all SSH User Certificates issued on this account
|
|
3640
3744
|
*/
|
|
3641
3745
|
list(beforeId, limit) {
|
|
3642
|
-
var
|
|
3746
|
+
var e_29, _a;
|
|
3643
3747
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3644
3748
|
const array = [];
|
|
3645
3749
|
try {
|
|
@@ -3648,12 +3752,12 @@ class SSHUserCertificates {
|
|
|
3648
3752
|
array.push(item);
|
|
3649
3753
|
}
|
|
3650
3754
|
}
|
|
3651
|
-
catch (
|
|
3755
|
+
catch (e_29_1) { e_29 = { error: e_29_1 }; }
|
|
3652
3756
|
finally {
|
|
3653
3757
|
try {
|
|
3654
3758
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3655
3759
|
}
|
|
3656
|
-
finally { if (
|
|
3760
|
+
finally { if (e_29) throw e_29.error; }
|
|
3657
3761
|
}
|
|
3658
3762
|
return array;
|
|
3659
3763
|
});
|
|
@@ -3667,7 +3771,7 @@ class SSHUserCertificates {
|
|
|
3667
3771
|
.then(util.onFulfilled, util.onRejected);
|
|
3668
3772
|
}
|
|
3669
3773
|
_asyncList(beforeId, limit = '100') {
|
|
3670
|
-
return __asyncGenerator(this, arguments, function*
|
|
3774
|
+
return __asyncGenerator(this, arguments, function* _asyncList_29() {
|
|
3671
3775
|
let nextPage = 'initial loop';
|
|
3672
3776
|
let page = { limit: limit };
|
|
3673
3777
|
if (beforeId) {
|
|
@@ -3747,7 +3851,7 @@ class TLSCertificates {
|
|
|
3747
3851
|
* List all TLS certificates on this account
|
|
3748
3852
|
*/
|
|
3749
3853
|
list(beforeId, limit) {
|
|
3750
|
-
var
|
|
3854
|
+
var e_30, _a;
|
|
3751
3855
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3752
3856
|
const array = [];
|
|
3753
3857
|
try {
|
|
@@ -3756,12 +3860,12 @@ class TLSCertificates {
|
|
|
3756
3860
|
array.push(item);
|
|
3757
3861
|
}
|
|
3758
3862
|
}
|
|
3759
|
-
catch (
|
|
3863
|
+
catch (e_30_1) { e_30 = { error: e_30_1 }; }
|
|
3760
3864
|
finally {
|
|
3761
3865
|
try {
|
|
3762
3866
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3763
3867
|
}
|
|
3764
|
-
finally { if (
|
|
3868
|
+
finally { if (e_30) throw e_30.error; }
|
|
3765
3869
|
}
|
|
3766
3870
|
return array;
|
|
3767
3871
|
});
|
|
@@ -3775,7 +3879,7 @@ class TLSCertificates {
|
|
|
3775
3879
|
.then(util.onFulfilled, util.onRejected);
|
|
3776
3880
|
}
|
|
3777
3881
|
_asyncList(beforeId, limit = '100') {
|
|
3778
|
-
return __asyncGenerator(this, arguments, function*
|
|
3882
|
+
return __asyncGenerator(this, arguments, function* _asyncList_30() {
|
|
3779
3883
|
let nextPage = 'initial loop';
|
|
3780
3884
|
let page = { limit: limit };
|
|
3781
3885
|
if (beforeId) {
|
|
@@ -3822,7 +3926,7 @@ class Tunnels {
|
|
|
3822
3926
|
* List all online tunnels currently running on the account.
|
|
3823
3927
|
*/
|
|
3824
3928
|
list(beforeId, limit) {
|
|
3825
|
-
var
|
|
3929
|
+
var e_31, _a;
|
|
3826
3930
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3827
3931
|
const array = [];
|
|
3828
3932
|
try {
|
|
@@ -3831,12 +3935,12 @@ class Tunnels {
|
|
|
3831
3935
|
array.push(item);
|
|
3832
3936
|
}
|
|
3833
3937
|
}
|
|
3834
|
-
catch (
|
|
3938
|
+
catch (e_31_1) { e_31 = { error: e_31_1 }; }
|
|
3835
3939
|
finally {
|
|
3836
3940
|
try {
|
|
3837
3941
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
3838
3942
|
}
|
|
3839
|
-
finally { if (
|
|
3943
|
+
finally { if (e_31) throw e_31.error; }
|
|
3840
3944
|
}
|
|
3841
3945
|
return array;
|
|
3842
3946
|
});
|
|
@@ -3850,7 +3954,7 @@ class Tunnels {
|
|
|
3850
3954
|
.then(util.onFulfilled, util.onRejected);
|
|
3851
3955
|
}
|
|
3852
3956
|
_asyncList(beforeId, limit = '100') {
|
|
3853
|
-
return __asyncGenerator(this, arguments, function*
|
|
3957
|
+
return __asyncGenerator(this, arguments, function* _asyncList_31() {
|
|
3854
3958
|
let nextPage = 'initial loop';
|
|
3855
3959
|
let page = { limit: limit };
|
|
3856
3960
|
if (beforeId) {
|
|
@@ -3884,4 +3988,164 @@ class Tunnels {
|
|
|
3884
3988
|
}
|
|
3885
3989
|
}
|
|
3886
3990
|
exports.Tunnels = Tunnels;
|
|
3991
|
+
/**
|
|
3992
|
+
* Vaults is an api service for securely storing and managing sensitive data such as secrets, credentials, and tokens.
|
|
3993
|
+
*/
|
|
3994
|
+
class Vaults {
|
|
3995
|
+
/** Do not construct this object directly, use the <code>vaults</code> property of an <code>Ngrok</code> client object instead. */
|
|
3996
|
+
constructor(httpClient) {
|
|
3997
|
+
this.httpClient = httpClient;
|
|
3998
|
+
}
|
|
3999
|
+
/**
|
|
4000
|
+
* Create a new Vault
|
|
4001
|
+
*/
|
|
4002
|
+
create(arg) {
|
|
4003
|
+
return this.httpClient
|
|
4004
|
+
.url(`/vaults`)
|
|
4005
|
+
.post(util.serializeArgument(arg))
|
|
4006
|
+
.json(payload => util.deserializeResult(payload))
|
|
4007
|
+
.then(f => f, util.onRejected);
|
|
4008
|
+
}
|
|
4009
|
+
/**
|
|
4010
|
+
* Update an existing Vault by ID
|
|
4011
|
+
*/
|
|
4012
|
+
update(arg) {
|
|
4013
|
+
return this.httpClient
|
|
4014
|
+
.url(`/vaults/${arg.id}`)
|
|
4015
|
+
.patch(util.serializeArgument(arg))
|
|
4016
|
+
.json(payload => util.deserializeResult(payload))
|
|
4017
|
+
.then(f => f, util.onRejected);
|
|
4018
|
+
}
|
|
4019
|
+
/**
|
|
4020
|
+
* Delete a Vault
|
|
4021
|
+
*/
|
|
4022
|
+
delete(id) {
|
|
4023
|
+
return this.httpClient
|
|
4024
|
+
.url(`/vaults/${id}`)
|
|
4025
|
+
.delete()
|
|
4026
|
+
.res()
|
|
4027
|
+
.then(f => f, util.onRejected);
|
|
4028
|
+
}
|
|
4029
|
+
/**
|
|
4030
|
+
* Get a Vault by ID
|
|
4031
|
+
*/
|
|
4032
|
+
get(id) {
|
|
4033
|
+
return this.httpClient
|
|
4034
|
+
.url(`/vaults/${id}`)
|
|
4035
|
+
.get()
|
|
4036
|
+
.json(payload => util.deserializeResult(payload))
|
|
4037
|
+
.then(f => f, util.onRejected);
|
|
4038
|
+
}
|
|
4039
|
+
/**
|
|
4040
|
+
* Get Secrets by Vault ID
|
|
4041
|
+
*/
|
|
4042
|
+
getSecretsByVault(id, beforeId, limit) {
|
|
4043
|
+
var e_32, _a;
|
|
4044
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4045
|
+
const array = [];
|
|
4046
|
+
try {
|
|
4047
|
+
for (var _b = __asyncValues(this._getSecretsByVault_asyncList(id, beforeId, limit)), _c; _c = yield _b.next(), !_c.done;) {
|
|
4048
|
+
let item = _c.value;
|
|
4049
|
+
array.push(item);
|
|
4050
|
+
}
|
|
4051
|
+
}
|
|
4052
|
+
catch (e_32_1) { e_32 = { error: e_32_1 }; }
|
|
4053
|
+
finally {
|
|
4054
|
+
try {
|
|
4055
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
4056
|
+
}
|
|
4057
|
+
finally { if (e_32) throw e_32.error; }
|
|
4058
|
+
}
|
|
4059
|
+
return array;
|
|
4060
|
+
});
|
|
4061
|
+
}
|
|
4062
|
+
_getSecretsByVault_pagedList(arg) {
|
|
4063
|
+
return this.httpClient
|
|
4064
|
+
.url(`/vaults/${arg.id}/secrets`)
|
|
4065
|
+
.query(arg)
|
|
4066
|
+
.get()
|
|
4067
|
+
.json(payload => util.deserializeResult(payload))
|
|
4068
|
+
.then(util.onFulfilled, util.onRejected);
|
|
4069
|
+
}
|
|
4070
|
+
_getSecretsByVault_asyncList(id, beforeId, limit = '100') {
|
|
4071
|
+
return __asyncGenerator(this, arguments, function* _getSecretsByVault_asyncList_1() {
|
|
4072
|
+
let nextPage = 'initial loop';
|
|
4073
|
+
let page = { id: id, limit: limit };
|
|
4074
|
+
if (beforeId) {
|
|
4075
|
+
page.beforeId = beforeId;
|
|
4076
|
+
}
|
|
4077
|
+
page.id = id;
|
|
4078
|
+
while (nextPage) {
|
|
4079
|
+
const pagedList = yield __await(this._getSecretsByVault_pagedList(page));
|
|
4080
|
+
nextPage = pagedList.nextPageUri;
|
|
4081
|
+
const items = pagedList.secrets;
|
|
4082
|
+
if (nextPage) {
|
|
4083
|
+
page = {
|
|
4084
|
+
id: id,
|
|
4085
|
+
beforeId: items[items.length - 1].id,
|
|
4086
|
+
limit: limit,
|
|
4087
|
+
};
|
|
4088
|
+
}
|
|
4089
|
+
for (const item of items) {
|
|
4090
|
+
yield yield __await(item);
|
|
4091
|
+
}
|
|
4092
|
+
}
|
|
4093
|
+
});
|
|
4094
|
+
}
|
|
4095
|
+
/**
|
|
4096
|
+
* List all Vaults owned by account
|
|
4097
|
+
*/
|
|
4098
|
+
list(beforeId, limit) {
|
|
4099
|
+
var e_33, _a;
|
|
4100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4101
|
+
const array = [];
|
|
4102
|
+
try {
|
|
4103
|
+
for (var _b = __asyncValues(this._asyncList(beforeId, limit)), _c; _c = yield _b.next(), !_c.done;) {
|
|
4104
|
+
let item = _c.value;
|
|
4105
|
+
array.push(item);
|
|
4106
|
+
}
|
|
4107
|
+
}
|
|
4108
|
+
catch (e_33_1) { e_33 = { error: e_33_1 }; }
|
|
4109
|
+
finally {
|
|
4110
|
+
try {
|
|
4111
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
4112
|
+
}
|
|
4113
|
+
finally { if (e_33) throw e_33.error; }
|
|
4114
|
+
}
|
|
4115
|
+
return array;
|
|
4116
|
+
});
|
|
4117
|
+
}
|
|
4118
|
+
_pagedList(arg) {
|
|
4119
|
+
return this.httpClient
|
|
4120
|
+
.url(`/vaults`)
|
|
4121
|
+
.query(arg)
|
|
4122
|
+
.get()
|
|
4123
|
+
.json(payload => util.deserializeResult(payload))
|
|
4124
|
+
.then(util.onFulfilled, util.onRejected);
|
|
4125
|
+
}
|
|
4126
|
+
_asyncList(beforeId, limit = '100') {
|
|
4127
|
+
return __asyncGenerator(this, arguments, function* _asyncList_32() {
|
|
4128
|
+
let nextPage = 'initial loop';
|
|
4129
|
+
let page = { limit: limit };
|
|
4130
|
+
if (beforeId) {
|
|
4131
|
+
page.beforeId = beforeId;
|
|
4132
|
+
}
|
|
4133
|
+
while (nextPage) {
|
|
4134
|
+
const pagedList = yield __await(this._pagedList(page));
|
|
4135
|
+
nextPage = pagedList.nextPageUri;
|
|
4136
|
+
const items = pagedList.vaults;
|
|
4137
|
+
if (nextPage) {
|
|
4138
|
+
page = {
|
|
4139
|
+
beforeId: items[items.length - 1].id,
|
|
4140
|
+
limit: limit,
|
|
4141
|
+
};
|
|
4142
|
+
}
|
|
4143
|
+
for (const item of items) {
|
|
4144
|
+
yield yield __await(item);
|
|
4145
|
+
}
|
|
4146
|
+
}
|
|
4147
|
+
});
|
|
4148
|
+
}
|
|
4149
|
+
}
|
|
4150
|
+
exports.Vaults = Vaults;
|
|
3887
4151
|
//# sourceMappingURL=services.js.map
|