@ngrok/ngrok-api 0.10.0 → 0.12.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 (282) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/docs/assets/js/search.js +1 -1
  3. package/docs/classes/client.Ngrok.html +55 -29
  4. package/docs/classes/services.APIKeys.html +6 -6
  5. package/docs/classes/services.AbuseReports.html +3 -3
  6. package/docs/classes/services.AgentIngresses.html +6 -6
  7. package/docs/classes/services.ApplicationSessions.html +4 -4
  8. package/docs/classes/services.ApplicationUsers.html +4 -4
  9. package/docs/classes/services.BotUsers.html +352 -0
  10. package/docs/classes/services.CertificateAuthorities.html +6 -6
  11. package/docs/classes/services.Credentials.html +6 -6
  12. package/docs/classes/services.EdgeRouteBackendModule.html +4 -4
  13. package/docs/classes/services.EdgeRouteCircuitBreakerModule.html +4 -4
  14. package/docs/classes/services.EdgeRouteCompressionModule.html +4 -4
  15. package/docs/classes/services.EdgeRouteIPRestrictionModule.html +4 -4
  16. package/docs/classes/services.EdgeRouteOAuthModule.html +4 -4
  17. package/docs/classes/services.EdgeRouteOIDCModule.html +4 -4
  18. package/docs/classes/services.EdgeRoutePolicyModule.html +270 -0
  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 +270 -0
  23. package/docs/classes/services.EdgeRouteUserAgentFilterModule.html +270 -0
  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 +3 -3
  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.StaticBackends.html +360 -0
  48. package/docs/classes/services.TCPEdgeBackendModule.html +4 -4
  49. package/docs/classes/services.TCPEdgeIPRestrictionModule.html +4 -4
  50. package/docs/classes/services.TCPEdgePolicyModule.html +270 -0
  51. package/docs/classes/services.TCPEdgeTrafficPolicyModule.html +270 -0
  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.TLSEdgePolicyModule.html +270 -0
  57. package/docs/classes/services.TLSEdgeTLSTerminationModule.html +4 -4
  58. package/docs/classes/services.TLSEdgeTrafficPolicyModule.html +270 -0
  59. package/docs/classes/services.TunnelGroupBackends.html +6 -6
  60. package/docs/classes/services.TunnelSessions.html +6 -6
  61. package/docs/classes/services.Tunnels.html +3 -3
  62. package/docs/classes/services.WeightedBackends.html +6 -6
  63. package/docs/interfaces/client.NgrokConfig.html +3 -3
  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 +243 -0
  86. package/docs/interfaces/datatypes.BotUserCreate.html +186 -0
  87. package/docs/interfaces/datatypes.BotUserList.html +205 -0
  88. package/docs/interfaces/datatypes.BotUserUpdate.html +200 -0
  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.EdgePolicyReplace.html +176 -0
  102. package/docs/interfaces/datatypes.EdgeRouteBackendReplace.html +3 -3
  103. package/docs/interfaces/datatypes.EdgeRouteCircuitBreakerReplace.html +3 -3
  104. package/docs/interfaces/datatypes.EdgeRouteCompressionReplace.html +3 -3
  105. package/docs/interfaces/datatypes.EdgeRouteIPRestrictionReplace.html +3 -3
  106. package/docs/interfaces/datatypes.EdgeRouteItem.html +2 -2
  107. package/docs/interfaces/datatypes.EdgeRouteOAuthReplace.html +3 -3
  108. package/docs/interfaces/datatypes.EdgeRouteOIDCReplace.html +3 -3
  109. package/docs/interfaces/datatypes.EdgeRoutePolicyReplace.html +190 -0
  110. package/docs/interfaces/datatypes.EdgeRouteRequestHeadersReplace.html +3 -3
  111. package/docs/interfaces/datatypes.EdgeRouteResponseHeadersReplace.html +3 -3
  112. package/docs/interfaces/datatypes.EdgeRouteSAMLReplace.html +3 -3
  113. package/docs/interfaces/datatypes.EdgeRouteTrafficPolicyReplace.html +190 -0
  114. package/docs/interfaces/datatypes.EdgeRouteUserAgentFilterReplace.html +190 -0
  115. package/docs/interfaces/datatypes.EdgeRouteWebhookVerificationReplace.html +3 -3
  116. package/docs/interfaces/datatypes.EdgeRouteWebsocketTCPConverterReplace.html +3 -3
  117. package/docs/interfaces/datatypes.EdgeTLSTerminationAtEdgeReplace.html +2 -2
  118. package/docs/interfaces/datatypes.EdgeTLSTerminationReplace.html +2 -2
  119. package/docs/interfaces/datatypes.EdgeTrafficPolicyReplace.html +176 -0
  120. package/docs/interfaces/datatypes.Endpoint.html +13 -13
  121. package/docs/interfaces/datatypes.EndpointAction.html +186 -0
  122. package/docs/interfaces/datatypes.EndpointBackend.html +2 -2
  123. package/docs/interfaces/datatypes.EndpointBackendMutate.html +2 -2
  124. package/docs/interfaces/datatypes.EndpointCircuitBreaker.html +6 -6
  125. package/docs/interfaces/datatypes.EndpointCompression.html +1 -1
  126. package/docs/interfaces/datatypes.EndpointIPPolicy.html +2 -2
  127. package/docs/interfaces/datatypes.EndpointIPPolicyMutate.html +2 -2
  128. package/docs/interfaces/datatypes.EndpointList.html +3 -3
  129. package/docs/interfaces/datatypes.EndpointMutualTLS.html +2 -2
  130. package/docs/interfaces/datatypes.EndpointMutualTLSMutate.html +2 -2
  131. package/docs/interfaces/datatypes.EndpointOAuth.html +7 -7
  132. package/docs/interfaces/datatypes.EndpointOAuthAmazon.html +5 -5
  133. package/docs/interfaces/datatypes.EndpointOAuthFacebook.html +5 -5
  134. package/docs/interfaces/datatypes.EndpointOAuthGitHub.html +7 -7
  135. package/docs/interfaces/datatypes.EndpointOAuthGitLab.html +5 -5
  136. package/docs/interfaces/datatypes.EndpointOAuthGoogle.html +5 -5
  137. package/docs/interfaces/datatypes.EndpointOAuthLinkedIn.html +5 -5
  138. package/docs/interfaces/datatypes.EndpointOAuthMicrosoft.html +5 -5
  139. package/docs/interfaces/datatypes.EndpointOAuthProvider.html +8 -8
  140. package/docs/interfaces/datatypes.EndpointOAuthTwitch.html +5 -5
  141. package/docs/interfaces/datatypes.EndpointOIDC.html +9 -9
  142. package/docs/interfaces/datatypes.EndpointPolicy.html +205 -0
  143. package/docs/interfaces/datatypes.EndpointRequestHeaders.html +3 -3
  144. package/docs/interfaces/datatypes.EndpointResponseHeaders.html +3 -3
  145. package/docs/interfaces/datatypes.EndpointRule.html +205 -0
  146. package/docs/interfaces/datatypes.EndpointSAML.html +15 -15
  147. package/docs/interfaces/datatypes.EndpointSAMLMutate.html +10 -10
  148. package/docs/interfaces/datatypes.EndpointTLSTermination.html +3 -3
  149. package/docs/interfaces/datatypes.EndpointTLSTerminationAtEdge.html +2 -2
  150. package/docs/interfaces/datatypes.EndpointTrafficPolicy.html +186 -0
  151. package/docs/interfaces/datatypes.EndpointUserAgentFilter.html +190 -0
  152. package/docs/interfaces/datatypes.EndpointWebhookValidation.html +4 -4
  153. package/docs/interfaces/datatypes.EndpointWebsocketTCPConverter.html +1 -1
  154. package/docs/interfaces/datatypes.Error.html +4 -4
  155. package/docs/interfaces/datatypes.EventDestination.html +7 -7
  156. package/docs/interfaces/datatypes.EventDestinationCreate.html +4 -4
  157. package/docs/interfaces/datatypes.EventDestinationList.html +3 -3
  158. package/docs/interfaces/datatypes.EventDestinationUpdate.html +5 -5
  159. package/docs/interfaces/datatypes.EventSource.html +2 -2
  160. package/docs/interfaces/datatypes.EventSourceCreate.html +2 -2
  161. package/docs/interfaces/datatypes.EventSourceItem.html +2 -2
  162. package/docs/interfaces/datatypes.EventSourceList.html +2 -2
  163. package/docs/interfaces/datatypes.EventSourcePaging.html +1 -1
  164. package/docs/interfaces/datatypes.EventSourceReplace.html +1 -1
  165. package/docs/interfaces/datatypes.EventSourceUpdate.html +2 -2
  166. package/docs/interfaces/datatypes.EventSubscription.html +7 -7
  167. package/docs/interfaces/datatypes.EventSubscriptionCreate.html +4 -4
  168. package/docs/interfaces/datatypes.EventSubscriptionList.html +3 -3
  169. package/docs/interfaces/datatypes.EventSubscriptionUpdate.html +5 -5
  170. package/docs/interfaces/datatypes.EventTarget.html +18 -4
  171. package/docs/interfaces/datatypes.EventTargetAzureLogsIngestion.html +262 -0
  172. package/docs/interfaces/datatypes.EventTargetCloudwatchLogs.html +2 -2
  173. package/docs/interfaces/datatypes.EventTargetDatadog.html +4 -4
  174. package/docs/interfaces/datatypes.EventTargetFirehose.html +2 -2
  175. package/docs/interfaces/datatypes.EventTargetKinesis.html +2 -2
  176. package/docs/interfaces/datatypes.FailoverBackend.html +6 -6
  177. package/docs/interfaces/datatypes.FailoverBackendCreate.html +3 -3
  178. package/docs/interfaces/datatypes.FailoverBackendList.html +3 -3
  179. package/docs/interfaces/datatypes.FailoverBackendUpdate.html +4 -4
  180. package/docs/interfaces/datatypes.HTTPResponseBackend.html +8 -8
  181. package/docs/interfaces/datatypes.HTTPResponseBackendCreate.html +5 -5
  182. package/docs/interfaces/datatypes.HTTPResponseBackendList.html +3 -3
  183. package/docs/interfaces/datatypes.HTTPResponseBackendUpdate.html +6 -6
  184. package/docs/interfaces/datatypes.HTTPSEdge.html +9 -9
  185. package/docs/interfaces/datatypes.HTTPSEdgeCreate.html +5 -5
  186. package/docs/interfaces/datatypes.HTTPSEdgeList.html +3 -3
  187. package/docs/interfaces/datatypes.HTTPSEdgeRoute.html +52 -19
  188. package/docs/interfaces/datatypes.HTTPSEdgeRouteCreate.html +49 -16
  189. package/docs/interfaces/datatypes.HTTPSEdgeRouteUpdate.html +50 -17
  190. package/docs/interfaces/datatypes.HTTPSEdgeUpdate.html +6 -6
  191. package/docs/interfaces/datatypes.IPPolicy.html +5 -5
  192. package/docs/interfaces/datatypes.IPPolicyCreate.html +2 -2
  193. package/docs/interfaces/datatypes.IPPolicyList.html +3 -3
  194. package/docs/interfaces/datatypes.IPPolicyRule.html +8 -8
  195. package/docs/interfaces/datatypes.IPPolicyRuleCreate.html +5 -5
  196. package/docs/interfaces/datatypes.IPPolicyRuleList.html +3 -3
  197. package/docs/interfaces/datatypes.IPPolicyRuleUpdate.html +4 -4
  198. package/docs/interfaces/datatypes.IPPolicyUpdate.html +3 -3
  199. package/docs/interfaces/datatypes.IPRestriction.html +8 -8
  200. package/docs/interfaces/datatypes.IPRestrictionCreate.html +5 -5
  201. package/docs/interfaces/datatypes.IPRestrictionList.html +3 -3
  202. package/docs/interfaces/datatypes.IPRestrictionUpdate.html +5 -5
  203. package/docs/interfaces/datatypes.IdentityProvider.html +2 -2
  204. package/docs/interfaces/datatypes.Item.html +1 -1
  205. package/docs/interfaces/datatypes.Location.html +4 -4
  206. package/docs/interfaces/datatypes.Paging.html +2 -2
  207. package/docs/interfaces/datatypes.Ref.html +2 -2
  208. package/docs/interfaces/datatypes.ReservedAddr.html +7 -7
  209. package/docs/interfaces/datatypes.ReservedAddrCreate.html +3 -3
  210. package/docs/interfaces/datatypes.ReservedAddrList.html +3 -3
  211. package/docs/interfaces/datatypes.ReservedAddrUpdate.html +3 -3
  212. package/docs/interfaces/datatypes.ReservedDomain.html +14 -14
  213. package/docs/interfaces/datatypes.ReservedDomainCertJob.html +4 -4
  214. package/docs/interfaces/datatypes.ReservedDomainCertPolicy.html +2 -2
  215. package/docs/interfaces/datatypes.ReservedDomainCertStatus.html +2 -2
  216. package/docs/interfaces/datatypes.ReservedDomainCreate.html +7 -7
  217. package/docs/interfaces/datatypes.ReservedDomainList.html +3 -3
  218. package/docs/interfaces/datatypes.ReservedDomainUpdate.html +5 -5
  219. package/docs/interfaces/datatypes.SSHCertificateAuthority.html +7 -7
  220. package/docs/interfaces/datatypes.SSHCertificateAuthorityCreate.html +5 -5
  221. package/docs/interfaces/datatypes.SSHCertificateAuthorityList.html +3 -3
  222. package/docs/interfaces/datatypes.SSHCertificateAuthorityUpdate.html +3 -3
  223. package/docs/interfaces/datatypes.SSHCredential.html +8 -8
  224. package/docs/interfaces/datatypes.SSHCredentialCreate.html +5 -5
  225. package/docs/interfaces/datatypes.SSHCredentialList.html +3 -3
  226. package/docs/interfaces/datatypes.SSHCredentialUpdate.html +4 -4
  227. package/docs/interfaces/datatypes.SSHHostCertificate.html +12 -12
  228. package/docs/interfaces/datatypes.SSHHostCertificateCreate.html +7 -7
  229. package/docs/interfaces/datatypes.SSHHostCertificateList.html +3 -3
  230. package/docs/interfaces/datatypes.SSHHostCertificateUpdate.html +3 -3
  231. package/docs/interfaces/datatypes.SSHUserCertificate.html +14 -14
  232. package/docs/interfaces/datatypes.SSHUserCertificateCreate.html +9 -9
  233. package/docs/interfaces/datatypes.SSHUserCertificateList.html +3 -3
  234. package/docs/interfaces/datatypes.SSHUserCertificateUpdate.html +3 -3
  235. package/docs/interfaces/datatypes.StaticBackend.html +281 -0
  236. package/docs/interfaces/datatypes.StaticBackendCreate.html +224 -0
  237. package/docs/interfaces/datatypes.StaticBackendList.html +205 -0
  238. package/docs/interfaces/datatypes.StaticBackendTLS.html +167 -0
  239. package/docs/interfaces/datatypes.StaticBackendUpdate.html +238 -0
  240. package/docs/interfaces/datatypes.TCPEdge.html +27 -8
  241. package/docs/interfaces/datatypes.TCPEdgeCreate.html +24 -5
  242. package/docs/interfaces/datatypes.TCPEdgeList.html +3 -3
  243. package/docs/interfaces/datatypes.TCPEdgeUpdate.html +25 -6
  244. package/docs/interfaces/datatypes.TLSCertificate.html +21 -21
  245. package/docs/interfaces/datatypes.TLSCertificateCreate.html +4 -4
  246. package/docs/interfaces/datatypes.TLSCertificateList.html +3 -3
  247. package/docs/interfaces/datatypes.TLSCertificateSANs.html +2 -2
  248. package/docs/interfaces/datatypes.TLSCertificateUpdate.html +3 -3
  249. package/docs/interfaces/datatypes.TLSEdge.html +29 -10
  250. package/docs/interfaces/datatypes.TLSEdgeCreate.html +26 -7
  251. package/docs/interfaces/datatypes.TLSEdgeList.html +3 -3
  252. package/docs/interfaces/datatypes.TLSEdgeUpdate.html +27 -8
  253. package/docs/interfaces/datatypes.Tunnel.html +11 -11
  254. package/docs/interfaces/datatypes.TunnelGroupBackend.html +7 -7
  255. package/docs/interfaces/datatypes.TunnelGroupBackendCreate.html +3 -3
  256. package/docs/interfaces/datatypes.TunnelGroupBackendList.html +3 -3
  257. package/docs/interfaces/datatypes.TunnelGroupBackendUpdate.html +4 -4
  258. package/docs/interfaces/datatypes.TunnelList.html +3 -3
  259. package/docs/interfaces/datatypes.TunnelSession.html +10 -10
  260. package/docs/interfaces/datatypes.TunnelSessionList.html +3 -3
  261. package/docs/interfaces/datatypes.TunnelSessionsUpdate.html +1 -1
  262. package/docs/interfaces/datatypes.UserAgent.html +6 -6
  263. package/docs/interfaces/datatypes.WeightedBackend.html +6 -6
  264. package/docs/interfaces/datatypes.WeightedBackendCreate.html +3 -3
  265. package/docs/interfaces/datatypes.WeightedBackendList.html +3 -3
  266. package/docs/interfaces/datatypes.WeightedBackendUpdate.html +4 -4
  267. package/docs/modules/datatypes.html +60 -0
  268. package/docs/modules/services.html +24 -0
  269. package/lib/client.d.ts +8 -1
  270. package/lib/client.d.ts.map +1 -1
  271. package/lib/client.js +4 -1
  272. package/lib/client.js.map +1 -1
  273. package/lib/datatypes.d.ts +147 -4
  274. package/lib/datatypes.d.ts.map +1 -1
  275. package/lib/services.d.ts +90 -0
  276. package/lib/services.d.ts.map +1 -1
  277. package/lib/services.js +545 -226
  278. package/lib/services.js.map +1 -1
  279. package/package.json +2 -1
  280. package/src/client.ts +13 -2
  281. package/src/datatypes.ts +162 -4
  282. package/src/services.ts +458 -122
package/lib/services.js CHANGED
@@ -29,7 +29,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
29
29
  function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.Tunnels = exports.TLSCertificates = exports.SSHUserCertificates = exports.SSHHostCertificates = exports.SSHCredentials = exports.SSHCertificateAuthorities = exports.ReservedDomains = exports.ReservedAddrs = exports.IPRestrictions = exports.IPPolicyRules = exports.IPPolicies = exports.EventSources = exports.EventSubscriptions = exports.EventDestinations = exports.Endpoints = exports.TLSEdgeTLSTerminationModule = exports.TLSEdgeMutualTLSModule = exports.TLSEdgeIPRestrictionModule = exports.TLSEdgeBackendModule = exports.EdgesTLS = exports.TCPEdgeIPRestrictionModule = exports.TCPEdgeBackendModule = exports.EdgesTCP = 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.WeightedBackends = exports.TunnelGroupBackends = exports.HTTPResponseBackends = exports.FailoverBackends = exports.TunnelSessions = exports.ApplicationUsers = exports.ApplicationSessions = exports.APIKeys = exports.AgentIngresses = exports.AbuseReports = void 0;
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
34
  const util = require("./util");
34
35
  /**
35
36
  * Abuse Reports allow you to submit take-down requests for URLs hosted by
@@ -56,7 +57,7 @@ class AbuseReports {
56
57
  get(id) {
57
58
  return this.httpClient
58
59
  .url(`/abuse_reports/${id}`)
59
- .get(id)
60
+ .get()
60
61
  .json(payload => util.deserializeResult(payload))
61
62
  .then(f => f, util.onRejected);
62
63
  }
@@ -83,8 +84,8 @@ class AgentIngresses {
83
84
  delete(id) {
84
85
  return this.httpClient
85
86
  .url(`/agent_ingresses/${id}`)
86
- .delete(id)
87
- .json(payload => util.deserializeResult(payload))
87
+ .delete()
88
+ .res()
88
89
  .then(f => f, util.onRejected);
89
90
  }
90
91
  /**
@@ -93,7 +94,7 @@ class AgentIngresses {
93
94
  get(id) {
94
95
  return this.httpClient
95
96
  .url(`/agent_ingresses/${id}`)
96
- .get(id)
97
+ .get()
97
98
  .json(payload => util.deserializeResult(payload))
98
99
  .then(f => f, util.onRejected);
99
100
  }
@@ -191,8 +192,8 @@ class APIKeys {
191
192
  delete(id) {
192
193
  return this.httpClient
193
194
  .url(`/api_keys/${id}`)
194
- .delete(id)
195
- .json(payload => util.deserializeResult(payload))
195
+ .delete()
196
+ .res()
196
197
  .then(f => f, util.onRejected);
197
198
  }
198
199
  /**
@@ -201,7 +202,7 @@ class APIKeys {
201
202
  get(id) {
202
203
  return this.httpClient
203
204
  .url(`/api_keys/${id}`)
204
- .get(id)
205
+ .get()
205
206
  .json(payload => util.deserializeResult(payload))
206
207
  .then(f => f, util.onRejected);
207
208
  }
@@ -282,7 +283,7 @@ class ApplicationSessions {
282
283
  get(id) {
283
284
  return this.httpClient
284
285
  .url(`/app/sessions/${id}`)
285
- .get(id)
286
+ .get()
286
287
  .json(payload => util.deserializeResult(payload))
287
288
  .then(f => f, util.onRejected);
288
289
  }
@@ -292,8 +293,8 @@ class ApplicationSessions {
292
293
  delete(id) {
293
294
  return this.httpClient
294
295
  .url(`/app/sessions/${id}`)
295
- .delete(id)
296
- .json(payload => util.deserializeResult(payload))
296
+ .delete()
297
+ .res()
297
298
  .then(f => f, util.onRejected);
298
299
  }
299
300
  /**
@@ -363,7 +364,7 @@ class ApplicationUsers {
363
364
  get(id) {
364
365
  return this.httpClient
365
366
  .url(`/app/users/${id}`)
366
- .get(id)
367
+ .get()
367
368
  .json(payload => util.deserializeResult(payload))
368
369
  .then(f => f, util.onRejected);
369
370
  }
@@ -373,8 +374,8 @@ class ApplicationUsers {
373
374
  delete(id) {
374
375
  return this.httpClient
375
376
  .url(`/app/users/${id}`)
376
- .delete(id)
377
- .json(payload => util.deserializeResult(payload))
377
+ .delete()
378
+ .res()
378
379
  .then(f => f, util.onRejected);
379
380
  }
380
381
  /**
@@ -503,7 +504,7 @@ class TunnelSessions {
503
504
  get(id) {
504
505
  return this.httpClient
505
506
  .url(`/tunnel_sessions/${id}`)
506
- .get(id)
507
+ .get()
507
508
  .json(payload => util.deserializeResult(payload))
508
509
  .then(f => f, util.onRejected);
509
510
  }
@@ -513,8 +514,8 @@ class TunnelSessions {
513
514
  restart(id) {
514
515
  return this.httpClient
515
516
  .url(`/tunnel_sessions/${id}/restart`)
516
- .post(id)
517
- .json(payload => util.deserializeResult(payload))
517
+ .post('{}')
518
+ .res()
518
519
  .then(f => f, util.onRejected);
519
520
  }
520
521
  /**
@@ -523,8 +524,8 @@ class TunnelSessions {
523
524
  stop(id) {
524
525
  return this.httpClient
525
526
  .url(`/tunnel_sessions/${id}/stop`)
526
- .post(id)
527
- .json(payload => util.deserializeResult(payload))
527
+ .post('{}')
528
+ .res()
528
529
  .then(f => f, util.onRejected);
529
530
  }
530
531
  /**
@@ -534,7 +535,7 @@ class TunnelSessions {
534
535
  return this.httpClient
535
536
  .url(`/tunnel_sessions/${arg.id}/update`)
536
537
  .post(util.serializeArgument(arg))
537
- .json(payload => util.deserializeResult(payload))
538
+ .res()
538
539
  .then(f => f, util.onRejected);
539
540
  }
540
541
  }
@@ -566,8 +567,8 @@ class FailoverBackends {
566
567
  delete(id) {
567
568
  return this.httpClient
568
569
  .url(`/backends/failover/${id}`)
569
- .delete(id)
570
- .json(payload => util.deserializeResult(payload))
570
+ .delete()
571
+ .res()
571
572
  .then(f => f, util.onRejected);
572
573
  }
573
574
  /**
@@ -576,7 +577,7 @@ class FailoverBackends {
576
577
  get(id) {
577
578
  return this.httpClient
578
579
  .url(`/backends/failover/${id}`)
579
- .get(id)
580
+ .get()
580
581
  .json(payload => util.deserializeResult(payload))
581
582
  .then(f => f, util.onRejected);
582
583
  }
@@ -661,14 +662,14 @@ class HTTPResponseBackends {
661
662
  delete(id) {
662
663
  return this.httpClient
663
664
  .url(`/backends/http_response/${id}`)
664
- .delete(id)
665
- .json(payload => util.deserializeResult(payload))
665
+ .delete()
666
+ .res()
666
667
  .then(f => f, util.onRejected);
667
668
  }
668
669
  get(id) {
669
670
  return this.httpClient
670
671
  .url(`/backends/http_response/${id}`)
671
- .get(id)
672
+ .get()
672
673
  .json(payload => util.deserializeResult(payload))
673
674
  .then(f => f, util.onRejected);
674
675
  }
@@ -732,6 +733,111 @@ class HTTPResponseBackends {
732
733
  }
733
734
  }
734
735
  exports.HTTPResponseBackends = HTTPResponseBackends;
736
+ /**
737
+ * A static backend sends traffic to a TCP address (hostname and port) that
738
+ is reachable on the public internet.
739
+ */
740
+ class StaticBackends {
741
+ /** Do not construct this object directly, use the <code>staticBackends</code> property of an <code>Ngrok</code> client object instead. */
742
+ constructor(httpClient) {
743
+ this.httpClient = httpClient;
744
+ }
745
+ /**
746
+ * Create a new static backend
747
+ */
748
+ create(arg) {
749
+ return this.httpClient
750
+ .url(`/backends/static`)
751
+ .post(util.serializeArgument(arg))
752
+ .json(payload => util.deserializeResult(payload))
753
+ .then(f => f, util.onRejected);
754
+ }
755
+ /**
756
+ * Delete a static backend by ID.
757
+ */
758
+ delete(id) {
759
+ return this.httpClient
760
+ .url(`/backends/static/${id}`)
761
+ .delete()
762
+ .res()
763
+ .then(f => f, util.onRejected);
764
+ }
765
+ /**
766
+ * Get detailed information about a static backend by ID
767
+ */
768
+ get(id) {
769
+ return this.httpClient
770
+ .url(`/backends/static/${id}`)
771
+ .get()
772
+ .json(payload => util.deserializeResult(payload))
773
+ .then(f => f, util.onRejected);
774
+ }
775
+ /**
776
+ * List all static backends on this account
777
+ */
778
+ list(beforeId, limit) {
779
+ var e_8, _a;
780
+ return __awaiter(this, void 0, void 0, function* () {
781
+ const array = [];
782
+ try {
783
+ for (var _b = __asyncValues(this._asyncList(beforeId, limit)), _c; _c = yield _b.next(), !_c.done;) {
784
+ let item = _c.value;
785
+ array.push(item);
786
+ }
787
+ }
788
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
789
+ finally {
790
+ try {
791
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
792
+ }
793
+ finally { if (e_8) throw e_8.error; }
794
+ }
795
+ return array;
796
+ });
797
+ }
798
+ _pagedList(arg) {
799
+ return this.httpClient
800
+ .url(`/backends/static`)
801
+ .query(arg)
802
+ .get()
803
+ .json(payload => util.deserializeResult(payload))
804
+ .then(util.onFulfilled, util.onRejected);
805
+ }
806
+ _asyncList(beforeId, limit = '100') {
807
+ return __asyncGenerator(this, arguments, function* _asyncList_8() {
808
+ let nextPage = 'initial loop';
809
+ let page = { limit: limit };
810
+ if (beforeId) {
811
+ page.beforeId = beforeId;
812
+ }
813
+ while (nextPage) {
814
+ const pagedList = yield __await(this._pagedList(page));
815
+ nextPage = pagedList.nextPageUri;
816
+ const items = pagedList.backends;
817
+ if (nextPage) {
818
+ page = {
819
+ beforeId: items[items.length - 1].id,
820
+ limit: limit,
821
+ };
822
+ }
823
+ for (const item of items) {
824
+ yield yield __await(item);
825
+ }
826
+ }
827
+ });
828
+ }
829
+ /**
830
+ * Update static backend by ID
831
+ */
832
+ update(arg) {
833
+ return this.httpClient
834
+ .url(`/backends/static/${arg.id}`)
835
+ .patch(util.serializeArgument(arg))
836
+ .json(payload => util.deserializeResult(payload))
837
+ .then(f => f, util.onRejected);
838
+ }
839
+ }
840
+ exports.StaticBackends = StaticBackends;
735
841
  /**
736
842
  * A Tunnel Group Backend balances traffic among all online tunnels that match
737
843
  a label selector.
@@ -757,8 +863,8 @@ class TunnelGroupBackends {
757
863
  delete(id) {
758
864
  return this.httpClient
759
865
  .url(`/backends/tunnel_group/${id}`)
760
- .delete(id)
761
- .json(payload => util.deserializeResult(payload))
866
+ .delete()
867
+ .res()
762
868
  .then(f => f, util.onRejected);
763
869
  }
764
870
  /**
@@ -767,7 +873,7 @@ class TunnelGroupBackends {
767
873
  get(id) {
768
874
  return this.httpClient
769
875
  .url(`/backends/tunnel_group/${id}`)
770
- .get(id)
876
+ .get()
771
877
  .json(payload => util.deserializeResult(payload))
772
878
  .then(f => f, util.onRejected);
773
879
  }
@@ -775,7 +881,7 @@ class TunnelGroupBackends {
775
881
  * List all TunnelGroup backends on this account
776
882
  */
777
883
  list(beforeId, limit) {
778
- var e_8, _a;
884
+ var e_9, _a;
779
885
  return __awaiter(this, void 0, void 0, function* () {
780
886
  const array = [];
781
887
  try {
@@ -784,12 +890,12 @@ class TunnelGroupBackends {
784
890
  array.push(item);
785
891
  }
786
892
  }
787
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
893
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
788
894
  finally {
789
895
  try {
790
896
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
791
897
  }
792
- finally { if (e_8) throw e_8.error; }
898
+ finally { if (e_9) throw e_9.error; }
793
899
  }
794
900
  return array;
795
901
  });
@@ -803,7 +909,7 @@ class TunnelGroupBackends {
803
909
  .then(util.onFulfilled, util.onRejected);
804
910
  }
805
911
  _asyncList(beforeId, limit = '100') {
806
- return __asyncGenerator(this, arguments, function* _asyncList_8() {
912
+ return __asyncGenerator(this, arguments, function* _asyncList_9() {
807
913
  let nextPage = 'initial loop';
808
914
  let page = { limit: limit };
809
915
  if (beforeId) {
@@ -864,8 +970,8 @@ class WeightedBackends {
864
970
  delete(id) {
865
971
  return this.httpClient
866
972
  .url(`/backends/weighted/${id}`)
867
- .delete(id)
868
- .json(payload => util.deserializeResult(payload))
973
+ .delete()
974
+ .res()
869
975
  .then(f => f, util.onRejected);
870
976
  }
871
977
  /**
@@ -874,7 +980,7 @@ class WeightedBackends {
874
980
  get(id) {
875
981
  return this.httpClient
876
982
  .url(`/backends/weighted/${id}`)
877
- .get(id)
983
+ .get()
878
984
  .json(payload => util.deserializeResult(payload))
879
985
  .then(f => f, util.onRejected);
880
986
  }
@@ -882,7 +988,7 @@ class WeightedBackends {
882
988
  * List all Weighted backends on this account
883
989
  */
884
990
  list(beforeId, limit) {
885
- var e_9, _a;
991
+ var e_10, _a;
886
992
  return __awaiter(this, void 0, void 0, function* () {
887
993
  const array = [];
888
994
  try {
@@ -891,12 +997,12 @@ class WeightedBackends {
891
997
  array.push(item);
892
998
  }
893
999
  }
894
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
1000
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
895
1001
  finally {
896
1002
  try {
897
1003
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
898
1004
  }
899
- finally { if (e_9) throw e_9.error; }
1005
+ finally { if (e_10) throw e_10.error; }
900
1006
  }
901
1007
  return array;
902
1008
  });
@@ -910,7 +1016,7 @@ class WeightedBackends {
910
1016
  .then(util.onFulfilled, util.onRejected);
911
1017
  }
912
1018
  _asyncList(beforeId, limit = '100') {
913
- return __asyncGenerator(this, arguments, function* _asyncList_9() {
1019
+ return __asyncGenerator(this, arguments, function* _asyncList_10() {
914
1020
  let nextPage = 'initial loop';
915
1021
  let page = { limit: limit };
916
1022
  if (beforeId) {
@@ -944,6 +1050,107 @@ class WeightedBackends {
944
1050
  }
945
1051
  }
946
1052
  exports.WeightedBackends = WeightedBackends;
1053
+ class BotUsers {
1054
+ /** Do not construct this object directly, use the <code>botUsers</code> property of an <code>Ngrok</code> client object instead. */
1055
+ constructor(httpClient) {
1056
+ this.httpClient = httpClient;
1057
+ }
1058
+ /**
1059
+ * Create a new bot user
1060
+ */
1061
+ create(arg) {
1062
+ return this.httpClient
1063
+ .url(`/bot_users`)
1064
+ .post(util.serializeArgument(arg))
1065
+ .json(payload => util.deserializeResult(payload))
1066
+ .then(f => f, util.onRejected);
1067
+ }
1068
+ /**
1069
+ * Delete a bot user by ID
1070
+ */
1071
+ delete(id) {
1072
+ return this.httpClient
1073
+ .url(`/bot_users/${id}`)
1074
+ .delete()
1075
+ .res()
1076
+ .then(f => f, util.onRejected);
1077
+ }
1078
+ /**
1079
+ * Get the details of a Bot User by ID.
1080
+ */
1081
+ get(id) {
1082
+ return this.httpClient
1083
+ .url(`/bot_users/${id}`)
1084
+ .get()
1085
+ .json(payload => util.deserializeResult(payload))
1086
+ .then(f => f, util.onRejected);
1087
+ }
1088
+ /**
1089
+ * List all bot users in this account.
1090
+ */
1091
+ list(beforeId, limit) {
1092
+ var e_11, _a;
1093
+ return __awaiter(this, void 0, void 0, function* () {
1094
+ const array = [];
1095
+ try {
1096
+ for (var _b = __asyncValues(this._asyncList(beforeId, limit)), _c; _c = yield _b.next(), !_c.done;) {
1097
+ let item = _c.value;
1098
+ array.push(item);
1099
+ }
1100
+ }
1101
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
1102
+ finally {
1103
+ try {
1104
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
1105
+ }
1106
+ finally { if (e_11) throw e_11.error; }
1107
+ }
1108
+ return array;
1109
+ });
1110
+ }
1111
+ _pagedList(arg) {
1112
+ return this.httpClient
1113
+ .url(`/bot_users`)
1114
+ .query(arg)
1115
+ .get()
1116
+ .json(payload => util.deserializeResult(payload))
1117
+ .then(util.onFulfilled, util.onRejected);
1118
+ }
1119
+ _asyncList(beforeId, limit = '100') {
1120
+ return __asyncGenerator(this, arguments, function* _asyncList_11() {
1121
+ let nextPage = 'initial loop';
1122
+ let page = { limit: limit };
1123
+ if (beforeId) {
1124
+ page.beforeId = beforeId;
1125
+ }
1126
+ while (nextPage) {
1127
+ const pagedList = yield __await(this._pagedList(page));
1128
+ nextPage = pagedList.nextPageUri;
1129
+ const items = pagedList.botUsers;
1130
+ if (nextPage) {
1131
+ page = {
1132
+ beforeId: items[items.length - 1].id,
1133
+ limit: limit,
1134
+ };
1135
+ }
1136
+ for (const item of items) {
1137
+ yield yield __await(item);
1138
+ }
1139
+ }
1140
+ });
1141
+ }
1142
+ /**
1143
+ * Update attributes of a bot user by ID.
1144
+ */
1145
+ update(arg) {
1146
+ return this.httpClient
1147
+ .url(`/bot_users/${arg.id}`)
1148
+ .patch(util.serializeArgument(arg))
1149
+ .json(payload => util.deserializeResult(payload))
1150
+ .then(f => f, util.onRejected);
1151
+ }
1152
+ }
1153
+ exports.BotUsers = BotUsers;
947
1154
  /**
948
1155
  * Certificate Authorities are x509 certificates that are used to sign other
949
1156
  x509 certificates. Attach a Certificate Authority to the Mutual TLS module
@@ -972,8 +1179,8 @@ class CertificateAuthorities {
972
1179
  delete(id) {
973
1180
  return this.httpClient
974
1181
  .url(`/certificate_authorities/${id}`)
975
- .delete(id)
976
- .json(payload => util.deserializeResult(payload))
1182
+ .delete()
1183
+ .res()
977
1184
  .then(f => f, util.onRejected);
978
1185
  }
979
1186
  /**
@@ -982,7 +1189,7 @@ class CertificateAuthorities {
982
1189
  get(id) {
983
1190
  return this.httpClient
984
1191
  .url(`/certificate_authorities/${id}`)
985
- .get(id)
1192
+ .get()
986
1193
  .json(payload => util.deserializeResult(payload))
987
1194
  .then(f => f, util.onRejected);
988
1195
  }
@@ -990,7 +1197,7 @@ class CertificateAuthorities {
990
1197
  * List all Certificate Authority on this account
991
1198
  */
992
1199
  list(beforeId, limit) {
993
- var e_10, _a;
1200
+ var e_12, _a;
994
1201
  return __awaiter(this, void 0, void 0, function* () {
995
1202
  const array = [];
996
1203
  try {
@@ -999,12 +1206,12 @@ class CertificateAuthorities {
999
1206
  array.push(item);
1000
1207
  }
1001
1208
  }
1002
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
1209
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
1003
1210
  finally {
1004
1211
  try {
1005
1212
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
1006
1213
  }
1007
- finally { if (e_10) throw e_10.error; }
1214
+ finally { if (e_12) throw e_12.error; }
1008
1215
  }
1009
1216
  return array;
1010
1217
  });
@@ -1018,7 +1225,7 @@ class CertificateAuthorities {
1018
1225
  .then(util.onFulfilled, util.onRejected);
1019
1226
  }
1020
1227
  _asyncList(beforeId, limit = '100') {
1021
- return __asyncGenerator(this, arguments, function* _asyncList_10() {
1228
+ return __asyncGenerator(this, arguments, function* _asyncList_12() {
1022
1229
  let nextPage = 'initial loop';
1023
1230
  let page = { limit: limit };
1024
1231
  if (beforeId) {
@@ -1079,8 +1286,8 @@ class Credentials {
1079
1286
  delete(id) {
1080
1287
  return this.httpClient
1081
1288
  .url(`/credentials/${id}`)
1082
- .delete(id)
1083
- .json(payload => util.deserializeResult(payload))
1289
+ .delete()
1290
+ .res()
1084
1291
  .then(f => f, util.onRejected);
1085
1292
  }
1086
1293
  /**
@@ -1089,7 +1296,7 @@ class Credentials {
1089
1296
  get(id) {
1090
1297
  return this.httpClient
1091
1298
  .url(`/credentials/${id}`)
1092
- .get(id)
1299
+ .get()
1093
1300
  .json(payload => util.deserializeResult(payload))
1094
1301
  .then(f => f, util.onRejected);
1095
1302
  }
@@ -1097,7 +1304,7 @@ class Credentials {
1097
1304
  * List all tunnel authtoken credentials on this account
1098
1305
  */
1099
1306
  list(beforeId, limit) {
1100
- var e_11, _a;
1307
+ var e_13, _a;
1101
1308
  return __awaiter(this, void 0, void 0, function* () {
1102
1309
  const array = [];
1103
1310
  try {
@@ -1106,12 +1313,12 @@ class Credentials {
1106
1313
  array.push(item);
1107
1314
  }
1108
1315
  }
1109
- catch (e_11_1) { e_11 = { error: e_11_1 }; }
1316
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
1110
1317
  finally {
1111
1318
  try {
1112
1319
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
1113
1320
  }
1114
- finally { if (e_11) throw e_11.error; }
1321
+ finally { if (e_13) throw e_13.error; }
1115
1322
  }
1116
1323
  return array;
1117
1324
  });
@@ -1125,7 +1332,7 @@ class Credentials {
1125
1332
  .then(util.onFulfilled, util.onRejected);
1126
1333
  }
1127
1334
  _asyncList(beforeId, limit = '100') {
1128
- return __asyncGenerator(this, arguments, function* _asyncList_11() {
1335
+ return __asyncGenerator(this, arguments, function* _asyncList_13() {
1129
1336
  let nextPage = 'initial loop';
1130
1337
  let page = { limit: limit };
1131
1338
  if (beforeId) {
@@ -1201,7 +1408,7 @@ class EdgesHTTPSRoutes {
1201
1408
  return this.httpClient
1202
1409
  .url(`/edges/https/${arg.edgeId}/routes/${arg.id}`)
1203
1410
  .delete()
1204
- .json(payload => util.deserializeResult(payload))
1411
+ .res()
1205
1412
  .then(f => f, util.onRejected);
1206
1413
  }
1207
1414
  }
@@ -1227,7 +1434,7 @@ class EdgesHTTPS {
1227
1434
  get(id) {
1228
1435
  return this.httpClient
1229
1436
  .url(`/edges/https/${id}`)
1230
- .get(id)
1437
+ .get()
1231
1438
  .json(payload => util.deserializeResult(payload))
1232
1439
  .then(f => f, util.onRejected);
1233
1440
  }
@@ -1235,7 +1442,7 @@ class EdgesHTTPS {
1235
1442
  * Returns a list of all HTTPS Edges on this account
1236
1443
  */
1237
1444
  list(beforeId, limit) {
1238
- var e_12, _a;
1445
+ var e_14, _a;
1239
1446
  return __awaiter(this, void 0, void 0, function* () {
1240
1447
  const array = [];
1241
1448
  try {
@@ -1244,12 +1451,12 @@ class EdgesHTTPS {
1244
1451
  array.push(item);
1245
1452
  }
1246
1453
  }
1247
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
1454
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
1248
1455
  finally {
1249
1456
  try {
1250
1457
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
1251
1458
  }
1252
- finally { if (e_12) throw e_12.error; }
1459
+ finally { if (e_14) throw e_14.error; }
1253
1460
  }
1254
1461
  return array;
1255
1462
  });
@@ -1263,7 +1470,7 @@ class EdgesHTTPS {
1263
1470
  .then(util.onFulfilled, util.onRejected);
1264
1471
  }
1265
1472
  _asyncList(beforeId, limit = '100') {
1266
- return __asyncGenerator(this, arguments, function* _asyncList_12() {
1473
+ return __asyncGenerator(this, arguments, function* _asyncList_14() {
1267
1474
  let nextPage = 'initial loop';
1268
1475
  let page = { limit: limit };
1269
1476
  if (beforeId) {
@@ -1301,8 +1508,8 @@ class EdgesHTTPS {
1301
1508
  delete(id) {
1302
1509
  return this.httpClient
1303
1510
  .url(`/edges/https/${id}`)
1304
- .delete(id)
1305
- .json(payload => util.deserializeResult(payload))
1511
+ .delete()
1512
+ .res()
1306
1513
  .then(f => f, util.onRejected);
1307
1514
  }
1308
1515
  }
@@ -1322,15 +1529,15 @@ class HTTPSEdgeMutualTLSModule {
1322
1529
  get(id) {
1323
1530
  return this.httpClient
1324
1531
  .url(`/edges/https/${id}/mutual_tls`)
1325
- .get(id)
1532
+ .get()
1326
1533
  .json(payload => util.deserializeResult(payload))
1327
1534
  .then(f => f, util.onRejected);
1328
1535
  }
1329
1536
  delete(id) {
1330
1537
  return this.httpClient
1331
1538
  .url(`/edges/https/${id}/mutual_tls`)
1332
- .delete(id)
1333
- .json(payload => util.deserializeResult(payload))
1539
+ .delete()
1540
+ .res()
1334
1541
  .then(f => f, util.onRejected);
1335
1542
  }
1336
1543
  }
@@ -1350,15 +1557,15 @@ class HTTPSEdgeTLSTerminationModule {
1350
1557
  get(id) {
1351
1558
  return this.httpClient
1352
1559
  .url(`/edges/https/${id}/tls_termination`)
1353
- .get(id)
1560
+ .get()
1354
1561
  .json(payload => util.deserializeResult(payload))
1355
1562
  .then(f => f, util.onRejected);
1356
1563
  }
1357
1564
  delete(id) {
1358
1565
  return this.httpClient
1359
1566
  .url(`/edges/https/${id}/tls_termination`)
1360
- .delete(id)
1361
- .json(payload => util.deserializeResult(payload))
1567
+ .delete()
1568
+ .res()
1362
1569
  .then(f => f, util.onRejected);
1363
1570
  }
1364
1571
  }
@@ -1386,7 +1593,7 @@ class EdgeRouteBackendModule {
1386
1593
  return this.httpClient
1387
1594
  .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/backend`)
1388
1595
  .delete()
1389
- .json(payload => util.deserializeResult(payload))
1596
+ .res()
1390
1597
  .then(f => f, util.onRejected);
1391
1598
  }
1392
1599
  }
@@ -1414,7 +1621,7 @@ class EdgeRouteIPRestrictionModule {
1414
1621
  return this.httpClient
1415
1622
  .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/ip_restriction`)
1416
1623
  .delete()
1417
- .json(payload => util.deserializeResult(payload))
1624
+ .res()
1418
1625
  .then(f => f, util.onRejected);
1419
1626
  }
1420
1627
  }
@@ -1442,7 +1649,7 @@ class EdgeRouteRequestHeadersModule {
1442
1649
  return this.httpClient
1443
1650
  .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/request_headers`)
1444
1651
  .delete()
1445
- .json(payload => util.deserializeResult(payload))
1652
+ .res()
1446
1653
  .then(f => f, util.onRejected);
1447
1654
  }
1448
1655
  }
@@ -1470,7 +1677,7 @@ class EdgeRouteResponseHeadersModule {
1470
1677
  return this.httpClient
1471
1678
  .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/response_headers`)
1472
1679
  .delete()
1473
- .json(payload => util.deserializeResult(payload))
1680
+ .res()
1474
1681
  .then(f => f, util.onRejected);
1475
1682
  }
1476
1683
  }
@@ -1498,7 +1705,7 @@ class EdgeRouteCompressionModule {
1498
1705
  return this.httpClient
1499
1706
  .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/compression`)
1500
1707
  .delete()
1501
- .json(payload => util.deserializeResult(payload))
1708
+ .res()
1502
1709
  .then(f => f, util.onRejected);
1503
1710
  }
1504
1711
  }
@@ -1526,7 +1733,7 @@ class EdgeRouteCircuitBreakerModule {
1526
1733
  return this.httpClient
1527
1734
  .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/circuit_breaker`)
1528
1735
  .delete()
1529
- .json(payload => util.deserializeResult(payload))
1736
+ .res()
1530
1737
  .then(f => f, util.onRejected);
1531
1738
  }
1532
1739
  }
@@ -1554,7 +1761,7 @@ class EdgeRouteWebhookVerificationModule {
1554
1761
  return this.httpClient
1555
1762
  .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/webhook_verification`)
1556
1763
  .delete()
1557
- .json(payload => util.deserializeResult(payload))
1764
+ .res()
1558
1765
  .then(f => f, util.onRejected);
1559
1766
  }
1560
1767
  }
@@ -1582,7 +1789,7 @@ class EdgeRouteOAuthModule {
1582
1789
  return this.httpClient
1583
1790
  .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oauth`)
1584
1791
  .delete()
1585
- .json(payload => util.deserializeResult(payload))
1792
+ .res()
1586
1793
  .then(f => f, util.onRejected);
1587
1794
  }
1588
1795
  }
@@ -1594,83 +1801,139 @@ class EdgeRouteSAMLModule {
1594
1801
  }
1595
1802
  replace(arg) {
1596
1803
  return this.httpClient
1597
- .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/saml`)
1804
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/saml`)
1805
+ .put(util.serializeArgument(arg))
1806
+ .json(payload => util.deserializeResult(payload))
1807
+ .then(f => f, util.onRejected);
1808
+ }
1809
+ get(arg) {
1810
+ return this.httpClient
1811
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/saml`)
1812
+ .get()
1813
+ .json(payload => util.deserializeResult(payload))
1814
+ .then(f => f, util.onRejected);
1815
+ }
1816
+ delete(arg) {
1817
+ return this.httpClient
1818
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/saml`)
1819
+ .delete()
1820
+ .res()
1821
+ .then(f => f, util.onRejected);
1822
+ }
1823
+ }
1824
+ exports.EdgeRouteSAMLModule = EdgeRouteSAMLModule;
1825
+ class EdgeRouteOIDCModule {
1826
+ /** Do not construct this object directly, use the <code>edgeRouteOidcModule</code> property of an <code>Ngrok</code> client object instead. */
1827
+ constructor(httpClient) {
1828
+ this.httpClient = httpClient;
1829
+ }
1830
+ replace(arg) {
1831
+ return this.httpClient
1832
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oidc`)
1833
+ .put(util.serializeArgument(arg))
1834
+ .json(payload => util.deserializeResult(payload))
1835
+ .then(f => f, util.onRejected);
1836
+ }
1837
+ get(arg) {
1838
+ return this.httpClient
1839
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oidc`)
1840
+ .get()
1841
+ .json(payload => util.deserializeResult(payload))
1842
+ .then(f => f, util.onRejected);
1843
+ }
1844
+ delete(arg) {
1845
+ return this.httpClient
1846
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oidc`)
1847
+ .delete()
1848
+ .res()
1849
+ .then(f => f, util.onRejected);
1850
+ }
1851
+ }
1852
+ exports.EdgeRouteOIDCModule = EdgeRouteOIDCModule;
1853
+ class EdgeRouteWebsocketTCPConverterModule {
1854
+ /** Do not construct this object directly, use the <code>edgeRouteWebsocketTcpConverterModule</code> property of an <code>Ngrok</code> client object instead. */
1855
+ constructor(httpClient) {
1856
+ this.httpClient = httpClient;
1857
+ }
1858
+ replace(arg) {
1859
+ return this.httpClient
1860
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/websocket_tcp_converter`)
1598
1861
  .put(util.serializeArgument(arg))
1599
1862
  .json(payload => util.deserializeResult(payload))
1600
1863
  .then(f => f, util.onRejected);
1601
1864
  }
1602
1865
  get(arg) {
1603
1866
  return this.httpClient
1604
- .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/saml`)
1867
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/websocket_tcp_converter`)
1605
1868
  .get()
1606
1869
  .json(payload => util.deserializeResult(payload))
1607
1870
  .then(f => f, util.onRejected);
1608
1871
  }
1609
1872
  delete(arg) {
1610
1873
  return this.httpClient
1611
- .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/saml`)
1874
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/websocket_tcp_converter`)
1612
1875
  .delete()
1613
- .json(payload => util.deserializeResult(payload))
1876
+ .res()
1614
1877
  .then(f => f, util.onRejected);
1615
1878
  }
1616
1879
  }
1617
- exports.EdgeRouteSAMLModule = EdgeRouteSAMLModule;
1618
- class EdgeRouteOIDCModule {
1619
- /** Do not construct this object directly, use the <code>edgeRouteOidcModule</code> property of an <code>Ngrok</code> client object instead. */
1880
+ exports.EdgeRouteWebsocketTCPConverterModule = EdgeRouteWebsocketTCPConverterModule;
1881
+ class EdgeRouteUserAgentFilterModule {
1882
+ /** Do not construct this object directly, use the <code>edgeRouteUserAgentFilterModule</code> property of an <code>Ngrok</code> client object instead. */
1620
1883
  constructor(httpClient) {
1621
1884
  this.httpClient = httpClient;
1622
1885
  }
1623
1886
  replace(arg) {
1624
1887
  return this.httpClient
1625
- .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oidc`)
1888
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/user_agent_filter`)
1626
1889
  .put(util.serializeArgument(arg))
1627
1890
  .json(payload => util.deserializeResult(payload))
1628
1891
  .then(f => f, util.onRejected);
1629
1892
  }
1630
1893
  get(arg) {
1631
1894
  return this.httpClient
1632
- .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oidc`)
1895
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/user_agent_filter`)
1633
1896
  .get()
1634
1897
  .json(payload => util.deserializeResult(payload))
1635
1898
  .then(f => f, util.onRejected);
1636
1899
  }
1637
1900
  delete(arg) {
1638
1901
  return this.httpClient
1639
- .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oidc`)
1902
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/user_agent_filter`)
1640
1903
  .delete()
1641
- .json(payload => util.deserializeResult(payload))
1904
+ .res()
1642
1905
  .then(f => f, util.onRejected);
1643
1906
  }
1644
1907
  }
1645
- exports.EdgeRouteOIDCModule = EdgeRouteOIDCModule;
1646
- class EdgeRouteWebsocketTCPConverterModule {
1647
- /** Do not construct this object directly, use the <code>edgeRouteWebsocketTcpConverterModule</code> property of an <code>Ngrok</code> client object instead. */
1908
+ exports.EdgeRouteUserAgentFilterModule = EdgeRouteUserAgentFilterModule;
1909
+ class EdgeRouteTrafficPolicyModule {
1910
+ /** Do not construct this object directly, use the <code>edgeRouteTrafficPolicyModule</code> property of an <code>Ngrok</code> client object instead. */
1648
1911
  constructor(httpClient) {
1649
1912
  this.httpClient = httpClient;
1650
1913
  }
1651
1914
  replace(arg) {
1652
1915
  return this.httpClient
1653
- .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/websocket_tcp_converter`)
1916
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/traffic_policy`)
1654
1917
  .put(util.serializeArgument(arg))
1655
1918
  .json(payload => util.deserializeResult(payload))
1656
1919
  .then(f => f, util.onRejected);
1657
1920
  }
1658
1921
  get(arg) {
1659
1922
  return this.httpClient
1660
- .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/websocket_tcp_converter`)
1923
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/traffic_policy`)
1661
1924
  .get()
1662
1925
  .json(payload => util.deserializeResult(payload))
1663
1926
  .then(f => f, util.onRejected);
1664
1927
  }
1665
1928
  delete(arg) {
1666
1929
  return this.httpClient
1667
- .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/websocket_tcp_converter`)
1930
+ .url(`/edges/https/${arg.edgeId}/routes/${arg.id}/traffic_policy`)
1668
1931
  .delete()
1669
- .json(payload => util.deserializeResult(payload))
1932
+ .res()
1670
1933
  .then(f => f, util.onRejected);
1671
1934
  }
1672
1935
  }
1673
- exports.EdgeRouteWebsocketTCPConverterModule = EdgeRouteWebsocketTCPConverterModule;
1936
+ exports.EdgeRouteTrafficPolicyModule = EdgeRouteTrafficPolicyModule;
1674
1937
  class EdgesTCP {
1675
1938
  /** Do not construct this object directly, use the <code>edgesTcp</code> property of an <code>Ngrok</code> client object instead. */
1676
1939
  constructor(httpClient) {
@@ -1692,7 +1955,7 @@ class EdgesTCP {
1692
1955
  get(id) {
1693
1956
  return this.httpClient
1694
1957
  .url(`/edges/tcp/${id}`)
1695
- .get(id)
1958
+ .get()
1696
1959
  .json(payload => util.deserializeResult(payload))
1697
1960
  .then(f => f, util.onRejected);
1698
1961
  }
@@ -1700,7 +1963,7 @@ class EdgesTCP {
1700
1963
  * Returns a list of all TCP Edges on this account
1701
1964
  */
1702
1965
  list(beforeId, limit) {
1703
- var e_13, _a;
1966
+ var e_15, _a;
1704
1967
  return __awaiter(this, void 0, void 0, function* () {
1705
1968
  const array = [];
1706
1969
  try {
@@ -1709,12 +1972,12 @@ class EdgesTCP {
1709
1972
  array.push(item);
1710
1973
  }
1711
1974
  }
1712
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
1975
+ catch (e_15_1) { e_15 = { error: e_15_1 }; }
1713
1976
  finally {
1714
1977
  try {
1715
1978
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
1716
1979
  }
1717
- finally { if (e_13) throw e_13.error; }
1980
+ finally { if (e_15) throw e_15.error; }
1718
1981
  }
1719
1982
  return array;
1720
1983
  });
@@ -1728,7 +1991,7 @@ class EdgesTCP {
1728
1991
  .then(util.onFulfilled, util.onRejected);
1729
1992
  }
1730
1993
  _asyncList(beforeId, limit = '100') {
1731
- return __asyncGenerator(this, arguments, function* _asyncList_13() {
1994
+ return __asyncGenerator(this, arguments, function* _asyncList_15() {
1732
1995
  let nextPage = 'initial loop';
1733
1996
  let page = { limit: limit };
1734
1997
  if (beforeId) {
@@ -1766,8 +2029,8 @@ class EdgesTCP {
1766
2029
  delete(id) {
1767
2030
  return this.httpClient
1768
2031
  .url(`/edges/tcp/${id}`)
1769
- .delete(id)
1770
- .json(payload => util.deserializeResult(payload))
2032
+ .delete()
2033
+ .res()
1771
2034
  .then(f => f, util.onRejected);
1772
2035
  }
1773
2036
  }
@@ -1787,15 +2050,15 @@ class TCPEdgeBackendModule {
1787
2050
  get(id) {
1788
2051
  return this.httpClient
1789
2052
  .url(`/edges/tcp/${id}/backend`)
1790
- .get(id)
2053
+ .get()
1791
2054
  .json(payload => util.deserializeResult(payload))
1792
2055
  .then(f => f, util.onRejected);
1793
2056
  }
1794
2057
  delete(id) {
1795
2058
  return this.httpClient
1796
2059
  .url(`/edges/tcp/${id}/backend`)
1797
- .delete(id)
1798
- .json(payload => util.deserializeResult(payload))
2060
+ .delete()
2061
+ .res()
1799
2062
  .then(f => f, util.onRejected);
1800
2063
  }
1801
2064
  }
@@ -1815,19 +2078,47 @@ class TCPEdgeIPRestrictionModule {
1815
2078
  get(id) {
1816
2079
  return this.httpClient
1817
2080
  .url(`/edges/tcp/${id}/ip_restriction`)
1818
- .get(id)
2081
+ .get()
1819
2082
  .json(payload => util.deserializeResult(payload))
1820
2083
  .then(f => f, util.onRejected);
1821
2084
  }
1822
2085
  delete(id) {
1823
2086
  return this.httpClient
1824
2087
  .url(`/edges/tcp/${id}/ip_restriction`)
1825
- .delete(id)
1826
- .json(payload => util.deserializeResult(payload))
2088
+ .delete()
2089
+ .res()
1827
2090
  .then(f => f, util.onRejected);
1828
2091
  }
1829
2092
  }
1830
2093
  exports.TCPEdgeIPRestrictionModule = TCPEdgeIPRestrictionModule;
2094
+ class TCPEdgeTrafficPolicyModule {
2095
+ /** Do not construct this object directly, use the <code>tcpEdgeTrafficPolicyModule</code> property of an <code>Ngrok</code> client object instead. */
2096
+ constructor(httpClient) {
2097
+ this.httpClient = httpClient;
2098
+ }
2099
+ replace(arg) {
2100
+ return this.httpClient
2101
+ .url(`/edges/tcp/${arg.id}/traffic_policy`)
2102
+ .put(util.serializeArgument(arg))
2103
+ .json(payload => util.deserializeResult(payload))
2104
+ .then(f => f, util.onRejected);
2105
+ }
2106
+ get(id) {
2107
+ return this.httpClient
2108
+ .url(`/edges/tcp/${id}/traffic_policy`)
2109
+ .get()
2110
+ .json(payload => util.deserializeResult(payload))
2111
+ .then(f => f, util.onRejected);
2112
+ }
2113
+ delete(id) {
2114
+ return this.httpClient
2115
+ .url(`/edges/tcp/${id}/traffic_policy`)
2116
+ .delete()
2117
+ .res()
2118
+ .then(f => f, util.onRejected);
2119
+ }
2120
+ }
2121
+ exports.TCPEdgeTrafficPolicyModule = TCPEdgeTrafficPolicyModule;
1831
2122
  class EdgesTLS {
1832
2123
  /** Do not construct this object directly, use the <code>edgesTls</code> property of an <code>Ngrok</code> client object instead. */
1833
2124
  constructor(httpClient) {
@@ -1849,7 +2140,7 @@ class EdgesTLS {
1849
2140
  get(id) {
1850
2141
  return this.httpClient
1851
2142
  .url(`/edges/tls/${id}`)
1852
- .get(id)
2143
+ .get()
1853
2144
  .json(payload => util.deserializeResult(payload))
1854
2145
  .then(f => f, util.onRejected);
1855
2146
  }
@@ -1857,7 +2148,7 @@ class EdgesTLS {
1857
2148
  * Returns a list of all TLS Edges on this account
1858
2149
  */
1859
2150
  list(beforeId, limit) {
1860
- var e_14, _a;
2151
+ var e_16, _a;
1861
2152
  return __awaiter(this, void 0, void 0, function* () {
1862
2153
  const array = [];
1863
2154
  try {
@@ -1866,12 +2157,12 @@ class EdgesTLS {
1866
2157
  array.push(item);
1867
2158
  }
1868
2159
  }
1869
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
2160
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
1870
2161
  finally {
1871
2162
  try {
1872
2163
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
1873
2164
  }
1874
- finally { if (e_14) throw e_14.error; }
2165
+ finally { if (e_16) throw e_16.error; }
1875
2166
  }
1876
2167
  return array;
1877
2168
  });
@@ -1885,7 +2176,7 @@ class EdgesTLS {
1885
2176
  .then(util.onFulfilled, util.onRejected);
1886
2177
  }
1887
2178
  _asyncList(beforeId, limit = '100') {
1888
- return __asyncGenerator(this, arguments, function* _asyncList_14() {
2179
+ return __asyncGenerator(this, arguments, function* _asyncList_16() {
1889
2180
  let nextPage = 'initial loop';
1890
2181
  let page = { limit: limit };
1891
2182
  if (beforeId) {
@@ -1923,8 +2214,8 @@ class EdgesTLS {
1923
2214
  delete(id) {
1924
2215
  return this.httpClient
1925
2216
  .url(`/edges/tls/${id}`)
1926
- .delete(id)
1927
- .json(payload => util.deserializeResult(payload))
2217
+ .delete()
2218
+ .res()
1928
2219
  .then(f => f, util.onRejected);
1929
2220
  }
1930
2221
  }
@@ -1944,15 +2235,15 @@ class TLSEdgeBackendModule {
1944
2235
  get(id) {
1945
2236
  return this.httpClient
1946
2237
  .url(`/edges/tls/${id}/backend`)
1947
- .get(id)
2238
+ .get()
1948
2239
  .json(payload => util.deserializeResult(payload))
1949
2240
  .then(f => f, util.onRejected);
1950
2241
  }
1951
2242
  delete(id) {
1952
2243
  return this.httpClient
1953
2244
  .url(`/edges/tls/${id}/backend`)
1954
- .delete(id)
1955
- .json(payload => util.deserializeResult(payload))
2245
+ .delete()
2246
+ .res()
1956
2247
  .then(f => f, util.onRejected);
1957
2248
  }
1958
2249
  }
@@ -1972,15 +2263,15 @@ class TLSEdgeIPRestrictionModule {
1972
2263
  get(id) {
1973
2264
  return this.httpClient
1974
2265
  .url(`/edges/tls/${id}/ip_restriction`)
1975
- .get(id)
2266
+ .get()
1976
2267
  .json(payload => util.deserializeResult(payload))
1977
2268
  .then(f => f, util.onRejected);
1978
2269
  }
1979
2270
  delete(id) {
1980
2271
  return this.httpClient
1981
2272
  .url(`/edges/tls/${id}/ip_restriction`)
1982
- .delete(id)
1983
- .json(payload => util.deserializeResult(payload))
2273
+ .delete()
2274
+ .res()
1984
2275
  .then(f => f, util.onRejected);
1985
2276
  }
1986
2277
  }
@@ -2000,15 +2291,15 @@ class TLSEdgeMutualTLSModule {
2000
2291
  get(id) {
2001
2292
  return this.httpClient
2002
2293
  .url(`/edges/tls/${id}/mutual_tls`)
2003
- .get(id)
2294
+ .get()
2004
2295
  .json(payload => util.deserializeResult(payload))
2005
2296
  .then(f => f, util.onRejected);
2006
2297
  }
2007
2298
  delete(id) {
2008
2299
  return this.httpClient
2009
2300
  .url(`/edges/tls/${id}/mutual_tls`)
2010
- .delete(id)
2011
- .json(payload => util.deserializeResult(payload))
2301
+ .delete()
2302
+ .res()
2012
2303
  .then(f => f, util.onRejected);
2013
2304
  }
2014
2305
  }
@@ -2028,19 +2319,47 @@ class TLSEdgeTLSTerminationModule {
2028
2319
  get(id) {
2029
2320
  return this.httpClient
2030
2321
  .url(`/edges/tls/${id}/tls_termination`)
2031
- .get(id)
2322
+ .get()
2032
2323
  .json(payload => util.deserializeResult(payload))
2033
2324
  .then(f => f, util.onRejected);
2034
2325
  }
2035
2326
  delete(id) {
2036
2327
  return this.httpClient
2037
2328
  .url(`/edges/tls/${id}/tls_termination`)
2038
- .delete(id)
2039
- .json(payload => util.deserializeResult(payload))
2329
+ .delete()
2330
+ .res()
2040
2331
  .then(f => f, util.onRejected);
2041
2332
  }
2042
2333
  }
2043
2334
  exports.TLSEdgeTLSTerminationModule = TLSEdgeTLSTerminationModule;
2335
+ class TLSEdgeTrafficPolicyModule {
2336
+ /** Do not construct this object directly, use the <code>tlsEdgeTrafficPolicyModule</code> property of an <code>Ngrok</code> client object instead. */
2337
+ constructor(httpClient) {
2338
+ this.httpClient = httpClient;
2339
+ }
2340
+ replace(arg) {
2341
+ return this.httpClient
2342
+ .url(`/edges/tls/${arg.id}/traffic_policy`)
2343
+ .put(util.serializeArgument(arg))
2344
+ .json(payload => util.deserializeResult(payload))
2345
+ .then(f => f, util.onRejected);
2346
+ }
2347
+ get(id) {
2348
+ return this.httpClient
2349
+ .url(`/edges/tls/${id}/traffic_policy`)
2350
+ .get()
2351
+ .json(payload => util.deserializeResult(payload))
2352
+ .then(f => f, util.onRejected);
2353
+ }
2354
+ delete(id) {
2355
+ return this.httpClient
2356
+ .url(`/edges/tls/${id}/traffic_policy`)
2357
+ .delete()
2358
+ .res()
2359
+ .then(f => f, util.onRejected);
2360
+ }
2361
+ }
2362
+ exports.TLSEdgeTrafficPolicyModule = TLSEdgeTrafficPolicyModule;
2044
2363
  /**
2045
2364
  * Endpoints provides an API for querying the endpoint objects
2046
2365
  which define what tunnel or edge is used to serve a hostport.
@@ -2055,7 +2374,7 @@ class Endpoints {
2055
2374
  * List all active endpoints on the account
2056
2375
  */
2057
2376
  list(beforeId, limit) {
2058
- var e_15, _a;
2377
+ var e_17, _a;
2059
2378
  return __awaiter(this, void 0, void 0, function* () {
2060
2379
  const array = [];
2061
2380
  try {
@@ -2064,12 +2383,12 @@ class Endpoints {
2064
2383
  array.push(item);
2065
2384
  }
2066
2385
  }
2067
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
2386
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
2068
2387
  finally {
2069
2388
  try {
2070
2389
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
2071
2390
  }
2072
- finally { if (e_15) throw e_15.error; }
2391
+ finally { if (e_17) throw e_17.error; }
2073
2392
  }
2074
2393
  return array;
2075
2394
  });
@@ -2083,7 +2402,7 @@ class Endpoints {
2083
2402
  .then(util.onFulfilled, util.onRejected);
2084
2403
  }
2085
2404
  _asyncList(beforeId, limit = '100') {
2086
- return __asyncGenerator(this, arguments, function* _asyncList_15() {
2405
+ return __asyncGenerator(this, arguments, function* _asyncList_17() {
2087
2406
  let nextPage = 'initial loop';
2088
2407
  let page = { limit: limit };
2089
2408
  if (beforeId) {
@@ -2111,7 +2430,7 @@ class Endpoints {
2111
2430
  get(id) {
2112
2431
  return this.httpClient
2113
2432
  .url(`/endpoints/${id}`)
2114
- .get(id)
2433
+ .get()
2115
2434
  .json(payload => util.deserializeResult(payload))
2116
2435
  .then(f => f, util.onRejected);
2117
2436
  }
@@ -2138,8 +2457,8 @@ class EventDestinations {
2138
2457
  delete(id) {
2139
2458
  return this.httpClient
2140
2459
  .url(`/event_destinations/${id}`)
2141
- .delete(id)
2142
- .json(payload => util.deserializeResult(payload))
2460
+ .delete()
2461
+ .res()
2143
2462
  .then(f => f, util.onRejected);
2144
2463
  }
2145
2464
  /**
@@ -2148,7 +2467,7 @@ class EventDestinations {
2148
2467
  get(id) {
2149
2468
  return this.httpClient
2150
2469
  .url(`/event_destinations/${id}`)
2151
- .get(id)
2470
+ .get()
2152
2471
  .json(payload => util.deserializeResult(payload))
2153
2472
  .then(f => f, util.onRejected);
2154
2473
  }
@@ -2156,7 +2475,7 @@ class EventDestinations {
2156
2475
  * List all Event Destinations on this account.
2157
2476
  */
2158
2477
  list(beforeId, limit) {
2159
- var e_16, _a;
2478
+ var e_18, _a;
2160
2479
  return __awaiter(this, void 0, void 0, function* () {
2161
2480
  const array = [];
2162
2481
  try {
@@ -2165,12 +2484,12 @@ class EventDestinations {
2165
2484
  array.push(item);
2166
2485
  }
2167
2486
  }
2168
- catch (e_16_1) { e_16 = { error: e_16_1 }; }
2487
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
2169
2488
  finally {
2170
2489
  try {
2171
2490
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
2172
2491
  }
2173
- finally { if (e_16) throw e_16.error; }
2492
+ finally { if (e_18) throw e_18.error; }
2174
2493
  }
2175
2494
  return array;
2176
2495
  });
@@ -2184,7 +2503,7 @@ class EventDestinations {
2184
2503
  .then(util.onFulfilled, util.onRejected);
2185
2504
  }
2186
2505
  _asyncList(beforeId, limit = '100') {
2187
- return __asyncGenerator(this, arguments, function* _asyncList_16() {
2506
+ return __asyncGenerator(this, arguments, function* _asyncList_18() {
2188
2507
  let nextPage = 'initial loop';
2189
2508
  let page = { limit: limit };
2190
2509
  if (beforeId) {
@@ -2239,8 +2558,8 @@ class EventSubscriptions {
2239
2558
  delete(id) {
2240
2559
  return this.httpClient
2241
2560
  .url(`/event_subscriptions/${id}`)
2242
- .delete(id)
2243
- .json(payload => util.deserializeResult(payload))
2561
+ .delete()
2562
+ .res()
2244
2563
  .then(f => f, util.onRejected);
2245
2564
  }
2246
2565
  /**
@@ -2249,7 +2568,7 @@ class EventSubscriptions {
2249
2568
  get(id) {
2250
2569
  return this.httpClient
2251
2570
  .url(`/event_subscriptions/${id}`)
2252
- .get(id)
2571
+ .get()
2253
2572
  .json(payload => util.deserializeResult(payload))
2254
2573
  .then(f => f, util.onRejected);
2255
2574
  }
@@ -2257,7 +2576,7 @@ class EventSubscriptions {
2257
2576
  * List this Account's Event Subscriptions.
2258
2577
  */
2259
2578
  list(beforeId, limit) {
2260
- var e_17, _a;
2579
+ var e_19, _a;
2261
2580
  return __awaiter(this, void 0, void 0, function* () {
2262
2581
  const array = [];
2263
2582
  try {
@@ -2266,12 +2585,12 @@ class EventSubscriptions {
2266
2585
  array.push(item);
2267
2586
  }
2268
2587
  }
2269
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
2588
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
2270
2589
  finally {
2271
2590
  try {
2272
2591
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
2273
2592
  }
2274
- finally { if (e_17) throw e_17.error; }
2593
+ finally { if (e_19) throw e_19.error; }
2275
2594
  }
2276
2595
  return array;
2277
2596
  });
@@ -2285,7 +2604,7 @@ class EventSubscriptions {
2285
2604
  .then(util.onFulfilled, util.onRejected);
2286
2605
  }
2287
2606
  _asyncList(beforeId, limit = '100') {
2288
- return __asyncGenerator(this, arguments, function* _asyncList_17() {
2607
+ return __asyncGenerator(this, arguments, function* _asyncList_19() {
2289
2608
  let nextPage = 'initial loop';
2290
2609
  let page = { limit: limit };
2291
2610
  if (beforeId) {
@@ -2341,7 +2660,7 @@ class EventSources {
2341
2660
  return this.httpClient
2342
2661
  .url(`/event_subscriptions/${arg.subscriptionId}/sources/${arg.type}`)
2343
2662
  .delete()
2344
- .json(payload => util.deserializeResult(payload))
2663
+ .res()
2345
2664
  .then(f => f, util.onRejected);
2346
2665
  }
2347
2666
  /**
@@ -2403,8 +2722,8 @@ class IPPolicies {
2403
2722
  delete(id) {
2404
2723
  return this.httpClient
2405
2724
  .url(`/ip_policies/${id}`)
2406
- .delete(id)
2407
- .json(payload => util.deserializeResult(payload))
2725
+ .delete()
2726
+ .res()
2408
2727
  .then(f => f, util.onRejected);
2409
2728
  }
2410
2729
  /**
@@ -2413,7 +2732,7 @@ class IPPolicies {
2413
2732
  get(id) {
2414
2733
  return this.httpClient
2415
2734
  .url(`/ip_policies/${id}`)
2416
- .get(id)
2735
+ .get()
2417
2736
  .json(payload => util.deserializeResult(payload))
2418
2737
  .then(f => f, util.onRejected);
2419
2738
  }
@@ -2421,7 +2740,7 @@ class IPPolicies {
2421
2740
  * List all IP policies on this account
2422
2741
  */
2423
2742
  list(beforeId, limit) {
2424
- var e_18, _a;
2743
+ var e_20, _a;
2425
2744
  return __awaiter(this, void 0, void 0, function* () {
2426
2745
  const array = [];
2427
2746
  try {
@@ -2430,12 +2749,12 @@ class IPPolicies {
2430
2749
  array.push(item);
2431
2750
  }
2432
2751
  }
2433
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
2752
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
2434
2753
  finally {
2435
2754
  try {
2436
2755
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
2437
2756
  }
2438
- finally { if (e_18) throw e_18.error; }
2757
+ finally { if (e_20) throw e_20.error; }
2439
2758
  }
2440
2759
  return array;
2441
2760
  });
@@ -2449,7 +2768,7 @@ class IPPolicies {
2449
2768
  .then(util.onFulfilled, util.onRejected);
2450
2769
  }
2451
2770
  _asyncList(beforeId, limit = '100') {
2452
- return __asyncGenerator(this, arguments, function* _asyncList_18() {
2771
+ return __asyncGenerator(this, arguments, function* _asyncList_20() {
2453
2772
  let nextPage = 'initial loop';
2454
2773
  let page = { limit: limit };
2455
2774
  if (beforeId) {
@@ -2508,8 +2827,8 @@ class IPPolicyRules {
2508
2827
  delete(id) {
2509
2828
  return this.httpClient
2510
2829
  .url(`/ip_policy_rules/${id}`)
2511
- .delete(id)
2512
- .json(payload => util.deserializeResult(payload))
2830
+ .delete()
2831
+ .res()
2513
2832
  .then(f => f, util.onRejected);
2514
2833
  }
2515
2834
  /**
@@ -2518,7 +2837,7 @@ class IPPolicyRules {
2518
2837
  get(id) {
2519
2838
  return this.httpClient
2520
2839
  .url(`/ip_policy_rules/${id}`)
2521
- .get(id)
2840
+ .get()
2522
2841
  .json(payload => util.deserializeResult(payload))
2523
2842
  .then(f => f, util.onRejected);
2524
2843
  }
@@ -2526,7 +2845,7 @@ class IPPolicyRules {
2526
2845
  * List all IP policy rules on this account
2527
2846
  */
2528
2847
  list(beforeId, limit) {
2529
- var e_19, _a;
2848
+ var e_21, _a;
2530
2849
  return __awaiter(this, void 0, void 0, function* () {
2531
2850
  const array = [];
2532
2851
  try {
@@ -2535,12 +2854,12 @@ class IPPolicyRules {
2535
2854
  array.push(item);
2536
2855
  }
2537
2856
  }
2538
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
2857
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
2539
2858
  finally {
2540
2859
  try {
2541
2860
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
2542
2861
  }
2543
- finally { if (e_19) throw e_19.error; }
2862
+ finally { if (e_21) throw e_21.error; }
2544
2863
  }
2545
2864
  return array;
2546
2865
  });
@@ -2554,7 +2873,7 @@ class IPPolicyRules {
2554
2873
  .then(util.onFulfilled, util.onRejected);
2555
2874
  }
2556
2875
  _asyncList(beforeId, limit = '100') {
2557
- return __asyncGenerator(this, arguments, function* _asyncList_19() {
2876
+ return __asyncGenerator(this, arguments, function* _asyncList_21() {
2558
2877
  let nextPage = 'initial loop';
2559
2878
  let page = { limit: limit };
2560
2879
  if (beforeId) {
@@ -2617,8 +2936,8 @@ class IPRestrictions {
2617
2936
  delete(id) {
2618
2937
  return this.httpClient
2619
2938
  .url(`/ip_restrictions/${id}`)
2620
- .delete(id)
2621
- .json(payload => util.deserializeResult(payload))
2939
+ .delete()
2940
+ .res()
2622
2941
  .then(f => f, util.onRejected);
2623
2942
  }
2624
2943
  /**
@@ -2627,7 +2946,7 @@ class IPRestrictions {
2627
2946
  get(id) {
2628
2947
  return this.httpClient
2629
2948
  .url(`/ip_restrictions/${id}`)
2630
- .get(id)
2949
+ .get()
2631
2950
  .json(payload => util.deserializeResult(payload))
2632
2951
  .then(f => f, util.onRejected);
2633
2952
  }
@@ -2635,7 +2954,7 @@ class IPRestrictions {
2635
2954
  * List all IP restrictions on this account
2636
2955
  */
2637
2956
  list(beforeId, limit) {
2638
- var e_20, _a;
2957
+ var e_22, _a;
2639
2958
  return __awaiter(this, void 0, void 0, function* () {
2640
2959
  const array = [];
2641
2960
  try {
@@ -2644,12 +2963,12 @@ class IPRestrictions {
2644
2963
  array.push(item);
2645
2964
  }
2646
2965
  }
2647
- catch (e_20_1) { e_20 = { error: e_20_1 }; }
2966
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
2648
2967
  finally {
2649
2968
  try {
2650
2969
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
2651
2970
  }
2652
- finally { if (e_20) throw e_20.error; }
2971
+ finally { if (e_22) throw e_22.error; }
2653
2972
  }
2654
2973
  return array;
2655
2974
  });
@@ -2663,7 +2982,7 @@ class IPRestrictions {
2663
2982
  .then(util.onFulfilled, util.onRejected);
2664
2983
  }
2665
2984
  _asyncList(beforeId, limit = '100') {
2666
- return __asyncGenerator(this, arguments, function* _asyncList_20() {
2985
+ return __asyncGenerator(this, arguments, function* _asyncList_22() {
2667
2986
  let nextPage = 'initial loop';
2668
2987
  let page = { limit: limit };
2669
2988
  if (beforeId) {
@@ -2723,8 +3042,8 @@ class ReservedAddrs {
2723
3042
  delete(id) {
2724
3043
  return this.httpClient
2725
3044
  .url(`/reserved_addrs/${id}`)
2726
- .delete(id)
2727
- .json(payload => util.deserializeResult(payload))
3045
+ .delete()
3046
+ .res()
2728
3047
  .then(f => f, util.onRejected);
2729
3048
  }
2730
3049
  /**
@@ -2733,7 +3052,7 @@ class ReservedAddrs {
2733
3052
  get(id) {
2734
3053
  return this.httpClient
2735
3054
  .url(`/reserved_addrs/${id}`)
2736
- .get(id)
3055
+ .get()
2737
3056
  .json(payload => util.deserializeResult(payload))
2738
3057
  .then(f => f, util.onRejected);
2739
3058
  }
@@ -2741,7 +3060,7 @@ class ReservedAddrs {
2741
3060
  * List all reserved addresses on this account.
2742
3061
  */
2743
3062
  list(beforeId, limit) {
2744
- var e_21, _a;
3063
+ var e_23, _a;
2745
3064
  return __awaiter(this, void 0, void 0, function* () {
2746
3065
  const array = [];
2747
3066
  try {
@@ -2750,12 +3069,12 @@ class ReservedAddrs {
2750
3069
  array.push(item);
2751
3070
  }
2752
3071
  }
2753
- catch (e_21_1) { e_21 = { error: e_21_1 }; }
3072
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
2754
3073
  finally {
2755
3074
  try {
2756
3075
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
2757
3076
  }
2758
- finally { if (e_21) throw e_21.error; }
3077
+ finally { if (e_23) throw e_23.error; }
2759
3078
  }
2760
3079
  return array;
2761
3080
  });
@@ -2769,7 +3088,7 @@ class ReservedAddrs {
2769
3088
  .then(util.onFulfilled, util.onRejected);
2770
3089
  }
2771
3090
  _asyncList(beforeId, limit = '100') {
2772
- return __asyncGenerator(this, arguments, function* _asyncList_21() {
3091
+ return __asyncGenerator(this, arguments, function* _asyncList_23() {
2773
3092
  let nextPage = 'initial loop';
2774
3093
  let page = { limit: limit };
2775
3094
  if (beforeId) {
@@ -2830,8 +3149,8 @@ class ReservedDomains {
2830
3149
  delete(id) {
2831
3150
  return this.httpClient
2832
3151
  .url(`/reserved_domains/${id}`)
2833
- .delete(id)
2834
- .json(payload => util.deserializeResult(payload))
3152
+ .delete()
3153
+ .res()
2835
3154
  .then(f => f, util.onRejected);
2836
3155
  }
2837
3156
  /**
@@ -2840,7 +3159,7 @@ class ReservedDomains {
2840
3159
  get(id) {
2841
3160
  return this.httpClient
2842
3161
  .url(`/reserved_domains/${id}`)
2843
- .get(id)
3162
+ .get()
2844
3163
  .json(payload => util.deserializeResult(payload))
2845
3164
  .then(f => f, util.onRejected);
2846
3165
  }
@@ -2848,7 +3167,7 @@ class ReservedDomains {
2848
3167
  * List all reserved domains on this account.
2849
3168
  */
2850
3169
  list(beforeId, limit) {
2851
- var e_22, _a;
3170
+ var e_24, _a;
2852
3171
  return __awaiter(this, void 0, void 0, function* () {
2853
3172
  const array = [];
2854
3173
  try {
@@ -2857,12 +3176,12 @@ class ReservedDomains {
2857
3176
  array.push(item);
2858
3177
  }
2859
3178
  }
2860
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
3179
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
2861
3180
  finally {
2862
3181
  try {
2863
3182
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
2864
3183
  }
2865
- finally { if (e_22) throw e_22.error; }
3184
+ finally { if (e_24) throw e_24.error; }
2866
3185
  }
2867
3186
  return array;
2868
3187
  });
@@ -2876,7 +3195,7 @@ class ReservedDomains {
2876
3195
  .then(util.onFulfilled, util.onRejected);
2877
3196
  }
2878
3197
  _asyncList(beforeId, limit = '100') {
2879
- return __asyncGenerator(this, arguments, function* _asyncList_22() {
3198
+ return __asyncGenerator(this, arguments, function* _asyncList_24() {
2880
3199
  let nextPage = 'initial loop';
2881
3200
  let page = { limit: limit };
2882
3201
  if (beforeId) {
@@ -2914,8 +3233,8 @@ class ReservedDomains {
2914
3233
  deleteCertificateManagementPolicy(id) {
2915
3234
  return this.httpClient
2916
3235
  .url(`/reserved_domains/${id}/certificate_management_policy`)
2917
- .delete(id)
2918
- .json(payload => util.deserializeResult(payload))
3236
+ .delete()
3237
+ .res()
2919
3238
  .then(f => f, util.onRejected);
2920
3239
  }
2921
3240
  /**
@@ -2924,8 +3243,8 @@ class ReservedDomains {
2924
3243
  deleteCertificate(id) {
2925
3244
  return this.httpClient
2926
3245
  .url(`/reserved_domains/${id}/certificate`)
2927
- .delete(id)
2928
- .json(payload => util.deserializeResult(payload))
3246
+ .delete()
3247
+ .res()
2929
3248
  .then(f => f, util.onRejected);
2930
3249
  }
2931
3250
  }
@@ -2955,8 +3274,8 @@ class SSHCertificateAuthorities {
2955
3274
  delete(id) {
2956
3275
  return this.httpClient
2957
3276
  .url(`/ssh_certificate_authorities/${id}`)
2958
- .delete(id)
2959
- .json(payload => util.deserializeResult(payload))
3277
+ .delete()
3278
+ .res()
2960
3279
  .then(f => f, util.onRejected);
2961
3280
  }
2962
3281
  /**
@@ -2965,7 +3284,7 @@ class SSHCertificateAuthorities {
2965
3284
  get(id) {
2966
3285
  return this.httpClient
2967
3286
  .url(`/ssh_certificate_authorities/${id}`)
2968
- .get(id)
3287
+ .get()
2969
3288
  .json(payload => util.deserializeResult(payload))
2970
3289
  .then(f => f, util.onRejected);
2971
3290
  }
@@ -2973,7 +3292,7 @@ class SSHCertificateAuthorities {
2973
3292
  * List all SSH Certificate Authorities on this account
2974
3293
  */
2975
3294
  list(beforeId, limit) {
2976
- var e_23, _a;
3295
+ var e_25, _a;
2977
3296
  return __awaiter(this, void 0, void 0, function* () {
2978
3297
  const array = [];
2979
3298
  try {
@@ -2982,12 +3301,12 @@ class SSHCertificateAuthorities {
2982
3301
  array.push(item);
2983
3302
  }
2984
3303
  }
2985
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
3304
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
2986
3305
  finally {
2987
3306
  try {
2988
3307
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
2989
3308
  }
2990
- finally { if (e_23) throw e_23.error; }
3309
+ finally { if (e_25) throw e_25.error; }
2991
3310
  }
2992
3311
  return array;
2993
3312
  });
@@ -3001,7 +3320,7 @@ class SSHCertificateAuthorities {
3001
3320
  .then(util.onFulfilled, util.onRejected);
3002
3321
  }
3003
3322
  _asyncList(beforeId, limit = '100') {
3004
- return __asyncGenerator(this, arguments, function* _asyncList_23() {
3323
+ return __asyncGenerator(this, arguments, function* _asyncList_25() {
3005
3324
  let nextPage = 'initial loop';
3006
3325
  let page = { limit: limit };
3007
3326
  if (beforeId) {
@@ -3060,8 +3379,8 @@ class SSHCredentials {
3060
3379
  delete(id) {
3061
3380
  return this.httpClient
3062
3381
  .url(`/ssh_credentials/${id}`)
3063
- .delete(id)
3064
- .json(payload => util.deserializeResult(payload))
3382
+ .delete()
3383
+ .res()
3065
3384
  .then(f => f, util.onRejected);
3066
3385
  }
3067
3386
  /**
@@ -3070,7 +3389,7 @@ class SSHCredentials {
3070
3389
  get(id) {
3071
3390
  return this.httpClient
3072
3391
  .url(`/ssh_credentials/${id}`)
3073
- .get(id)
3392
+ .get()
3074
3393
  .json(payload => util.deserializeResult(payload))
3075
3394
  .then(f => f, util.onRejected);
3076
3395
  }
@@ -3078,7 +3397,7 @@ class SSHCredentials {
3078
3397
  * List all ssh credentials on this account
3079
3398
  */
3080
3399
  list(beforeId, limit) {
3081
- var e_24, _a;
3400
+ var e_26, _a;
3082
3401
  return __awaiter(this, void 0, void 0, function* () {
3083
3402
  const array = [];
3084
3403
  try {
@@ -3087,12 +3406,12 @@ class SSHCredentials {
3087
3406
  array.push(item);
3088
3407
  }
3089
3408
  }
3090
- catch (e_24_1) { e_24 = { error: e_24_1 }; }
3409
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
3091
3410
  finally {
3092
3411
  try {
3093
3412
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
3094
3413
  }
3095
- finally { if (e_24) throw e_24.error; }
3414
+ finally { if (e_26) throw e_26.error; }
3096
3415
  }
3097
3416
  return array;
3098
3417
  });
@@ -3106,7 +3425,7 @@ class SSHCredentials {
3106
3425
  .then(util.onFulfilled, util.onRejected);
3107
3426
  }
3108
3427
  _asyncList(beforeId, limit = '100') {
3109
- return __asyncGenerator(this, arguments, function* _asyncList_24() {
3428
+ return __asyncGenerator(this, arguments, function* _asyncList_26() {
3110
3429
  let nextPage = 'initial loop';
3111
3430
  let page = { limit: limit };
3112
3431
  if (beforeId) {
@@ -3166,8 +3485,8 @@ class SSHHostCertificates {
3166
3485
  delete(id) {
3167
3486
  return this.httpClient
3168
3487
  .url(`/ssh_host_certificates/${id}`)
3169
- .delete(id)
3170
- .json(payload => util.deserializeResult(payload))
3488
+ .delete()
3489
+ .res()
3171
3490
  .then(f => f, util.onRejected);
3172
3491
  }
3173
3492
  /**
@@ -3176,7 +3495,7 @@ class SSHHostCertificates {
3176
3495
  get(id) {
3177
3496
  return this.httpClient
3178
3497
  .url(`/ssh_host_certificates/${id}`)
3179
- .get(id)
3498
+ .get()
3180
3499
  .json(payload => util.deserializeResult(payload))
3181
3500
  .then(f => f, util.onRejected);
3182
3501
  }
@@ -3184,7 +3503,7 @@ class SSHHostCertificates {
3184
3503
  * List all SSH Host Certificates issued on this account
3185
3504
  */
3186
3505
  list(beforeId, limit) {
3187
- var e_25, _a;
3506
+ var e_27, _a;
3188
3507
  return __awaiter(this, void 0, void 0, function* () {
3189
3508
  const array = [];
3190
3509
  try {
@@ -3193,12 +3512,12 @@ class SSHHostCertificates {
3193
3512
  array.push(item);
3194
3513
  }
3195
3514
  }
3196
- catch (e_25_1) { e_25 = { error: e_25_1 }; }
3515
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
3197
3516
  finally {
3198
3517
  try {
3199
3518
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
3200
3519
  }
3201
- finally { if (e_25) throw e_25.error; }
3520
+ finally { if (e_27) throw e_27.error; }
3202
3521
  }
3203
3522
  return array;
3204
3523
  });
@@ -3212,7 +3531,7 @@ class SSHHostCertificates {
3212
3531
  .then(util.onFulfilled, util.onRejected);
3213
3532
  }
3214
3533
  _asyncList(beforeId, limit = '100') {
3215
- return __asyncGenerator(this, arguments, function* _asyncList_25() {
3534
+ return __asyncGenerator(this, arguments, function* _asyncList_27() {
3216
3535
  let nextPage = 'initial loop';
3217
3536
  let page = { limit: limit };
3218
3537
  if (beforeId) {
@@ -3272,8 +3591,8 @@ class SSHUserCertificates {
3272
3591
  delete(id) {
3273
3592
  return this.httpClient
3274
3593
  .url(`/ssh_user_certificates/${id}`)
3275
- .delete(id)
3276
- .json(payload => util.deserializeResult(payload))
3594
+ .delete()
3595
+ .res()
3277
3596
  .then(f => f, util.onRejected);
3278
3597
  }
3279
3598
  /**
@@ -3282,7 +3601,7 @@ class SSHUserCertificates {
3282
3601
  get(id) {
3283
3602
  return this.httpClient
3284
3603
  .url(`/ssh_user_certificates/${id}`)
3285
- .get(id)
3604
+ .get()
3286
3605
  .json(payload => util.deserializeResult(payload))
3287
3606
  .then(f => f, util.onRejected);
3288
3607
  }
@@ -3290,7 +3609,7 @@ class SSHUserCertificates {
3290
3609
  * List all SSH User Certificates issued on this account
3291
3610
  */
3292
3611
  list(beforeId, limit) {
3293
- var e_26, _a;
3612
+ var e_28, _a;
3294
3613
  return __awaiter(this, void 0, void 0, function* () {
3295
3614
  const array = [];
3296
3615
  try {
@@ -3299,12 +3618,12 @@ class SSHUserCertificates {
3299
3618
  array.push(item);
3300
3619
  }
3301
3620
  }
3302
- catch (e_26_1) { e_26 = { error: e_26_1 }; }
3621
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
3303
3622
  finally {
3304
3623
  try {
3305
3624
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
3306
3625
  }
3307
- finally { if (e_26) throw e_26.error; }
3626
+ finally { if (e_28) throw e_28.error; }
3308
3627
  }
3309
3628
  return array;
3310
3629
  });
@@ -3318,7 +3637,7 @@ class SSHUserCertificates {
3318
3637
  .then(util.onFulfilled, util.onRejected);
3319
3638
  }
3320
3639
  _asyncList(beforeId, limit = '100') {
3321
- return __asyncGenerator(this, arguments, function* _asyncList_26() {
3640
+ return __asyncGenerator(this, arguments, function* _asyncList_28() {
3322
3641
  let nextPage = 'initial loop';
3323
3642
  let page = { limit: limit };
3324
3643
  if (beforeId) {
@@ -3380,8 +3699,8 @@ class TLSCertificates {
3380
3699
  delete(id) {
3381
3700
  return this.httpClient
3382
3701
  .url(`/tls_certificates/${id}`)
3383
- .delete(id)
3384
- .json(payload => util.deserializeResult(payload))
3702
+ .delete()
3703
+ .res()
3385
3704
  .then(f => f, util.onRejected);
3386
3705
  }
3387
3706
  /**
@@ -3390,7 +3709,7 @@ class TLSCertificates {
3390
3709
  get(id) {
3391
3710
  return this.httpClient
3392
3711
  .url(`/tls_certificates/${id}`)
3393
- .get(id)
3712
+ .get()
3394
3713
  .json(payload => util.deserializeResult(payload))
3395
3714
  .then(f => f, util.onRejected);
3396
3715
  }
@@ -3398,7 +3717,7 @@ class TLSCertificates {
3398
3717
  * List all TLS certificates on this account
3399
3718
  */
3400
3719
  list(beforeId, limit) {
3401
- var e_27, _a;
3720
+ var e_29, _a;
3402
3721
  return __awaiter(this, void 0, void 0, function* () {
3403
3722
  const array = [];
3404
3723
  try {
@@ -3407,12 +3726,12 @@ class TLSCertificates {
3407
3726
  array.push(item);
3408
3727
  }
3409
3728
  }
3410
- catch (e_27_1) { e_27 = { error: e_27_1 }; }
3729
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
3411
3730
  finally {
3412
3731
  try {
3413
3732
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
3414
3733
  }
3415
- finally { if (e_27) throw e_27.error; }
3734
+ finally { if (e_29) throw e_29.error; }
3416
3735
  }
3417
3736
  return array;
3418
3737
  });
@@ -3426,7 +3745,7 @@ class TLSCertificates {
3426
3745
  .then(util.onFulfilled, util.onRejected);
3427
3746
  }
3428
3747
  _asyncList(beforeId, limit = '100') {
3429
- return __asyncGenerator(this, arguments, function* _asyncList_27() {
3748
+ return __asyncGenerator(this, arguments, function* _asyncList_29() {
3430
3749
  let nextPage = 'initial loop';
3431
3750
  let page = { limit: limit };
3432
3751
  if (beforeId) {
@@ -3473,7 +3792,7 @@ class Tunnels {
3473
3792
  * List all online tunnels currently running on the account.
3474
3793
  */
3475
3794
  list(beforeId, limit) {
3476
- var e_28, _a;
3795
+ var e_30, _a;
3477
3796
  return __awaiter(this, void 0, void 0, function* () {
3478
3797
  const array = [];
3479
3798
  try {
@@ -3482,12 +3801,12 @@ class Tunnels {
3482
3801
  array.push(item);
3483
3802
  }
3484
3803
  }
3485
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
3804
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
3486
3805
  finally {
3487
3806
  try {
3488
3807
  if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
3489
3808
  }
3490
- finally { if (e_28) throw e_28.error; }
3809
+ finally { if (e_30) throw e_30.error; }
3491
3810
  }
3492
3811
  return array;
3493
3812
  });
@@ -3501,7 +3820,7 @@ class Tunnels {
3501
3820
  .then(util.onFulfilled, util.onRejected);
3502
3821
  }
3503
3822
  _asyncList(beforeId, limit = '100') {
3504
- return __asyncGenerator(this, arguments, function* _asyncList_28() {
3823
+ return __asyncGenerator(this, arguments, function* _asyncList_30() {
3505
3824
  let nextPage = 'initial loop';
3506
3825
  let page = { limit: limit };
3507
3826
  if (beforeId) {
@@ -3529,7 +3848,7 @@ class Tunnels {
3529
3848
  get(id) {
3530
3849
  return this.httpClient
3531
3850
  .url(`/tunnels/${id}`)
3532
- .get(id)
3851
+ .get()
3533
3852
  .json(payload => util.deserializeResult(payload))
3534
3853
  .then(f => f, util.onRejected);
3535
3854
  }