@ngrok/ngrok-api 0.1.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +102 -31
  3. package/docs/CNAME +1 -0
  4. package/docs/assets/js/search.js +1 -1
  5. package/docs/classes/client.Ngrok.html +772 -0
  6. package/docs/classes/services.APIKeys.html +354 -0
  7. package/docs/classes/services.AbuseReports.html +261 -0
  8. package/docs/classes/services.AgentIngresses.html +343 -0
  9. package/docs/classes/services.CertificateAuthorities.html +354 -0
  10. package/docs/classes/services.Credentials.html +353 -0
  11. package/docs/classes/services.EdgeRouteBackendModule.html +270 -0
  12. package/docs/classes/services.EdgeRouteCircuitBreakerModule.html +270 -0
  13. package/docs/classes/services.EdgeRouteCompressionModule.html +270 -0
  14. package/docs/classes/services.EdgeRouteIPRestrictionModule.html +270 -0
  15. package/docs/classes/services.EdgeRouteOAuthModule.html +270 -0
  16. package/docs/classes/services.EdgeRouteOIDCModule.html +270 -0
  17. package/docs/classes/services.EdgeRouteRequestHeadersModule.html +270 -0
  18. package/docs/classes/services.EdgeRouteResponseHeadersModule.html +270 -0
  19. package/docs/classes/services.EdgeRouteSAMLModule.html +270 -0
  20. package/docs/classes/services.EdgeRouteWebhookVerificationModule.html +270 -0
  21. package/docs/classes/services.EdgeRouteWebsocketTCPConverterModule.html +270 -0
  22. package/docs/classes/services.EdgesHTTPS.html +343 -0
  23. package/docs/classes/services.EdgesHTTPSRoutes.html +317 -0
  24. package/docs/classes/services.EdgesTCP.html +343 -0
  25. package/docs/classes/services.EdgesTLS.html +343 -0
  26. package/docs/classes/services.Endpoints.html +256 -0
  27. package/docs/classes/services.EventDestinations.html +343 -0
  28. package/docs/classes/services.EventSources.html +349 -0
  29. package/docs/classes/services.EventSubscriptions.html +343 -0
  30. package/docs/classes/services.FailoverBackends.html +353 -0
  31. package/docs/classes/services.HTTPResponseBackends.html +318 -0
  32. package/docs/classes/services.HTTPSEdgeMutualTLSModule.html +270 -0
  33. package/docs/classes/services.HTTPSEdgeTLSTerminationModule.html +270 -0
  34. package/docs/classes/services.IPPolicies.html +353 -0
  35. package/docs/classes/services.IPPolicyRules.html +351 -0
  36. package/docs/classes/services.IPRestrictions.html +355 -0
  37. package/docs/classes/services.ReservedAddrs.html +352 -0
  38. package/docs/classes/services.ReservedDomains.html +417 -0
  39. package/docs/classes/services.SSHCertificateAuthorities.html +351 -0
  40. package/docs/classes/services.SSHCredentials.html +351 -0
  41. package/docs/classes/services.SSHHostCertificates.html +352 -0
  42. package/docs/classes/services.SSHUserCertificates.html +352 -0
  43. package/docs/classes/services.TCPEdgeBackendModule.html +270 -0
  44. package/docs/classes/services.TCPEdgeIPRestrictionModule.html +270 -0
  45. package/docs/classes/services.TLSCertificates.html +354 -0
  46. package/docs/classes/services.TLSEdgeBackendModule.html +270 -0
  47. package/docs/classes/services.TLSEdgeIPRestrictionModule.html +270 -0
  48. package/docs/classes/services.TLSEdgeMutualTLSModule.html +270 -0
  49. package/docs/classes/services.TLSEdgeTLSTerminationModule.html +270 -0
  50. package/docs/classes/services.TunnelGroupBackends.html +351 -0
  51. package/docs/classes/services.TunnelSessions.html +352 -0
  52. package/docs/classes/services.Tunnels.html +255 -0
  53. package/docs/classes/services.WeightedBackends.html +353 -0
  54. package/docs/index.html +103 -546
  55. package/docs/interfaces/client.NgrokConfig.html +179 -0
  56. package/docs/interfaces/{apikey.html → datatypes.APIKey.html} +41 -29
  57. package/docs/interfaces/{apikeycreate.html → datatypes.APIKeyCreate.html} +25 -13
  58. package/docs/interfaces/{apikeylist.html → datatypes.APIKeyList.html} +32 -20
  59. package/docs/interfaces/{apikeyupdate.html → datatypes.APIKeyUpdate.html} +28 -16
  60. package/docs/interfaces/{awsauth.html → datatypes.AWSAuth.html} +27 -15
  61. package/docs/interfaces/{awscredentials.html → datatypes.AWSCredentials.html} +31 -19
  62. package/docs/interfaces/{awsrole.html → datatypes.AWSRole.html} +25 -13
  63. package/docs/interfaces/{abusereport.html → datatypes.AbuseReport.html} +45 -33
  64. package/docs/interfaces/{abusereportcreate.html → datatypes.AbuseReportCreate.html} +25 -13
  65. package/docs/interfaces/{abusereporthostname.html → datatypes.AbuseReportHostname.html} +26 -14
  66. package/docs/interfaces/datatypes.AgentIngress.html +300 -0
  67. package/docs/interfaces/{ipwhitelistentrycreate.html → datatypes.AgentIngressCreate.html} +37 -25
  68. package/docs/interfaces/datatypes.AgentIngressList.html +205 -0
  69. package/docs/interfaces/{ipwhitelistentryupdate.html → datatypes.AgentIngressUpdate.html} +33 -21
  70. package/docs/interfaces/{certificateauthority.html → datatypes.CertificateAuthority.html} +73 -61
  71. package/docs/interfaces/{certificateauthoritycreate.html → datatypes.CertificateAuthorityCreate.html} +31 -19
  72. package/docs/interfaces/{certificateauthoritylist.html → datatypes.CertificateAuthorityList.html} +34 -22
  73. package/docs/interfaces/{certificateauthorityupdate.html → datatypes.CertificateAuthorityUpdate.html} +28 -16
  74. package/docs/interfaces/{credential.html → datatypes.Credential.html} +45 -33
  75. package/docs/interfaces/{credentialcreate.html → datatypes.CredentialCreate.html} +29 -17
  76. package/docs/interfaces/{credentiallist.html → datatypes.CredentialList.html} +32 -20
  77. package/docs/interfaces/{credentialupdate.html → datatypes.CredentialUpdate.html} +32 -20
  78. package/docs/interfaces/{endpointippolicyreplace.html → datatypes.EdgeBackendReplace.html} +29 -17
  79. package/docs/interfaces/{endpointbackendreplace.html → datatypes.EdgeIPRestrictionReplace.html} +29 -17
  80. package/docs/interfaces/{endpointresponseheadersreplace.html → datatypes.EdgeMutualTLSReplace.html} +29 -17
  81. package/docs/interfaces/datatypes.EdgeRouteBackendReplace.html +190 -0
  82. package/docs/interfaces/datatypes.EdgeRouteCircuitBreakerReplace.html +190 -0
  83. package/docs/interfaces/datatypes.EdgeRouteCompressionReplace.html +190 -0
  84. package/docs/interfaces/datatypes.EdgeRouteIPRestrictionReplace.html +190 -0
  85. package/docs/interfaces/{reserveddomaincertnstarget.html → datatypes.EdgeRouteItem.html} +36 -24
  86. package/docs/interfaces/datatypes.EdgeRouteOAuthReplace.html +190 -0
  87. package/docs/interfaces/datatypes.EdgeRouteOIDCReplace.html +190 -0
  88. package/docs/interfaces/datatypes.EdgeRouteRequestHeadersReplace.html +190 -0
  89. package/docs/interfaces/datatypes.EdgeRouteResponseHeadersReplace.html +190 -0
  90. package/docs/interfaces/datatypes.EdgeRouteSAMLReplace.html +190 -0
  91. package/docs/interfaces/datatypes.EdgeRouteWebhookVerificationReplace.html +190 -0
  92. package/docs/interfaces/datatypes.EdgeRouteWebsocketTCPConverterReplace.html +190 -0
  93. package/docs/interfaces/{endpointoauthreplace.html → datatypes.EdgeTLSTerminationAtEdgeReplace.html} +29 -17
  94. package/docs/interfaces/{endpointbasicauthreplace.html → datatypes.EdgeTLSTerminationReplace.html} +29 -17
  95. package/docs/interfaces/{empty.html → datatypes.Empty.html} +18 -7
  96. package/docs/interfaces/datatypes.Endpoint.html +395 -0
  97. package/docs/interfaces/{endpointbackend.html → datatypes.EndpointBackend.html} +27 -15
  98. package/docs/interfaces/{endpointlogging.html → datatypes.EndpointBackendMutate.html} +36 -24
  99. package/docs/interfaces/{endpointcircuitbreaker.html → datatypes.EndpointCircuitBreaker.html} +53 -41
  100. package/docs/interfaces/{endpointcompression.html → datatypes.EndpointCompression.html} +23 -11
  101. package/docs/interfaces/{endpointippolicy.html → datatypes.EndpointIPPolicy.html} +29 -17
  102. package/docs/interfaces/{endpointippolicymutate.html → datatypes.EndpointIPPolicyMutate.html} +29 -17
  103. package/docs/interfaces/datatypes.EndpointList.html +205 -0
  104. package/docs/interfaces/{endpointmutualtls.html → datatypes.EndpointMutualTLS.html} +29 -17
  105. package/docs/interfaces/{endpointmutualtlsmutate.html → datatypes.EndpointMutualTLSMutate.html} +29 -17
  106. package/docs/interfaces/{endpointoauth.html → datatypes.EndpointOAuth.html} +57 -45
  107. package/docs/interfaces/{endpointoauthfacebook.html → datatypes.EndpointOAuthFacebook.html} +48 -36
  108. package/docs/interfaces/{endpointoauthgithub.html → datatypes.EndpointOAuthGitHub.html} +55 -43
  109. package/docs/interfaces/{endpointoauthgoogle.html → datatypes.EndpointOAuthGoogle.html} +48 -36
  110. package/docs/interfaces/{endpointoauthmicrosoft.html → datatypes.EndpointOAuthMicrosoft.html} +48 -36
  111. package/docs/interfaces/{endpointoauthprovider.html → datatypes.EndpointOAuthProvider.html} +35 -23
  112. package/docs/interfaces/{endpointoidc.html → datatypes.EndpointOIDC.html} +65 -53
  113. package/docs/interfaces/{endpointrequestheaders.html → datatypes.EndpointRequestHeaders.html} +29 -17
  114. package/docs/interfaces/{endpointresponseheaders.html → datatypes.EndpointResponseHeaders.html} +29 -17
  115. package/docs/interfaces/{endpointsaml.html → datatypes.EndpointSAML.html} +121 -90
  116. package/docs/interfaces/{endpointsamlmutate.html → datatypes.EndpointSAMLMutate.html} +91 -60
  117. package/docs/interfaces/{endpointtlstermination.html → datatypes.EndpointTLSTermination.html} +37 -25
  118. package/docs/interfaces/{endpointloggingmutate.html → datatypes.EndpointTLSTerminationAtEdge.html} +33 -21
  119. package/docs/interfaces/{endpointwebhookvalidation.html → datatypes.EndpointWebhookValidation.html} +30 -18
  120. package/docs/interfaces/{staticbackendtls.html → datatypes.EndpointWebsocketTCPConverter.html} +27 -15
  121. package/docs/interfaces/{error.html → datatypes.Error.html} +37 -25
  122. package/docs/interfaces/{eventdestination.html → datatypes.EventDestination.html} +46 -34
  123. package/docs/interfaces/{eventdestinationcreate.html → datatypes.EventDestinationCreate.html} +34 -22
  124. package/docs/interfaces/{eventdestinationlist.html → datatypes.EventDestinationList.html} +34 -22
  125. package/docs/interfaces/{eventdestinationupdate.html → datatypes.EventDestinationUpdate.html} +37 -25
  126. package/docs/interfaces/{eventsource.html → datatypes.EventSource.html} +25 -13
  127. package/docs/interfaces/{eventsourcecreate.html → datatypes.EventSourceCreate.html} +28 -16
  128. package/docs/interfaces/{eventsourceitem.html → datatypes.EventSourceItem.html} +28 -16
  129. package/docs/interfaces/{eventsourcelist.html → datatypes.EventSourceList.html} +26 -14
  130. package/docs/interfaces/{eventsourcepaging.html → datatypes.EventSourcePaging.html} +25 -13
  131. package/docs/interfaces/{eventsourcereplace.html → datatypes.EventSourceReplace.html} +22 -10
  132. package/docs/interfaces/{eventsourceupdate.html → datatypes.EventSourceUpdate.html} +28 -16
  133. package/docs/interfaces/{eventsubscription.html → datatypes.EventSubscription.html} +45 -33
  134. package/docs/interfaces/{eventsubscriptioncreate.html → datatypes.EventSubscriptionCreate.html} +36 -24
  135. package/docs/interfaces/{eventsubscriptionlist.html → datatypes.EventSubscriptionList.html} +34 -22
  136. package/docs/interfaces/{eventsubscriptionupdate.html → datatypes.EventSubscriptionUpdate.html} +39 -27
  137. package/docs/interfaces/{eventtarget.html → datatypes.EventTarget.html} +33 -21
  138. package/docs/interfaces/{eventtargetcloudwatchlogs.html → datatypes.EventTargetCloudwatchLogs.html} +30 -18
  139. package/docs/interfaces/{eventtargetfirehose.html → datatypes.EventTargetFirehose.html} +30 -18
  140. package/docs/interfaces/{eventtargetkinesis.html → datatypes.EventTargetKinesis.html} +30 -18
  141. package/docs/interfaces/{staticbackend.html → datatypes.FailoverBackend.html} +52 -40
  142. package/docs/interfaces/{prioritybackendcreate.html → datatypes.FailoverBackendCreate.html} +31 -19
  143. package/docs/interfaces/{prioritybackendlist.html → datatypes.FailoverBackendList.html} +37 -25
  144. package/docs/interfaces/{prioritybackendupdate.html → datatypes.FailoverBackendUpdate.html} +34 -22
  145. package/docs/interfaces/datatypes.HTTPResponseBackend.html +295 -0
  146. package/docs/interfaces/{tunnelgroupbackend.html → datatypes.HTTPResponseBackendCreate.html} +53 -41
  147. package/docs/interfaces/{staticbackendlist.html → datatypes.HTTPResponseBackendList.html} +35 -38
  148. package/docs/interfaces/{tcpedge.html → datatypes.HTTPResponseBackendUpdate.html} +58 -65
  149. package/docs/interfaces/{eventstream.html → datatypes.HTTPSEdge.html} +78 -71
  150. package/docs/interfaces/{staticbackendupdate.html → datatypes.HTTPSEdgeCreate.html} +60 -48
  151. package/docs/interfaces/datatypes.HTTPSEdgeList.html +205 -0
  152. package/docs/interfaces/datatypes.HTTPSEdgeRoute.html +509 -0
  153. package/docs/interfaces/{endpointconfigurationcreate.html → datatypes.HTTPSEdgeRouteCreate.html} +141 -110
  154. package/docs/interfaces/{endpointconfiguration.html → datatypes.HTTPSEdgeRouteUpdate.html} +138 -145
  155. package/docs/interfaces/{tlsedgeupdate.html → datatypes.HTTPSEdgeUpdate.html} +65 -43
  156. package/docs/interfaces/{ippolicy.html → datatypes.IPPolicy.html} +37 -44
  157. package/docs/interfaces/{ippolicycreate.html → datatypes.IPPolicyCreate.html} +25 -32
  158. package/docs/interfaces/{ippolicylist.html → datatypes.IPPolicyList.html} +34 -22
  159. package/docs/interfaces/{ippolicyrule.html → datatypes.IPPolicyRule.html} +65 -34
  160. package/docs/interfaces/{ippolicyrulecreate.html → datatypes.IPPolicyRuleCreate.html} +53 -22
  161. package/docs/interfaces/{ippolicyrulelist.html → datatypes.IPPolicyRuleList.html} +34 -22
  162. package/docs/interfaces/{ippolicyruleupdate.html → datatypes.IPPolicyRuleUpdate.html} +31 -19
  163. package/docs/interfaces/{ippolicyupdate.html → datatypes.IPPolicyUpdate.html} +28 -16
  164. package/docs/interfaces/{iprestriction.html → datatypes.IPRestriction.html} +50 -38
  165. package/docs/interfaces/{iprestrictioncreate.html → datatypes.IPRestrictionCreate.html} +38 -26
  166. package/docs/interfaces/{iprestrictionlist.html → datatypes.IPRestrictionList.html} +34 -22
  167. package/docs/interfaces/{iprestrictionupdate.html → datatypes.IPRestrictionUpdate.html} +37 -25
  168. package/docs/interfaces/{item.html → datatypes.Item.html} +22 -10
  169. package/docs/interfaces/{paging.html → datatypes.Paging.html} +28 -16
  170. package/docs/interfaces/{ref.html → datatypes.Ref.html} +25 -13
  171. package/docs/interfaces/{reservedaddr.html → datatypes.ReservedAddr.html} +43 -50
  172. package/docs/interfaces/{reservedaddrcreate.html → datatypes.ReservedAddrCreate.html} +28 -35
  173. package/docs/interfaces/{reservedaddrlist.html → datatypes.ReservedAddrList.html} +34 -22
  174. package/docs/interfaces/datatypes.ReservedAddrUpdate.html +200 -0
  175. package/docs/interfaces/{reserveddomain.html → datatypes.ReservedDomain.html} +82 -89
  176. package/docs/interfaces/{reserveddomaincertjob.html → datatypes.ReservedDomainCertJob.html} +40 -47
  177. package/docs/interfaces/{reserveddomaincertpolicy.html → datatypes.ReservedDomainCertPolicy.html} +28 -16
  178. package/docs/interfaces/{reserveddomaincertstatus.html → datatypes.ReservedDomainCertStatus.html} +31 -19
  179. package/docs/interfaces/{reserveddomaincreate.html → datatypes.ReservedDomainCreate.html} +45 -71
  180. package/docs/interfaces/{reserveddomainlist.html → datatypes.ReservedDomainList.html} +34 -22
  181. package/docs/interfaces/datatypes.ReservedDomainUpdate.html +238 -0
  182. package/docs/interfaces/{sshcertificateauthority.html → datatypes.SSHCertificateAuthority.html} +49 -37
  183. package/docs/interfaces/{sshcertificateauthoritycreate.html → datatypes.SSHCertificateAuthorityCreate.html} +45 -33
  184. package/docs/interfaces/{sshcertificateauthoritylist.html → datatypes.SSHCertificateAuthorityList.html} +34 -22
  185. package/docs/interfaces/{sshcertificateauthorityupdate.html → datatypes.SSHCertificateAuthorityUpdate.html} +28 -16
  186. package/docs/interfaces/{sshcredential.html → datatypes.SSHCredential.html} +47 -35
  187. package/docs/interfaces/{sshcredentialcreate.html → datatypes.SSHCredentialCreate.html} +35 -23
  188. package/docs/interfaces/{sshcredentiallist.html → datatypes.SSHCredentialList.html} +34 -22
  189. package/docs/interfaces/{sshcredentialupdate.html → datatypes.SSHCredentialUpdate.html} +32 -20
  190. package/docs/interfaces/{sshhostcertificate.html → datatypes.SSHHostCertificate.html} +76 -64
  191. package/docs/interfaces/{sshhostcertificatecreate.html → datatypes.SSHHostCertificateCreate.html} +53 -41
  192. package/docs/interfaces/{sshhostcertificatelist.html → datatypes.SSHHostCertificateList.html} +34 -22
  193. package/docs/interfaces/{sshhostcertificateupdate.html → datatypes.SSHHostCertificateUpdate.html} +28 -16
  194. package/docs/interfaces/{sshusercertificate.html → datatypes.SSHUserCertificate.html} +87 -75
  195. package/docs/interfaces/{sshusercertificatecreate.html → datatypes.SSHUserCertificateCreate.html} +64 -52
  196. package/docs/interfaces/{sshusercertificatelist.html → datatypes.SSHUserCertificateList.html} +34 -22
  197. package/docs/interfaces/{sshusercertificateupdate.html → datatypes.SSHUserCertificateUpdate.html} +28 -16
  198. package/docs/interfaces/{tlsedge.html → datatypes.TCPEdge.html} +69 -66
  199. package/docs/interfaces/{tlsedgecreate.html → datatypes.TCPEdgeCreate.html} +64 -42
  200. package/docs/interfaces/{endpointconfigurationlist.html → datatypes.TCPEdgeList.html} +40 -28
  201. package/docs/interfaces/{eventstreamupdate.html → datatypes.TCPEdgeUpdate.html} +60 -53
  202. package/docs/interfaces/{tlscertificate.html → datatypes.TLSCertificate.html} +134 -122
  203. package/docs/interfaces/{tlscertificatecreate.html → datatypes.TLSCertificateCreate.html} +39 -27
  204. package/docs/interfaces/{tlscertificatelist.html → datatypes.TLSCertificateList.html} +34 -22
  205. package/docs/interfaces/{tlscertificatesans.html → datatypes.TLSCertificateSANs.html} +28 -16
  206. package/docs/interfaces/{tlscertificateupdate.html → datatypes.TLSCertificateUpdate.html} +28 -16
  207. package/docs/interfaces/datatypes.TLSEdge.html +323 -0
  208. package/docs/interfaces/datatypes.TLSEdgeCreate.html +266 -0
  209. package/docs/interfaces/datatypes.TLSEdgeList.html +205 -0
  210. package/docs/interfaces/{reserveddomainupdate.html → datatypes.TLSEdgeUpdate.html} +83 -62
  211. package/docs/interfaces/datatypes.Tunnel.html +357 -0
  212. package/docs/interfaces/datatypes.TunnelGroupBackend.html +281 -0
  213. package/docs/interfaces/{tunnelgroupbackendcreate.html → datatypes.TunnelGroupBackendCreate.html} +28 -16
  214. package/docs/interfaces/{tunnelgroupbackendlist.html → datatypes.TunnelGroupBackendList.html} +32 -20
  215. package/docs/interfaces/{tunnelgroupbackendupdate.html → datatypes.TunnelGroupBackendUpdate.html} +31 -19
  216. package/docs/interfaces/{tunnellist.html → datatypes.TunnelList.html} +32 -20
  217. package/docs/interfaces/{tunnelsession.html → datatypes.TunnelSession.html} +57 -45
  218. package/docs/interfaces/{tunnelsessionlist.html → datatypes.TunnelSessionList.html} +34 -22
  219. package/docs/interfaces/{tunnelsessionsupdate.html → datatypes.TunnelSessionsUpdate.html} +22 -10
  220. package/docs/interfaces/{weightedbackend.html → datatypes.WeightedBackend.html} +56 -25
  221. package/docs/interfaces/{weightedbackendcreate.html → datatypes.WeightedBackendCreate.html} +28 -16
  222. package/docs/interfaces/{weightedbackendlist.html → datatypes.WeightedBackendList.html} +32 -20
  223. package/docs/interfaces/{weightedbackendupdate.html → datatypes.WeightedBackendUpdate.html} +31 -19
  224. package/docs/{interfaces/endpointbasicauth.html → modules/client.html} +38 -20
  225. package/docs/modules/datatypes.html +796 -0
  226. package/docs/modules/services.html +316 -0
  227. package/docs/modules.html +16 -690
  228. package/lib/client.d.ts +179 -0
  229. package/lib/client.d.ts.map +1 -0
  230. package/lib/client.js +126 -0
  231. package/lib/client.js.map +1 -0
  232. package/lib/{types.d.ts → datatypes.d.ts} +729 -660
  233. package/lib/datatypes.d.ts.map +1 -0
  234. package/lib/{types.js → datatypes.js} +1 -1
  235. package/lib/datatypes.js.map +1 -0
  236. package/lib/index.d.ts +2 -378
  237. package/lib/index.d.ts.map +1 -1
  238. package/lib/index.js +2 -2148
  239. package/lib/index.js.map +1 -1
  240. package/lib/services.d.ts +993 -0
  241. package/lib/services.d.ts.map +1 -0
  242. package/lib/services.js +3600 -0
  243. package/lib/services.js.map +1 -0
  244. package/lib/util.d.ts +5 -0
  245. package/lib/util.d.ts.map +1 -0
  246. package/lib/util.js +53 -0
  247. package/lib/util.js.map +1 -0
  248. package/package.json +2 -2
  249. package/src/client.ts +322 -0
  250. package/src/{types.ts → datatypes.ts} +760 -689
  251. package/src/index.ts +2 -1775
  252. package/src/services.ts +3380 -0
  253. package/src/util.ts +48 -0
  254. package/test/apikey.test.js +41 -30
  255. package/docs/classes/ngrok.html +0 -5028
  256. package/docs/interfaces/endpointbackendmutate.html +0 -119
  257. package/docs/interfaces/endpointcircuitbreakerreplace.html +0 -164
  258. package/docs/interfaces/endpointcompressionreplace.html +0 -164
  259. package/docs/interfaces/endpointconfigurationupdate.html +0 -421
  260. package/docs/interfaces/endpointloggingreplace.html +0 -164
  261. package/docs/interfaces/endpointmutualtlsreplace.html +0 -164
  262. package/docs/interfaces/endpointoidcreplace.html +0 -164
  263. package/docs/interfaces/endpointrequestheadersreplace.html +0 -164
  264. package/docs/interfaces/endpointsamlreplace.html +0 -164
  265. package/docs/interfaces/endpointtlsterminationreplace.html +0 -164
  266. package/docs/interfaces/endpointwebhookvalidationreplace.html +0 -164
  267. package/docs/interfaces/eventstreamcreate.html +0 -250
  268. package/docs/interfaces/eventstreamlist.html +0 -193
  269. package/docs/interfaces/eventtargetdebug.html +0 -119
  270. package/docs/interfaces/eventtargets3.html +0 -250
  271. package/docs/interfaces/ipwhitelistentry.html +0 -250
  272. package/docs/interfaces/ipwhitelistentrylist.html +0 -193
  273. package/docs/interfaces/prioritybackend.html +0 -231
  274. package/docs/interfaces/reservedaddrupdate.html +0 -207
  275. package/docs/interfaces/rootresponse.html +0 -164
  276. package/docs/interfaces/sentevent.html +0 -150
  277. package/docs/interfaces/staticbackendcreate.html +0 -212
  278. package/docs/interfaces/tcpedgecreate.html +0 -188
  279. package/docs/interfaces/tcpedgeupdate.html +0 -207
  280. package/docs/interfaces/tunnel.html +0 -269
  281. package/lib/types.d.ts.map +0 -1
  282. package/lib/types.js.map +0 -1
  283. package/test/endpointConfigurations.test.js +0 -63
@@ -0,0 +1,993 @@
1
+ import { Wretcher } from 'wretch';
2
+ import * as datatypes from './datatypes';
3
+ /**
4
+ * Abuse Reports allow you to submit take-down requests for URLs hosted by
5
+ ngrok that violate ngrok's terms of service.
6
+ */
7
+ export declare class AbuseReports {
8
+ private httpClient;
9
+ /** Do not construct this object directly, use the <code>abuseReports</code> property of an <code>Ngrok</code> client object instead. */
10
+ constructor(httpClient: Wretcher);
11
+ /**
12
+ * Creates a new abuse report which will be reviewed by our system and abuse response team. This API is only available to authorized accounts. Contact abuse@ngrok.com to request access
13
+ */
14
+ create(arg: datatypes.AbuseReportCreate): Promise<datatypes.AbuseReport>;
15
+ /**
16
+ * Get the detailed status of abuse report by ID.
17
+ */
18
+ get(arg: datatypes.Item): Promise<datatypes.AbuseReport>;
19
+ }
20
+ export declare class AgentIngresses {
21
+ private httpClient;
22
+ /** Do not construct this object directly, use the <code>agentIngresses</code> property of an <code>Ngrok</code> client object instead. */
23
+ constructor(httpClient: Wretcher);
24
+ /**
25
+ * Create a new Agent Ingress. The ngrok agent can be configured to connect to ngrok via the new set of addresses on the returned Agent Ingress.
26
+ */
27
+ create(arg: datatypes.AgentIngressCreate): Promise<datatypes.AgentIngress>;
28
+ /**
29
+ * Delete an Agent Ingress by ID
30
+ */
31
+ delete(arg: datatypes.Item): Promise<void>;
32
+ /**
33
+ * Get the details of an Agent Ingress by ID.
34
+ */
35
+ get(arg: datatypes.Item): Promise<datatypes.AgentIngress>;
36
+ /**
37
+ * List all Agent Ingresses owned by this account
38
+ */
39
+ list(): Promise<Array<datatypes.AgentIngress>>;
40
+ private _pagedList;
41
+ private _asyncList;
42
+ /**
43
+ * Update attributes of an Agent Ingress by ID.
44
+ */
45
+ update(arg: datatypes.AgentIngressUpdate): Promise<datatypes.AgentIngress>;
46
+ }
47
+ /**
48
+ * API Keys are used to authenticate to the [ngrok
49
+ API](https://ngrok.com/docs/api#authentication). You may use the API itself
50
+ to provision and manage API Keys but you'll need to provision your first API
51
+ key from the [API Keys page](https://dashboard.ngrok.com/api/keys) on your
52
+ ngrok.com dashboard.
53
+ */
54
+ export declare class APIKeys {
55
+ private httpClient;
56
+ /** Do not construct this object directly, use the <code>apiKeys</code> property of an <code>Ngrok</code> client object instead. */
57
+ constructor(httpClient: Wretcher);
58
+ /**
59
+ * Create a new API key. The generated API key can be used to authenticate to the ngrok API.
60
+ */
61
+ create(arg: datatypes.APIKeyCreate): Promise<datatypes.APIKey>;
62
+ /**
63
+ * Delete an API key by ID
64
+ */
65
+ delete(arg: datatypes.Item): Promise<void>;
66
+ /**
67
+ * Get the details of an API key by ID.
68
+ */
69
+ get(arg: datatypes.Item): Promise<datatypes.APIKey>;
70
+ /**
71
+ * List all API keys owned by this account
72
+ */
73
+ list(): Promise<Array<datatypes.APIKey>>;
74
+ private _pagedList;
75
+ private _asyncList;
76
+ /**
77
+ * Update attributes of an API key by ID.
78
+ */
79
+ update(arg: datatypes.APIKeyUpdate): Promise<datatypes.APIKey>;
80
+ }
81
+ /**
82
+ * A Failover backend defines failover behavior within a list of referenced
83
+ backends. Traffic is sent to the first backend in the list. If that backend
84
+ is offline or no connection can be established, ngrok attempts to connect to
85
+ the next backend in the list until one is successful.
86
+ */
87
+ export declare class FailoverBackends {
88
+ private httpClient;
89
+ /** Do not construct this object directly, use the <code>failoverBackends</code> property of an <code>Ngrok</code> client object instead. */
90
+ constructor(httpClient: Wretcher);
91
+ /**
92
+ * Create a new Failover backend
93
+ */
94
+ create(arg: datatypes.FailoverBackendCreate): Promise<datatypes.FailoverBackend>;
95
+ /**
96
+ * Delete a Failover backend by ID. TODO what if used?
97
+ */
98
+ delete(arg: datatypes.Item): Promise<void>;
99
+ /**
100
+ * Get detailed information about a Failover backend by ID
101
+ */
102
+ get(arg: datatypes.Item): Promise<datatypes.FailoverBackend>;
103
+ /**
104
+ * List all Failover backends on this account
105
+ */
106
+ list(): Promise<Array<datatypes.FailoverBackend>>;
107
+ private _pagedList;
108
+ private _asyncList;
109
+ /**
110
+ * Update Failover backend by ID
111
+ */
112
+ update(arg: datatypes.FailoverBackendUpdate): Promise<datatypes.FailoverBackend>;
113
+ }
114
+ export declare class HTTPResponseBackends {
115
+ private httpClient;
116
+ /** Do not construct this object directly, use the <code>httpResponseBackends</code> property of an <code>Ngrok</code> client object instead. */
117
+ constructor(httpClient: Wretcher);
118
+ create(arg: datatypes.HTTPResponseBackendCreate): Promise<datatypes.HTTPResponseBackend>;
119
+ delete(arg: datatypes.Item): Promise<void>;
120
+ get(arg: datatypes.Item): Promise<datatypes.HTTPResponseBackend>;
121
+ list(): Promise<Array<datatypes.HTTPResponseBackend>>;
122
+ private _pagedList;
123
+ private _asyncList;
124
+ update(arg: datatypes.HTTPResponseBackendUpdate): Promise<datatypes.HTTPResponseBackend>;
125
+ }
126
+ /**
127
+ * A Tunnel Group Backend balances traffic among all online tunnels that match
128
+ a label selector.
129
+ */
130
+ export declare class TunnelGroupBackends {
131
+ private httpClient;
132
+ /** Do not construct this object directly, use the <code>tunnelGroupBackends</code> property of an <code>Ngrok</code> client object instead. */
133
+ constructor(httpClient: Wretcher);
134
+ /**
135
+ * Create a new TunnelGroup backend
136
+ */
137
+ create(arg: datatypes.TunnelGroupBackendCreate): Promise<datatypes.TunnelGroupBackend>;
138
+ /**
139
+ * Delete a TunnelGroup backend by ID. TODO what if used?
140
+ */
141
+ delete(arg: datatypes.Item): Promise<void>;
142
+ /**
143
+ * Get detailed information about a TunnelGroup backend by ID
144
+ */
145
+ get(arg: datatypes.Item): Promise<datatypes.TunnelGroupBackend>;
146
+ /**
147
+ * List all TunnelGroup backends on this account
148
+ */
149
+ list(): Promise<Array<datatypes.TunnelGroupBackend>>;
150
+ private _pagedList;
151
+ private _asyncList;
152
+ /**
153
+ * Update TunnelGroup backend by ID
154
+ */
155
+ update(arg: datatypes.TunnelGroupBackendUpdate): Promise<datatypes.TunnelGroupBackend>;
156
+ }
157
+ /**
158
+ * A Weighted Backend balances traffic among the referenced backends. Traffic
159
+ is assigned proportionally to each based on its weight. The percentage of
160
+ traffic is calculated by dividing a backend's weight by the sum of all
161
+ weights.
162
+ */
163
+ export declare class WeightedBackends {
164
+ private httpClient;
165
+ /** Do not construct this object directly, use the <code>weightedBackends</code> property of an <code>Ngrok</code> client object instead. */
166
+ constructor(httpClient: Wretcher);
167
+ /**
168
+ * Create a new Weighted backend
169
+ */
170
+ create(arg: datatypes.WeightedBackendCreate): Promise<datatypes.WeightedBackend>;
171
+ /**
172
+ * Delete a Weighted backend by ID. TODO what if used?
173
+ */
174
+ delete(arg: datatypes.Item): Promise<void>;
175
+ /**
176
+ * Get detailed information about a Weighted backend by ID
177
+ */
178
+ get(arg: datatypes.Item): Promise<datatypes.WeightedBackend>;
179
+ /**
180
+ * List all Weighted backends on this account
181
+ */
182
+ list(): Promise<Array<datatypes.WeightedBackend>>;
183
+ private _pagedList;
184
+ private _asyncList;
185
+ /**
186
+ * Update Weighted backend by ID
187
+ */
188
+ update(arg: datatypes.WeightedBackendUpdate): Promise<datatypes.WeightedBackend>;
189
+ }
190
+ /**
191
+ * Certificate Authorities are x509 certificates that are used to sign other
192
+ x509 certificates. Attach a Certificate Authority to the Mutual TLS module
193
+ to verify that the TLS certificate presented by a client has been signed by
194
+ this CA. Certificate Authorities are used only for mTLS validation only and
195
+ thus a private key is not included in the resource.
196
+ */
197
+ export declare class CertificateAuthorities {
198
+ private httpClient;
199
+ /** Do not construct this object directly, use the <code>certificateAuthorities</code> property of an <code>Ngrok</code> client object instead. */
200
+ constructor(httpClient: Wretcher);
201
+ /**
202
+ * Upload a new Certificate Authority
203
+ */
204
+ create(arg: datatypes.CertificateAuthorityCreate): Promise<datatypes.CertificateAuthority>;
205
+ /**
206
+ * Delete a Certificate Authority
207
+ */
208
+ delete(arg: datatypes.Item): Promise<void>;
209
+ /**
210
+ * Get detailed information about a certficate authority
211
+ */
212
+ get(arg: datatypes.Item): Promise<datatypes.CertificateAuthority>;
213
+ /**
214
+ * List all Certificate Authority on this account
215
+ */
216
+ list(): Promise<Array<datatypes.CertificateAuthority>>;
217
+ private _pagedList;
218
+ private _asyncList;
219
+ /**
220
+ * Update attributes of a Certificate Authority by ID
221
+ */
222
+ update(arg: datatypes.CertificateAuthorityUpdate): Promise<datatypes.CertificateAuthority>;
223
+ }
224
+ /**
225
+ * Tunnel Credentials are ngrok agent authtokens. They authorize the ngrok
226
+ agent to connect the ngrok service as your account. They are installed with
227
+ the `ngrok authtoken` command or by specifying it in the `ngrok.yml`
228
+ configuration file with the `authtoken` property.
229
+ */
230
+ export declare class Credentials {
231
+ private httpClient;
232
+ /** Do not construct this object directly, use the <code>credentials</code> property of an <code>Ngrok</code> client object instead. */
233
+ constructor(httpClient: Wretcher);
234
+ /**
235
+ * Create a new tunnel authtoken credential. This authtoken credential can be used to start a new tunnel session. The response to this API call is the only time the generated token is available. If you need it for future use, you must save it securely yourself.
236
+ */
237
+ create(arg: datatypes.CredentialCreate): Promise<datatypes.Credential>;
238
+ /**
239
+ * Delete a tunnel authtoken credential by ID
240
+ */
241
+ delete(arg: datatypes.Item): Promise<void>;
242
+ /**
243
+ * Get detailed information about a tunnel authtoken credential
244
+ */
245
+ get(arg: datatypes.Item): Promise<datatypes.Credential>;
246
+ /**
247
+ * List all tunnel authtoken credentials on this account
248
+ */
249
+ list(): Promise<Array<datatypes.Credential>>;
250
+ private _pagedList;
251
+ private _asyncList;
252
+ /**
253
+ * Update attributes of an tunnel authtoken credential by ID
254
+ */
255
+ update(arg: datatypes.CredentialUpdate): Promise<datatypes.Credential>;
256
+ }
257
+ export declare class EdgesHTTPSRoutes {
258
+ private httpClient;
259
+ /** Do not construct this object directly, use the <code>edgesHttpsRoutes</code> property of an <code>Ngrok</code> client object instead. */
260
+ constructor(httpClient: Wretcher);
261
+ /**
262
+ * Create an HTTPS Edge Route
263
+ */
264
+ create(arg: datatypes.HTTPSEdgeRouteCreate): Promise<datatypes.HTTPSEdgeRoute>;
265
+ /**
266
+ * Get an HTTPS Edge Route by ID
267
+ */
268
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.HTTPSEdgeRoute>;
269
+ /**
270
+ * Updates an HTTPS Edge Route by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.
271
+ */
272
+ update(arg: datatypes.HTTPSEdgeRouteUpdate): Promise<datatypes.HTTPSEdgeRoute>;
273
+ /**
274
+ * Delete an HTTPS Edge Route by ID
275
+ */
276
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
277
+ }
278
+ export declare class EdgesHTTPS {
279
+ private httpClient;
280
+ /** Do not construct this object directly, use the <code>edgesHttps</code> property of an <code>Ngrok</code> client object instead. */
281
+ constructor(httpClient: Wretcher);
282
+ /**
283
+ * Create an HTTPS Edge
284
+ */
285
+ create(arg: datatypes.HTTPSEdgeCreate): Promise<datatypes.HTTPSEdge>;
286
+ /**
287
+ * Get an HTTPS Edge by ID
288
+ */
289
+ get(arg: datatypes.Item): Promise<datatypes.HTTPSEdge>;
290
+ /**
291
+ * Returns a list of all HTTPS Edges on this account
292
+ */
293
+ list(): Promise<Array<datatypes.HTTPSEdge>>;
294
+ private _pagedList;
295
+ private _asyncList;
296
+ /**
297
+ * Updates an HTTPS Edge by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.
298
+ */
299
+ update(arg: datatypes.HTTPSEdgeUpdate): Promise<datatypes.HTTPSEdge>;
300
+ /**
301
+ * Delete an HTTPS Edge by ID
302
+ */
303
+ delete(arg: datatypes.Item): Promise<void>;
304
+ }
305
+ export declare class HTTPSEdgeMutualTLSModule {
306
+ private httpClient;
307
+ /** Do not construct this object directly, use the <code>httpsEdgeMutualTlsModule</code> property of an <code>Ngrok</code> client object instead. */
308
+ constructor(httpClient: Wretcher);
309
+ replace(arg: datatypes.EdgeMutualTLSReplace): Promise<datatypes.EndpointMutualTLS>;
310
+ get(arg: datatypes.Item): Promise<datatypes.EndpointMutualTLS>;
311
+ delete(arg: datatypes.Item): Promise<void>;
312
+ }
313
+ export declare class HTTPSEdgeTLSTerminationModule {
314
+ private httpClient;
315
+ /** Do not construct this object directly, use the <code>httpsEdgeTlsTerminationModule</code> property of an <code>Ngrok</code> client object instead. */
316
+ constructor(httpClient: Wretcher);
317
+ replace(arg: datatypes.EdgeTLSTerminationAtEdgeReplace): Promise<datatypes.EndpointTLSTermination>;
318
+ get(arg: datatypes.Item): Promise<datatypes.EndpointTLSTermination>;
319
+ delete(arg: datatypes.Item): Promise<void>;
320
+ }
321
+ export declare class EdgeRouteBackendModule {
322
+ private httpClient;
323
+ /** Do not construct this object directly, use the <code>edgeRouteBackendModule</code> property of an <code>Ngrok</code> client object instead. */
324
+ constructor(httpClient: Wretcher);
325
+ replace(arg: datatypes.EdgeRouteBackendReplace): Promise<datatypes.EndpointBackend>;
326
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.EndpointBackend>;
327
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
328
+ }
329
+ export declare class EdgeRouteIPRestrictionModule {
330
+ private httpClient;
331
+ /** Do not construct this object directly, use the <code>edgeRouteIpRestrictionModule</code> property of an <code>Ngrok</code> client object instead. */
332
+ constructor(httpClient: Wretcher);
333
+ replace(arg: datatypes.EdgeRouteIPRestrictionReplace): Promise<datatypes.EndpointIPPolicy>;
334
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.EndpointIPPolicy>;
335
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
336
+ }
337
+ export declare class EdgeRouteRequestHeadersModule {
338
+ private httpClient;
339
+ /** Do not construct this object directly, use the <code>edgeRouteRequestHeadersModule</code> property of an <code>Ngrok</code> client object instead. */
340
+ constructor(httpClient: Wretcher);
341
+ replace(arg: datatypes.EdgeRouteRequestHeadersReplace): Promise<datatypes.EndpointRequestHeaders>;
342
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.EndpointRequestHeaders>;
343
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
344
+ }
345
+ export declare class EdgeRouteResponseHeadersModule {
346
+ private httpClient;
347
+ /** Do not construct this object directly, use the <code>edgeRouteResponseHeadersModule</code> property of an <code>Ngrok</code> client object instead. */
348
+ constructor(httpClient: Wretcher);
349
+ replace(arg: datatypes.EdgeRouteResponseHeadersReplace): Promise<datatypes.EndpointResponseHeaders>;
350
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.EndpointResponseHeaders>;
351
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
352
+ }
353
+ export declare class EdgeRouteCompressionModule {
354
+ private httpClient;
355
+ /** Do not construct this object directly, use the <code>edgeRouteCompressionModule</code> property of an <code>Ngrok</code> client object instead. */
356
+ constructor(httpClient: Wretcher);
357
+ replace(arg: datatypes.EdgeRouteCompressionReplace): Promise<datatypes.EndpointCompression>;
358
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.EndpointCompression>;
359
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
360
+ }
361
+ export declare class EdgeRouteCircuitBreakerModule {
362
+ private httpClient;
363
+ /** Do not construct this object directly, use the <code>edgeRouteCircuitBreakerModule</code> property of an <code>Ngrok</code> client object instead. */
364
+ constructor(httpClient: Wretcher);
365
+ replace(arg: datatypes.EdgeRouteCircuitBreakerReplace): Promise<datatypes.EndpointCircuitBreaker>;
366
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.EndpointCircuitBreaker>;
367
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
368
+ }
369
+ export declare class EdgeRouteWebhookVerificationModule {
370
+ private httpClient;
371
+ /** Do not construct this object directly, use the <code>edgeRouteWebhookVerificationModule</code> property of an <code>Ngrok</code> client object instead. */
372
+ constructor(httpClient: Wretcher);
373
+ replace(arg: datatypes.EdgeRouteWebhookVerificationReplace): Promise<datatypes.EndpointWebhookValidation>;
374
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.EndpointWebhookValidation>;
375
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
376
+ }
377
+ export declare class EdgeRouteOAuthModule {
378
+ private httpClient;
379
+ /** Do not construct this object directly, use the <code>edgeRouteOAuthModule</code> property of an <code>Ngrok</code> client object instead. */
380
+ constructor(httpClient: Wretcher);
381
+ replace(arg: datatypes.EdgeRouteOAuthReplace): Promise<datatypes.EndpointOAuth>;
382
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.EndpointOAuth>;
383
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
384
+ }
385
+ export declare class EdgeRouteSAMLModule {
386
+ private httpClient;
387
+ /** Do not construct this object directly, use the <code>edgeRouteSamlModule</code> property of an <code>Ngrok</code> client object instead. */
388
+ constructor(httpClient: Wretcher);
389
+ replace(arg: datatypes.EdgeRouteSAMLReplace): Promise<datatypes.EndpointSAML>;
390
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.EndpointSAML>;
391
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
392
+ }
393
+ export declare class EdgeRouteOIDCModule {
394
+ private httpClient;
395
+ /** Do not construct this object directly, use the <code>edgeRouteOidcModule</code> property of an <code>Ngrok</code> client object instead. */
396
+ constructor(httpClient: Wretcher);
397
+ replace(arg: datatypes.EdgeRouteOIDCReplace): Promise<datatypes.EndpointOIDC>;
398
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.EndpointOIDC>;
399
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
400
+ }
401
+ export declare class EdgeRouteWebsocketTCPConverterModule {
402
+ private httpClient;
403
+ /** Do not construct this object directly, use the <code>edgeRouteWebsocketTcpConverterModule</code> property of an <code>Ngrok</code> client object instead. */
404
+ constructor(httpClient: Wretcher);
405
+ replace(arg: datatypes.EdgeRouteWebsocketTCPConverterReplace): Promise<datatypes.EndpointWebsocketTCPConverter>;
406
+ get(arg: datatypes.EdgeRouteItem): Promise<datatypes.EndpointWebsocketTCPConverter>;
407
+ delete(arg: datatypes.EdgeRouteItem): Promise<void>;
408
+ }
409
+ export declare class EdgesTCP {
410
+ private httpClient;
411
+ /** Do not construct this object directly, use the <code>edgesTcp</code> property of an <code>Ngrok</code> client object instead. */
412
+ constructor(httpClient: Wretcher);
413
+ /**
414
+ * Create a TCP Edge
415
+ */
416
+ create(arg: datatypes.TCPEdgeCreate): Promise<datatypes.TCPEdge>;
417
+ /**
418
+ * Get a TCP Edge by ID
419
+ */
420
+ get(arg: datatypes.Item): Promise<datatypes.TCPEdge>;
421
+ /**
422
+ * Returns a list of all TCP Edges on this account
423
+ */
424
+ list(): Promise<Array<datatypes.TCPEdge>>;
425
+ private _pagedList;
426
+ private _asyncList;
427
+ /**
428
+ * Updates a TCP Edge by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.
429
+ */
430
+ update(arg: datatypes.TCPEdgeUpdate): Promise<datatypes.TCPEdge>;
431
+ /**
432
+ * Delete a TCP Edge by ID
433
+ */
434
+ delete(arg: datatypes.Item): Promise<void>;
435
+ }
436
+ export declare class TCPEdgeBackendModule {
437
+ private httpClient;
438
+ /** Do not construct this object directly, use the <code>tcpEdgeBackendModule</code> property of an <code>Ngrok</code> client object instead. */
439
+ constructor(httpClient: Wretcher);
440
+ replace(arg: datatypes.EdgeBackendReplace): Promise<datatypes.EndpointBackend>;
441
+ get(arg: datatypes.Item): Promise<datatypes.EndpointBackend>;
442
+ delete(arg: datatypes.Item): Promise<void>;
443
+ }
444
+ export declare class TCPEdgeIPRestrictionModule {
445
+ private httpClient;
446
+ /** Do not construct this object directly, use the <code>tcpEdgeIpRestrictionModule</code> property of an <code>Ngrok</code> client object instead. */
447
+ constructor(httpClient: Wretcher);
448
+ replace(arg: datatypes.EdgeIPRestrictionReplace): Promise<datatypes.EndpointIPPolicy>;
449
+ get(arg: datatypes.Item): Promise<datatypes.EndpointIPPolicy>;
450
+ delete(arg: datatypes.Item): Promise<void>;
451
+ }
452
+ export declare class EdgesTLS {
453
+ private httpClient;
454
+ /** Do not construct this object directly, use the <code>edgesTls</code> property of an <code>Ngrok</code> client object instead. */
455
+ constructor(httpClient: Wretcher);
456
+ /**
457
+ * Create a TLS Edge
458
+ */
459
+ create(arg: datatypes.TLSEdgeCreate): Promise<datatypes.TLSEdge>;
460
+ /**
461
+ * Get a TLS Edge by ID
462
+ */
463
+ get(arg: datatypes.Item): Promise<datatypes.TLSEdge>;
464
+ /**
465
+ * Returns a list of all TLS Edges on this account
466
+ */
467
+ list(): Promise<Array<datatypes.TLSEdge>>;
468
+ private _pagedList;
469
+ private _asyncList;
470
+ /**
471
+ * Updates a TLS Edge by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.
472
+ */
473
+ update(arg: datatypes.TLSEdgeUpdate): Promise<datatypes.TLSEdge>;
474
+ /**
475
+ * Delete a TLS Edge by ID
476
+ */
477
+ delete(arg: datatypes.Item): Promise<void>;
478
+ }
479
+ export declare class TLSEdgeBackendModule {
480
+ private httpClient;
481
+ /** Do not construct this object directly, use the <code>tlsEdgeBackendModule</code> property of an <code>Ngrok</code> client object instead. */
482
+ constructor(httpClient: Wretcher);
483
+ replace(arg: datatypes.EdgeBackendReplace): Promise<datatypes.EndpointBackend>;
484
+ get(arg: datatypes.Item): Promise<datatypes.EndpointBackend>;
485
+ delete(arg: datatypes.Item): Promise<void>;
486
+ }
487
+ export declare class TLSEdgeIPRestrictionModule {
488
+ private httpClient;
489
+ /** Do not construct this object directly, use the <code>tlsEdgeIpRestrictionModule</code> property of an <code>Ngrok</code> client object instead. */
490
+ constructor(httpClient: Wretcher);
491
+ replace(arg: datatypes.EdgeIPRestrictionReplace): Promise<datatypes.EndpointIPPolicy>;
492
+ get(arg: datatypes.Item): Promise<datatypes.EndpointIPPolicy>;
493
+ delete(arg: datatypes.Item): Promise<void>;
494
+ }
495
+ export declare class TLSEdgeMutualTLSModule {
496
+ private httpClient;
497
+ /** Do not construct this object directly, use the <code>tlsEdgeMutualTlsModule</code> property of an <code>Ngrok</code> client object instead. */
498
+ constructor(httpClient: Wretcher);
499
+ replace(arg: datatypes.EdgeMutualTLSReplace): Promise<datatypes.EndpointMutualTLS>;
500
+ get(arg: datatypes.Item): Promise<datatypes.EndpointMutualTLS>;
501
+ delete(arg: datatypes.Item): Promise<void>;
502
+ }
503
+ export declare class TLSEdgeTLSTerminationModule {
504
+ private httpClient;
505
+ /** Do not construct this object directly, use the <code>tlsEdgeTlsTerminationModule</code> property of an <code>Ngrok</code> client object instead. */
506
+ constructor(httpClient: Wretcher);
507
+ replace(arg: datatypes.EdgeTLSTerminationReplace): Promise<datatypes.EndpointTLSTermination>;
508
+ get(arg: datatypes.Item): Promise<datatypes.EndpointTLSTermination>;
509
+ delete(arg: datatypes.Item): Promise<void>;
510
+ }
511
+ /**
512
+ * Endpoints provides an API for querying the endpoint objects
513
+ which define what tunnel or edge is used to serve a hostport.
514
+ Only active endpoints associated with a tunnel or backend are returned.
515
+ */
516
+ export declare class Endpoints {
517
+ private httpClient;
518
+ /** Do not construct this object directly, use the <code>endpoints</code> property of an <code>Ngrok</code> client object instead. */
519
+ constructor(httpClient: Wretcher);
520
+ /**
521
+ * List all active endpoints on the account
522
+ */
523
+ list(): Promise<Array<datatypes.Endpoint>>;
524
+ private _pagedList;
525
+ private _asyncList;
526
+ /**
527
+ * Get the status of an endpoint by ID
528
+ */
529
+ get(arg: datatypes.Item): Promise<datatypes.Endpoint>;
530
+ }
531
+ export declare class EventDestinations {
532
+ private httpClient;
533
+ /** Do not construct this object directly, use the <code>eventDestinations</code> property of an <code>Ngrok</code> client object instead. */
534
+ constructor(httpClient: Wretcher);
535
+ /**
536
+ * Create a new Event Destination. It will not apply to anything until it is associated with an Event Stream, and that Event Stream is associated with an Endpoint Config.
537
+ */
538
+ create(arg: datatypes.EventDestinationCreate): Promise<datatypes.EventDestination>;
539
+ /**
540
+ * Delete an Event Destination. If the Event Destination is still referenced by an Event Subscription.
541
+ */
542
+ delete(arg: datatypes.Item): Promise<void>;
543
+ /**
544
+ * Get detailed information about an Event Destination by ID.
545
+ */
546
+ get(arg: datatypes.Item): Promise<datatypes.EventDestination>;
547
+ /**
548
+ * List all Event Destinations on this account.
549
+ */
550
+ list(): Promise<Array<datatypes.EventDestination>>;
551
+ private _pagedList;
552
+ private _asyncList;
553
+ /**
554
+ * Update attributes of an Event Destination.
555
+ */
556
+ update(arg: datatypes.EventDestinationUpdate): Promise<datatypes.EventDestination>;
557
+ }
558
+ export declare class EventSubscriptions {
559
+ private httpClient;
560
+ /** Do not construct this object directly, use the <code>eventSubscriptions</code> property of an <code>Ngrok</code> client object instead. */
561
+ constructor(httpClient: Wretcher);
562
+ /**
563
+ * Create an Event Subscription.
564
+ */
565
+ create(arg: datatypes.EventSubscriptionCreate): Promise<datatypes.EventSubscription>;
566
+ /**
567
+ * Delete an Event Subscription.
568
+ */
569
+ delete(arg: datatypes.Item): Promise<void>;
570
+ /**
571
+ * Get an Event Subscription by ID.
572
+ */
573
+ get(arg: datatypes.Item): Promise<datatypes.EventSubscription>;
574
+ /**
575
+ * List this Account's Event Subscriptions.
576
+ */
577
+ list(): Promise<Array<datatypes.EventSubscription>>;
578
+ private _pagedList;
579
+ private _asyncList;
580
+ /**
581
+ * Update an Event Subscription.
582
+ */
583
+ update(arg: datatypes.EventSubscriptionUpdate): Promise<datatypes.EventSubscription>;
584
+ }
585
+ export declare class EventSources {
586
+ private httpClient;
587
+ /** Do not construct this object directly, use the <code>eventSources</code> property of an <code>Ngrok</code> client object instead. */
588
+ constructor(httpClient: Wretcher);
589
+ /**
590
+ * Add an additional type for which this event subscription will trigger
591
+ */
592
+ create(arg: datatypes.EventSourceCreate): Promise<datatypes.EventSource>;
593
+ /**
594
+ * Remove a type for which this event subscription will trigger
595
+ */
596
+ delete(arg: datatypes.EventSourceItem): Promise<void>;
597
+ /**
598
+ * Get the details for a given type that triggers for the given event subscription
599
+ */
600
+ get(arg: datatypes.EventSourceItem): Promise<datatypes.EventSource>;
601
+ /**
602
+ * List the types for which this event subscription will trigger
603
+ */
604
+ list(arg: datatypes.EventSourcePaging): Promise<datatypes.EventSourceList>;
605
+ /**
606
+ * Update the type for which this event subscription will trigger
607
+ */
608
+ update(arg: datatypes.EventSourceUpdate): Promise<datatypes.EventSource>;
609
+ }
610
+ /**
611
+ * IP Policies are reusable groups of CIDR ranges with an `allow` or `deny`
612
+ action. They can be attached to endpoints via the Endpoint Configuration IP
613
+ Policy module. They can also be used with IP Restrictions to control source
614
+ IP ranges that can start tunnel sessions and connect to the API and dashboard.
615
+ */
616
+ export declare class IPPolicies {
617
+ private httpClient;
618
+ /** Do not construct this object directly, use the <code>ipPolicies</code> property of an <code>Ngrok</code> client object instead. */
619
+ constructor(httpClient: Wretcher);
620
+ /**
621
+ * Create a new IP policy. It will not apply to any traffic until you associate to a traffic source via an endpoint configuration or IP restriction.
622
+ */
623
+ create(arg: datatypes.IPPolicyCreate): Promise<datatypes.IPPolicy>;
624
+ /**
625
+ * Delete an IP policy. If the IP policy is referenced by another object for the purposes of traffic restriction it will be treated as if the IP policy remains but has zero rules.
626
+ */
627
+ delete(arg: datatypes.Item): Promise<void>;
628
+ /**
629
+ * Get detailed information about an IP policy by ID.
630
+ */
631
+ get(arg: datatypes.Item): Promise<datatypes.IPPolicy>;
632
+ /**
633
+ * List all IP policies on this account
634
+ */
635
+ list(): Promise<Array<datatypes.IPPolicy>>;
636
+ private _pagedList;
637
+ private _asyncList;
638
+ /**
639
+ * Update attributes of an IP policy by ID
640
+ */
641
+ update(arg: datatypes.IPPolicyUpdate): Promise<datatypes.IPPolicy>;
642
+ }
643
+ /**
644
+ * IP Policy Rules are the IPv4 or IPv6 CIDRs entries that
645
+ make up an IP Policy.
646
+ */
647
+ export declare class IPPolicyRules {
648
+ private httpClient;
649
+ /** Do not construct this object directly, use the <code>ipPolicyRules</code> property of an <code>Ngrok</code> client object instead. */
650
+ constructor(httpClient: Wretcher);
651
+ /**
652
+ * Create a new IP policy rule attached to an IP Policy.
653
+ */
654
+ create(arg: datatypes.IPPolicyRuleCreate): Promise<datatypes.IPPolicyRule>;
655
+ /**
656
+ * Delete an IP policy rule.
657
+ */
658
+ delete(arg: datatypes.Item): Promise<void>;
659
+ /**
660
+ * Get detailed information about an IP policy rule by ID.
661
+ */
662
+ get(arg: datatypes.Item): Promise<datatypes.IPPolicyRule>;
663
+ /**
664
+ * List all IP policy rules on this account
665
+ */
666
+ list(): Promise<Array<datatypes.IPPolicyRule>>;
667
+ private _pagedList;
668
+ private _asyncList;
669
+ /**
670
+ * Update attributes of an IP policy rule by ID
671
+ */
672
+ update(arg: datatypes.IPPolicyRuleUpdate): Promise<datatypes.IPPolicyRule>;
673
+ }
674
+ /**
675
+ * An IP restriction is a restriction placed on the CIDRs that are allowed to
676
+ initiate traffic to a specific aspect of your ngrok account. An IP
677
+ restriction has a type which defines the ingress it applies to. IP
678
+ restrictions can be used to enforce the source IPs that can make API
679
+ requests, log in to the dashboard, start ngrok agents, and connect to your
680
+ public-facing endpoints.
681
+ */
682
+ export declare class IPRestrictions {
683
+ private httpClient;
684
+ /** Do not construct this object directly, use the <code>ipRestrictions</code> property of an <code>Ngrok</code> client object instead. */
685
+ constructor(httpClient: Wretcher);
686
+ /**
687
+ * Create a new IP restriction
688
+ */
689
+ create(arg: datatypes.IPRestrictionCreate): Promise<datatypes.IPRestriction>;
690
+ /**
691
+ * Delete an IP restriction
692
+ */
693
+ delete(arg: datatypes.Item): Promise<void>;
694
+ /**
695
+ * Get detailed information about an IP restriction
696
+ */
697
+ get(arg: datatypes.Item): Promise<datatypes.IPRestriction>;
698
+ /**
699
+ * List all IP restrictions on this account
700
+ */
701
+ list(): Promise<Array<datatypes.IPRestriction>>;
702
+ private _pagedList;
703
+ private _asyncList;
704
+ /**
705
+ * Update attributes of an IP restriction by ID
706
+ */
707
+ update(arg: datatypes.IPRestrictionUpdate): Promise<datatypes.IPRestriction>;
708
+ }
709
+ /**
710
+ * Reserved Addresses are TCP addresses that can be used to listen for traffic.
711
+ TCP address hostnames and ports are assigned by ngrok, they cannot be
712
+ chosen.
713
+ */
714
+ export declare class ReservedAddrs {
715
+ private httpClient;
716
+ /** Do not construct this object directly, use the <code>reservedAddrs</code> property of an <code>Ngrok</code> client object instead. */
717
+ constructor(httpClient: Wretcher);
718
+ /**
719
+ * Create a new reserved address.
720
+ */
721
+ create(arg: datatypes.ReservedAddrCreate): Promise<datatypes.ReservedAddr>;
722
+ /**
723
+ * Delete a reserved address.
724
+ */
725
+ delete(arg: datatypes.Item): Promise<void>;
726
+ /**
727
+ * Get the details of a reserved address.
728
+ */
729
+ get(arg: datatypes.Item): Promise<datatypes.ReservedAddr>;
730
+ /**
731
+ * List all reserved addresses on this account.
732
+ */
733
+ list(): Promise<Array<datatypes.ReservedAddr>>;
734
+ private _pagedList;
735
+ private _asyncList;
736
+ /**
737
+ * Update the attributes of a reserved address.
738
+ */
739
+ update(arg: datatypes.ReservedAddrUpdate): Promise<datatypes.ReservedAddr>;
740
+ }
741
+ /**
742
+ * Reserved Domains are hostnames that you can listen for traffic on. Domains
743
+ can be used to listen for http, https or tls traffic. You may use a domain
744
+ that you own by creating a CNAME record specified in the returned resource.
745
+ This CNAME record points traffic for that domain to ngrok's edge servers.
746
+ */
747
+ export declare class ReservedDomains {
748
+ private httpClient;
749
+ /** Do not construct this object directly, use the <code>reservedDomains</code> property of an <code>Ngrok</code> client object instead. */
750
+ constructor(httpClient: Wretcher);
751
+ /**
752
+ * Create a new reserved domain.
753
+ */
754
+ create(arg: datatypes.ReservedDomainCreate): Promise<datatypes.ReservedDomain>;
755
+ /**
756
+ * Delete a reserved domain.
757
+ */
758
+ delete(arg: datatypes.Item): Promise<void>;
759
+ /**
760
+ * Get the details of a reserved domain.
761
+ */
762
+ get(arg: datatypes.Item): Promise<datatypes.ReservedDomain>;
763
+ /**
764
+ * List all reserved domains on this account.
765
+ */
766
+ list(): Promise<Array<datatypes.ReservedDomain>>;
767
+ private _pagedList;
768
+ private _asyncList;
769
+ /**
770
+ * Update the attributes of a reserved domain.
771
+ */
772
+ update(arg: datatypes.ReservedDomainUpdate): Promise<datatypes.ReservedDomain>;
773
+ /**
774
+ * Detach the certificate management policy attached to a reserved domain.
775
+ */
776
+ deleteCertificateManagementPolicy(arg: datatypes.Item): Promise<void>;
777
+ /**
778
+ * Detach the certificate attached to a reserved domain.
779
+ */
780
+ deleteCertificate(arg: datatypes.Item): Promise<void>;
781
+ }
782
+ /**
783
+ * An SSH Certificate Authority is a pair of an SSH Certificate and its private
784
+ key that can be used to sign other SSH host and user certificates.
785
+ */
786
+ export declare class SSHCertificateAuthorities {
787
+ private httpClient;
788
+ /** Do not construct this object directly, use the <code>sshCertificateAuthorities</code> property of an <code>Ngrok</code> client object instead. */
789
+ constructor(httpClient: Wretcher);
790
+ /**
791
+ * Create a new SSH Certificate Authority
792
+ */
793
+ create(arg: datatypes.SSHCertificateAuthorityCreate): Promise<datatypes.SSHCertificateAuthority>;
794
+ /**
795
+ * Delete an SSH Certificate Authority
796
+ */
797
+ delete(arg: datatypes.Item): Promise<void>;
798
+ /**
799
+ * Get detailed information about an SSH Certficate Authority
800
+ */
801
+ get(arg: datatypes.Item): Promise<datatypes.SSHCertificateAuthority>;
802
+ /**
803
+ * List all SSH Certificate Authorities on this account
804
+ */
805
+ list(): Promise<Array<datatypes.SSHCertificateAuthority>>;
806
+ private _pagedList;
807
+ private _asyncList;
808
+ /**
809
+ * Update an SSH Certificate Authority
810
+ */
811
+ update(arg: datatypes.SSHCertificateAuthorityUpdate): Promise<datatypes.SSHCertificateAuthority>;
812
+ }
813
+ /**
814
+ * SSH Credentials are SSH public keys that can be used to start SSH tunnels
815
+ via the ngrok SSH tunnel gateway.
816
+ */
817
+ export declare class SSHCredentials {
818
+ private httpClient;
819
+ /** Do not construct this object directly, use the <code>sshCredentials</code> property of an <code>Ngrok</code> client object instead. */
820
+ constructor(httpClient: Wretcher);
821
+ /**
822
+ * Create a new ssh_credential from an uploaded public SSH key. This ssh credential can be used to start new tunnels via ngrok's SSH gateway.
823
+ */
824
+ create(arg: datatypes.SSHCredentialCreate): Promise<datatypes.SSHCredential>;
825
+ /**
826
+ * Delete an ssh_credential by ID
827
+ */
828
+ delete(arg: datatypes.Item): Promise<void>;
829
+ /**
830
+ * Get detailed information about an ssh_credential
831
+ */
832
+ get(arg: datatypes.Item): Promise<datatypes.SSHCredential>;
833
+ /**
834
+ * List all ssh credentials on this account
835
+ */
836
+ list(): Promise<Array<datatypes.SSHCredential>>;
837
+ private _pagedList;
838
+ private _asyncList;
839
+ /**
840
+ * Update attributes of an ssh_credential by ID
841
+ */
842
+ update(arg: datatypes.SSHCredentialUpdate): Promise<datatypes.SSHCredential>;
843
+ }
844
+ /**
845
+ * SSH Host Certificates along with the corresponding private key allows an SSH
846
+ server to assert its authenticity to connecting SSH clients who trust the
847
+ SSH Certificate Authority that was used to sign the certificate.
848
+ */
849
+ export declare class SSHHostCertificates {
850
+ private httpClient;
851
+ /** Do not construct this object directly, use the <code>sshHostCertificates</code> property of an <code>Ngrok</code> client object instead. */
852
+ constructor(httpClient: Wretcher);
853
+ /**
854
+ * Create a new SSH Host Certificate
855
+ */
856
+ create(arg: datatypes.SSHHostCertificateCreate): Promise<datatypes.SSHHostCertificate>;
857
+ /**
858
+ * Delete an SSH Host Certificate
859
+ */
860
+ delete(arg: datatypes.Item): Promise<void>;
861
+ /**
862
+ * Get detailed information about an SSH Host Certficate
863
+ */
864
+ get(arg: datatypes.Item): Promise<datatypes.SSHHostCertificate>;
865
+ /**
866
+ * List all SSH Host Certificates issued on this account
867
+ */
868
+ list(): Promise<Array<datatypes.SSHHostCertificate>>;
869
+ private _pagedList;
870
+ private _asyncList;
871
+ /**
872
+ * Update an SSH Host Certificate
873
+ */
874
+ update(arg: datatypes.SSHHostCertificateUpdate): Promise<datatypes.SSHHostCertificate>;
875
+ }
876
+ /**
877
+ * SSH User Certificates are presented by SSH clients when connecting to an SSH
878
+ server to authenticate their connection. The SSH server must trust the SSH
879
+ Certificate Authority used to sign the certificate.
880
+ */
881
+ export declare class SSHUserCertificates {
882
+ private httpClient;
883
+ /** Do not construct this object directly, use the <code>sshUserCertificates</code> property of an <code>Ngrok</code> client object instead. */
884
+ constructor(httpClient: Wretcher);
885
+ /**
886
+ * Create a new SSH User Certificate
887
+ */
888
+ create(arg: datatypes.SSHUserCertificateCreate): Promise<datatypes.SSHUserCertificate>;
889
+ /**
890
+ * Delete an SSH User Certificate
891
+ */
892
+ delete(arg: datatypes.Item): Promise<void>;
893
+ /**
894
+ * Get detailed information about an SSH User Certficate
895
+ */
896
+ get(arg: datatypes.Item): Promise<datatypes.SSHUserCertificate>;
897
+ /**
898
+ * List all SSH User Certificates issued on this account
899
+ */
900
+ list(): Promise<Array<datatypes.SSHUserCertificate>>;
901
+ private _pagedList;
902
+ private _asyncList;
903
+ /**
904
+ * Update an SSH User Certificate
905
+ */
906
+ update(arg: datatypes.SSHUserCertificateUpdate): Promise<datatypes.SSHUserCertificate>;
907
+ }
908
+ /**
909
+ * TLS Certificates are pairs of x509 certificates and their matching private
910
+ key that can be used to terminate TLS traffic. TLS certificates are unused
911
+ until they are attached to a Domain. TLS Certificates may also be
912
+ provisioned by ngrok automatically for domains on which you have enabled
913
+ automated certificate provisioning.
914
+ */
915
+ export declare class TLSCertificates {
916
+ private httpClient;
917
+ /** Do not construct this object directly, use the <code>tlsCertificates</code> property of an <code>Ngrok</code> client object instead. */
918
+ constructor(httpClient: Wretcher);
919
+ /**
920
+ * Upload a new TLS certificate
921
+ */
922
+ create(arg: datatypes.TLSCertificateCreate): Promise<datatypes.TLSCertificate>;
923
+ /**
924
+ * Delete a TLS certificate
925
+ */
926
+ delete(arg: datatypes.Item): Promise<void>;
927
+ /**
928
+ * Get detailed information about a TLS certificate
929
+ */
930
+ get(arg: datatypes.Item): Promise<datatypes.TLSCertificate>;
931
+ /**
932
+ * List all TLS certificates on this account
933
+ */
934
+ list(): Promise<Array<datatypes.TLSCertificate>>;
935
+ private _pagedList;
936
+ private _asyncList;
937
+ /**
938
+ * Update attributes of a TLS Certificate by ID
939
+ */
940
+ update(arg: datatypes.TLSCertificateUpdate): Promise<datatypes.TLSCertificate>;
941
+ }
942
+ /**
943
+ * Tunnel Sessions represent instances of ngrok agents or SSH reverse tunnel
944
+ sessions that are running and connected to the ngrok service. Each tunnel
945
+ session can include one or more Tunnels.
946
+ */
947
+ export declare class TunnelSessions {
948
+ private httpClient;
949
+ /** Do not construct this object directly, use the <code>tunnelSessions</code> property of an <code>Ngrok</code> client object instead. */
950
+ constructor(httpClient: Wretcher);
951
+ /**
952
+ * List all online tunnel sessions running on this account.
953
+ */
954
+ list(): Promise<Array<datatypes.TunnelSession>>;
955
+ private _pagedList;
956
+ private _asyncList;
957
+ /**
958
+ * Get the detailed status of a tunnel session by ID
959
+ */
960
+ get(arg: datatypes.Item): Promise<datatypes.TunnelSession>;
961
+ /**
962
+ * Issues a command instructing the ngrok agent to restart. The agent restarts itself by calling exec() on platforms that support it. This operation is notably not supported on Windows. When an agent restarts, it reconnects with a new tunnel session ID.
963
+ */
964
+ restart(arg: datatypes.Item): Promise<void>;
965
+ /**
966
+ * Issues a command instructing the ngrok agent that started this tunnel session to exit.
967
+ */
968
+ stop(arg: datatypes.Item): Promise<void>;
969
+ /**
970
+ * Issues a command instructing the ngrok agent to update itself to the latest version. After this call completes successfully, the ngrok agent will be in the update process. A caller should wait some amount of time to allow the update to complete (at least 10 seconds) before making a call to the Restart endpoint to request that the agent restart itself to start using the new code. This call will never update an ngrok agent to a new major version which could cause breaking compatibility issues. If you wish to update to a new major version, that must be done manually. Still, please be aware that updating your ngrok agent could break your integration. This call will fail in any of the following circumstances: there is no update available the ngrok agent's configuration disabled update checks the agent is currently in process of updating the agent has already successfully updated but has not yet been restarted
971
+ */
972
+ update(arg: datatypes.TunnelSessionsUpdate): Promise<void>;
973
+ }
974
+ /**
975
+ * Tunnels provide endpoints to access services exposed by a running ngrok
976
+ agent tunnel session or an SSH reverse tunnel session.
977
+ */
978
+ export declare class Tunnels {
979
+ private httpClient;
980
+ /** Do not construct this object directly, use the <code>tunnels</code> property of an <code>Ngrok</code> client object instead. */
981
+ constructor(httpClient: Wretcher);
982
+ /**
983
+ * List all online tunnels currently running on the account.
984
+ */
985
+ list(): Promise<Array<datatypes.Tunnel>>;
986
+ private _pagedList;
987
+ private _asyncList;
988
+ /**
989
+ * Get the status of a tunnel by ID
990
+ */
991
+ get(arg: datatypes.Item): Promise<datatypes.Tunnel>;
992
+ }
993
+ //# sourceMappingURL=services.d.ts.map