@ngrok/ngrok-api 0.13.0 → 0.16.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.
Files changed (288) hide show
  1. package/.github/workflows/ci.yml +28 -0
  2. package/CHANGELOG.md +11 -0
  3. package/docs/assets/js/search.js +1 -1
  4. package/docs/classes/client.Ngrok.html +66 -28
  5. package/docs/classes/services.APIKeys.html +6 -6
  6. package/docs/classes/services.AbuseReports.html +3 -3
  7. package/docs/classes/services.AgentIngresses.html +6 -6
  8. package/docs/classes/services.ApplicationSessions.html +4 -4
  9. package/docs/classes/services.ApplicationUsers.html +4 -4
  10. package/docs/classes/services.BotUsers.html +6 -6
  11. package/docs/classes/services.CertificateAuthorities.html +6 -6
  12. package/docs/classes/services.Credentials.html +6 -6
  13. package/docs/classes/services.EdgeRouteBackendModule.html +4 -4
  14. package/docs/classes/services.EdgeRouteCircuitBreakerModule.html +4 -4
  15. package/docs/classes/services.EdgeRouteCompressionModule.html +4 -4
  16. package/docs/classes/services.EdgeRouteIPRestrictionModule.html +4 -4
  17. package/docs/classes/services.EdgeRouteOAuthModule.html +4 -4
  18. package/docs/classes/services.EdgeRouteOIDCModule.html +4 -4
  19. package/docs/classes/services.EdgeRouteRequestHeadersModule.html +4 -4
  20. package/docs/classes/services.EdgeRouteResponseHeadersModule.html +4 -4
  21. package/docs/classes/services.EdgeRouteSAMLModule.html +4 -4
  22. package/docs/classes/services.EdgeRouteTrafficPolicyModule.html +4 -4
  23. package/docs/classes/services.EdgeRouteUserAgentFilterModule.html +4 -4
  24. package/docs/classes/services.EdgeRouteWebhookVerificationModule.html +4 -4
  25. package/docs/classes/services.EdgeRouteWebsocketTCPConverterModule.html +4 -4
  26. package/docs/classes/services.EdgesHTTPS.html +6 -6
  27. package/docs/classes/services.EdgesHTTPSRoutes.html +5 -5
  28. package/docs/classes/services.EdgesTCP.html +6 -6
  29. package/docs/classes/services.EdgesTLS.html +6 -6
  30. package/docs/classes/services.Endpoints.html +6 -6
  31. package/docs/classes/services.EventDestinations.html +6 -6
  32. package/docs/classes/services.EventSources.html +6 -6
  33. package/docs/classes/services.EventSubscriptions.html +6 -6
  34. package/docs/classes/services.FailoverBackends.html +6 -6
  35. package/docs/classes/services.HTTPResponseBackends.html +6 -6
  36. package/docs/classes/services.HTTPSEdgeMutualTLSModule.html +4 -4
  37. package/docs/classes/services.HTTPSEdgeTLSTerminationModule.html +4 -4
  38. package/docs/classes/services.IPPolicies.html +6 -6
  39. package/docs/classes/services.IPPolicyRules.html +6 -6
  40. package/docs/classes/services.IPRestrictions.html +6 -6
  41. package/docs/classes/services.ReservedAddrs.html +6 -6
  42. package/docs/classes/services.ReservedDomains.html +8 -8
  43. package/docs/classes/services.SSHCertificateAuthorities.html +6 -6
  44. package/docs/classes/services.SSHCredentials.html +6 -6
  45. package/docs/classes/services.SSHHostCertificates.html +6 -6
  46. package/docs/classes/services.SSHUserCertificates.html +6 -6
  47. package/docs/classes/services.Secrets.html +359 -0
  48. package/docs/classes/services.StaticBackends.html +6 -6
  49. package/docs/classes/services.TCPEdgeBackendModule.html +4 -4
  50. package/docs/classes/services.TCPEdgeIPRestrictionModule.html +4 -4
  51. package/docs/classes/services.TCPEdgeTrafficPolicyModule.html +4 -4
  52. package/docs/classes/services.TLSCertificates.html +6 -6
  53. package/docs/classes/services.TLSEdgeBackendModule.html +4 -4
  54. package/docs/classes/services.TLSEdgeIPRestrictionModule.html +4 -4
  55. package/docs/classes/services.TLSEdgeMutualTLSModule.html +4 -4
  56. package/docs/classes/services.TLSEdgeTLSTerminationModule.html +4 -4
  57. package/docs/classes/services.TLSEdgeTrafficPolicyModule.html +4 -4
  58. package/docs/classes/services.TunnelGroupBackends.html +6 -6
  59. package/docs/classes/services.TunnelSessions.html +6 -6
  60. package/docs/classes/services.Tunnels.html +3 -3
  61. package/docs/classes/services.Vaults.html +359 -0
  62. package/docs/classes/services.WeightedBackends.html +6 -6
  63. package/docs/interfaces/client.NgrokConfig.html +2 -2
  64. package/docs/interfaces/datatypes.APIKey.html +7 -7
  65. package/docs/interfaces/datatypes.APIKeyCreate.html +3 -3
  66. package/docs/interfaces/datatypes.APIKeyList.html +3 -3
  67. package/docs/interfaces/datatypes.APIKeyUpdate.html +3 -3
  68. package/docs/interfaces/datatypes.AWSAuth.html +2 -2
  69. package/docs/interfaces/datatypes.AWSCredentials.html +2 -2
  70. package/docs/interfaces/datatypes.AWSRole.html +1 -1
  71. package/docs/interfaces/datatypes.AbuseReport.html +7 -7
  72. package/docs/interfaces/datatypes.AbuseReportCreate.html +2 -2
  73. package/docs/interfaces/datatypes.AbuseReportHostname.html +2 -2
  74. package/docs/interfaces/datatypes.AgentIngress.html +10 -10
  75. package/docs/interfaces/datatypes.AgentIngressCertJob.html +4 -4
  76. package/docs/interfaces/datatypes.AgentIngressCertPolicy.html +2 -2
  77. package/docs/interfaces/datatypes.AgentIngressCertStatus.html +2 -2
  78. package/docs/interfaces/datatypes.AgentIngressCreate.html +4 -4
  79. package/docs/interfaces/datatypes.AgentIngressList.html +3 -3
  80. package/docs/interfaces/datatypes.AgentIngressUpdate.html +4 -4
  81. package/docs/interfaces/datatypes.ApplicationSession.html +11 -11
  82. package/docs/interfaces/datatypes.ApplicationSessionList.html +3 -3
  83. package/docs/interfaces/datatypes.ApplicationUser.html +10 -10
  84. package/docs/interfaces/datatypes.ApplicationUserList.html +3 -3
  85. package/docs/interfaces/datatypes.BotUser.html +5 -5
  86. package/docs/interfaces/datatypes.BotUserCreate.html +2 -2
  87. package/docs/interfaces/datatypes.BotUserList.html +3 -3
  88. package/docs/interfaces/datatypes.BotUserUpdate.html +3 -3
  89. package/docs/interfaces/datatypes.BrowserSession.html +3 -3
  90. package/docs/interfaces/datatypes.CertificateAuthority.html +11 -11
  91. package/docs/interfaces/datatypes.CertificateAuthorityCreate.html +3 -3
  92. package/docs/interfaces/datatypes.CertificateAuthorityList.html +3 -3
  93. package/docs/interfaces/datatypes.CertificateAuthorityUpdate.html +3 -3
  94. package/docs/interfaces/datatypes.Credential.html +8 -8
  95. package/docs/interfaces/datatypes.CredentialCreate.html +4 -4
  96. package/docs/interfaces/datatypes.CredentialList.html +3 -3
  97. package/docs/interfaces/datatypes.CredentialUpdate.html +4 -4
  98. package/docs/interfaces/datatypes.EdgeBackendReplace.html +2 -2
  99. package/docs/interfaces/datatypes.EdgeIPRestrictionReplace.html +2 -2
  100. package/docs/interfaces/datatypes.EdgeMutualTLSReplace.html +2 -2
  101. package/docs/interfaces/datatypes.EdgeRouteBackendReplace.html +3 -3
  102. package/docs/interfaces/datatypes.EdgeRouteCircuitBreakerReplace.html +3 -3
  103. package/docs/interfaces/datatypes.EdgeRouteCompressionReplace.html +3 -3
  104. package/docs/interfaces/datatypes.EdgeRouteIPRestrictionReplace.html +3 -3
  105. package/docs/interfaces/datatypes.EdgeRouteItem.html +2 -2
  106. package/docs/interfaces/datatypes.EdgeRouteOAuthReplace.html +3 -3
  107. package/docs/interfaces/datatypes.EdgeRouteOIDCReplace.html +3 -3
  108. package/docs/interfaces/datatypes.EdgeRouteRequestHeadersReplace.html +3 -3
  109. package/docs/interfaces/datatypes.EdgeRouteResponseHeadersReplace.html +3 -3
  110. package/docs/interfaces/datatypes.EdgeRouteSAMLReplace.html +3 -3
  111. package/docs/interfaces/datatypes.EdgeRouteTrafficPolicyReplace.html +3 -3
  112. package/docs/interfaces/datatypes.EdgeRouteUserAgentFilterReplace.html +3 -3
  113. package/docs/interfaces/datatypes.EdgeRouteWebhookVerificationReplace.html +3 -3
  114. package/docs/interfaces/datatypes.EdgeRouteWebsocketTCPConverterReplace.html +3 -3
  115. package/docs/interfaces/datatypes.EdgeTLSTerminationAtEdgeReplace.html +2 -2
  116. package/docs/interfaces/datatypes.EdgeTLSTerminationReplace.html +2 -2
  117. package/docs/interfaces/datatypes.EdgeTrafficPolicyReplace.html +2 -2
  118. package/docs/interfaces/datatypes.Endpoint.html +51 -51
  119. package/docs/interfaces/datatypes.EndpointBackend.html +2 -2
  120. package/docs/interfaces/datatypes.EndpointBackendMutate.html +2 -2
  121. package/docs/interfaces/datatypes.EndpointCircuitBreaker.html +6 -6
  122. package/docs/interfaces/datatypes.EndpointCompression.html +1 -1
  123. package/docs/interfaces/datatypes.EndpointCreate.html +21 -7
  124. package/docs/interfaces/datatypes.EndpointIPPolicy.html +2 -2
  125. package/docs/interfaces/datatypes.EndpointIPPolicyMutate.html +2 -2
  126. package/docs/interfaces/datatypes.EndpointList.html +3 -3
  127. package/docs/interfaces/datatypes.EndpointListArgs.html +204 -0
  128. package/docs/interfaces/datatypes.EndpointMutualTLS.html +2 -2
  129. package/docs/interfaces/datatypes.EndpointMutualTLSMutate.html +2 -2
  130. package/docs/interfaces/datatypes.EndpointOAuth.html +7 -7
  131. package/docs/interfaces/datatypes.EndpointOAuthAmazon.html +5 -5
  132. package/docs/interfaces/datatypes.EndpointOAuthFacebook.html +5 -5
  133. package/docs/interfaces/datatypes.EndpointOAuthGitHub.html +7 -7
  134. package/docs/interfaces/datatypes.EndpointOAuthGitLab.html +5 -5
  135. package/docs/interfaces/datatypes.EndpointOAuthGoogle.html +5 -5
  136. package/docs/interfaces/datatypes.EndpointOAuthLinkedIn.html +5 -5
  137. package/docs/interfaces/datatypes.EndpointOAuthMicrosoft.html +5 -5
  138. package/docs/interfaces/datatypes.EndpointOAuthProvider.html +8 -8
  139. package/docs/interfaces/datatypes.EndpointOAuthTwitch.html +5 -5
  140. package/docs/interfaces/datatypes.EndpointOIDC.html +9 -9
  141. package/docs/interfaces/datatypes.EndpointRequestHeaders.html +3 -3
  142. package/docs/interfaces/datatypes.EndpointResponseHeaders.html +3 -3
  143. package/docs/interfaces/datatypes.EndpointSAML.html +15 -15
  144. package/docs/interfaces/datatypes.EndpointSAMLMutate.html +10 -10
  145. package/docs/interfaces/datatypes.EndpointTLSTermination.html +3 -3
  146. package/docs/interfaces/datatypes.EndpointTLSTerminationAtEdge.html +2 -2
  147. package/docs/interfaces/datatypes.EndpointTrafficPolicy.html +2 -2
  148. package/docs/interfaces/datatypes.EndpointUpdate.html +20 -6
  149. package/docs/interfaces/datatypes.EndpointUserAgentFilter.html +3 -3
  150. package/docs/interfaces/datatypes.EndpointWebhookValidation.html +3 -3
  151. package/docs/interfaces/datatypes.EndpointWebsocketTCPConverter.html +1 -1
  152. package/docs/interfaces/datatypes.Error.html +4 -4
  153. package/docs/interfaces/datatypes.EventDestination.html +7 -7
  154. package/docs/interfaces/datatypes.EventDestinationCreate.html +4 -4
  155. package/docs/interfaces/datatypes.EventDestinationList.html +3 -3
  156. package/docs/interfaces/datatypes.EventDestinationUpdate.html +5 -5
  157. package/docs/interfaces/datatypes.EventSource.html +2 -2
  158. package/docs/interfaces/datatypes.EventSourceCreate.html +2 -2
  159. package/docs/interfaces/datatypes.EventSourceItem.html +2 -2
  160. package/docs/interfaces/datatypes.EventSourceList.html +2 -2
  161. package/docs/interfaces/datatypes.EventSourcePaging.html +1 -1
  162. package/docs/interfaces/datatypes.EventSourceReplace.html +1 -1
  163. package/docs/interfaces/datatypes.EventSourceUpdate.html +2 -2
  164. package/docs/interfaces/datatypes.EventSubscription.html +7 -7
  165. package/docs/interfaces/datatypes.EventSubscriptionCreate.html +4 -4
  166. package/docs/interfaces/datatypes.EventSubscriptionList.html +3 -3
  167. package/docs/interfaces/datatypes.EventSubscriptionUpdate.html +5 -5
  168. package/docs/interfaces/datatypes.EventTarget.html +5 -5
  169. package/docs/interfaces/datatypes.EventTargetAzureLogsIngestion.html +6 -6
  170. package/docs/interfaces/datatypes.EventTargetCloudwatchLogs.html +2 -2
  171. package/docs/interfaces/datatypes.EventTargetDatadog.html +4 -4
  172. package/docs/interfaces/datatypes.EventTargetFirehose.html +2 -2
  173. package/docs/interfaces/datatypes.EventTargetKinesis.html +2 -2
  174. package/docs/interfaces/datatypes.FailoverBackend.html +6 -6
  175. package/docs/interfaces/datatypes.FailoverBackendCreate.html +3 -3
  176. package/docs/interfaces/datatypes.FailoverBackendList.html +3 -3
  177. package/docs/interfaces/datatypes.FailoverBackendUpdate.html +4 -4
  178. package/docs/interfaces/datatypes.HTTPResponseBackend.html +8 -8
  179. package/docs/interfaces/datatypes.HTTPResponseBackendCreate.html +5 -5
  180. package/docs/interfaces/datatypes.HTTPResponseBackendList.html +3 -3
  181. package/docs/interfaces/datatypes.HTTPResponseBackendUpdate.html +6 -6
  182. package/docs/interfaces/datatypes.HTTPSEdge.html +9 -9
  183. package/docs/interfaces/datatypes.HTTPSEdgeCreate.html +5 -5
  184. package/docs/interfaces/datatypes.HTTPSEdgeList.html +3 -3
  185. package/docs/interfaces/datatypes.HTTPSEdgeRoute.html +21 -21
  186. package/docs/interfaces/datatypes.HTTPSEdgeRouteCreate.html +18 -18
  187. package/docs/interfaces/datatypes.HTTPSEdgeRouteUpdate.html +19 -19
  188. package/docs/interfaces/datatypes.HTTPSEdgeUpdate.html +6 -6
  189. package/docs/interfaces/datatypes.IPPolicy.html +5 -5
  190. package/docs/interfaces/datatypes.IPPolicyCreate.html +2 -2
  191. package/docs/interfaces/datatypes.IPPolicyList.html +3 -3
  192. package/docs/interfaces/datatypes.IPPolicyRule.html +8 -8
  193. package/docs/interfaces/datatypes.IPPolicyRuleCreate.html +5 -5
  194. package/docs/interfaces/datatypes.IPPolicyRuleList.html +3 -3
  195. package/docs/interfaces/datatypes.IPPolicyRuleUpdate.html +4 -4
  196. package/docs/interfaces/datatypes.IPPolicyUpdate.html +3 -3
  197. package/docs/interfaces/datatypes.IPRestriction.html +8 -8
  198. package/docs/interfaces/datatypes.IPRestrictionCreate.html +5 -5
  199. package/docs/interfaces/datatypes.IPRestrictionList.html +3 -3
  200. package/docs/interfaces/datatypes.IPRestrictionUpdate.html +5 -5
  201. package/docs/interfaces/datatypes.IdentityProvider.html +2 -2
  202. package/docs/interfaces/datatypes.Item.html +1 -1
  203. package/docs/interfaces/datatypes.Location.html +4 -4
  204. package/docs/interfaces/datatypes.Paging.html +2 -2
  205. package/docs/interfaces/datatypes.Ref.html +2 -2
  206. package/docs/interfaces/datatypes.ReservedAddr.html +7 -7
  207. package/docs/interfaces/datatypes.ReservedAddrCreate.html +3 -3
  208. package/docs/interfaces/datatypes.ReservedAddrList.html +3 -3
  209. package/docs/interfaces/datatypes.ReservedAddrUpdate.html +3 -3
  210. package/docs/interfaces/datatypes.ReservedDomain.html +12 -12
  211. package/docs/interfaces/datatypes.ReservedDomainCertJob.html +4 -4
  212. package/docs/interfaces/datatypes.ReservedDomainCertPolicy.html +2 -2
  213. package/docs/interfaces/datatypes.ReservedDomainCertStatus.html +2 -2
  214. package/docs/interfaces/datatypes.ReservedDomainCreate.html +6 -6
  215. package/docs/interfaces/datatypes.ReservedDomainList.html +3 -3
  216. package/docs/interfaces/datatypes.ReservedDomainUpdate.html +5 -5
  217. package/docs/interfaces/datatypes.SSHCertificateAuthority.html +7 -7
  218. package/docs/interfaces/datatypes.SSHCertificateAuthorityCreate.html +5 -5
  219. package/docs/interfaces/datatypes.SSHCertificateAuthorityList.html +3 -3
  220. package/docs/interfaces/datatypes.SSHCertificateAuthorityUpdate.html +3 -3
  221. package/docs/interfaces/datatypes.SSHCredential.html +8 -8
  222. package/docs/interfaces/datatypes.SSHCredentialCreate.html +5 -5
  223. package/docs/interfaces/datatypes.SSHCredentialList.html +3 -3
  224. package/docs/interfaces/datatypes.SSHCredentialUpdate.html +4 -4
  225. package/docs/interfaces/datatypes.SSHHostCertificate.html +12 -12
  226. package/docs/interfaces/datatypes.SSHHostCertificateCreate.html +7 -7
  227. package/docs/interfaces/datatypes.SSHHostCertificateList.html +3 -3
  228. package/docs/interfaces/datatypes.SSHHostCertificateUpdate.html +3 -3
  229. package/docs/interfaces/datatypes.SSHUserCertificate.html +14 -14
  230. package/docs/interfaces/datatypes.SSHUserCertificateCreate.html +9 -9
  231. package/docs/interfaces/datatypes.SSHUserCertificateList.html +3 -3
  232. package/docs/interfaces/datatypes.SSHUserCertificateUpdate.html +3 -3
  233. package/docs/interfaces/datatypes.Secret.html +338 -0
  234. package/docs/interfaces/datatypes.SecretCreate.html +243 -0
  235. package/docs/interfaces/datatypes.SecretList.html +200 -0
  236. package/docs/interfaces/datatypes.SecretUpdate.html +243 -0
  237. package/docs/interfaces/datatypes.StaticBackend.html +7 -7
  238. package/docs/interfaces/datatypes.StaticBackendCreate.html +4 -4
  239. package/docs/interfaces/datatypes.StaticBackendList.html +3 -3
  240. package/docs/interfaces/datatypes.StaticBackendTLS.html +1 -1
  241. package/docs/interfaces/datatypes.StaticBackendUpdate.html +5 -5
  242. package/docs/interfaces/datatypes.TCPEdge.html +9 -9
  243. package/docs/interfaces/datatypes.TCPEdgeCreate.html +6 -6
  244. package/docs/interfaces/datatypes.TCPEdgeList.html +3 -3
  245. package/docs/interfaces/datatypes.TCPEdgeUpdate.html +7 -7
  246. package/docs/interfaces/datatypes.TLSCertificate.html +21 -21
  247. package/docs/interfaces/datatypes.TLSCertificateCreate.html +4 -4
  248. package/docs/interfaces/datatypes.TLSCertificateList.html +3 -3
  249. package/docs/interfaces/datatypes.TLSCertificateSANs.html +2 -2
  250. package/docs/interfaces/datatypes.TLSCertificateUpdate.html +3 -3
  251. package/docs/interfaces/datatypes.TLSEdge.html +11 -11
  252. package/docs/interfaces/datatypes.TLSEdgeCreate.html +8 -8
  253. package/docs/interfaces/datatypes.TLSEdgeList.html +3 -3
  254. package/docs/interfaces/datatypes.TLSEdgeUpdate.html +9 -9
  255. package/docs/interfaces/datatypes.Tunnel.html +11 -11
  256. package/docs/interfaces/datatypes.TunnelGroupBackend.html +7 -7
  257. package/docs/interfaces/datatypes.TunnelGroupBackendCreate.html +3 -3
  258. package/docs/interfaces/datatypes.TunnelGroupBackendList.html +3 -3
  259. package/docs/interfaces/datatypes.TunnelGroupBackendUpdate.html +4 -4
  260. package/docs/interfaces/datatypes.TunnelList.html +3 -3
  261. package/docs/interfaces/datatypes.TunnelSession.html +10 -10
  262. package/docs/interfaces/datatypes.TunnelSessionList.html +3 -3
  263. package/docs/interfaces/datatypes.TunnelSessionsUpdate.html +1 -1
  264. package/docs/interfaces/datatypes.UserAgent.html +6 -6
  265. package/docs/interfaces/datatypes.Vault.html +319 -0
  266. package/docs/interfaces/datatypes.VaultCreate.html +205 -0
  267. package/docs/interfaces/datatypes.VaultList.html +200 -0
  268. package/docs/interfaces/datatypes.VaultUpdate.html +224 -0
  269. package/docs/interfaces/datatypes.WeightedBackend.html +6 -6
  270. package/docs/interfaces/datatypes.WeightedBackendCreate.html +3 -3
  271. package/docs/interfaces/datatypes.WeightedBackendList.html +3 -3
  272. package/docs/interfaces/datatypes.WeightedBackendUpdate.html +4 -4
  273. package/docs/modules/datatypes.html +36 -0
  274. package/docs/modules/services.html +8 -0
  275. package/lib/client.d.ts +8 -0
  276. package/lib/client.d.ts.map +1 -1
  277. package/lib/client.js +3 -1
  278. package/lib/client.js.map +1 -1
  279. package/lib/datatypes.d.ts +111 -5
  280. package/lib/datatypes.d.ts.map +1 -1
  281. package/lib/services.d.ts +60 -0
  282. package/lib/services.d.ts.map +1 -1
  283. package/lib/services.js +233 -25
  284. package/lib/services.js.map +1 -1
  285. package/package.json +1 -1
  286. package/src/client.ts +11 -1
  287. package/src/datatypes.ts +120 -5
  288. package/src/services.ts +204 -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 e_25, _a;
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 (e_25_1) { e_25 = { error: e_25_1 }; }
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 (e_25) throw e_25.error; }
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* _asyncList_25() {
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 e_26, _a;
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 (e_26_1) { e_26 = { error: e_26_1 }; }
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 (e_26) throw e_26.error; }
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* _asyncList_26() {
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 e_27, _a;
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 (e_27_1) { e_27 = { error: e_27_1 }; }
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 (e_27) throw e_27.error; }
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* _asyncList_27() {
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 e_28, _a;
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 (e_28_1) { e_28 = { error: e_28_1 }; }
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 (e_28) throw e_28.error; }
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* _asyncList_28() {
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 e_29, _a;
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 (e_29_1) { e_29 = { error: e_29_1 }; }
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 (e_29) throw e_29.error; }
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* _asyncList_29() {
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 e_30, _a;
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 (e_30_1) { e_30 = { error: e_30_1 }; }
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 (e_30) throw e_30.error; }
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* _asyncList_30() {
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,108 @@ 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
+ * List all Vaults owned by account
4041
+ */
4042
+ list(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._asyncList(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
+ _pagedList(arg) {
4063
+ return this.httpClient
4064
+ .url(`/vaults`)
4065
+ .query(arg)
4066
+ .get()
4067
+ .json(payload => util.deserializeResult(payload))
4068
+ .then(util.onFulfilled, util.onRejected);
4069
+ }
4070
+ _asyncList(beforeId, limit = '100') {
4071
+ return __asyncGenerator(this, arguments, function* _asyncList_32() {
4072
+ let nextPage = 'initial loop';
4073
+ let page = { limit: limit };
4074
+ if (beforeId) {
4075
+ page.beforeId = beforeId;
4076
+ }
4077
+ while (nextPage) {
4078
+ const pagedList = yield __await(this._pagedList(page));
4079
+ nextPage = pagedList.nextPageUri;
4080
+ const items = pagedList.vaults;
4081
+ if (nextPage) {
4082
+ page = {
4083
+ beforeId: items[items.length - 1].id,
4084
+ limit: limit,
4085
+ };
4086
+ }
4087
+ for (const item of items) {
4088
+ yield yield __await(item);
4089
+ }
4090
+ }
4091
+ });
4092
+ }
4093
+ }
4094
+ exports.Vaults = Vaults;
3887
4095
  //# sourceMappingURL=services.js.map