@ngrok/ngrok-api 0.0.9 → 0.3.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 (218) hide show
  1. package/.eslintrc.js +4 -1
  2. package/CHANGELOG.md +34 -0
  3. package/README.md +148 -2
  4. package/docs/CNAME +1 -0
  5. package/docs/assets/css/main.css +2660 -0
  6. package/docs/assets/images/icons.png +0 -0
  7. package/docs/assets/images/icons@2x.png +0 -0
  8. package/docs/assets/images/widgets.png +0 -0
  9. package/docs/assets/images/widgets@2x.png +0 -0
  10. package/docs/assets/js/main.js +248 -0
  11. package/docs/assets/js/search.js +1 -0
  12. package/docs/classes/client.Ngrok.html +681 -0
  13. package/docs/classes/services.APIKeys.html +453 -0
  14. package/docs/classes/services.AbuseReports.html +360 -0
  15. package/docs/classes/services.AgentIngresses.html +442 -0
  16. package/docs/classes/services.CertificateAuthorities.html +453 -0
  17. package/docs/classes/services.Credentials.html +452 -0
  18. package/docs/classes/services.EndpointCircuitBreakerModule.html +369 -0
  19. package/docs/classes/services.EndpointCompressionModule.html +369 -0
  20. package/docs/classes/services.EndpointConfigurations.html +451 -0
  21. package/docs/classes/services.EndpointIPPolicyModule.html +369 -0
  22. package/docs/classes/services.EndpointLoggingModule.html +369 -0
  23. package/docs/classes/services.EndpointMutualTLSModule.html +369 -0
  24. package/docs/classes/services.EndpointOAuthModule.html +369 -0
  25. package/docs/classes/services.EndpointOIDCModule.html +369 -0
  26. package/docs/classes/services.EndpointRequestHeadersModule.html +369 -0
  27. package/docs/classes/services.EndpointResponseHeadersModule.html +369 -0
  28. package/docs/classes/services.EndpointSAMLModule.html +369 -0
  29. package/docs/classes/services.EndpointTLSTerminationModule.html +369 -0
  30. package/docs/classes/services.EndpointWebhookValidationModule.html +369 -0
  31. package/docs/classes/services.EventDestinations.html +442 -0
  32. package/docs/classes/services.EventSources.html +448 -0
  33. package/docs/classes/services.EventStreams.html +442 -0
  34. package/docs/classes/services.EventSubscriptions.html +442 -0
  35. package/docs/classes/services.IPPolicies.html +452 -0
  36. package/docs/classes/services.IPPolicyRules.html +450 -0
  37. package/docs/classes/services.IPRestrictions.html +454 -0
  38. package/docs/classes/services.ReservedAddrs.html +483 -0
  39. package/docs/classes/services.ReservedDomains.html +580 -0
  40. package/docs/classes/services.SSHCertificateAuthorities.html +450 -0
  41. package/docs/classes/services.SSHCredentials.html +450 -0
  42. package/docs/classes/services.SSHHostCertificates.html +451 -0
  43. package/docs/classes/services.SSHUserCertificates.html +451 -0
  44. package/docs/classes/services.TLSCertificates.html +453 -0
  45. package/docs/classes/services.TunnelSessions.html +451 -0
  46. package/docs/classes/services.Tunnels.html +322 -0
  47. package/docs/index.html +239 -0
  48. package/docs/interfaces/client.NgrokConfig.html +179 -0
  49. package/docs/interfaces/datatypes.APIKey.html +262 -0
  50. package/docs/interfaces/datatypes.APIKeyCreate.html +186 -0
  51. package/docs/interfaces/datatypes.APIKeyList.html +205 -0
  52. package/docs/interfaces/datatypes.APIKeyUpdate.html +200 -0
  53. package/docs/interfaces/datatypes.AWSAuth.html +186 -0
  54. package/docs/interfaces/datatypes.AWSCredentials.html +186 -0
  55. package/docs/interfaces/datatypes.AWSRole.html +167 -0
  56. package/docs/interfaces/datatypes.AbuseReport.html +281 -0
  57. package/docs/interfaces/datatypes.AbuseReportCreate.html +186 -0
  58. package/docs/interfaces/datatypes.AbuseReportHostname.html +186 -0
  59. package/docs/interfaces/datatypes.AgentIngress.html +300 -0
  60. package/docs/interfaces/datatypes.AgentIngressCreate.html +205 -0
  61. package/docs/interfaces/datatypes.AgentIngressList.html +205 -0
  62. package/docs/interfaces/datatypes.AgentIngressUpdate.html +200 -0
  63. package/docs/interfaces/datatypes.CertificateAuthority.html +357 -0
  64. package/docs/interfaces/datatypes.CertificateAuthorityCreate.html +205 -0
  65. package/docs/interfaces/datatypes.CertificateAuthorityList.html +205 -0
  66. package/docs/interfaces/datatypes.CertificateAuthorityUpdate.html +200 -0
  67. package/docs/interfaces/datatypes.Credential.html +281 -0
  68. package/docs/interfaces/datatypes.CredentialCreate.html +205 -0
  69. package/docs/interfaces/datatypes.CredentialList.html +205 -0
  70. package/docs/interfaces/datatypes.CredentialUpdate.html +219 -0
  71. package/docs/interfaces/datatypes.Empty.html +130 -0
  72. package/docs/interfaces/datatypes.EndpointCircuitBreaker.html +262 -0
  73. package/docs/interfaces/datatypes.EndpointCircuitBreakerReplace.html +176 -0
  74. package/docs/interfaces/datatypes.EndpointCompression.html +167 -0
  75. package/docs/interfaces/datatypes.EndpointCompressionReplace.html +176 -0
  76. package/docs/interfaces/datatypes.EndpointConfiguration.html +490 -0
  77. package/docs/interfaces/datatypes.EndpointConfigurationCreate.html +433 -0
  78. package/docs/interfaces/datatypes.EndpointConfigurationList.html +205 -0
  79. package/docs/interfaces/datatypes.EndpointConfigurationUpdate.html +433 -0
  80. package/docs/interfaces/datatypes.EndpointIPPolicy.html +181 -0
  81. package/docs/interfaces/datatypes.EndpointIPPolicyMutate.html +186 -0
  82. package/docs/interfaces/datatypes.EndpointIPPolicyReplace.html +176 -0
  83. package/docs/interfaces/datatypes.EndpointLogging.html +186 -0
  84. package/docs/interfaces/datatypes.EndpointLoggingMutate.html +186 -0
  85. package/docs/interfaces/datatypes.EndpointLoggingReplace.html +176 -0
  86. package/docs/interfaces/datatypes.EndpointMutualTLS.html +186 -0
  87. package/docs/interfaces/datatypes.EndpointMutualTLSMutate.html +186 -0
  88. package/docs/interfaces/datatypes.EndpointMutualTLSReplace.html +176 -0
  89. package/docs/interfaces/datatypes.EndpointOAuth.html +281 -0
  90. package/docs/interfaces/datatypes.EndpointOAuthFacebook.html +243 -0
  91. package/docs/interfaces/datatypes.EndpointOAuthGitHub.html +281 -0
  92. package/docs/interfaces/datatypes.EndpointOAuthGoogle.html +243 -0
  93. package/docs/interfaces/datatypes.EndpointOAuthMicrosoft.html +243 -0
  94. package/docs/interfaces/datatypes.EndpointOAuthProvider.html +224 -0
  95. package/docs/interfaces/datatypes.EndpointOAuthReplace.html +176 -0
  96. package/docs/interfaces/datatypes.EndpointOIDC.html +319 -0
  97. package/docs/interfaces/datatypes.EndpointOIDCReplace.html +176 -0
  98. package/docs/interfaces/datatypes.EndpointRequestHeaders.html +205 -0
  99. package/docs/interfaces/datatypes.EndpointRequestHeadersReplace.html +176 -0
  100. package/docs/interfaces/datatypes.EndpointResponseHeaders.html +205 -0
  101. package/docs/interfaces/datatypes.EndpointResponseHeadersReplace.html +176 -0
  102. package/docs/interfaces/datatypes.EndpointSAML.html +433 -0
  103. package/docs/interfaces/datatypes.EndpointSAMLMutate.html +338 -0
  104. package/docs/interfaces/datatypes.EndpointSAMLReplace.html +176 -0
  105. package/docs/interfaces/datatypes.EndpointTLSTermination.html +205 -0
  106. package/docs/interfaces/datatypes.EndpointTLSTerminationReplace.html +176 -0
  107. package/docs/interfaces/datatypes.EndpointWebhookValidation.html +205 -0
  108. package/docs/interfaces/datatypes.EndpointWebhookValidationReplace.html +176 -0
  109. package/docs/interfaces/datatypes.Error.html +204 -0
  110. package/docs/interfaces/datatypes.EventDestination.html +281 -0
  111. package/docs/interfaces/datatypes.EventDestinationCreate.html +224 -0
  112. package/docs/interfaces/datatypes.EventDestinationList.html +205 -0
  113. package/docs/interfaces/datatypes.EventDestinationUpdate.html +243 -0
  114. package/docs/interfaces/datatypes.EventSource.html +186 -0
  115. package/docs/interfaces/datatypes.EventSourceCreate.html +186 -0
  116. package/docs/interfaces/datatypes.EventSourceItem.html +193 -0
  117. package/docs/interfaces/datatypes.EventSourceList.html +186 -0
  118. package/docs/interfaces/datatypes.EventSourcePaging.html +174 -0
  119. package/docs/interfaces/datatypes.EventSourceReplace.html +167 -0
  120. package/docs/interfaces/datatypes.EventSourceUpdate.html +186 -0
  121. package/docs/interfaces/datatypes.EventStream.html +319 -0
  122. package/docs/interfaces/datatypes.EventStreamCreate.html +262 -0
  123. package/docs/interfaces/datatypes.EventStreamList.html +205 -0
  124. package/docs/interfaces/datatypes.EventStreamUpdate.html +262 -0
  125. package/docs/interfaces/datatypes.EventSubscription.html +281 -0
  126. package/docs/interfaces/datatypes.EventSubscriptionCreate.html +224 -0
  127. package/docs/interfaces/datatypes.EventSubscriptionList.html +205 -0
  128. package/docs/interfaces/datatypes.EventSubscriptionUpdate.html +243 -0
  129. package/docs/interfaces/datatypes.EventTarget.html +205 -0
  130. package/docs/interfaces/datatypes.EventTargetCloudwatchLogs.html +186 -0
  131. package/docs/interfaces/datatypes.EventTargetFirehose.html +186 -0
  132. package/docs/interfaces/datatypes.EventTargetKinesis.html +186 -0
  133. package/docs/interfaces/datatypes.IPPolicy.html +262 -0
  134. package/docs/interfaces/datatypes.IPPolicyCreate.html +205 -0
  135. package/docs/interfaces/datatypes.IPPolicyList.html +205 -0
  136. package/docs/interfaces/datatypes.IPPolicyRule.html +281 -0
  137. package/docs/interfaces/datatypes.IPPolicyRuleCreate.html +224 -0
  138. package/docs/interfaces/datatypes.IPPolicyRuleList.html +205 -0
  139. package/docs/interfaces/datatypes.IPPolicyRuleUpdate.html +219 -0
  140. package/docs/interfaces/datatypes.IPPolicyUpdate.html +200 -0
  141. package/docs/interfaces/datatypes.IPRestriction.html +300 -0
  142. package/docs/interfaces/datatypes.IPRestrictionCreate.html +243 -0
  143. package/docs/interfaces/datatypes.IPRestrictionList.html +205 -0
  144. package/docs/interfaces/datatypes.IPRestrictionUpdate.html +238 -0
  145. package/docs/interfaces/datatypes.Item.html +167 -0
  146. package/docs/interfaces/datatypes.Paging.html +176 -0
  147. package/docs/interfaces/datatypes.Ref.html +186 -0
  148. package/docs/interfaces/datatypes.ReservedAddr.html +300 -0
  149. package/docs/interfaces/datatypes.ReservedAddrCreate.html +224 -0
  150. package/docs/interfaces/datatypes.ReservedAddrList.html +205 -0
  151. package/docs/interfaces/datatypes.ReservedAddrUpdate.html +219 -0
  152. package/docs/interfaces/datatypes.ReservedDomain.html +414 -0
  153. package/docs/interfaces/datatypes.ReservedDomainCertJob.html +224 -0
  154. package/docs/interfaces/datatypes.ReservedDomainCertPolicy.html +186 -0
  155. package/docs/interfaces/datatypes.ReservedDomainCertStatus.html +186 -0
  156. package/docs/interfaces/datatypes.ReservedDomainCreate.html +300 -0
  157. package/docs/interfaces/datatypes.ReservedDomainList.html +205 -0
  158. package/docs/interfaces/datatypes.ReservedDomainUpdate.html +276 -0
  159. package/docs/interfaces/datatypes.SSHCertificateAuthority.html +281 -0
  160. package/docs/interfaces/datatypes.SSHCertificateAuthorityCreate.html +243 -0
  161. package/docs/interfaces/datatypes.SSHCertificateAuthorityList.html +205 -0
  162. package/docs/interfaces/datatypes.SSHCertificateAuthorityUpdate.html +200 -0
  163. package/docs/interfaces/datatypes.SSHCredential.html +281 -0
  164. package/docs/interfaces/datatypes.SSHCredentialCreate.html +224 -0
  165. package/docs/interfaces/datatypes.SSHCredentialList.html +205 -0
  166. package/docs/interfaces/datatypes.SSHCredentialUpdate.html +219 -0
  167. package/docs/interfaces/datatypes.SSHHostCertificate.html +376 -0
  168. package/docs/interfaces/datatypes.SSHHostCertificateCreate.html +281 -0
  169. package/docs/interfaces/datatypes.SSHHostCertificateList.html +205 -0
  170. package/docs/interfaces/datatypes.SSHHostCertificateUpdate.html +200 -0
  171. package/docs/interfaces/datatypes.SSHUserCertificate.html +414 -0
  172. package/docs/interfaces/datatypes.SSHUserCertificateCreate.html +319 -0
  173. package/docs/interfaces/datatypes.SSHUserCertificateList.html +205 -0
  174. package/docs/interfaces/datatypes.SSHUserCertificateUpdate.html +200 -0
  175. package/docs/interfaces/datatypes.TLSCertificate.html +547 -0
  176. package/docs/interfaces/datatypes.TLSCertificateCreate.html +224 -0
  177. package/docs/interfaces/datatypes.TLSCertificateList.html +205 -0
  178. package/docs/interfaces/datatypes.TLSCertificateSANs.html +186 -0
  179. package/docs/interfaces/datatypes.TLSCertificateUpdate.html +200 -0
  180. package/docs/interfaces/datatypes.Tunnel.html +281 -0
  181. package/docs/interfaces/datatypes.TunnelList.html +205 -0
  182. package/docs/interfaces/datatypes.TunnelSession.html +338 -0
  183. package/docs/interfaces/datatypes.TunnelSessionList.html +205 -0
  184. package/docs/interfaces/datatypes.TunnelSessionsUpdate.html +162 -0
  185. package/docs/modules/client.html +137 -0
  186. package/docs/modules/datatypes.html +668 -0
  187. package/docs/modules/services.html +260 -0
  188. package/docs/modules.html +119 -0
  189. package/lib/client.d.ts +145 -0
  190. package/lib/client.d.ts.map +1 -0
  191. package/lib/client.js +102 -0
  192. package/lib/client.js.map +1 -0
  193. package/lib/{types.d.ts → datatypes.d.ts} +620 -816
  194. package/lib/datatypes.d.ts.map +1 -0
  195. package/lib/{types.js → datatypes.js} +1 -1
  196. package/lib/datatypes.js.map +1 -0
  197. package/lib/index.d.ts +3 -314
  198. package/lib/index.d.ts.map +1 -0
  199. package/lib/index.js +25 -887
  200. package/lib/index.js.map +1 -1
  201. package/lib/services.d.ts +773 -0
  202. package/lib/services.d.ts.map +1 -0
  203. package/lib/services.js +2761 -0
  204. package/lib/services.js.map +1 -0
  205. package/lib/util.d.ts +5 -0
  206. package/lib/util.d.ts.map +1 -0
  207. package/lib/util.js +53 -0
  208. package/lib/util.js.map +1 -0
  209. package/package.json +12 -3
  210. package/src/client.ts +265 -0
  211. package/src/{types.ts → datatypes.ts} +648 -869
  212. package/src/index.ts +2 -616
  213. package/src/services.ts +2560 -0
  214. package/src/util.ts +48 -0
  215. package/test/apikey.test.js +44 -30
  216. package/test/endpointConfigurations.test.js +38 -34
  217. package/tsconfig.json +17 -7
  218. package/lib/types.js.map +0 -1
@@ -0,0 +1,773 @@
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
+ * Certificate Authorities are x509 certificates that are used to sign other
83
+ x509 certificates. Attach a Certificate Authority to the Mutual TLS module
84
+ to verify that the TLS certificate presented by a client has been signed by
85
+ this CA. Certificate Authorities are used only for mTLS validation only and
86
+ thus a private key is not included in the resource.
87
+ */
88
+ export declare class CertificateAuthorities {
89
+ private httpClient;
90
+ /** Do not construct this object directly, use the <code>certificateAuthorities</code> property of an <code>Ngrok</code> client object instead. */
91
+ constructor(httpClient: Wretcher);
92
+ /**
93
+ * Upload a new Certificate Authority
94
+ */
95
+ create(arg: datatypes.CertificateAuthorityCreate): Promise<datatypes.CertificateAuthority>;
96
+ /**
97
+ * Delete a Certificate Authority
98
+ */
99
+ delete(arg: datatypes.Item): Promise<void>;
100
+ /**
101
+ * Get detailed information about a certficate authority
102
+ */
103
+ get(arg: datatypes.Item): Promise<datatypes.CertificateAuthority>;
104
+ /**
105
+ * List all Certificate Authority on this account
106
+ */
107
+ list(): Promise<Array<datatypes.CertificateAuthority>>;
108
+ private _pagedList;
109
+ private _asyncList;
110
+ /**
111
+ * Update attributes of a Certificate Authority by ID
112
+ */
113
+ update(arg: datatypes.CertificateAuthorityUpdate): Promise<datatypes.CertificateAuthority>;
114
+ }
115
+ /**
116
+ * Tunnel Credentials are ngrok agent authtokens. They authorize the ngrok
117
+ agent to connect the ngrok service as your account. They are installed with
118
+ the `ngrok authtoken` command or by specifying it in the `ngrok.yml`
119
+ configuration file with the `authtoken` property.
120
+ */
121
+ export declare class Credentials {
122
+ private httpClient;
123
+ /** Do not construct this object directly, use the <code>credentials</code> property of an <code>Ngrok</code> client object instead. */
124
+ constructor(httpClient: Wretcher);
125
+ /**
126
+ * 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.
127
+ */
128
+ create(arg: datatypes.CredentialCreate): Promise<datatypes.Credential>;
129
+ /**
130
+ * Delete a tunnel authtoken credential by ID
131
+ */
132
+ delete(arg: datatypes.Item): Promise<void>;
133
+ /**
134
+ * Get detailed information about a tunnel authtoken credential
135
+ */
136
+ get(arg: datatypes.Item): Promise<datatypes.Credential>;
137
+ /**
138
+ * List all tunnel authtoken credentials on this account
139
+ */
140
+ list(): Promise<Array<datatypes.Credential>>;
141
+ private _pagedList;
142
+ private _asyncList;
143
+ /**
144
+ * Update attributes of an tunnel authtoken credential by ID
145
+ */
146
+ update(arg: datatypes.CredentialUpdate): Promise<datatypes.Credential>;
147
+ }
148
+ /**
149
+ * Endpoint Configurations are a reusable group of modules that encapsulate how
150
+ traffic to a domain or address is handled. Endpoint configurations are only
151
+ applied to Domains and TCP Addresses they have been attached to.
152
+ */
153
+ export declare class EndpointConfigurations {
154
+ private httpClient;
155
+ /** Do not construct this object directly, use the <code>endpointConfigurations</code> property of an <code>Ngrok</code> client object instead. */
156
+ constructor(httpClient: Wretcher);
157
+ /**
158
+ * Create a new endpoint configuration
159
+ */
160
+ create(arg: datatypes.EndpointConfigurationCreate): Promise<datatypes.EndpointConfiguration>;
161
+ /**
162
+ * Delete an endpoint configuration. This operation will fail if the endpoint configuration is still referenced by any reserved domain or reserved address.
163
+ */
164
+ delete(arg: datatypes.Item): Promise<void>;
165
+ /**
166
+ * Returns detailed information about an endpoint configuration
167
+ */
168
+ get(arg: datatypes.Item): Promise<datatypes.EndpointConfiguration>;
169
+ /**
170
+ * Returns a list of all endpoint configurations on this account
171
+ */
172
+ list(): Promise<Array<datatypes.EndpointConfiguration>>;
173
+ private _pagedList;
174
+ private _asyncList;
175
+ /**
176
+ * Updates an endpoint configuration. 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.
177
+ */
178
+ update(arg: datatypes.EndpointConfigurationUpdate): Promise<datatypes.EndpointConfiguration>;
179
+ }
180
+ export declare class EventStreams {
181
+ private httpClient;
182
+ /** Do not construct this object directly, use the <code>eventStreams</code> property of an <code>Ngrok</code> client object instead. */
183
+ constructor(httpClient: Wretcher);
184
+ /**
185
+ * Create a new Event Stream. It will not apply to anything until you associate it with one or more Endpoint Configs.
186
+ */
187
+ create(arg: datatypes.EventStreamCreate): Promise<datatypes.EventStream>;
188
+ /**
189
+ * Delete an Event Stream. Associated Event Destinations will be preserved.
190
+ */
191
+ delete(arg: datatypes.Item): Promise<void>;
192
+ /**
193
+ * Get detailed information about an Event Stream by ID.
194
+ */
195
+ get(arg: datatypes.Item): Promise<datatypes.EventStream>;
196
+ /**
197
+ * List all Event Streams available on this account.
198
+ */
199
+ list(): Promise<Array<datatypes.EventStream>>;
200
+ private _pagedList;
201
+ private _asyncList;
202
+ /**
203
+ * Update attributes of an Event Stream by ID.
204
+ */
205
+ update(arg: datatypes.EventStreamUpdate): Promise<datatypes.EventStream>;
206
+ }
207
+ export declare class EventDestinations {
208
+ private httpClient;
209
+ /** Do not construct this object directly, use the <code>eventDestinations</code> property of an <code>Ngrok</code> client object instead. */
210
+ constructor(httpClient: Wretcher);
211
+ /**
212
+ * 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.
213
+ */
214
+ create(arg: datatypes.EventDestinationCreate): Promise<datatypes.EventDestination>;
215
+ /**
216
+ * Delete an Event Destination. If the Event Destination is still referenced by an Event Stream, this will throw an error until that Event Stream has removed that reference.
217
+ */
218
+ delete(arg: datatypes.Item): Promise<void>;
219
+ /**
220
+ * Get detailed information about an Event Destination by ID.
221
+ */
222
+ get(arg: datatypes.Item): Promise<datatypes.EventDestination>;
223
+ /**
224
+ * List all Event Destinations on this account.
225
+ */
226
+ list(): Promise<Array<datatypes.EventDestination>>;
227
+ private _pagedList;
228
+ private _asyncList;
229
+ /**
230
+ * Update attributes of an Event Destination.
231
+ */
232
+ update(arg: datatypes.EventDestinationUpdate): Promise<datatypes.EventDestination>;
233
+ }
234
+ export declare class EventSubscriptions {
235
+ private httpClient;
236
+ /** Do not construct this object directly, use the <code>eventSubscriptions</code> property of an <code>Ngrok</code> client object instead. */
237
+ constructor(httpClient: Wretcher);
238
+ /**
239
+ * Create an Event Subscription.
240
+ */
241
+ create(arg: datatypes.EventSubscriptionCreate): Promise<datatypes.EventSubscription>;
242
+ /**
243
+ * Delete an Event Subscription.
244
+ */
245
+ delete(arg: datatypes.Item): Promise<void>;
246
+ /**
247
+ * Get an Event Subscription by ID.
248
+ */
249
+ get(arg: datatypes.Item): Promise<datatypes.EventSubscription>;
250
+ /**
251
+ * List this Account's Event Subscriptions.
252
+ */
253
+ list(): Promise<Array<datatypes.EventSubscription>>;
254
+ private _pagedList;
255
+ private _asyncList;
256
+ /**
257
+ * Update an Event Subscription.
258
+ */
259
+ update(arg: datatypes.EventSubscriptionUpdate): Promise<datatypes.EventSubscription>;
260
+ }
261
+ export declare class EventSources {
262
+ private httpClient;
263
+ /** Do not construct this object directly, use the <code>eventSources</code> property of an <code>Ngrok</code> client object instead. */
264
+ constructor(httpClient: Wretcher);
265
+ /**
266
+ * Add an additional type for which this event subscription will trigger
267
+ */
268
+ create(arg: datatypes.EventSourceCreate): Promise<datatypes.EventSource>;
269
+ /**
270
+ * Remove a type for which this event subscription will trigger
271
+ */
272
+ delete(arg: datatypes.EventSourceItem): Promise<void>;
273
+ /**
274
+ * Get the details for a given type that triggers for the given event subscription
275
+ */
276
+ get(arg: datatypes.EventSourceItem): Promise<datatypes.EventSource>;
277
+ /**
278
+ * List the types for which this event subscription will trigger
279
+ */
280
+ list(arg: datatypes.EventSourcePaging): Promise<datatypes.EventSourceList>;
281
+ /**
282
+ * Update the type for which this event subscription will trigger
283
+ */
284
+ update(arg: datatypes.EventSourceUpdate): Promise<datatypes.EventSource>;
285
+ }
286
+ /**
287
+ * IP Policies are reusable groups of CIDR ranges with an `allow` or `deny`
288
+ action. They can be attached to endpoints via the Endpoint Configuration IP
289
+ Policy module. They can also be used with IP Restrictions to control source
290
+ IP ranges that can start tunnel sessions and connect to the API and dashboard.
291
+ */
292
+ export declare class IPPolicies {
293
+ private httpClient;
294
+ /** Do not construct this object directly, use the <code>ipPolicies</code> property of an <code>Ngrok</code> client object instead. */
295
+ constructor(httpClient: Wretcher);
296
+ /**
297
+ * 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.
298
+ */
299
+ create(arg: datatypes.IPPolicyCreate): Promise<datatypes.IPPolicy>;
300
+ /**
301
+ * 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.
302
+ */
303
+ delete(arg: datatypes.Item): Promise<void>;
304
+ /**
305
+ * Get detailed information about an IP policy by ID.
306
+ */
307
+ get(arg: datatypes.Item): Promise<datatypes.IPPolicy>;
308
+ /**
309
+ * List all IP policies on this account
310
+ */
311
+ list(): Promise<Array<datatypes.IPPolicy>>;
312
+ private _pagedList;
313
+ private _asyncList;
314
+ /**
315
+ * Update attributes of an IP policy by ID
316
+ */
317
+ update(arg: datatypes.IPPolicyUpdate): Promise<datatypes.IPPolicy>;
318
+ }
319
+ /**
320
+ * IP Policy Rules are the IPv4 or IPv6 CIDRs entries that
321
+ make up an IP Policy.
322
+ */
323
+ export declare class IPPolicyRules {
324
+ private httpClient;
325
+ /** Do not construct this object directly, use the <code>ipPolicyRules</code> property of an <code>Ngrok</code> client object instead. */
326
+ constructor(httpClient: Wretcher);
327
+ /**
328
+ * Create a new IP policy rule attached to an IP Policy.
329
+ */
330
+ create(arg: datatypes.IPPolicyRuleCreate): Promise<datatypes.IPPolicyRule>;
331
+ /**
332
+ * Delete an IP policy rule.
333
+ */
334
+ delete(arg: datatypes.Item): Promise<void>;
335
+ /**
336
+ * Get detailed information about an IP policy rule by ID.
337
+ */
338
+ get(arg: datatypes.Item): Promise<datatypes.IPPolicyRule>;
339
+ /**
340
+ * List all IP policy rules on this account
341
+ */
342
+ list(): Promise<Array<datatypes.IPPolicyRule>>;
343
+ private _pagedList;
344
+ private _asyncList;
345
+ /**
346
+ * Update attributes of an IP policy rule by ID
347
+ */
348
+ update(arg: datatypes.IPPolicyRuleUpdate): Promise<datatypes.IPPolicyRule>;
349
+ }
350
+ /**
351
+ * An IP restriction is a restriction placed on the CIDRs that are allowed to
352
+ initate traffic to a specific aspect of your ngrok account. An IP
353
+ restriction has a type which defines the ingress it applies to. IP
354
+ restrictions can be used to enforce the source IPs that can make API
355
+ requests, log in to the dashboard, start ngrok agents, and connect to your
356
+ public-facing endpoints.
357
+ */
358
+ export declare class IPRestrictions {
359
+ private httpClient;
360
+ /** Do not construct this object directly, use the <code>ipRestrictions</code> property of an <code>Ngrok</code> client object instead. */
361
+ constructor(httpClient: Wretcher);
362
+ /**
363
+ * Create a new IP restriction
364
+ */
365
+ create(arg: datatypes.IPRestrictionCreate): Promise<datatypes.IPRestriction>;
366
+ /**
367
+ * Delete an IP restriction
368
+ */
369
+ delete(arg: datatypes.Item): Promise<void>;
370
+ /**
371
+ * Get detailed information about an IP restriction
372
+ */
373
+ get(arg: datatypes.Item): Promise<datatypes.IPRestriction>;
374
+ /**
375
+ * List all IP restrictions on this account
376
+ */
377
+ list(): Promise<Array<datatypes.IPRestriction>>;
378
+ private _pagedList;
379
+ private _asyncList;
380
+ /**
381
+ * Update attributes of an IP restriction by ID
382
+ */
383
+ update(arg: datatypes.IPRestrictionUpdate): Promise<datatypes.IPRestriction>;
384
+ }
385
+ export declare class EndpointLoggingModule {
386
+ private httpClient;
387
+ /** Do not construct this object directly, use the <code>endpointLoggingModule</code> property of an <code>Ngrok</code> client object instead. */
388
+ constructor(httpClient: Wretcher);
389
+ replace(arg: datatypes.EndpointLoggingReplace): Promise<datatypes.EndpointLogging>;
390
+ get(arg: datatypes.Item): Promise<datatypes.EndpointLogging>;
391
+ delete(arg: datatypes.Item): Promise<void>;
392
+ }
393
+ export declare class EndpointCircuitBreakerModule {
394
+ private httpClient;
395
+ /** Do not construct this object directly, use the <code>endpointCircuitBreakerModule</code> property of an <code>Ngrok</code> client object instead. */
396
+ constructor(httpClient: Wretcher);
397
+ replace(arg: datatypes.EndpointCircuitBreakerReplace): Promise<datatypes.EndpointCircuitBreaker>;
398
+ get(arg: datatypes.Item): Promise<datatypes.EndpointCircuitBreaker>;
399
+ delete(arg: datatypes.Item): Promise<void>;
400
+ }
401
+ export declare class EndpointCompressionModule {
402
+ private httpClient;
403
+ /** Do not construct this object directly, use the <code>endpointCompressionModule</code> property of an <code>Ngrok</code> client object instead. */
404
+ constructor(httpClient: Wretcher);
405
+ replace(arg: datatypes.EndpointCompressionReplace): Promise<datatypes.EndpointCompression>;
406
+ get(arg: datatypes.Item): Promise<datatypes.EndpointCompression>;
407
+ delete(arg: datatypes.Item): Promise<void>;
408
+ }
409
+ export declare class EndpointTLSTerminationModule {
410
+ private httpClient;
411
+ /** Do not construct this object directly, use the <code>endpointTlsTerminationModule</code> property of an <code>Ngrok</code> client object instead. */
412
+ constructor(httpClient: Wretcher);
413
+ replace(arg: datatypes.EndpointTLSTerminationReplace): Promise<datatypes.EndpointTLSTermination>;
414
+ get(arg: datatypes.Item): Promise<datatypes.EndpointTLSTermination>;
415
+ delete(arg: datatypes.Item): Promise<void>;
416
+ }
417
+ export declare class EndpointIPPolicyModule {
418
+ private httpClient;
419
+ /** Do not construct this object directly, use the <code>endpointIpPolicyModule</code> property of an <code>Ngrok</code> client object instead. */
420
+ constructor(httpClient: Wretcher);
421
+ replace(arg: datatypes.EndpointIPPolicyReplace): Promise<datatypes.EndpointIPPolicy>;
422
+ get(arg: datatypes.Item): Promise<datatypes.EndpointIPPolicy>;
423
+ delete(arg: datatypes.Item): Promise<void>;
424
+ }
425
+ export declare class EndpointMutualTLSModule {
426
+ private httpClient;
427
+ /** Do not construct this object directly, use the <code>endpointMutualTlsModule</code> property of an <code>Ngrok</code> client object instead. */
428
+ constructor(httpClient: Wretcher);
429
+ replace(arg: datatypes.EndpointMutualTLSReplace): Promise<datatypes.EndpointMutualTLS>;
430
+ get(arg: datatypes.Item): Promise<datatypes.EndpointMutualTLS>;
431
+ delete(arg: datatypes.Item): Promise<void>;
432
+ }
433
+ export declare class EndpointRequestHeadersModule {
434
+ private httpClient;
435
+ /** Do not construct this object directly, use the <code>endpointRequestHeadersModule</code> property of an <code>Ngrok</code> client object instead. */
436
+ constructor(httpClient: Wretcher);
437
+ replace(arg: datatypes.EndpointRequestHeadersReplace): Promise<datatypes.EndpointRequestHeaders>;
438
+ get(arg: datatypes.Item): Promise<datatypes.EndpointRequestHeaders>;
439
+ delete(arg: datatypes.Item): Promise<void>;
440
+ }
441
+ export declare class EndpointResponseHeadersModule {
442
+ private httpClient;
443
+ /** Do not construct this object directly, use the <code>endpointResponseHeadersModule</code> property of an <code>Ngrok</code> client object instead. */
444
+ constructor(httpClient: Wretcher);
445
+ replace(arg: datatypes.EndpointResponseHeadersReplace): Promise<datatypes.EndpointResponseHeaders>;
446
+ get(arg: datatypes.Item): Promise<datatypes.EndpointResponseHeaders>;
447
+ delete(arg: datatypes.Item): Promise<void>;
448
+ }
449
+ export declare class EndpointOAuthModule {
450
+ private httpClient;
451
+ /** Do not construct this object directly, use the <code>endpointOAuthModule</code> property of an <code>Ngrok</code> client object instead. */
452
+ constructor(httpClient: Wretcher);
453
+ replace(arg: datatypes.EndpointOAuthReplace): Promise<datatypes.EndpointOAuth>;
454
+ get(arg: datatypes.Item): Promise<datatypes.EndpointOAuth>;
455
+ delete(arg: datatypes.Item): Promise<void>;
456
+ }
457
+ export declare class EndpointWebhookValidationModule {
458
+ private httpClient;
459
+ /** Do not construct this object directly, use the <code>endpointWebhookValidationModule</code> property of an <code>Ngrok</code> client object instead. */
460
+ constructor(httpClient: Wretcher);
461
+ replace(arg: datatypes.EndpointWebhookValidationReplace): Promise<datatypes.EndpointWebhookValidation>;
462
+ get(arg: datatypes.Item): Promise<datatypes.EndpointWebhookValidation>;
463
+ delete(arg: datatypes.Item): Promise<void>;
464
+ }
465
+ export declare class EndpointSAMLModule {
466
+ private httpClient;
467
+ /** Do not construct this object directly, use the <code>endpointSamlModule</code> property of an <code>Ngrok</code> client object instead. */
468
+ constructor(httpClient: Wretcher);
469
+ replace(arg: datatypes.EndpointSAMLReplace): Promise<datatypes.EndpointSAML>;
470
+ get(arg: datatypes.Item): Promise<datatypes.EndpointSAML>;
471
+ delete(arg: datatypes.Item): Promise<void>;
472
+ }
473
+ export declare class EndpointOIDCModule {
474
+ private httpClient;
475
+ /** Do not construct this object directly, use the <code>endpointOidcModule</code> property of an <code>Ngrok</code> client object instead. */
476
+ constructor(httpClient: Wretcher);
477
+ replace(arg: datatypes.EndpointOIDCReplace): Promise<datatypes.EndpointOIDC>;
478
+ get(arg: datatypes.Item): Promise<datatypes.EndpointOIDC>;
479
+ delete(arg: datatypes.Item): Promise<void>;
480
+ }
481
+ /**
482
+ * Reserved Addresses are TCP addresses that can be used to listen for traffic.
483
+ TCP address hostnames and ports are assigned by ngrok, they cannot be
484
+ chosen.
485
+ */
486
+ export declare class ReservedAddrs {
487
+ private httpClient;
488
+ /** Do not construct this object directly, use the <code>reservedAddrs</code> property of an <code>Ngrok</code> client object instead. */
489
+ constructor(httpClient: Wretcher);
490
+ /**
491
+ * Create a new reserved address.
492
+ */
493
+ create(arg: datatypes.ReservedAddrCreate): Promise<datatypes.ReservedAddr>;
494
+ /**
495
+ * Delete a reserved address.
496
+ */
497
+ delete(arg: datatypes.Item): Promise<void>;
498
+ /**
499
+ * Get the details of a reserved address.
500
+ */
501
+ get(arg: datatypes.Item): Promise<datatypes.ReservedAddr>;
502
+ /**
503
+ * List all reserved addresses on this account.
504
+ */
505
+ list(): Promise<Array<datatypes.ReservedAddr>>;
506
+ private _pagedList;
507
+ private _asyncList;
508
+ /**
509
+ * Update the attributes of a reserved address.
510
+ */
511
+ update(arg: datatypes.ReservedAddrUpdate): Promise<datatypes.ReservedAddr>;
512
+ /**
513
+ * Detach the endpoint configuration attached to a reserved address.
514
+ */
515
+ deleteEndpointConfig(arg: datatypes.Item): Promise<void>;
516
+ }
517
+ /**
518
+ * Reserved Domains are hostnames that you can listen for traffic on. Domains
519
+ can be used to listen for http, https or tls traffic. You may use a domain
520
+ that you own by creating a CNAME record specified in the returned resource.
521
+ This CNAME record points traffic for that domain to ngrok's edge servers.
522
+ */
523
+ export declare class ReservedDomains {
524
+ private httpClient;
525
+ /** Do not construct this object directly, use the <code>reservedDomains</code> property of an <code>Ngrok</code> client object instead. */
526
+ constructor(httpClient: Wretcher);
527
+ /**
528
+ * Create a new reserved domain.
529
+ */
530
+ create(arg: datatypes.ReservedDomainCreate): Promise<datatypes.ReservedDomain>;
531
+ /**
532
+ * Delete a reserved domain.
533
+ */
534
+ delete(arg: datatypes.Item): Promise<void>;
535
+ /**
536
+ * Get the details of a reserved domain.
537
+ */
538
+ get(arg: datatypes.Item): Promise<datatypes.ReservedDomain>;
539
+ /**
540
+ * List all reserved domains on this account.
541
+ */
542
+ list(): Promise<Array<datatypes.ReservedDomain>>;
543
+ private _pagedList;
544
+ private _asyncList;
545
+ /**
546
+ * Update the attributes of a reserved domain.
547
+ */
548
+ update(arg: datatypes.ReservedDomainUpdate): Promise<datatypes.ReservedDomain>;
549
+ /**
550
+ * Detach the certificate management policy attached to a reserved domain.
551
+ */
552
+ deleteCertificateManagementPolicy(arg: datatypes.Item): Promise<void>;
553
+ /**
554
+ * Detach the certificate attached to a reserved domain.
555
+ */
556
+ deleteCertificate(arg: datatypes.Item): Promise<void>;
557
+ /**
558
+ * Detach the http endpoint configuration attached to a reserved domain.
559
+ */
560
+ deleteHttpEndpointConfig(arg: datatypes.Item): Promise<void>;
561
+ /**
562
+ * Detach the https endpoint configuration attached to a reserved domain.
563
+ */
564
+ deleteHttpsEndpointConfig(arg: datatypes.Item): Promise<void>;
565
+ }
566
+ /**
567
+ * An SSH Certificate Authority is a pair of an SSH Certificate and its private
568
+ key that can be used to sign other SSH host and user certificates.
569
+ */
570
+ export declare class SSHCertificateAuthorities {
571
+ private httpClient;
572
+ /** Do not construct this object directly, use the <code>sshCertificateAuthorities</code> property of an <code>Ngrok</code> client object instead. */
573
+ constructor(httpClient: Wretcher);
574
+ /**
575
+ * Create a new SSH Certificate Authority
576
+ */
577
+ create(arg: datatypes.SSHCertificateAuthorityCreate): Promise<datatypes.SSHCertificateAuthority>;
578
+ /**
579
+ * Delete an SSH Certificate Authority
580
+ */
581
+ delete(arg: datatypes.Item): Promise<void>;
582
+ /**
583
+ * Get detailed information about an SSH Certficate Authority
584
+ */
585
+ get(arg: datatypes.Item): Promise<datatypes.SSHCertificateAuthority>;
586
+ /**
587
+ * List all SSH Certificate Authorities on this account
588
+ */
589
+ list(): Promise<Array<datatypes.SSHCertificateAuthority>>;
590
+ private _pagedList;
591
+ private _asyncList;
592
+ /**
593
+ * Update an SSH Certificate Authority
594
+ */
595
+ update(arg: datatypes.SSHCertificateAuthorityUpdate): Promise<datatypes.SSHCertificateAuthority>;
596
+ }
597
+ /**
598
+ * SSH Credentials are SSH public keys that can be used to start SSH tunnels
599
+ via the ngrok SSH tunnel gateway.
600
+ */
601
+ export declare class SSHCredentials {
602
+ private httpClient;
603
+ /** Do not construct this object directly, use the <code>sshCredentials</code> property of an <code>Ngrok</code> client object instead. */
604
+ constructor(httpClient: Wretcher);
605
+ /**
606
+ * 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.
607
+ */
608
+ create(arg: datatypes.SSHCredentialCreate): Promise<datatypes.SSHCredential>;
609
+ /**
610
+ * Delete an ssh_credential by ID
611
+ */
612
+ delete(arg: datatypes.Item): Promise<void>;
613
+ /**
614
+ * Get detailed information about an ssh_credential
615
+ */
616
+ get(arg: datatypes.Item): Promise<datatypes.SSHCredential>;
617
+ /**
618
+ * List all ssh credentials on this account
619
+ */
620
+ list(): Promise<Array<datatypes.SSHCredential>>;
621
+ private _pagedList;
622
+ private _asyncList;
623
+ /**
624
+ * Update attributes of an ssh_credential by ID
625
+ */
626
+ update(arg: datatypes.SSHCredentialUpdate): Promise<datatypes.SSHCredential>;
627
+ }
628
+ /**
629
+ * SSH Host Certificates along with the corresponding private key allows an SSH
630
+ server to assert its authenticity to connecting SSH clients who trust the
631
+ SSH Certificate Authority that was used to sign the certificate.
632
+ */
633
+ export declare class SSHHostCertificates {
634
+ private httpClient;
635
+ /** Do not construct this object directly, use the <code>sshHostCertificates</code> property of an <code>Ngrok</code> client object instead. */
636
+ constructor(httpClient: Wretcher);
637
+ /**
638
+ * Create a new SSH Host Certificate
639
+ */
640
+ create(arg: datatypes.SSHHostCertificateCreate): Promise<datatypes.SSHHostCertificate>;
641
+ /**
642
+ * Delete an SSH Host Certificate
643
+ */
644
+ delete(arg: datatypes.Item): Promise<void>;
645
+ /**
646
+ * Get detailed information about an SSH Host Certficate
647
+ */
648
+ get(arg: datatypes.Item): Promise<datatypes.SSHHostCertificate>;
649
+ /**
650
+ * List all SSH Host Certificates issued on this account
651
+ */
652
+ list(): Promise<Array<datatypes.SSHHostCertificate>>;
653
+ private _pagedList;
654
+ private _asyncList;
655
+ /**
656
+ * Update an SSH Host Certificate
657
+ */
658
+ update(arg: datatypes.SSHHostCertificateUpdate): Promise<datatypes.SSHHostCertificate>;
659
+ }
660
+ /**
661
+ * SSH User Certificates are presented by SSH clients when connecting to an SSH
662
+ server to authenticate their connection. The SSH server must trust the SSH
663
+ Certificate Authority used to sign the certificate.
664
+ */
665
+ export declare class SSHUserCertificates {
666
+ private httpClient;
667
+ /** Do not construct this object directly, use the <code>sshUserCertificates</code> property of an <code>Ngrok</code> client object instead. */
668
+ constructor(httpClient: Wretcher);
669
+ /**
670
+ * Create a new SSH User Certificate
671
+ */
672
+ create(arg: datatypes.SSHUserCertificateCreate): Promise<datatypes.SSHUserCertificate>;
673
+ /**
674
+ * Delete an SSH User Certificate
675
+ */
676
+ delete(arg: datatypes.Item): Promise<void>;
677
+ /**
678
+ * Get detailed information about an SSH User Certficate
679
+ */
680
+ get(arg: datatypes.Item): Promise<datatypes.SSHUserCertificate>;
681
+ /**
682
+ * List all SSH User Certificates issued on this account
683
+ */
684
+ list(): Promise<Array<datatypes.SSHUserCertificate>>;
685
+ private _pagedList;
686
+ private _asyncList;
687
+ /**
688
+ * Update an SSH User Certificate
689
+ */
690
+ update(arg: datatypes.SSHUserCertificateUpdate): Promise<datatypes.SSHUserCertificate>;
691
+ }
692
+ /**
693
+ * TLS Certificates are pairs of x509 certificates and their matching private
694
+ key that can be used to terminate TLS traffic. TLS certificates are unused
695
+ until they are attached to a Domain. TLS Certificates may also be
696
+ provisioned by ngrok automatically for domains on which you have enabled
697
+ automated certificate provisioning.
698
+ */
699
+ export declare class TLSCertificates {
700
+ private httpClient;
701
+ /** Do not construct this object directly, use the <code>tlsCertificates</code> property of an <code>Ngrok</code> client object instead. */
702
+ constructor(httpClient: Wretcher);
703
+ /**
704
+ * Upload a new TLS certificate
705
+ */
706
+ create(arg: datatypes.TLSCertificateCreate): Promise<datatypes.TLSCertificate>;
707
+ /**
708
+ * Delete a TLS certificate
709
+ */
710
+ delete(arg: datatypes.Item): Promise<void>;
711
+ /**
712
+ * Get detailed information about a TLS certificate
713
+ */
714
+ get(arg: datatypes.Item): Promise<datatypes.TLSCertificate>;
715
+ /**
716
+ * List all TLS certificates on this account
717
+ */
718
+ list(): Promise<Array<datatypes.TLSCertificate>>;
719
+ private _pagedList;
720
+ private _asyncList;
721
+ /**
722
+ * Update attributes of a TLS Certificate by ID
723
+ */
724
+ update(arg: datatypes.TLSCertificateUpdate): Promise<datatypes.TLSCertificate>;
725
+ }
726
+ /**
727
+ * Tunnel Sessions represent instances of ngrok agents or SSH reverse tunnel
728
+ sessions that are running and connected to the ngrok service. Each tunnel
729
+ session can include one or more Tunnels.
730
+ */
731
+ export declare class TunnelSessions {
732
+ private httpClient;
733
+ /** Do not construct this object directly, use the <code>tunnelSessions</code> property of an <code>Ngrok</code> client object instead. */
734
+ constructor(httpClient: Wretcher);
735
+ /**
736
+ * List all online tunnel sessions running on this account.
737
+ */
738
+ list(): Promise<Array<datatypes.TunnelSession>>;
739
+ private _pagedList;
740
+ private _asyncList;
741
+ /**
742
+ * Get the detailed status of a tunnel session by ID
743
+ */
744
+ get(arg: datatypes.Item): Promise<datatypes.TunnelSession>;
745
+ /**
746
+ * 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.
747
+ */
748
+ restart(arg: datatypes.Item): Promise<void>;
749
+ /**
750
+ * Issues a command instructing the ngrok agent that started this tunnel session to exit.
751
+ */
752
+ stop(arg: datatypes.Item): Promise<void>;
753
+ /**
754
+ * 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
755
+ */
756
+ update(arg: datatypes.TunnelSessionsUpdate): Promise<void>;
757
+ }
758
+ /**
759
+ * Tunnels provide endpoints to access services exposed by a running ngrok
760
+ agent tunnel session or an SSH reverse tunnel session.
761
+ */
762
+ export declare class Tunnels {
763
+ private httpClient;
764
+ /** Do not construct this object directly, use the <code>tunnels</code> property of an <code>Ngrok</code> client object instead. */
765
+ constructor(httpClient: Wretcher);
766
+ /**
767
+ * List all online tunnels currently running on the account.
768
+ */
769
+ list(): Promise<Array<datatypes.Tunnel>>;
770
+ private _pagedList;
771
+ private _asyncList;
772
+ }
773
+ //# sourceMappingURL=services.d.ts.map