@ngrok/ngrok-api 0.2.0 → 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.
- package/docs/CNAME +1 -0
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/client.Ngrok.html +37 -43
- package/docs/classes/services.APIKeys.html +9 -9
- package/docs/classes/services.AbuseReports.html +6 -6
- package/docs/classes/{services.IPWhitelist.html → services.AgentIngresses.html} +61 -69
- package/docs/classes/services.CertificateAuthorities.html +9 -9
- package/docs/classes/services.Credentials.html +9 -9
- package/docs/classes/services.EndpointCircuitBreakerModule.html +7 -7
- package/docs/classes/services.EndpointCompressionModule.html +7 -7
- package/docs/classes/services.EndpointConfigurations.html +9 -9
- package/docs/classes/services.EndpointIPPolicyModule.html +7 -7
- package/docs/classes/services.EndpointLoggingModule.html +7 -7
- package/docs/classes/services.EndpointMutualTLSModule.html +7 -7
- package/docs/classes/services.EndpointOAuthModule.html +7 -7
- package/docs/classes/services.EndpointOIDCModule.html +7 -7
- package/docs/classes/services.EndpointRequestHeadersModule.html +7 -7
- package/docs/classes/services.EndpointResponseHeadersModule.html +7 -7
- package/docs/classes/services.EndpointSAMLModule.html +7 -7
- package/docs/classes/services.EndpointTLSTerminationModule.html +7 -7
- package/docs/classes/services.EndpointWebhookValidationModule.html +7 -7
- package/docs/classes/services.EventDestinations.html +9 -9
- package/docs/classes/services.EventSources.html +9 -9
- package/docs/classes/services.EventStreams.html +9 -9
- package/docs/classes/services.EventSubscriptions.html +9 -9
- package/docs/classes/services.IPPolicies.html +9 -9
- package/docs/classes/services.IPPolicyRules.html +9 -9
- package/docs/classes/services.IPRestrictions.html +9 -9
- package/docs/classes/services.ReservedAddrs.html +10 -10
- package/docs/classes/services.ReservedDomains.html +13 -13
- package/docs/classes/services.SSHCertificateAuthorities.html +9 -9
- package/docs/classes/services.SSHCredentials.html +9 -9
- package/docs/classes/services.SSHHostCertificates.html +9 -9
- package/docs/classes/services.SSHUserCertificates.html +9 -9
- package/docs/classes/services.TLSCertificates.html +9 -9
- package/docs/classes/services.TunnelSessions.html +9 -9
- package/docs/classes/services.Tunnels.html +5 -5
- package/docs/interfaces/client.NgrokConfig.html +2 -2
- package/docs/interfaces/datatypes.APIKey.html +6 -6
- package/docs/interfaces/datatypes.APIKeyCreate.html +2 -2
- package/docs/interfaces/datatypes.APIKeyList.html +3 -3
- package/docs/interfaces/datatypes.APIKeyUpdate.html +3 -3
- package/docs/interfaces/datatypes.AWSAuth.html +2 -2
- package/docs/interfaces/datatypes.AWSCredentials.html +2 -2
- package/docs/interfaces/datatypes.AWSRole.html +1 -1
- package/docs/interfaces/datatypes.AbuseReport.html +7 -7
- package/docs/interfaces/datatypes.AbuseReportCreate.html +2 -2
- package/docs/interfaces/datatypes.AbuseReportHostname.html +2 -2
- package/docs/interfaces/{datatypes.IPWhitelistEntry.html → datatypes.AgentIngress.html} +73 -35
- package/docs/interfaces/{datatypes.IPWhitelistEntryCreate.html → datatypes.AgentIngressCreate.html} +20 -20
- package/docs/interfaces/{datatypes.IPWhitelistEntryList.html → datatypes.AgentIngressList.html} +26 -26
- package/docs/interfaces/{datatypes.IPWhitelistEntryUpdate.html → datatypes.AgentIngressUpdate.html} +16 -16
- package/docs/interfaces/datatypes.CertificateAuthority.html +11 -11
- package/docs/interfaces/datatypes.CertificateAuthorityCreate.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthorityList.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthorityUpdate.html +3 -3
- package/docs/interfaces/datatypes.Credential.html +7 -7
- package/docs/interfaces/datatypes.CredentialCreate.html +3 -3
- package/docs/interfaces/datatypes.CredentialList.html +3 -3
- package/docs/interfaces/datatypes.CredentialUpdate.html +4 -4
- package/docs/interfaces/datatypes.EndpointCircuitBreaker.html +6 -6
- package/docs/interfaces/datatypes.EndpointCircuitBreakerReplace.html +2 -2
- package/docs/interfaces/datatypes.EndpointCompression.html +1 -1
- package/docs/interfaces/datatypes.EndpointCompressionReplace.html +2 -2
- package/docs/interfaces/datatypes.EndpointConfiguration.html +18 -18
- package/docs/interfaces/datatypes.EndpointConfigurationCreate.html +15 -15
- package/docs/interfaces/datatypes.EndpointConfigurationList.html +3 -3
- package/docs/interfaces/datatypes.EndpointConfigurationUpdate.html +15 -15
- package/docs/interfaces/datatypes.EndpointIPPolicy.html +2 -2
- package/docs/interfaces/datatypes.EndpointIPPolicyMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointIPPolicyReplace.html +2 -2
- package/docs/interfaces/datatypes.EndpointLogging.html +2 -2
- package/docs/interfaces/datatypes.EndpointLoggingMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointLoggingReplace.html +2 -2
- package/docs/interfaces/datatypes.EndpointMutualTLS.html +2 -2
- package/docs/interfaces/datatypes.EndpointMutualTLSMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointMutualTLSReplace.html +2 -2
- package/docs/interfaces/datatypes.EndpointOAuth.html +7 -7
- package/docs/interfaces/datatypes.EndpointOAuthFacebook.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthGitHub.html +7 -7
- package/docs/interfaces/datatypes.EndpointOAuthGoogle.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthMicrosoft.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthProvider.html +4 -4
- package/docs/interfaces/datatypes.EndpointOAuthReplace.html +2 -2
- package/docs/interfaces/datatypes.EndpointOIDC.html +9 -9
- package/docs/interfaces/datatypes.EndpointOIDCReplace.html +2 -2
- package/docs/interfaces/datatypes.EndpointRequestHeaders.html +3 -3
- package/docs/interfaces/datatypes.EndpointRequestHeadersReplace.html +2 -2
- package/docs/interfaces/datatypes.EndpointResponseHeaders.html +3 -3
- package/docs/interfaces/datatypes.EndpointResponseHeadersReplace.html +2 -2
- package/docs/interfaces/datatypes.EndpointSAML.html +33 -14
- package/docs/interfaces/datatypes.EndpointSAMLMutate.html +28 -9
- package/docs/interfaces/datatypes.EndpointSAMLReplace.html +2 -2
- package/docs/interfaces/datatypes.EndpointTLSTermination.html +3 -3
- package/docs/interfaces/datatypes.EndpointTLSTerminationReplace.html +2 -2
- package/docs/interfaces/datatypes.EndpointWebhookValidation.html +4 -4
- package/docs/interfaces/datatypes.EndpointWebhookValidationReplace.html +2 -2
- package/docs/interfaces/datatypes.Error.html +4 -4
- package/docs/interfaces/datatypes.EventDestination.html +7 -7
- package/docs/interfaces/datatypes.EventDestinationCreate.html +4 -4
- package/docs/interfaces/datatypes.EventDestinationList.html +3 -3
- package/docs/interfaces/datatypes.EventDestinationUpdate.html +5 -5
- package/docs/interfaces/datatypes.EventSource.html +2 -2
- package/docs/interfaces/datatypes.EventSourceCreate.html +2 -2
- package/docs/interfaces/datatypes.EventSourceItem.html +2 -2
- package/docs/interfaces/datatypes.EventSourceList.html +2 -2
- package/docs/interfaces/datatypes.EventSourcePaging.html +1 -1
- package/docs/interfaces/datatypes.EventSourceReplace.html +1 -1
- package/docs/interfaces/datatypes.EventSourceUpdate.html +2 -2
- package/docs/interfaces/datatypes.EventStream.html +9 -9
- package/docs/interfaces/datatypes.EventStreamCreate.html +6 -6
- package/docs/interfaces/datatypes.EventStreamList.html +3 -3
- package/docs/interfaces/datatypes.EventStreamUpdate.html +6 -6
- package/docs/interfaces/datatypes.EventSubscription.html +7 -7
- package/docs/interfaces/datatypes.EventSubscriptionCreate.html +4 -4
- package/docs/interfaces/datatypes.EventSubscriptionList.html +3 -3
- package/docs/interfaces/datatypes.EventSubscriptionUpdate.html +5 -5
- package/docs/interfaces/datatypes.EventTarget.html +3 -3
- package/docs/interfaces/datatypes.EventTargetCloudwatchLogs.html +2 -2
- package/docs/interfaces/datatypes.EventTargetFirehose.html +2 -2
- package/docs/interfaces/datatypes.EventTargetKinesis.html +2 -2
- package/docs/interfaces/datatypes.IPPolicy.html +6 -6
- package/docs/interfaces/datatypes.IPPolicyCreate.html +3 -3
- package/docs/interfaces/datatypes.IPPolicyList.html +3 -3
- package/docs/interfaces/datatypes.IPPolicyRule.html +7 -7
- package/docs/interfaces/datatypes.IPPolicyRuleCreate.html +4 -4
- package/docs/interfaces/datatypes.IPPolicyRuleList.html +3 -3
- package/docs/interfaces/datatypes.IPPolicyRuleUpdate.html +4 -4
- package/docs/interfaces/datatypes.IPPolicyUpdate.html +3 -3
- package/docs/interfaces/datatypes.IPRestriction.html +8 -8
- package/docs/interfaces/datatypes.IPRestrictionCreate.html +5 -5
- package/docs/interfaces/datatypes.IPRestrictionList.html +3 -3
- package/docs/interfaces/datatypes.IPRestrictionUpdate.html +5 -5
- package/docs/interfaces/datatypes.Item.html +1 -1
- package/docs/interfaces/datatypes.Paging.html +2 -2
- package/docs/interfaces/datatypes.Ref.html +2 -2
- package/docs/interfaces/datatypes.ReservedAddr.html +8 -8
- package/docs/interfaces/datatypes.ReservedAddrCreate.html +5 -5
- package/docs/interfaces/datatypes.ReservedAddrList.html +3 -3
- package/docs/interfaces/datatypes.ReservedAddrUpdate.html +4 -4
- package/docs/interfaces/datatypes.ReservedDomain.html +32 -13
- package/docs/interfaces/datatypes.ReservedDomainCertJob.html +4 -23
- package/docs/interfaces/datatypes.ReservedDomainCertPolicy.html +2 -2
- package/docs/interfaces/datatypes.ReservedDomainCertStatus.html +2 -2
- package/docs/interfaces/datatypes.ReservedDomainCreate.html +8 -8
- package/docs/interfaces/datatypes.ReservedDomainList.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomainUpdate.html +7 -7
- package/docs/interfaces/datatypes.SSHCertificateAuthority.html +7 -7
- package/docs/interfaces/datatypes.SSHCertificateAuthorityCreate.html +5 -5
- package/docs/interfaces/datatypes.SSHCertificateAuthorityList.html +3 -3
- package/docs/interfaces/datatypes.SSHCertificateAuthorityUpdate.html +3 -3
- package/docs/interfaces/datatypes.SSHCredential.html +7 -7
- package/docs/interfaces/datatypes.SSHCredentialCreate.html +4 -4
- package/docs/interfaces/datatypes.SSHCredentialList.html +3 -3
- package/docs/interfaces/datatypes.SSHCredentialUpdate.html +4 -4
- package/docs/interfaces/datatypes.SSHHostCertificate.html +12 -12
- package/docs/interfaces/datatypes.SSHHostCertificateCreate.html +7 -7
- package/docs/interfaces/datatypes.SSHHostCertificateList.html +3 -3
- package/docs/interfaces/datatypes.SSHHostCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.SSHUserCertificate.html +14 -14
- package/docs/interfaces/datatypes.SSHUserCertificateCreate.html +9 -9
- package/docs/interfaces/datatypes.SSHUserCertificateList.html +3 -3
- package/docs/interfaces/datatypes.SSHUserCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.TLSCertificate.html +21 -21
- package/docs/interfaces/datatypes.TLSCertificateCreate.html +4 -4
- package/docs/interfaces/datatypes.TLSCertificateList.html +3 -3
- package/docs/interfaces/datatypes.TLSCertificateSANs.html +2 -2
- package/docs/interfaces/datatypes.TLSCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.Tunnel.html +7 -7
- package/docs/interfaces/datatypes.TunnelList.html +3 -3
- package/docs/interfaces/datatypes.TunnelSession.html +10 -10
- package/docs/interfaces/datatypes.TunnelSessionList.html +3 -3
- package/docs/interfaces/datatypes.TunnelSessionsUpdate.html +1 -1
- package/docs/modules/datatypes.html +16 -20
- package/docs/modules/services.html +4 -4
- package/lib/client.d.ts +1 -5
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +3 -4
- package/lib/client.js.map +1 -1
- package/lib/datatypes.d.ts +49 -47
- package/lib/datatypes.d.ts.map +1 -1
- package/lib/services.d.ts +27 -31
- package/lib/services.d.ts.map +1 -1
- package/lib/services.js +155 -159
- package/lib/services.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +3 -7
- package/src/datatypes.ts +53 -52
- package/src/services.ts +98 -102
- package/docs/interfaces/datatypes.ReservedDomainCertNSTarget.html +0 -186
package/src/services.ts
CHANGED
|
@@ -39,6 +39,104 @@ export class AbuseReports {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
export class AgentIngresses {
|
|
43
|
+
private httpClient: Wretcher;
|
|
44
|
+
|
|
45
|
+
/** Do not construct this object directly, use the <code>agentIngresses</code> property of an <code>Ngrok</code> client object instead. */
|
|
46
|
+
public constructor(httpClient: Wretcher) {
|
|
47
|
+
this.httpClient = httpClient;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 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.
|
|
51
|
+
*/
|
|
52
|
+
public create(
|
|
53
|
+
arg: datatypes.AgentIngressCreate
|
|
54
|
+
): Promise<datatypes.AgentIngress> {
|
|
55
|
+
return this.httpClient
|
|
56
|
+
.url(`/agent_ingresses`)
|
|
57
|
+
.post(util.serializeArgument(arg))
|
|
58
|
+
.json(payload => util.deserializeResult(payload))
|
|
59
|
+
.then(f => f, util.onRejected);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Delete an Agent Ingress by ID
|
|
64
|
+
*/
|
|
65
|
+
public delete(arg: datatypes.Item): Promise<void> {
|
|
66
|
+
return this.httpClient
|
|
67
|
+
.url(`/agent_ingresses/${arg.id}`)
|
|
68
|
+
.delete()
|
|
69
|
+
.json(payload => util.deserializeResult(payload))
|
|
70
|
+
.then(f => f, util.onRejected);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Get the details of an Agent Ingress by ID.
|
|
75
|
+
*/
|
|
76
|
+
public get(arg: datatypes.Item): Promise<datatypes.AgentIngress> {
|
|
77
|
+
return this.httpClient
|
|
78
|
+
.url(`/agent_ingresses/${arg.id}`)
|
|
79
|
+
.get()
|
|
80
|
+
.json(payload => util.deserializeResult(payload))
|
|
81
|
+
.then(f => f, util.onRejected);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* List all Agent Ingresses owned by this account
|
|
86
|
+
*/
|
|
87
|
+
public async list(): Promise<Array<datatypes.AgentIngress>> {
|
|
88
|
+
const array: Array<datatypes.AgentIngress> = [];
|
|
89
|
+
for await (const item of this._asyncList()) {
|
|
90
|
+
array.push(item);
|
|
91
|
+
}
|
|
92
|
+
return array;
|
|
93
|
+
}
|
|
94
|
+
private _pagedList(
|
|
95
|
+
arg: datatypes.Paging
|
|
96
|
+
): Promise<datatypes.AgentIngressList> {
|
|
97
|
+
return this.httpClient
|
|
98
|
+
.url(`/agent_ingresses`)
|
|
99
|
+
.query(arg)
|
|
100
|
+
.get()
|
|
101
|
+
.json(payload => util.deserializeResult(payload))
|
|
102
|
+
.then(util.onFulfilled, util.onRejected);
|
|
103
|
+
}
|
|
104
|
+
private async *_asyncList() {
|
|
105
|
+
const limit = '100';
|
|
106
|
+
let nextPage = 'initial loop';
|
|
107
|
+
let page: datatypes.Paging = { limit: limit };
|
|
108
|
+
|
|
109
|
+
while (nextPage) {
|
|
110
|
+
const pagedList = await this._pagedList(page);
|
|
111
|
+
nextPage = pagedList.nextPageUri;
|
|
112
|
+
const items: datatypes.AgentIngress[] = pagedList.ingresses;
|
|
113
|
+
|
|
114
|
+
if (nextPage) {
|
|
115
|
+
page = {
|
|
116
|
+
beforeId: items[items.length - 1].id,
|
|
117
|
+
limit: limit,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
for (const item of items) {
|
|
122
|
+
yield item;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Update attributes of an Agent Ingress by ID.
|
|
128
|
+
*/
|
|
129
|
+
public update(
|
|
130
|
+
arg: datatypes.AgentIngressUpdate
|
|
131
|
+
): Promise<datatypes.AgentIngress> {
|
|
132
|
+
return this.httpClient
|
|
133
|
+
.url(`/agent_ingresses/${arg.id}`)
|
|
134
|
+
.patch(util.serializeArgument(arg))
|
|
135
|
+
.json(payload => util.deserializeResult(payload))
|
|
136
|
+
.then(f => f, util.onRejected);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
42
140
|
/**
|
|
43
141
|
* API Keys are used to authenticate to the [ngrok
|
|
44
142
|
API](https://ngrok.com/docs/api#authentication). You may use the API itself
|
|
@@ -1119,108 +1217,6 @@ export class IPRestrictions {
|
|
|
1119
1217
|
}
|
|
1120
1218
|
}
|
|
1121
1219
|
|
|
1122
|
-
/**
|
|
1123
|
-
* The IP Whitelist is deprecated and will be removed. Use an IP Restriction
|
|
1124
|
-
with an `endpoints` type instead.
|
|
1125
|
-
*/
|
|
1126
|
-
export class IPWhitelist {
|
|
1127
|
-
private httpClient: Wretcher;
|
|
1128
|
-
|
|
1129
|
-
/** Do not construct this object directly, use the <code>ipWhitelist</code> property of an <code>Ngrok</code> client object instead. */
|
|
1130
|
-
public constructor(httpClient: Wretcher) {
|
|
1131
|
-
this.httpClient = httpClient;
|
|
1132
|
-
}
|
|
1133
|
-
/**
|
|
1134
|
-
* Create a new IP whitelist entry that will restrict traffic to all tunnel endpoints on the account.
|
|
1135
|
-
*/
|
|
1136
|
-
public create(
|
|
1137
|
-
arg: datatypes.IPWhitelistEntryCreate
|
|
1138
|
-
): Promise<datatypes.IPWhitelistEntry> {
|
|
1139
|
-
return this.httpClient
|
|
1140
|
-
.url(`/ip_whitelist`)
|
|
1141
|
-
.post(util.serializeArgument(arg))
|
|
1142
|
-
.json(payload => util.deserializeResult(payload))
|
|
1143
|
-
.then(f => f, util.onRejected);
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
/**
|
|
1147
|
-
* Delete an IP whitelist entry.
|
|
1148
|
-
*/
|
|
1149
|
-
public delete(arg: datatypes.Item): Promise<void> {
|
|
1150
|
-
return this.httpClient
|
|
1151
|
-
.url(`/ip_whitelist/${arg.id}`)
|
|
1152
|
-
.delete()
|
|
1153
|
-
.json(payload => util.deserializeResult(payload))
|
|
1154
|
-
.then(f => f, util.onRejected);
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
/**
|
|
1158
|
-
* Get detailed information about an IP whitelist entry by ID.
|
|
1159
|
-
*/
|
|
1160
|
-
public get(arg: datatypes.Item): Promise<datatypes.IPWhitelistEntry> {
|
|
1161
|
-
return this.httpClient
|
|
1162
|
-
.url(`/ip_whitelist/${arg.id}`)
|
|
1163
|
-
.get()
|
|
1164
|
-
.json(payload => util.deserializeResult(payload))
|
|
1165
|
-
.then(f => f, util.onRejected);
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
/**
|
|
1169
|
-
* List all IP whitelist entries on this account
|
|
1170
|
-
*/
|
|
1171
|
-
public async list(): Promise<Array<datatypes.IPWhitelistEntry>> {
|
|
1172
|
-
const array: Array<datatypes.IPWhitelistEntry> = [];
|
|
1173
|
-
for await (const item of this._asyncList()) {
|
|
1174
|
-
array.push(item);
|
|
1175
|
-
}
|
|
1176
|
-
return array;
|
|
1177
|
-
}
|
|
1178
|
-
private _pagedList(
|
|
1179
|
-
arg: datatypes.Paging
|
|
1180
|
-
): Promise<datatypes.IPWhitelistEntryList> {
|
|
1181
|
-
return this.httpClient
|
|
1182
|
-
.url(`/ip_whitelist`)
|
|
1183
|
-
.query(arg)
|
|
1184
|
-
.get()
|
|
1185
|
-
.json(payload => util.deserializeResult(payload))
|
|
1186
|
-
.then(util.onFulfilled, util.onRejected);
|
|
1187
|
-
}
|
|
1188
|
-
private async *_asyncList() {
|
|
1189
|
-
const limit = '100';
|
|
1190
|
-
let nextPage = 'initial loop';
|
|
1191
|
-
let page: datatypes.Paging = { limit: limit };
|
|
1192
|
-
|
|
1193
|
-
while (nextPage) {
|
|
1194
|
-
const pagedList = await this._pagedList(page);
|
|
1195
|
-
nextPage = pagedList.nextPageUri;
|
|
1196
|
-
const items: datatypes.IPWhitelistEntry[] = pagedList.whitelist;
|
|
1197
|
-
|
|
1198
|
-
if (nextPage) {
|
|
1199
|
-
page = {
|
|
1200
|
-
beforeId: items[items.length - 1].id,
|
|
1201
|
-
limit: limit,
|
|
1202
|
-
};
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
for (const item of items) {
|
|
1206
|
-
yield item;
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
/**
|
|
1211
|
-
* Update attributes of an IP whitelist entry by ID
|
|
1212
|
-
*/
|
|
1213
|
-
public update(
|
|
1214
|
-
arg: datatypes.IPWhitelistEntryUpdate
|
|
1215
|
-
): Promise<datatypes.IPWhitelistEntry> {
|
|
1216
|
-
return this.httpClient
|
|
1217
|
-
.url(`/ip_whitelist/${arg.id}`)
|
|
1218
|
-
.patch(util.serializeArgument(arg))
|
|
1219
|
-
.json(payload => util.deserializeResult(payload))
|
|
1220
|
-
.then(f => f, util.onRejected);
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
1220
|
export class EndpointLoggingModule {
|
|
1225
1221
|
private httpClient: Wretcher;
|
|
1226
1222
|
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html class="default no-js">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>ReservedDomainCertNSTarget | @ngrok/ngrok-api</title>
|
|
7
|
-
<meta name="description" content="Documentation for @ngrok/ngrok-api">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
|
-
<script async src="../assets/js/search.js" id="search-script"></script>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<header>
|
|
14
|
-
<div class="tsd-page-toolbar">
|
|
15
|
-
<div class="container">
|
|
16
|
-
<div class="table-wrap">
|
|
17
|
-
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
|
18
|
-
<div class="field">
|
|
19
|
-
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
20
|
-
<input id="tsd-search-field" type="text" />
|
|
21
|
-
</div>
|
|
22
|
-
<ul class="results">
|
|
23
|
-
<li class="state loading">Preparing search index...</li>
|
|
24
|
-
<li class="state failure">The search index is not available</li>
|
|
25
|
-
</ul>
|
|
26
|
-
<a href="../index.html" class="title">@ngrok/ngrok-api</a>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="table-cell" id="tsd-widgets">
|
|
29
|
-
<div id="tsd-filter">
|
|
30
|
-
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
31
|
-
<div class="tsd-filter-group">
|
|
32
|
-
<div class="tsd-select" id="tsd-filter-visibility">
|
|
33
|
-
<span class="tsd-select-label">All</span>
|
|
34
|
-
<ul class="tsd-select-list">
|
|
35
|
-
<li data-value="public">Public</li>
|
|
36
|
-
<li data-value="protected">Public/Protected</li>
|
|
37
|
-
<li data-value="private" class="selected">All</li>
|
|
38
|
-
</ul>
|
|
39
|
-
</div>
|
|
40
|
-
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
41
|
-
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
42
|
-
<input type="checkbox" id="tsd-filter-externals" checked />
|
|
43
|
-
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
<div class="tsd-page-title">
|
|
52
|
-
<div class="container">
|
|
53
|
-
<ul class="tsd-breadcrumb">
|
|
54
|
-
<li>
|
|
55
|
-
<a href="../modules.html">@ngrok/ngrok-api</a>
|
|
56
|
-
</li>
|
|
57
|
-
<li>
|
|
58
|
-
<a href="../modules/datatypes.html">datatypes</a>
|
|
59
|
-
</li>
|
|
60
|
-
<li>
|
|
61
|
-
<a href="datatypes.ReservedDomainCertNSTarget.html">ReservedDomainCertNSTarget</a>
|
|
62
|
-
</li>
|
|
63
|
-
</ul>
|
|
64
|
-
<h1>Interface ReservedDomainCertNSTarget</h1>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</header>
|
|
68
|
-
<div class="container container-main">
|
|
69
|
-
<div class="row">
|
|
70
|
-
<div class="col-8 col-content">
|
|
71
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
72
|
-
<h3>Hierarchy</h3>
|
|
73
|
-
<ul class="tsd-hierarchy">
|
|
74
|
-
<li>
|
|
75
|
-
<span class="target">ReservedDomainCertNSTarget</span>
|
|
76
|
-
</li>
|
|
77
|
-
</ul>
|
|
78
|
-
</section>
|
|
79
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
80
|
-
<h2>Index</h2>
|
|
81
|
-
<section class="tsd-panel tsd-index-panel">
|
|
82
|
-
<div class="tsd-index-content">
|
|
83
|
-
<section class="tsd-index-section ">
|
|
84
|
-
<h3>Properties</h3>
|
|
85
|
-
<ul class="tsd-index-list">
|
|
86
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="datatypes.ReservedDomainCertNSTarget.html#nameservers" class="tsd-kind-icon">nameservers</a></li>
|
|
87
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="datatypes.ReservedDomainCertNSTarget.html#zone" class="tsd-kind-icon">zone</a></li>
|
|
88
|
-
</ul>
|
|
89
|
-
</section>
|
|
90
|
-
</div>
|
|
91
|
-
</section>
|
|
92
|
-
</section>
|
|
93
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
94
|
-
<h2>Properties</h2>
|
|
95
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
96
|
-
<a name="nameservers" class="tsd-anchor"></a>
|
|
97
|
-
<h3>nameservers</h3>
|
|
98
|
-
<div class="tsd-signature tsd-kind-icon">nameservers<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
|
|
99
|
-
<aside class="tsd-sources">
|
|
100
|
-
<ul>
|
|
101
|
-
<li>Defined in datatypes.ts:1199</li>
|
|
102
|
-
</ul>
|
|
103
|
-
</aside>
|
|
104
|
-
<div class="tsd-comment tsd-typography">
|
|
105
|
-
<div class="lead">
|
|
106
|
-
<p>the nameservers the user must add</p>
|
|
107
|
-
</div>
|
|
108
|
-
</div>
|
|
109
|
-
</section>
|
|
110
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
111
|
-
<a name="zone" class="tsd-anchor"></a>
|
|
112
|
-
<h3>zone</h3>
|
|
113
|
-
<div class="tsd-signature tsd-kind-icon">zone<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
114
|
-
<aside class="tsd-sources">
|
|
115
|
-
<ul>
|
|
116
|
-
<li>Defined in datatypes.ts:1197</li>
|
|
117
|
-
</ul>
|
|
118
|
-
</aside>
|
|
119
|
-
<div class="tsd-comment tsd-typography">
|
|
120
|
-
<div class="lead">
|
|
121
|
-
<p>the zone that the nameservers need to be applied to</p>
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
</section>
|
|
125
|
-
</section>
|
|
126
|
-
</div>
|
|
127
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
128
|
-
<nav class="tsd-navigation primary">
|
|
129
|
-
<ul>
|
|
130
|
-
<li class=" ">
|
|
131
|
-
<a href="../modules.html">Modules</a>
|
|
132
|
-
</li>
|
|
133
|
-
<li class=" tsd-kind-module">
|
|
134
|
-
<a href="../modules/client.html">client</a>
|
|
135
|
-
</li>
|
|
136
|
-
<li class="current tsd-kind-module">
|
|
137
|
-
<a href="../modules/datatypes.html">datatypes</a>
|
|
138
|
-
</li>
|
|
139
|
-
<li class=" tsd-kind-module">
|
|
140
|
-
<a href="../modules/services.html">services</a>
|
|
141
|
-
</li>
|
|
142
|
-
</ul>
|
|
143
|
-
</nav>
|
|
144
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
145
|
-
<ul class="before-current">
|
|
146
|
-
</ul>
|
|
147
|
-
<ul class="current">
|
|
148
|
-
<li class="current tsd-kind-interface tsd-parent-kind-module">
|
|
149
|
-
<a href="datatypes.ReservedDomainCertNSTarget.html" class="tsd-kind-icon">Reserved<wbr>Domain<wbr>CertNSTarget</a>
|
|
150
|
-
<ul>
|
|
151
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
152
|
-
<a href="datatypes.ReservedDomainCertNSTarget.html#nameservers" class="tsd-kind-icon">nameservers</a>
|
|
153
|
-
</li>
|
|
154
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
155
|
-
<a href="datatypes.ReservedDomainCertNSTarget.html#zone" class="tsd-kind-icon">zone</a>
|
|
156
|
-
</li>
|
|
157
|
-
</ul>
|
|
158
|
-
</li>
|
|
159
|
-
</ul>
|
|
160
|
-
<ul class="after-current">
|
|
161
|
-
</ul>
|
|
162
|
-
</nav>
|
|
163
|
-
</div>
|
|
164
|
-
</div>
|
|
165
|
-
</div>
|
|
166
|
-
<footer class="with-border-bottom">
|
|
167
|
-
<div class="container">
|
|
168
|
-
<h2>Legend</h2>
|
|
169
|
-
<div class="tsd-legend-group">
|
|
170
|
-
<ul class="tsd-legend">
|
|
171
|
-
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
|
172
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
173
|
-
</ul>
|
|
174
|
-
<ul class="tsd-legend">
|
|
175
|
-
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
|
176
|
-
</ul>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
</footer>
|
|
180
|
-
<div class="container tsd-generator">
|
|
181
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
182
|
-
</div>
|
|
183
|
-
<div class="overlay"></div>
|
|
184
|
-
<script src="../assets/js/main.js"></script>
|
|
185
|
-
</body>
|
|
186
|
-
</html>
|