@ngrok/ngrok-api 0.16.0 → 0.18.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 +10 -0
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/client.Ngrok.html +44 -30
- 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 +7 -7
- 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 +7 -7
- package/docs/classes/services.SSHCredentials.html +6 -6
- package/docs/classes/services.SSHHostCertificates.html +7 -7
- package/docs/classes/services.SSHUserCertificates.html +7 -7
- package/docs/classes/services.Secrets.html +6 -6
- package/docs/classes/services.ServiceUsers.html +352 -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 +44 -6
- 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 +28 -28
- 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 +8 -8
- 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 +28 -14
- 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 +8 -8
- 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.FilteredPaging.html +190 -0
- 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 +29 -10
- package/docs/interfaces/datatypes.SecretCreate.html +24 -5
- package/docs/interfaces/datatypes.SecretList.html +3 -3
- package/docs/interfaces/datatypes.SecretUpdate.html +5 -5
- package/docs/interfaces/datatypes.ServiceUser.html +243 -0
- package/docs/interfaces/datatypes.ServiceUserCreate.html +186 -0
- package/docs/interfaces/datatypes.ServiceUserList.html +205 -0
- package/docs/interfaces/datatypes.ServiceUserUpdate.html +200 -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 +9 -9
- package/docs/interfaces/datatypes.VaultCreate.html +3 -3
- package/docs/interfaces/datatypes.VaultList.html +3 -3
- package/docs/interfaces/datatypes.VaultUpdate.html +4 -4
- package/docs/interfaces/datatypes.WeightedBackend.html +6 -6
- package/docs/interfaces/datatypes.WeightedBackendCreate.html +3 -3
- package/docs/interfaces/datatypes.WeightedBackendList.html +3 -3
- package/docs/interfaces/datatypes.WeightedBackendUpdate.html +4 -4
- package/docs/modules/datatypes.html +24 -0
- package/docs/modules/services.html +4 -0
- package/lib/client.d.ts +1 -0
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +2 -1
- package/lib/client.js.map +1 -1
- package/lib/datatypes.d.ts +54 -5
- package/lib/datatypes.d.ts.map +1 -1
- package/lib/services.d.ts +37 -4
- package/lib/services.d.ts.map +1 -1
- package/lib/services.js +190 -33
- package/lib/services.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +3 -1
- package/src/datatypes.ts +60 -5
- package/src/services.ts +212 -38
package/src/services.ts
CHANGED
|
@@ -94,7 +94,7 @@ export class AgentIngresses {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
private _pagedList(
|
|
97
|
-
arg: datatypes.
|
|
97
|
+
arg: datatypes.FilteredPaging
|
|
98
98
|
): Promise<datatypes.AgentIngressList> {
|
|
99
99
|
return this.httpClient
|
|
100
100
|
.url(`/agent_ingresses`)
|
|
@@ -106,7 +106,7 @@ export class AgentIngresses {
|
|
|
106
106
|
|
|
107
107
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
108
108
|
let nextPage = 'initial loop';
|
|
109
|
-
let page: datatypes.
|
|
109
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
110
110
|
|
|
111
111
|
if (beforeId) {
|
|
112
112
|
page.beforeId = beforeId;
|
|
@@ -201,7 +201,9 @@ export class APIKeys {
|
|
|
201
201
|
return array;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
private _pagedList(
|
|
204
|
+
private _pagedList(
|
|
205
|
+
arg: datatypes.FilteredPaging
|
|
206
|
+
): Promise<datatypes.APIKeyList> {
|
|
205
207
|
return this.httpClient
|
|
206
208
|
.url(`/api_keys`)
|
|
207
209
|
.query(arg)
|
|
@@ -212,7 +214,7 @@ export class APIKeys {
|
|
|
212
214
|
|
|
213
215
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
214
216
|
let nextPage = 'initial loop';
|
|
215
|
-
let page: datatypes.
|
|
217
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
216
218
|
|
|
217
219
|
if (beforeId) {
|
|
218
220
|
page.beforeId = beforeId;
|
|
@@ -433,7 +435,7 @@ export class TunnelSessions {
|
|
|
433
435
|
}
|
|
434
436
|
|
|
435
437
|
private _pagedList(
|
|
436
|
-
arg: datatypes.
|
|
438
|
+
arg: datatypes.FilteredPaging
|
|
437
439
|
): Promise<datatypes.TunnelSessionList> {
|
|
438
440
|
return this.httpClient
|
|
439
441
|
.url(`/tunnel_sessions`)
|
|
@@ -445,7 +447,7 @@ export class TunnelSessions {
|
|
|
445
447
|
|
|
446
448
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
447
449
|
let nextPage = 'initial loop';
|
|
448
|
-
let page: datatypes.
|
|
450
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
449
451
|
|
|
450
452
|
if (beforeId) {
|
|
451
453
|
page.beforeId = beforeId;
|
|
@@ -1164,7 +1166,7 @@ export class CertificateAuthorities {
|
|
|
1164
1166
|
.then(f => f, util.onRejected);
|
|
1165
1167
|
}
|
|
1166
1168
|
/**
|
|
1167
|
-
* Get detailed information about a
|
|
1169
|
+
* Get detailed information about a certificate authority
|
|
1168
1170
|
*/
|
|
1169
1171
|
public get(id): Promise<datatypes.CertificateAuthority> {
|
|
1170
1172
|
return this.httpClient
|
|
@@ -1188,7 +1190,7 @@ export class CertificateAuthorities {
|
|
|
1188
1190
|
}
|
|
1189
1191
|
|
|
1190
1192
|
private _pagedList(
|
|
1191
|
-
arg: datatypes.
|
|
1193
|
+
arg: datatypes.FilteredPaging
|
|
1192
1194
|
): Promise<datatypes.CertificateAuthorityList> {
|
|
1193
1195
|
return this.httpClient
|
|
1194
1196
|
.url(`/certificate_authorities`)
|
|
@@ -1200,7 +1202,7 @@ export class CertificateAuthorities {
|
|
|
1200
1202
|
|
|
1201
1203
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
1202
1204
|
let nextPage = 'initial loop';
|
|
1203
|
-
let page: datatypes.
|
|
1205
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
1204
1206
|
|
|
1205
1207
|
if (beforeId) {
|
|
1206
1208
|
page.beforeId = beforeId;
|
|
@@ -1297,7 +1299,9 @@ export class Credentials {
|
|
|
1297
1299
|
return array;
|
|
1298
1300
|
}
|
|
1299
1301
|
|
|
1300
|
-
private _pagedList(
|
|
1302
|
+
private _pagedList(
|
|
1303
|
+
arg: datatypes.FilteredPaging
|
|
1304
|
+
): Promise<datatypes.CredentialList> {
|
|
1301
1305
|
return this.httpClient
|
|
1302
1306
|
.url(`/credentials`)
|
|
1303
1307
|
.query(arg)
|
|
@@ -1308,7 +1312,7 @@ export class Credentials {
|
|
|
1308
1312
|
|
|
1309
1313
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
1310
1314
|
let nextPage = 'initial loop';
|
|
1311
|
-
let page: datatypes.
|
|
1315
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
1312
1316
|
|
|
1313
1317
|
if (beforeId) {
|
|
1314
1318
|
page.beforeId = beforeId;
|
|
@@ -2607,7 +2611,7 @@ export class EventDestinations {
|
|
|
2607
2611
|
}
|
|
2608
2612
|
|
|
2609
2613
|
private _pagedList(
|
|
2610
|
-
arg: datatypes.
|
|
2614
|
+
arg: datatypes.FilteredPaging
|
|
2611
2615
|
): Promise<datatypes.EventDestinationList> {
|
|
2612
2616
|
return this.httpClient
|
|
2613
2617
|
.url(`/event_destinations`)
|
|
@@ -2619,7 +2623,7 @@ export class EventDestinations {
|
|
|
2619
2623
|
|
|
2620
2624
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
2621
2625
|
let nextPage = 'initial loop';
|
|
2622
|
-
let page: datatypes.
|
|
2626
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
2623
2627
|
|
|
2624
2628
|
if (beforeId) {
|
|
2625
2629
|
page.beforeId = beforeId;
|
|
@@ -2710,7 +2714,7 @@ export class EventSubscriptions {
|
|
|
2710
2714
|
}
|
|
2711
2715
|
|
|
2712
2716
|
private _pagedList(
|
|
2713
|
-
arg: datatypes.
|
|
2717
|
+
arg: datatypes.FilteredPaging
|
|
2714
2718
|
): Promise<datatypes.EventSubscriptionList> {
|
|
2715
2719
|
return this.httpClient
|
|
2716
2720
|
.url(`/event_subscriptions`)
|
|
@@ -2722,7 +2726,7 @@ export class EventSubscriptions {
|
|
|
2722
2726
|
|
|
2723
2727
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
2724
2728
|
let nextPage = 'initial loop';
|
|
2725
|
-
let page: datatypes.
|
|
2729
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
2726
2730
|
|
|
2727
2731
|
if (beforeId) {
|
|
2728
2732
|
page.beforeId = beforeId;
|
|
@@ -2881,7 +2885,9 @@ export class IPPolicies {
|
|
|
2881
2885
|
return array;
|
|
2882
2886
|
}
|
|
2883
2887
|
|
|
2884
|
-
private _pagedList(
|
|
2888
|
+
private _pagedList(
|
|
2889
|
+
arg: datatypes.FilteredPaging
|
|
2890
|
+
): Promise<datatypes.IPPolicyList> {
|
|
2885
2891
|
return this.httpClient
|
|
2886
2892
|
.url(`/ip_policies`)
|
|
2887
2893
|
.query(arg)
|
|
@@ -2892,7 +2898,7 @@ export class IPPolicies {
|
|
|
2892
2898
|
|
|
2893
2899
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
2894
2900
|
let nextPage = 'initial loop';
|
|
2895
|
-
let page: datatypes.
|
|
2901
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
2896
2902
|
|
|
2897
2903
|
if (beforeId) {
|
|
2898
2904
|
page.beforeId = beforeId;
|
|
@@ -2985,7 +2991,7 @@ export class IPPolicyRules {
|
|
|
2985
2991
|
}
|
|
2986
2992
|
|
|
2987
2993
|
private _pagedList(
|
|
2988
|
-
arg: datatypes.
|
|
2994
|
+
arg: datatypes.FilteredPaging
|
|
2989
2995
|
): Promise<datatypes.IPPolicyRuleList> {
|
|
2990
2996
|
return this.httpClient
|
|
2991
2997
|
.url(`/ip_policy_rules`)
|
|
@@ -2997,7 +3003,7 @@ export class IPPolicyRules {
|
|
|
2997
3003
|
|
|
2998
3004
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
2999
3005
|
let nextPage = 'initial loop';
|
|
3000
|
-
let page: datatypes.
|
|
3006
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
3001
3007
|
|
|
3002
3008
|
if (beforeId) {
|
|
3003
3009
|
page.beforeId = beforeId;
|
|
@@ -3096,7 +3102,7 @@ export class IPRestrictions {
|
|
|
3096
3102
|
}
|
|
3097
3103
|
|
|
3098
3104
|
private _pagedList(
|
|
3099
|
-
arg: datatypes.
|
|
3105
|
+
arg: datatypes.FilteredPaging
|
|
3100
3106
|
): Promise<datatypes.IPRestrictionList> {
|
|
3101
3107
|
return this.httpClient
|
|
3102
3108
|
.url(`/ip_restrictions`)
|
|
@@ -3108,7 +3114,7 @@ export class IPRestrictions {
|
|
|
3108
3114
|
|
|
3109
3115
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
3110
3116
|
let nextPage = 'initial loop';
|
|
3111
|
-
let page: datatypes.
|
|
3117
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
3112
3118
|
|
|
3113
3119
|
if (beforeId) {
|
|
3114
3120
|
page.beforeId = beforeId;
|
|
@@ -3204,7 +3210,7 @@ export class ReservedAddrs {
|
|
|
3204
3210
|
}
|
|
3205
3211
|
|
|
3206
3212
|
private _pagedList(
|
|
3207
|
-
arg: datatypes.
|
|
3213
|
+
arg: datatypes.FilteredPaging
|
|
3208
3214
|
): Promise<datatypes.ReservedAddrList> {
|
|
3209
3215
|
return this.httpClient
|
|
3210
3216
|
.url(`/reserved_addrs`)
|
|
@@ -3216,7 +3222,7 @@ export class ReservedAddrs {
|
|
|
3216
3222
|
|
|
3217
3223
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
3218
3224
|
let nextPage = 'initial loop';
|
|
3219
|
-
let page: datatypes.
|
|
3225
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
3220
3226
|
|
|
3221
3227
|
if (beforeId) {
|
|
3222
3228
|
page.beforeId = beforeId;
|
|
@@ -3313,7 +3319,7 @@ export class ReservedDomains {
|
|
|
3313
3319
|
}
|
|
3314
3320
|
|
|
3315
3321
|
private _pagedList(
|
|
3316
|
-
arg: datatypes.
|
|
3322
|
+
arg: datatypes.FilteredPaging
|
|
3317
3323
|
): Promise<datatypes.ReservedDomainList> {
|
|
3318
3324
|
return this.httpClient
|
|
3319
3325
|
.url(`/reserved_domains`)
|
|
@@ -3325,7 +3331,7 @@ export class ReservedDomains {
|
|
|
3325
3331
|
|
|
3326
3332
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
3327
3333
|
let nextPage = 'initial loop';
|
|
3328
|
-
let page: datatypes.
|
|
3334
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
3329
3335
|
|
|
3330
3336
|
if (beforeId) {
|
|
3331
3337
|
page.beforeId = beforeId;
|
|
@@ -3446,7 +3452,9 @@ export class Secrets {
|
|
|
3446
3452
|
return array;
|
|
3447
3453
|
}
|
|
3448
3454
|
|
|
3449
|
-
private _pagedList(
|
|
3455
|
+
private _pagedList(
|
|
3456
|
+
arg: datatypes.FilteredPaging
|
|
3457
|
+
): Promise<datatypes.SecretList> {
|
|
3450
3458
|
return this.httpClient
|
|
3451
3459
|
.url(`/vault_secrets`)
|
|
3452
3460
|
.query(arg)
|
|
@@ -3457,7 +3465,7 @@ export class Secrets {
|
|
|
3457
3465
|
|
|
3458
3466
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
3459
3467
|
let nextPage = 'initial loop';
|
|
3460
|
-
let page: datatypes.
|
|
3468
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
3461
3469
|
|
|
3462
3470
|
if (beforeId) {
|
|
3463
3471
|
page.beforeId = beforeId;
|
|
@@ -3482,6 +3490,109 @@ export class Secrets {
|
|
|
3482
3490
|
}
|
|
3483
3491
|
}
|
|
3484
3492
|
|
|
3493
|
+
export class ServiceUsers {
|
|
3494
|
+
private httpClient: Wretcher;
|
|
3495
|
+
|
|
3496
|
+
/** Do not construct this object directly, use the <code>serviceUsers</code> property of an <code>Ngrok</code> client object instead. */
|
|
3497
|
+
public constructor(httpClient: Wretcher) {
|
|
3498
|
+
this.httpClient = httpClient;
|
|
3499
|
+
}
|
|
3500
|
+
/**
|
|
3501
|
+
* Create a new service user
|
|
3502
|
+
*/
|
|
3503
|
+
public create(
|
|
3504
|
+
arg: datatypes.ServiceUserCreate
|
|
3505
|
+
): Promise<datatypes.ServiceUser> {
|
|
3506
|
+
return this.httpClient
|
|
3507
|
+
.url(`/service_users`)
|
|
3508
|
+
.post(util.serializeArgument(arg))
|
|
3509
|
+
.json(payload => util.deserializeResult(payload))
|
|
3510
|
+
.then(f => f, util.onRejected);
|
|
3511
|
+
}
|
|
3512
|
+
/**
|
|
3513
|
+
* Delete a service user by ID
|
|
3514
|
+
*/
|
|
3515
|
+
public delete(id): Promise<void> {
|
|
3516
|
+
return this.httpClient
|
|
3517
|
+
.url(`/service_users/${id}`)
|
|
3518
|
+
.delete()
|
|
3519
|
+
.res()
|
|
3520
|
+
.then(f => f, util.onRejected);
|
|
3521
|
+
}
|
|
3522
|
+
/**
|
|
3523
|
+
* Get the details of a Bot User by ID.
|
|
3524
|
+
*/
|
|
3525
|
+
public get(id): Promise<datatypes.ServiceUser> {
|
|
3526
|
+
return this.httpClient
|
|
3527
|
+
.url(`/service_users/${id}`)
|
|
3528
|
+
.get()
|
|
3529
|
+
.json(payload => util.deserializeResult(payload))
|
|
3530
|
+
.then(f => f, util.onRejected);
|
|
3531
|
+
}
|
|
3532
|
+
/**
|
|
3533
|
+
* List all service users in this account.
|
|
3534
|
+
*/
|
|
3535
|
+
public async list(
|
|
3536
|
+
beforeId?: string,
|
|
3537
|
+
limit?: string
|
|
3538
|
+
): Promise<Array<datatypes.ServiceUser>> {
|
|
3539
|
+
const array: Array<datatypes.ServiceUser> = [];
|
|
3540
|
+
for await (const item of this._asyncList(beforeId, limit)) {
|
|
3541
|
+
array.push(item);
|
|
3542
|
+
}
|
|
3543
|
+
return array;
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
private _pagedList(
|
|
3547
|
+
arg: datatypes.FilteredPaging
|
|
3548
|
+
): Promise<datatypes.ServiceUserList> {
|
|
3549
|
+
return this.httpClient
|
|
3550
|
+
.url(`/service_users`)
|
|
3551
|
+
.query(arg)
|
|
3552
|
+
.get()
|
|
3553
|
+
.json(payload => util.deserializeResult(payload))
|
|
3554
|
+
.then(util.onFulfilled, util.onRejected);
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3557
|
+
private async *_asyncList(beforeId: string, limit = '100') {
|
|
3558
|
+
let nextPage = 'initial loop';
|
|
3559
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
3560
|
+
|
|
3561
|
+
if (beforeId) {
|
|
3562
|
+
page.beforeId = beforeId;
|
|
3563
|
+
}
|
|
3564
|
+
|
|
3565
|
+
while (nextPage) {
|
|
3566
|
+
const pagedList = await this._pagedList(page);
|
|
3567
|
+
nextPage = pagedList.nextPageUri;
|
|
3568
|
+
const items: datatypes.ServiceUser[] = pagedList.serviceUsers;
|
|
3569
|
+
|
|
3570
|
+
if (nextPage) {
|
|
3571
|
+
page = {
|
|
3572
|
+
beforeId: items[items.length - 1].id,
|
|
3573
|
+
limit: limit,
|
|
3574
|
+
};
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
for (const item of items) {
|
|
3578
|
+
yield item;
|
|
3579
|
+
}
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3582
|
+
/**
|
|
3583
|
+
* Update attributes of a service user by ID.
|
|
3584
|
+
*/
|
|
3585
|
+
public update(
|
|
3586
|
+
arg: datatypes.ServiceUserUpdate
|
|
3587
|
+
): Promise<datatypes.ServiceUser> {
|
|
3588
|
+
return this.httpClient
|
|
3589
|
+
.url(`/service_users/${arg.id}`)
|
|
3590
|
+
.patch(util.serializeArgument(arg))
|
|
3591
|
+
.json(payload => util.deserializeResult(payload))
|
|
3592
|
+
.then(f => f, util.onRejected);
|
|
3593
|
+
}
|
|
3594
|
+
}
|
|
3595
|
+
|
|
3485
3596
|
/**
|
|
3486
3597
|
* An SSH Certificate Authority is a pair of an SSH Certificate and its private
|
|
3487
3598
|
key that can be used to sign other SSH host and user certificates.
|
|
@@ -3516,7 +3627,7 @@ export class SSHCertificateAuthorities {
|
|
|
3516
3627
|
.then(f => f, util.onRejected);
|
|
3517
3628
|
}
|
|
3518
3629
|
/**
|
|
3519
|
-
* Get detailed information about an SSH
|
|
3630
|
+
* Get detailed information about an SSH Certificate Authority
|
|
3520
3631
|
*/
|
|
3521
3632
|
public get(id): Promise<datatypes.SSHCertificateAuthority> {
|
|
3522
3633
|
return this.httpClient
|
|
@@ -3540,7 +3651,7 @@ export class SSHCertificateAuthorities {
|
|
|
3540
3651
|
}
|
|
3541
3652
|
|
|
3542
3653
|
private _pagedList(
|
|
3543
|
-
arg: datatypes.
|
|
3654
|
+
arg: datatypes.FilteredPaging
|
|
3544
3655
|
): Promise<datatypes.SSHCertificateAuthorityList> {
|
|
3545
3656
|
return this.httpClient
|
|
3546
3657
|
.url(`/ssh_certificate_authorities`)
|
|
@@ -3552,7 +3663,7 @@ export class SSHCertificateAuthorities {
|
|
|
3552
3663
|
|
|
3553
3664
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
3554
3665
|
let nextPage = 'initial loop';
|
|
3555
|
-
let page: datatypes.
|
|
3666
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
3556
3667
|
|
|
3557
3668
|
if (beforeId) {
|
|
3558
3669
|
page.beforeId = beforeId;
|
|
@@ -3648,7 +3759,7 @@ export class SSHCredentials {
|
|
|
3648
3759
|
}
|
|
3649
3760
|
|
|
3650
3761
|
private _pagedList(
|
|
3651
|
-
arg: datatypes.
|
|
3762
|
+
arg: datatypes.FilteredPaging
|
|
3652
3763
|
): Promise<datatypes.SSHCredentialList> {
|
|
3653
3764
|
return this.httpClient
|
|
3654
3765
|
.url(`/ssh_credentials`)
|
|
@@ -3660,7 +3771,7 @@ export class SSHCredentials {
|
|
|
3660
3771
|
|
|
3661
3772
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
3662
3773
|
let nextPage = 'initial loop';
|
|
3663
|
-
let page: datatypes.
|
|
3774
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
3664
3775
|
|
|
3665
3776
|
if (beforeId) {
|
|
3666
3777
|
page.beforeId = beforeId;
|
|
@@ -3732,7 +3843,7 @@ export class SSHHostCertificates {
|
|
|
3732
3843
|
.then(f => f, util.onRejected);
|
|
3733
3844
|
}
|
|
3734
3845
|
/**
|
|
3735
|
-
* Get detailed information about an SSH Host
|
|
3846
|
+
* Get detailed information about an SSH Host Certificate
|
|
3736
3847
|
*/
|
|
3737
3848
|
public get(id): Promise<datatypes.SSHHostCertificate> {
|
|
3738
3849
|
return this.httpClient
|
|
@@ -3841,7 +3952,7 @@ export class SSHUserCertificates {
|
|
|
3841
3952
|
.then(f => f, util.onRejected);
|
|
3842
3953
|
}
|
|
3843
3954
|
/**
|
|
3844
|
-
* Get detailed information about an SSH User
|
|
3955
|
+
* Get detailed information about an SSH User Certificate
|
|
3845
3956
|
*/
|
|
3846
3957
|
public get(id): Promise<datatypes.SSHUserCertificate> {
|
|
3847
3958
|
return this.httpClient
|
|
@@ -3976,7 +4087,7 @@ export class TLSCertificates {
|
|
|
3976
4087
|
}
|
|
3977
4088
|
|
|
3978
4089
|
private _pagedList(
|
|
3979
|
-
arg: datatypes.
|
|
4090
|
+
arg: datatypes.FilteredPaging
|
|
3980
4091
|
): Promise<datatypes.TLSCertificateList> {
|
|
3981
4092
|
return this.httpClient
|
|
3982
4093
|
.url(`/tls_certificates`)
|
|
@@ -3988,7 +4099,7 @@ export class TLSCertificates {
|
|
|
3988
4099
|
|
|
3989
4100
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
3990
4101
|
let nextPage = 'initial loop';
|
|
3991
|
-
let page: datatypes.
|
|
4102
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
3992
4103
|
|
|
3993
4104
|
if (beforeId) {
|
|
3994
4105
|
page.beforeId = beforeId;
|
|
@@ -4146,6 +4257,67 @@ export class Vaults {
|
|
|
4146
4257
|
.json(payload => util.deserializeResult(payload))
|
|
4147
4258
|
.then(f => f, util.onRejected);
|
|
4148
4259
|
}
|
|
4260
|
+
/**
|
|
4261
|
+
* Get Secrets by Vault ID
|
|
4262
|
+
*/
|
|
4263
|
+
public async getSecretsByVault(
|
|
4264
|
+
id,
|
|
4265
|
+
beforeId?: string,
|
|
4266
|
+
limit?: string
|
|
4267
|
+
): Promise<Array<datatypes.Secret>> {
|
|
4268
|
+
const array: Array<datatypes.Secret> = [];
|
|
4269
|
+
for await (const item of this._getSecretsByVault_asyncList(
|
|
4270
|
+
id,
|
|
4271
|
+
beforeId,
|
|
4272
|
+
limit
|
|
4273
|
+
)) {
|
|
4274
|
+
array.push(item);
|
|
4275
|
+
}
|
|
4276
|
+
return array;
|
|
4277
|
+
}
|
|
4278
|
+
|
|
4279
|
+
private _getSecretsByVault_pagedList(
|
|
4280
|
+
arg: datatypes.ItemPaging
|
|
4281
|
+
): Promise<datatypes.SecretList> {
|
|
4282
|
+
return this.httpClient
|
|
4283
|
+
.url(`/vaults/${arg.id}/secrets`)
|
|
4284
|
+
.query(arg)
|
|
4285
|
+
.get()
|
|
4286
|
+
.json(payload => util.deserializeResult(payload))
|
|
4287
|
+
.then(util.onFulfilled, util.onRejected);
|
|
4288
|
+
}
|
|
4289
|
+
|
|
4290
|
+
private async *_getSecretsByVault_asyncList(
|
|
4291
|
+
id,
|
|
4292
|
+
beforeId: string,
|
|
4293
|
+
limit = '100'
|
|
4294
|
+
) {
|
|
4295
|
+
let nextPage = 'initial loop';
|
|
4296
|
+
let page: datatypes.ItemPaging = { id: id, limit: limit };
|
|
4297
|
+
|
|
4298
|
+
if (beforeId) {
|
|
4299
|
+
page.beforeId = beforeId;
|
|
4300
|
+
}
|
|
4301
|
+
page.id = id;
|
|
4302
|
+
|
|
4303
|
+
while (nextPage) {
|
|
4304
|
+
const pagedList = await this._getSecretsByVault_pagedList(page);
|
|
4305
|
+
nextPage = pagedList.nextPageUri;
|
|
4306
|
+
const items: datatypes.Secret[] = pagedList.secrets;
|
|
4307
|
+
|
|
4308
|
+
if (nextPage) {
|
|
4309
|
+
page = {
|
|
4310
|
+
id: id,
|
|
4311
|
+
beforeId: items[items.length - 1].id,
|
|
4312
|
+
limit: limit,
|
|
4313
|
+
};
|
|
4314
|
+
}
|
|
4315
|
+
|
|
4316
|
+
for (const item of items) {
|
|
4317
|
+
yield item;
|
|
4318
|
+
}
|
|
4319
|
+
}
|
|
4320
|
+
}
|
|
4149
4321
|
/**
|
|
4150
4322
|
* List all Vaults owned by account
|
|
4151
4323
|
*/
|
|
@@ -4160,7 +4332,9 @@ export class Vaults {
|
|
|
4160
4332
|
return array;
|
|
4161
4333
|
}
|
|
4162
4334
|
|
|
4163
|
-
private _pagedList(
|
|
4335
|
+
private _pagedList(
|
|
4336
|
+
arg: datatypes.FilteredPaging
|
|
4337
|
+
): Promise<datatypes.VaultList> {
|
|
4164
4338
|
return this.httpClient
|
|
4165
4339
|
.url(`/vaults`)
|
|
4166
4340
|
.query(arg)
|
|
@@ -4171,7 +4345,7 @@ export class Vaults {
|
|
|
4171
4345
|
|
|
4172
4346
|
private async *_asyncList(beforeId: string, limit = '100') {
|
|
4173
4347
|
let nextPage = 'initial loop';
|
|
4174
|
-
let page: datatypes.
|
|
4348
|
+
let page: datatypes.FilteredPaging = { limit: limit };
|
|
4175
4349
|
|
|
4176
4350
|
if (beforeId) {
|
|
4177
4351
|
page.beforeId = beforeId;
|