@internetdata/internetdata 2.17.0 → 2.18.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/README.md CHANGED
@@ -33,7 +33,7 @@ console.log(result.company.name); // who the address belongs to
33
33
 
34
34
  ### With an API key
35
35
 
36
- Every paid plan answers every field: `is_vpn`, `is_hosting`, `is_cdn` and the four proxy flags as well, city-level location, the whois records and the detail behind each flag. The plans differ only in how many lookups they include, and a free account tries every field. Create a key in the [console](https://app.internetdata.io), then pass it in:
36
+ A paid plan answers every field: `is_vpn`, `is_hosting`, `is_cdn` and the four proxy flags as well, city-level location, the whois records, the detail behind each flag, and `user_agent` for a lookup that sends one. Its quotas differ only in how many lookups they include, and a free account tries every field. Create a key in the [console](https://app.internetdata.io), then pass it in:
37
37
 
38
38
  ```js
39
39
  const client = new InternetData({ apiKey: process.env.INTERNETDATA_API_KEY });
@@ -66,12 +66,28 @@ const result = await client.myIp();
66
66
  console.log(result.ip); // the address we saw this call come from
67
67
  ```
68
68
 
69
+ ### The visitor's user agent
70
+
71
+ Pass the `User-Agent` of the request you are deciding on, and on a paid plan or the trial the answer's `userAgent` names the client it claims to be and whether this address bears that out: `verified` (its operator vouches for this address), `spoofed`, `unverifiable` or `not_bot`. A crawler claiming to be Googlebot from an address Google does not vouch for reads `spoofed`:
72
+
73
+ ```js
74
+ const result = await client.lookup('66.249.66.1', { userAgent: req.headers['user-agent'] });
75
+ if (result.userAgent?.verdict === 'verified') {
76
+ // a crawler its operator vouches for
77
+ }
78
+
79
+ await client.myIp({ userAgent: 'my-app/1.0' });
80
+ await client.lookupBatch(['66.249.66.1', '45.83.91.1'], { userAgents: { '66.249.66.1': 'Googlebot/2.1' } });
81
+ ```
82
+
83
+ The empty string sends none, and `userAgent` is absent on an answer to a lookup that sent none, on Unlimited and on a private address, which is answered locally. A batch's `userAgents` is keyed by each address as you list it. The cache keeps an address's answer apart for each agent, so the same address with another agent is another request.
84
+
69
85
  ### Your plan and usage
70
86
 
71
87
  ```js
72
88
  const ent = await client.myEntitlement();
73
- console.log(ent.plan.key); // starter
74
- console.log(ent.plan.name); // Starter, the name to show
89
+ console.log(ent.plan.key); // data_4
90
+ console.log(ent.plan.name); // Data, the name to show
75
91
  console.log(ent.usage.requests); // 580
76
92
  console.log(ent.usage.window_end); // when the allowance resets
77
93
  ```
@@ -330,7 +346,7 @@ Each redirect URI must be https on a public host name, or http on a loopback add
330
346
 
331
347
  ### Absent is not false
332
348
 
333
- Unlimited leaves out `isVpn`, `isHosting`, `isCdn` and the four proxy flags, the detail behind them and behind `isBot`, and the paid members inside `location`, `asn`, `company` and `abuse`, such as `location.city`; a free-plan key's answer carries `trialExpired`, true once its trial is spent. A paid key's carries `capReached`, true once its organization's overage cap is reached, when the answer has Unlimited's fields and isn't billed. A field your key does not include is `undefined`, which means "not in your plan" rather than "checked, and no".
349
+ Unlimited leaves out `isVpn`, `isHosting`, `isCdn` and the four proxy flags, the detail behind them and behind `isBot`, `userAgent`, and the paid members inside `location`, `asn`, `company` and `abuse`, such as `location.city`; a free-plan key's answer carries `trialExpired`, true once its trial is spent. A paid key's carries `capReached`, true once its organization's overage cap is reached, when the answer has Unlimited's fields and isn't billed. A field your key does not include is `undefined`, which means "not in your plan" rather than "checked, and no".
334
350
 
335
351
  ```js
336
352
  result.isVpn ?? false // when you only want the flag
@@ -345,9 +361,9 @@ There are official InternetData client libraries available for many languages in
345
361
 
346
362
  ## About InternetData
347
363
 
348
- Geolocation, anonymity, ownership and network data for IP addresses, AS numbers and domains, as an API and as databases you download and query yourself.
364
+ Geolocation, anonymity, ownership, network, service and domain data for any IP address, AS or domain, by API or as databases you download.
349
365
 
350
- [<img src="https://s3.internetdata.io/internetdata-public/brand/mark.svg" alt="InternetData" height="64"/>](https://internetdata.io/)
366
+ [<picture><source media="(prefers-color-scheme: dark)" srcset="https://s3.internetdata.io/internetdata-public/brand/logo-dark.svg"><img src="https://s3.internetdata.io/internetdata-public/brand/logo.svg" alt="InternetData" height="40"/></picture>](https://internetdata.io/)
351
367
 
352
368
  ## License
353
369
 
package/dist/client.d.ts CHANGED
@@ -85,17 +85,32 @@ export interface Options {
85
85
  /** Override the HTTP implementation, mostly for tests. */
86
86
  fetch?: typeof globalThis.fetch;
87
87
  }
88
- /** Per-call overrides for a single lookup. Anything omitted falls back to the client's setting. */
89
- export interface LookupOptions {
88
+ /** Per-call overrides for one call. Anything omitted falls back to the client's setting. */
89
+ export interface CallOptions {
90
90
  /** Retry attempts for a transient failure, a whole number from 0. */
91
91
  retries?: number;
92
92
  /** How long one attempt may take before it is abandoned, in milliseconds. */
93
93
  timeoutMs?: number;
94
94
  }
95
+ /** Per-call options for `lookup` and `myIp`. */
96
+ export interface LookupOptions extends CallOptions {
97
+ /**
98
+ * The `User-Agent` of the client that came from this address. With every field, on a paid
99
+ * plan or the trial, the answer's `userAgent` then names the agent it claims to be and whether
100
+ * this address bears that out. The empty string sends none, and a longer one than the API's
101
+ * 1024 characters is sent whole for the API to cut.
102
+ */
103
+ userAgent?: string;
104
+ }
95
105
  /** Per-call overrides for one batch. Anything omitted falls back to the client's setting. */
96
- export interface BatchOptions extends LookupOptions {
106
+ export interface BatchOptions extends CallOptions {
97
107
  /** Concurrent batch requests for THIS batch only. */
98
108
  concurrency?: number;
109
+ /**
110
+ * Each address's `User-Agent`, keyed by the address as you pass it in `ips`, sent as
111
+ * `lookup`'s `userAgent` is. An address left out, or given the empty string, sends none.
112
+ */
113
+ userAgents?: Readonly<Record<string, string>> | ReadonlyMap<string, string>;
99
114
  }
100
115
  /**
101
116
  * A client for the InternetData API.
@@ -137,14 +152,16 @@ export declare class InternetData {
137
152
  * What every database says about one address.
138
153
  *
139
154
  * A bogon is answered locally and never reaches the network. Everything
140
- * else is served, then cached for this instance. Calls that miss the cache
141
- * while a request for their address is in flight, a batch's included, await
142
- * that request rather than sending their own, and take its answer, sent
143
- * under the options of the call that led it. An IPv4-mapped address
155
+ * else is served, then cached for this instance, on the address and the
156
+ * `userAgent` sent with it. Calls that miss the cache while a request for
157
+ * their address and agent is in flight, a batch's included, await that
158
+ * request rather than sending their own, and take its answer, sent under the
159
+ * options of the call that led it. An IPv4-mapped address
144
160
  * (`::ffff:8.8.8.8`) is the IPv4 address it carries: judged, sent and cached
145
- * as that, so the answer names `8.8.8.8`. Anything that is not an IP address
146
- * is refused as `bad_request` before it is sent: an AS is `lookupAsn`'s, and
147
- * a domain `lookupDomain`'s.
161
+ * as that, so the answer names `8.8.8.8`. A bogon's answer carries no
162
+ * `userAgent`. Anything that is not an IP address is refused as
163
+ * `bad_request` before it is sent: an AS is `lookupAsn`'s, and a domain
164
+ * `lookupDomain`'s.
148
165
  */
149
166
  lookup(ip: string, options?: LookupOptions): Promise<Result>;
150
167
  private serve;
@@ -158,7 +175,8 @@ export declare class InternetData {
158
175
  *
159
176
  * Deliberately NOT cached. The cache is keyed by address, and which
160
177
  * address this is IS the question: a machine that moves between networks
161
- * would otherwise be told where it used to be.
178
+ * would otherwise be told where it used to be. `userAgent` is sent as
179
+ * `lookup` sends it.
162
180
  */
163
181
  myIp(options?: LookupOptions): Promise<Result>;
164
182
  /**
@@ -169,7 +187,7 @@ export declare class InternetData {
169
187
  * Sent as given and not cached. The API refuses a number it cannot read as
170
188
  * `bad_request`.
171
189
  */
172
- lookupAsn(asn: number, options?: LookupOptions): Promise<AsnResult>;
190
+ lookupAsn(asn: number, options?: CallOptions): Promise<AsnResult>;
173
191
  /**
174
192
  * What InternetData knows about one domain: on every plan whether it is
175
193
  * registered and which DNS record types it has, and on a paid one the
@@ -179,7 +197,7 @@ export declare class InternetData {
179
197
  * Sent as given and not cached. The API refuses a name it cannot read as
180
198
  * `bad_request`.
181
199
  */
182
- lookupDomain(domain: string, options?: LookupOptions): Promise<DomainResult>;
200
+ lookupDomain(domain: string, options?: CallOptions): Promise<DomainResult>;
183
201
  /**
184
202
  * What this client's key is entitled to, and how much of it has been used.
185
203
  *
@@ -199,7 +217,7 @@ export declare class InternetData {
199
217
  * Deliberately NOT cached: the whole point is what has been spent, and a
200
218
  * cached answer is a wrong one within seconds of the next request.
201
219
  */
202
- myEntitlement(options?: LookupOptions): Promise<Entitlement>;
220
+ myEntitlement(options?: CallOptions): Promise<Entitlement>;
203
221
  /**
204
222
  * Look many addresses up in as few requests as possible.
205
223
  *
@@ -220,7 +238,9 @@ export declare class InternetData {
220
238
  * a paid plan: without a key every address in a request of two or more
221
239
  * carries an `unauthorized` error, and a free-plan key's request of two or
222
240
  * more a `bad_request` (HTTP 402). A request of one address is answered as
223
- * its lookup would be.
241
+ * its lookup would be. `userAgents` sends an address's `User-Agent` with it,
242
+ * only from a chunk where an address carries one, and each answer is cached
243
+ * on its address and agent.
224
244
  */
225
245
  lookupBatch(ips: Iterable<string>, options?: BatchOptions): Promise<Map<string, Result | InternetDataError>>;
226
246
  private lookupChunk;
package/dist/client.js CHANGED
@@ -32,9 +32,11 @@ const BATCH_MAX = 1000;
32
32
  */
33
33
  export class InternetData {
34
34
  client;
35
- // Keyed by address. The context is how a call sends the request when the
36
- // address has none in flight: `fetch()` runs it synchronously, so a batch
37
- // knows which addresses it leads before it builds a chunk.
35
+ // Keyed by address, and by the user agent sent with it (`cacheKey`): an
36
+ // answer to one carries that agent's verdict. The context is how a call
37
+ // sends the request when the key has none in flight: `fetch()` runs it
38
+ // synchronously, so a batch knows which addresses it leads before it builds
39
+ // a chunk.
38
40
  cache;
39
41
  limit;
40
42
  retries;
@@ -64,7 +66,7 @@ export class InternetData {
64
66
  this.cache = options.cache === false ? null : new LRUCache({
65
67
  max: checkCacheOption('max', options.cache?.max) ?? 10_000,
66
68
  ttl: ttlMs,
67
- // Concurrent misses for one address share one request: every
69
+ // Concurrent misses for one key share one request: every
68
70
  // `fetch()` while it is in flight gets the same promise, and a
69
71
  // failure rejects them all and is cached for none.
70
72
  fetchMethod: async (_ip, _stale, { context, options }) => {
@@ -100,19 +102,22 @@ export class InternetData {
100
102
  * What every database says about one address.
101
103
  *
102
104
  * A bogon is answered locally and never reaches the network. Everything
103
- * else is served, then cached for this instance. Calls that miss the cache
104
- * while a request for their address is in flight, a batch's included, await
105
- * that request rather than sending their own, and take its answer, sent
106
- * under the options of the call that led it. An IPv4-mapped address
105
+ * else is served, then cached for this instance, on the address and the
106
+ * `userAgent` sent with it. Calls that miss the cache while a request for
107
+ * their address and agent is in flight, a batch's included, await that
108
+ * request rather than sending their own, and take its answer, sent under the
109
+ * options of the call that led it. An IPv4-mapped address
107
110
  * (`::ffff:8.8.8.8`) is the IPv4 address it carries: judged, sent and cached
108
- * as that, so the answer names `8.8.8.8`. Anything that is not an IP address
109
- * is refused as `bad_request` before it is sent: an AS is `lookupAsn`'s, and
110
- * a domain `lookupDomain`'s.
111
+ * as that, so the answer names `8.8.8.8`. A bogon's answer carries no
112
+ * `userAgent`. Anything that is not an IP address is refused as
113
+ * `bad_request` before it is sent: an AS is `lookupAsn`'s, and a domain
114
+ * `lookupDomain`'s.
111
115
  */
112
116
  async lookup(ip, options = {}) {
113
117
  // First, or a bogon and a cached address would answer any value.
114
118
  checkTimeout(options.timeoutMs);
115
119
  checkRetries(options.retries);
120
+ const agent = checkUserAgent(options.userAgent);
116
121
  // The API answers an AS or a domain at this path too, in a shape this
117
122
  // call cannot read, so one sent here failed as three retried server errors.
118
123
  if (typeof ip !== 'string' || !isAddress(unmapped(ip))) {
@@ -124,15 +129,17 @@ export class InternetData {
124
129
  return bogonResult(addr);
125
130
  }
126
131
  if (this.cache === null) {
127
- return this.serve(addr, options);
132
+ return this.serve(addr, agent, options);
128
133
  }
129
- return (await this.cache.fetch(addr, { context: () => this.serve(addr, options) }));
134
+ return (await this.cache.fetch(cacheKey(addr, agent), {
135
+ context: () => this.serve(addr, agent, options),
136
+ }));
130
137
  }
131
- async serve(ip, options) {
138
+ async serve(ip, agent, options) {
132
139
  const timeoutMs = options.timeoutMs ?? this.timeoutMs;
133
140
  return withRetry(options.retries ?? this.retries, async () => {
134
141
  const res = await deadline(timeoutMs, (signal) => lookupIp({
135
- client: this.client, path: { ip: ip }, signal: signal,
142
+ client: this.client, path: { ip: ip }, signal: signal, ...agentQuery(agent),
136
143
  }));
137
144
  return toResult(readable(res, isLookup));
138
145
  });
@@ -147,13 +154,16 @@ export class InternetData {
147
154
  *
148
155
  * Deliberately NOT cached. The cache is keyed by address, and which
149
156
  * address this is IS the question: a machine that moves between networks
150
- * would otherwise be told where it used to be.
157
+ * would otherwise be told where it used to be. `userAgent` is sent as
158
+ * `lookup` sends it.
151
159
  */
152
160
  async myIp(options = {}) {
153
161
  const timeoutMs = checkTimeout(options.timeoutMs) ?? this.timeoutMs;
154
- return withRetry(checkRetries(options.retries) ?? this.retries, async () => {
162
+ const retries = checkRetries(options.retries) ?? this.retries;
163
+ const agent = checkUserAgent(options.userAgent);
164
+ return withRetry(retries, async () => {
155
165
  const res = await deadline(timeoutMs, (signal) => lookupMyIp({
156
- client: this.client, signal: signal,
166
+ client: this.client, signal: signal, ...agentQuery(agent),
157
167
  }));
158
168
  return toResult(readable(res, isLookup));
159
169
  });
@@ -241,12 +251,15 @@ export class InternetData {
241
251
  * a paid plan: without a key every address in a request of two or more
242
252
  * carries an `unauthorized` error, and a free-plan key's request of two or
243
253
  * more a `bad_request` (HTTP 402). A request of one address is answered as
244
- * its lookup would be.
254
+ * its lookup would be. `userAgents` sends an address's `User-Agent` with it,
255
+ * only from a chunk where an address carries one, and each answer is cached
256
+ * on its address and agent.
245
257
  */
246
258
  async lookupBatch(ips, options = {}) {
247
259
  const concurrency = checkConcurrency(options.concurrency);
248
260
  checkTimeout(options.timeoutMs);
249
261
  checkRetries(options.retries);
262
+ const agents = checkUserAgents(options.userAgents);
250
263
  const asked = [...new Set(ips)];
251
264
  const unique = [...new Set(asked.map(unmapped))];
252
265
  const out = new Map();
@@ -262,7 +275,8 @@ export class InternetData {
262
275
  out.set(ip, bogonResult(ip));
263
276
  continue;
264
277
  }
265
- const hit = this.cache?.get(ip);
278
+ const key = cacheKey(ip, agents.get(ip));
279
+ const hit = this.cache?.get(key);
266
280
  if (hit !== undefined) {
267
281
  out.set(ip, hit);
268
282
  continue;
@@ -271,7 +285,7 @@ export class InternetData {
271
285
  pending.push(ip);
272
286
  continue;
273
287
  }
274
- shared.push([ip, this.cache.fetch(ip, {
288
+ shared.push([ip, this.cache.fetch(key, {
275
289
  context: () => {
276
290
  const landing = Promise.withResolvers();
277
291
  led.set(ip, landing);
@@ -289,7 +303,7 @@ export class InternetData {
289
303
  }
290
304
  await Promise.all([
291
305
  ...chunks.map((chunk) => limit(async () => {
292
- for (const [ip, answer] of await this.lookupChunk(chunk, options)) {
306
+ for (const [ip, answer] of await this.lookupChunk(chunk, agents, options)) {
293
307
  const landing = led.get(ip);
294
308
  if (landing === undefined) {
295
309
  out.set(ip, answer);
@@ -320,14 +334,18 @@ export class InternetData {
320
334
  // chunk-level failure - the call refused, the transport failing, the
321
335
  // retries exhausted - becomes every address's error, exactly as it would
322
336
  // have been had each been looked up alone.
323
- async lookupChunk(chunk, options) {
337
+ async lookupChunk(chunk, agents, options) {
324
338
  const out = new Map();
325
339
  const timeoutMs = options.timeoutMs ?? this.timeoutMs;
340
+ // Only where an address of THIS chunk carries an agent, never as `{}`,
341
+ // and keyed by each address exactly as `ips` sends it.
342
+ const sent = chunk.filter((ip) => agents.has(ip)).map((ip) => [ip, agents.get(ip)]);
343
+ const request = sent.length === 0 ? { ips: chunk } : { ips: chunk, user_agents: Object.fromEntries(sent) };
326
344
  let body;
327
345
  try {
328
346
  body = await withRetry(options.retries ?? this.retries, async () => {
329
347
  const res = await deadline(timeoutMs, (signal) => lookupBatch({
330
- client: this.client, body: { ips: chunk }, signal: signal,
348
+ client: this.client, body: request, signal: signal,
331
349
  }));
332
350
  return readable(res, isBatch);
333
351
  });
@@ -384,6 +402,62 @@ function checkCacheOption(name, value) {
384
402
  }
385
403
  return value;
386
404
  }
405
+ /**
406
+ * The user agent a lookup sends, `undefined` for none: the empty string is none,
407
+ * as the API reads `user_agent=`, and a long one is sent whole for the API to cut.
408
+ * Anything but a string is refused before it can reach the query string.
409
+ */
410
+ function checkUserAgent(userAgent) {
411
+ if (userAgent === undefined || userAgent === null || userAgent === '') {
412
+ return undefined;
413
+ }
414
+ if (typeof userAgent !== 'string') {
415
+ throw new InternetDataError('bad_request', `userAgent must be a string, got ${typeof userAgent}`);
416
+ }
417
+ return userAgent;
418
+ }
419
+ /** A batch's user agents, keyed by each address as the batch sends it, every empty one dropped. */
420
+ function checkUserAgents(userAgents) {
421
+ const agents = new Map();
422
+ if (userAgents === undefined || userAgents === null) {
423
+ return agents;
424
+ }
425
+ if (typeof userAgents !== 'object') {
426
+ throw new InternetDataError('bad_request', `userAgents must map addresses to agents, got ${typeof userAgents}`);
427
+ }
428
+ const entries = userAgents instanceof Map ? [...userAgents.entries()] : Object.entries(userAgents);
429
+ for (const [ip, agent] of entries) {
430
+ const checked = checkUserAgent(agent);
431
+ if (checked !== undefined) {
432
+ agents.set(unmapped(String(ip)), checked);
433
+ }
434
+ }
435
+ return agents;
436
+ }
437
+ // An answer to an address with an agent carries that agent's verdict, so it is
438
+ // never served for the address alone or for another agent. The address alone
439
+ // stays the key of a lookup sending none.
440
+ function cacheKey(ip, agent) {
441
+ return agent === undefined ? ip : JSON.stringify([ip, agent]);
442
+ }
443
+ /**
444
+ * The query a lookup sends its agent in, every reserved character percent-encoded,
445
+ * `+` among them, which a server reads as a space. Set by hand, so nothing checks
446
+ * the spec's 1024-character bound before the API cuts it.
447
+ */
448
+ function agentQuery(agent) {
449
+ if (agent === undefined) {
450
+ return {};
451
+ }
452
+ return { query: { user_agent: agent }, querySerializer: strictQuery };
453
+ }
454
+ function strictQuery(query) {
455
+ return Object.entries(query).filter(([, value]) => value !== undefined && value !== null)
456
+ .map(([name, value]) => `${strictEncode(name)}=${strictEncode(String(value))}`).join('&');
457
+ }
458
+ function strictEncode(value) {
459
+ return encodeURIComponent(value).replace(/[!'()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
460
+ }
387
461
  function unreadableEntry(ip) {
388
462
  return new InternetDataError('server_error', `unreadable batch answer for ${ip}, status 200`, 200);
389
463
  }
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,MAAM,MAAM,SAAS,CAAC;AAK7B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EACH,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,IAAI,gBAAgB,EAC9E,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,GAC1G,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACH,WAAW,EAAE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,kBAAkB,EAC3F,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,GAC1D,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,GAC/F,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAWrF,MAAM,CAAC,MAAM,gBAAgB,GAAG,6BA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AM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;YAC7B,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,SAAS,CAAC,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC,CAAC;AACN,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,YAAY,CAAC,MAAsB;IACxC,IAAI,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACpC,OAAO;IACX,CAAC;IACD,MAAM,IAAI,iBAAiB,CACvB,aAAa,EACb,kBAAkB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,oBAAoB,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC5F,CAAC;AACN,CAAC;AAED,qFAAqF;AACrF,8EAA8E;AAC9E,8EAA8E;AAC9E,SAAS,MAAM,CAAC,MAAc,EAAE,KAAa;IACzC,IAAI,MAAM,CAAC,YAAY,KAAK,IAAI,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI,EAAE,CAAC;QAC7D,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,MAAM,cAAc,GAAG,MAAM,CAAC"}
@@ -537,7 +537,7 @@ export type LookupResponse = {
537
537
  */
538
538
  is_bogon: boolean;
539
539
  /**
540
- * In VPN IP: a VPN service's server. Paid plans and the trial.
540
+ * In VPN IP: a VPN service's server. On a paid plan or the trial.
541
541
  */
542
542
  is_vpn?: boolean;
543
543
  /**
@@ -549,27 +549,27 @@ export type LookupResponse = {
549
549
  */
550
550
  is_relay: boolean;
551
551
  /**
552
- * In Residential Proxy IP's 90-day window: a residential proxy exit. Paid plans and the trial.
552
+ * In Residential Proxy IP's 90-day window: a residential proxy exit. On a paid plan or the trial.
553
553
  */
554
554
  is_resproxy?: boolean;
555
555
  /**
556
- * In Datacenter Proxy IP's 90-day window. Paid plans and the trial.
556
+ * In Datacenter Proxy IP's 90-day window. On a paid plan or the trial.
557
557
  */
558
558
  is_dcproxy?: boolean;
559
559
  /**
560
- * In Mobile Proxy IP's 90-day window. Paid plans and the trial.
560
+ * In Mobile Proxy IP's 90-day window. On a paid plan or the trial.
561
561
  */
562
562
  is_mobproxy?: boolean;
563
563
  /**
564
- * In Public Proxy IP: a public proxy listens here, or its traffic left from here. Paid plans and the trial.
564
+ * In Public Proxy IP: a public proxy listens here, or its traffic left from here. On a paid plan or the trial.
565
565
  */
566
566
  is_pubproxy?: boolean;
567
567
  /**
568
- * In Hosting IP: a hosting or cloud network. Paid plans and the trial.
568
+ * In Hosting IP: a hosting or cloud network. On a paid plan or the trial.
569
569
  */
570
570
  is_hosting?: boolean;
571
571
  /**
572
- * In CDN IP: a content delivery network. Paid plans and the trial.
572
+ * In CDN IP: a content delivery network. On a paid plan or the trial.
573
573
  */
574
574
  is_cdn?: boolean;
575
575
  /**
@@ -609,7 +609,7 @@ export type LookupResponse = {
609
609
  */
610
610
  is_bittorrent: boolean;
611
611
  /**
612
- * VPN IP's row, `{}` when `is_vpn` is false. Paid plans and the trial.
612
+ * VPN IP's row, `{}` when `is_vpn` is false. On a paid plan or the trial.
613
613
  */
614
614
  vpn?: ClassDetail;
615
615
  /**
@@ -621,59 +621,59 @@ export type LookupResponse = {
621
621
  */
622
622
  relay: ClassDetail;
623
623
  /**
624
- * `{}` when `is_resproxy` is false. Paid plans and the trial.
624
+ * `{}` when `is_resproxy` is false. On a paid plan or the trial.
625
625
  */
626
626
  resproxy?: ProxyDetail;
627
627
  /**
628
- * `{}` when `is_dcproxy` is false. Paid plans and the trial.
628
+ * `{}` when `is_dcproxy` is false. On a paid plan or the trial.
629
629
  */
630
630
  dcproxy?: ProxyDetail;
631
631
  /**
632
- * `{}` when `is_mobproxy` is false. Paid plans and the trial.
632
+ * `{}` when `is_mobproxy` is false. On a paid plan or the trial.
633
633
  */
634
634
  mobproxy?: ProxyDetail;
635
635
  /**
636
- * `{}` when `is_pubproxy` is false. Paid plans and the trial.
636
+ * `{}` when `is_pubproxy` is false. On a paid plan or the trial.
637
637
  */
638
638
  pubproxy?: PubproxyDetail;
639
639
  /**
640
- * `{}` when `is_hosting` is false. Paid plans and the trial.
640
+ * `{}` when `is_hosting` is false. On a paid plan or the trial.
641
641
  */
642
642
  hosting?: ClassDetail;
643
643
  /**
644
- * `{}` when `is_cdn` is false. Paid plans and the trial.
644
+ * `{}` when `is_cdn` is false. On a paid plan or the trial.
645
645
  */
646
646
  cdn?: ClassDetail;
647
647
  /**
648
- * `{}` when `is_bot` is false. Paid plans and the trial.
648
+ * `{}` when `is_bot` is false. On a paid plan or the trial.
649
649
  */
650
650
  bot?: BotDetail;
651
651
  /**
652
- * `{}` when `is_carrier` is false. Paid plans and the trial.
652
+ * `{}` when `is_carrier` is false. On a paid plan or the trial.
653
653
  */
654
654
  carrier?: CarrierDetail;
655
655
  /**
656
- * `{}` when `is_satellite` is false. Paid plans and the trial.
656
+ * `{}` when `is_satellite` is false. On a paid plan or the trial.
657
657
  */
658
658
  satellite?: SatelliteDetail;
659
659
  /**
660
- * `{}` when `is_ssh` is false. Paid plans and the trial.
660
+ * `{}` when `is_ssh` is false. On a paid plan or the trial.
661
661
  */
662
662
  ssh?: SshDetail;
663
663
  /**
664
- * `{}` when `is_smtp` is false. Paid plans and the trial.
664
+ * `{}` when `is_smtp` is false. On a paid plan or the trial.
665
665
  */
666
666
  smtp?: SmtpDetail;
667
667
  /**
668
- * A row per port that answered, lowest first; `[]` when `is_web` is false. Paid plans and the trial.
668
+ * A row per port that answered, lowest first; `[]` when `is_web` is false. On a paid plan or the trial.
669
669
  */
670
670
  web?: Array<WebDetail>;
671
671
  /**
672
- * `{}` when `is_dns_resolver` is false. Paid plans and the trial.
672
+ * `{}` when `is_dns_resolver` is false. On a paid plan or the trial.
673
673
  */
674
674
  dns_resolver?: DnsResolverDetail;
675
675
  /**
676
- * `{}` when `is_bittorrent` is false. Paid plans and the trial.
676
+ * `{}` when `is_bittorrent` is false. On a paid plan or the trial.
677
677
  */
678
678
  bittorrent?: BitTorrentDetail;
679
679
  location: Location;
@@ -1105,43 +1105,43 @@ export type Location = {
1105
1105
  */
1106
1106
  flag_unicode: string;
1107
1107
  /**
1108
- * Region (state or province). Paid plans and the trial.
1108
+ * Region (state or province). On a paid plan or the trial.
1109
1109
  */
1110
1110
  region?: string;
1111
1111
  /**
1112
- * ISO 3166-2 region code. Paid plans and the trial.
1112
+ * ISO 3166-2 region code. On a paid plan or the trial.
1113
1113
  */
1114
1114
  region_code?: string;
1115
1115
  /**
1116
- * City. Paid plans and the trial.
1116
+ * City. On a paid plan or the trial.
1117
1117
  */
1118
1118
  city?: string;
1119
1119
  /**
1120
- * Postal code. Paid plans and the trial.
1120
+ * Postal code. On a paid plan or the trial.
1121
1121
  */
1122
1122
  postal_code?: string;
1123
1123
  /**
1124
- * Latitude of the city. Paid plans and the trial.
1124
+ * Latitude of the city. On a paid plan or the trial.
1125
1125
  */
1126
1126
  latitude?: number;
1127
1127
  /**
1128
- * Longitude of the city. Paid plans and the trial.
1128
+ * Longitude of the city. On a paid plan or the trial.
1129
1129
  */
1130
1130
  longitude?: number;
1131
1131
  /**
1132
- * Radius in km holding the true location with 67% confidence. Paid plans and the trial.
1132
+ * Radius in km holding the true location with 67% confidence. On a paid plan or the trial.
1133
1133
  */
1134
1134
  accuracy_radius?: number;
1135
1135
  /**
1136
- * GeoNames ID of the city. Paid plans and the trial.
1136
+ * GeoNames ID of the city. On a paid plan or the trial.
1137
1137
  */
1138
1138
  geoname_id?: string;
1139
1139
  /**
1140
- * US TV market (DMA) code. Paid plans and the trial.
1140
+ * US TV market (DMA) code. On a paid plan or the trial.
1141
1141
  */
1142
1142
  dma_code?: string;
1143
1143
  /**
1144
- * The day the range's location last changed. Paid plans and the trial.
1144
+ * The day the range's location last changed. On a paid plan or the trial.
1145
1145
  */
1146
1146
  last_changed?: string;
1147
1147
  };
@@ -1191,11 +1191,11 @@ export type Company = {
1191
1191
  */
1192
1192
  domain: string;
1193
1193
  /**
1194
- * What kind of organization: hosting, isp, business, education, government. Paid plans and the trial.
1194
+ * What kind of organization: hosting, isp, business, education, government. On a paid plan or the trial.
1195
1195
  */
1196
1196
  type?: string;
1197
1197
  /**
1198
- * ISO 3166 country code. Paid plans and the trial.
1198
+ * ISO 3166 country code. On a paid plan or the trial.
1199
1199
  */
1200
1200
  country?: string;
1201
1201
  };
@@ -1208,36 +1208,36 @@ export type AbuseContact = {
1208
1208
  */
1209
1209
  email: string;
1210
1210
  /**
1211
- * The contact. Paid plans and the trial.
1211
+ * The contact. On a paid plan or the trial.
1212
1212
  */
1213
1213
  name?: string;
1214
1214
  /**
1215
- * Its phone number. Paid plans and the trial.
1215
+ * Its phone number. On a paid plan or the trial.
1216
1216
  */
1217
1217
  phone?: string;
1218
1218
  /**
1219
- * Its postal address. Paid plans and the trial.
1219
+ * Its postal address. On a paid plan or the trial.
1220
1220
  */
1221
1221
  address?: string;
1222
1222
  /**
1223
- * ISO 3166 country code. Paid plans and the trial.
1223
+ * ISO 3166 country code. On a paid plan or the trial.
1224
1224
  */
1225
1225
  country?: string;
1226
1226
  /**
1227
- * The registry block it was derived from. Paid plans and the trial.
1227
+ * The registry block it was derived from. On a paid plan or the trial.
1228
1228
  */
1229
1229
  network?: string;
1230
1230
  /**
1231
- * ARIN reports the contact answered its yearly validation. Paid plans and the trial.
1231
+ * ARIN reports the contact answered its yearly validation. On a paid plan or the trial.
1232
1232
  */
1233
1233
  validated?: boolean;
1234
1234
  /**
1235
- * Since when it has not. Paid plans and the trial.
1235
+ * Since when it has not. On a paid plan or the trial.
1236
1236
  */
1237
1237
  unvalidated_since?: string;
1238
1238
  };
1239
1239
  /**
1240
- * IP Whois's most specific record covering the address. Paid plans and the trial.
1240
+ * IP Whois's most specific record covering the address. On a paid plan or the trial.
1241
1241
  */
1242
1242
  export type Whois = {
1243
1243
  /**
@@ -1278,7 +1278,7 @@ export type Whois = {
1278
1278
  asn: number;
1279
1279
  };
1280
1280
  /**
1281
- * IP RWHOIS's most specific network covering the address. Paid plans and the trial.
1281
+ * IP RWHOIS's most specific network covering the address. On a paid plan or the trial.
1282
1282
  */
1283
1283
  export type Rwhois = {
1284
1284
  /**
@@ -1307,7 +1307,7 @@ export type Rwhois = {
1307
1307
  abuse_email: string;
1308
1308
  };
1309
1309
  /**
1310
- * From IP Hosted Domains: how many registered domains resolve to the address, and the 10 most popular. Its database lists up to 1,000 an address. Paid plans and the trial.
1310
+ * From IP Hosted Domains: how many registered domains resolve to the address, and the 10 most popular. Its database lists up to 1,000 an address. On a paid plan or the trial.
1311
1311
  */
1312
1312
  export type HostedDomains = {
1313
1313
  /**
@@ -1320,7 +1320,7 @@ export type HostedDomains = {
1320
1320
  domains?: Array<string>;
1321
1321
  };
1322
1322
  /**
1323
- * From ASN Hosted Domains: how many registered domains the AS hosts, and the 10 most popular. Its database lists up to 1,000 an AS. Paid plans and the trial.
1323
+ * From ASN Hosted Domains: how many registered domains the AS hosts, and the 10 most popular. Its database lists up to 1,000 an AS. On a paid plan or the trial.
1324
1324
  */
1325
1325
  export type AsnHostedDomains = {
1326
1326
  /**
@@ -1361,73 +1361,73 @@ export type AsnLookupResponse = {
1361
1361
  */
1362
1362
  domain: string;
1363
1363
  /**
1364
- * The kind of network it runs. Paid plans and the trial.
1364
+ * The kind of network it runs. On a paid plan or the trial.
1365
1365
  */
1366
1366
  type?: string;
1367
1367
  /**
1368
- * IPv4 addresses it announces. Paid plans and the trial.
1368
+ * IPv4 addresses it announces. On a paid plan or the trial.
1369
1369
  */
1370
1370
  num_ips?: number;
1371
1371
  /**
1372
- * IPv4 prefixes it announces. Paid plans and the trial.
1372
+ * IPv4 prefixes it announces. On a paid plan or the trial.
1373
1373
  */
1374
1374
  num_prefixes4?: number;
1375
1375
  /**
1376
- * IPv6 prefixes it announces. Paid plans and the trial.
1376
+ * IPv6 prefixes it announces. On a paid plan or the trial.
1377
1377
  */
1378
1378
  num_prefixes6?: number;
1379
1379
  /**
1380
- * Its announcements RPKI calls valid. Paid plans and the trial.
1380
+ * Its announcements RPKI calls valid. On a paid plan or the trial.
1381
1381
  */
1382
1382
  rpki_valid?: number;
1383
1383
  /**
1384
- * Invalid. Paid plans and the trial.
1384
+ * Invalid. On a paid plan or the trial.
1385
1385
  */
1386
1386
  rpki_invalid?: number;
1387
1387
  /**
1388
- * With no RPKI record. Paid plans and the trial.
1388
+ * With no RPKI record. On a paid plan or the trial.
1389
1389
  */
1390
1390
  rpki_not_found?: number;
1391
1391
  /**
1392
- * Its ASN Whois record, every column, empty where the registry states nothing. Paid plans and the trial.
1392
+ * Its ASN Whois record, every column, empty where the registry states nothing. On a paid plan or the trial.
1393
1393
  */
1394
1394
  whois?: {
1395
1395
  [key: string]: string;
1396
1396
  };
1397
1397
  /**
1398
- * What it announces, IPv4 then IPv6, up to 20000 a family. Paid plans and the trial.
1398
+ * What it announces, IPv4 then IPv6, up to 20000 a family. On a paid plan or the trial.
1399
1399
  */
1400
1400
  prefixes?: Array<AsnPrefix>;
1401
1401
  /**
1402
- * Its rank in ASN Extended, by customer cone, 1 the largest; `0` for an AS seen in no AS path. Paid plans and the trial.
1402
+ * Its rank in ASN Extended, by customer cone, 1 the largest; `0` for an AS seen in no AS path. On a paid plan or the trial.
1403
1403
  */
1404
1404
  rank?: number;
1405
1405
  /**
1406
- * Whether it is one of the transit-free networks at the top of the hierarchy, which get transit from no one and peer with each other. Paid plans and the trial.
1406
+ * Whether it is one of the transit-free networks at the top of the hierarchy, which get transit from no one and peer with each other. On a paid plan or the trial.
1407
1407
  */
1408
1408
  tier1?: boolean;
1409
1409
  /**
1410
- * How many AS numbers it gets transit from. Paid plans and the trial.
1410
+ * How many AS numbers it gets transit from. On a paid plan or the trial.
1411
1411
  */
1412
1412
  num_upstreams?: number;
1413
1413
  /**
1414
- * Those AS numbers, ascending, up to 20000. Paid plans and the trial.
1414
+ * Those AS numbers, ascending, up to 20000. On a paid plan or the trial.
1415
1415
  */
1416
1416
  upstreams?: Array<number>;
1417
1417
  /**
1418
- * How many AS numbers it exchanges its own and its customers' routes with. Paid plans and the trial.
1418
+ * How many AS numbers it exchanges its own and its customers' routes with. On a paid plan or the trial.
1419
1419
  */
1420
1420
  num_peers?: number;
1421
1421
  /**
1422
- * Those AS numbers, ascending, up to 20000. Paid plans and the trial.
1422
+ * Those AS numbers, ascending, up to 20000. On a paid plan or the trial.
1423
1423
  */
1424
1424
  peers?: Array<number>;
1425
1425
  /**
1426
- * How many AS numbers it provides transit to. Paid plans and the trial.
1426
+ * How many AS numbers it provides transit to. On a paid plan or the trial.
1427
1427
  */
1428
1428
  num_downstreams?: number;
1429
1429
  /**
1430
- * Those AS numbers, ascending, up to 20000. Paid plans and the trial.
1430
+ * Those AS numbers, ascending, up to 20000. On a paid plan or the trial.
1431
1431
  */
1432
1432
  downstreams?: Array<number>;
1433
1433
  hosted_domains?: AsnHostedDomains;
@@ -1483,7 +1483,7 @@ export type DomainLookupResponse = {
1483
1483
  */
1484
1484
  is_registered: boolean;
1485
1485
  /**
1486
- * In Disposable Domain. Paid plans and the trial.
1486
+ * In Disposable Domain. On a paid plan or the trial.
1487
1487
  */
1488
1488
  is_disposable?: boolean;
1489
1489
  /**
@@ -1508,13 +1508,13 @@ export type DomainLookupResponse = {
1508
1508
  has_cname: boolean;
1509
1509
  dns?: DomainDns;
1510
1510
  /**
1511
- * The network announcing each address in `dns.a` and then `dns.aaaa`, from IP ASN; `[]` where it resolves to none. Paid plans and the trial.
1511
+ * The network announcing each address in `dns.a` and then `dns.aaaa`, from IP ASN; `[]` where it resolves to none. On a paid plan or the trial.
1512
1512
  */
1513
1513
  hosting?: Array<DomainHost>;
1514
1514
  cohosted_domains?: CohostedDomains;
1515
1515
  ip_ranges?: DomainIpRanges;
1516
1516
  /**
1517
- * `{}` when `is_disposable` is false. Paid plans and the trial.
1517
+ * `{}` when `is_disposable` is false. On a paid plan or the trial.
1518
1518
  */
1519
1519
  disposable?: DisposableDetail;
1520
1520
  web?: DomainWeb;
@@ -1543,7 +1543,7 @@ export type DomainHost = {
1543
1543
  asn: Asn;
1544
1544
  };
1545
1545
  /**
1546
- * From IP Hosted Domains: the other registered domains on the domain's first IPv4 address, how many and the 10 most popular. Paid plans and the trial.
1546
+ * From IP Hosted Domains: the other registered domains on the domain's first IPv4 address, how many and the 10 most popular. On a paid plan or the trial.
1547
1547
  */
1548
1548
  export type CohostedDomains = {
1549
1549
  /**
@@ -1560,7 +1560,7 @@ export type CohostedDomains = {
1560
1560
  domains: Array<string>;
1561
1561
  };
1562
1562
  /**
1563
- * What our crawl last read of the domain's own home page, every member empty where it holds none. Paid plans and the trial.
1563
+ * What our crawl last read of the domain's own home page, every member empty where it holds none. On a paid plan or the trial.
1564
1564
  */
1565
1565
  export type DomainWeb = {
1566
1566
  /**
@@ -1595,7 +1595,7 @@ export type DomainWebLinks = {
1595
1595
  hosts: Array<string>;
1596
1596
  };
1597
1597
  /**
1598
- * The registered domains whose home page redirects to this one, how many and the 10 most popular. Paid plans and the trial.
1598
+ * The registered domains whose home page redirects to this one, how many and the 10 most popular. On a paid plan or the trial.
1599
1599
  */
1600
1600
  export type DomainRedirects = {
1601
1601
  /**
@@ -1608,7 +1608,7 @@ export type DomainRedirects = {
1608
1608
  domains: Array<string>;
1609
1609
  };
1610
1610
  /**
1611
- * The registered domains whose home page links to this one, how many and the 10 most popular. Paid plans and the trial.
1611
+ * The registered domains whose home page links to this one, how many and the 10 most popular. On a paid plan or the trial.
1612
1612
  */
1613
1613
  export type DomainBacklinks = {
1614
1614
  /**
@@ -1621,7 +1621,7 @@ export type DomainBacklinks = {
1621
1621
  domains: Array<string>;
1622
1622
  };
1623
1623
  /**
1624
- * Its records in Domain DNS, up to 100 a type. Paid plans and the trial.
1624
+ * Its records in Domain DNS, up to 100 a type. On a paid plan or the trial.
1625
1625
  */
1626
1626
  export type DomainDns = {
1627
1627
  a: Array<DnsAddressRecord>;
@@ -1675,7 +1675,7 @@ export type DnsCnameRecord = {
1675
1675
  last_seen: string;
1676
1676
  };
1677
1677
  /**
1678
- * The organization's IP ranges, from Domain IP Ranges. Paid plans and the trial.
1678
+ * The organization's IP ranges, from Domain IP Ranges. On a paid plan or the trial.
1679
1679
  */
1680
1680
  export type DomainIpRanges = {
1681
1681
  /**
@@ -1816,7 +1816,8 @@ export type EntitlementPlan = {
1816
1816
  * The plan the organization is on, as an identifier that is never
1817
1817
  * renamed or reused: `free` for the free plan, or a paid plan's key.
1818
1818
  * Compare against it and show `name`. On `free`, usage counts its
1819
- * trial, the lookups answered with every field.
1819
+ * trial, the lookups answered with every field. The Data plan is a key
1820
+ * per quota, `data_1` to `data_7`, each named Data.
1820
1821
  *
1821
1822
  */
1822
1823
  key: string;
@@ -1859,11 +1860,15 @@ export type EntitlementUsage = {
1859
1860
  */
1860
1861
  hard_limit: number | null;
1861
1862
  /**
1862
- * When the current allowance period began.
1863
+ * When the current allowance period began. On the free plan, when
1864
+ * its trial began, or now before a first lookup starts it.
1865
+ *
1863
1866
  */
1864
1867
  window_start: string;
1865
1868
  /**
1866
- * When the allowance next resets.
1869
+ * When the allowance next resets. On the free plan, when its trial
1870
+ * ends, which it does once.
1871
+ *
1867
1872
  */
1868
1873
  window_end: string;
1869
1874
  };
@@ -1 +1 @@
1
- export declare const VERSION = "2.17.0";
1
+ export declare const VERSION = "2.18.0";
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.17.0';
1
+ export const VERSION = '2.18.0';
2
2
  //# sourceMappingURL=version.js.map
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { InternetData, DatabaseApi, DEFAULT_BASE_URL } from './client.js';
2
- export type { BatchOptions, CacheOptions, DownloadDestination, DownloadOptions, DownloadsOptions, DownloadUrlOptions, LookupOptions, Options, } from './client.js';
2
+ export type { BatchOptions, CacheOptions, CallOptions, DownloadDestination, DownloadOptions, DownloadsOptions, DownloadUrlOptions, LookupOptions, Options, } from './client.js';
3
3
  export { OauthApi } from './oauth.js';
4
4
  export type { OauthOptions, DeviceAuthorizationOptions, PollDeviceTokenOptions, AuthorizationUrlOptions, RegisterOptions, OauthMetadata, DeviceAuthorization, TokenResponse, Pkce, ClientRegistration, } from './oauth.js';
5
5
  export { isBogon } from './bogon.js';
@@ -7,4 +7,4 @@ export { InternetDataError, OauthError, OauthAccessDeniedError, OauthExpiredToke
7
7
  export type { ErrorKind } from './errors.js';
8
8
  export { DATABASE_FORMATS, DATASET_FORMATS, LICENSE_TYPES, STANDINGS } from './types.js';
9
9
  export type { Database, DatabaseFormat, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DatasetFormat, DbChecksums, Download, LicenseType, Standing, } from './types.js';
10
- export type { Result, AsnResult, DomainResult, LookupResponse, AsnLookupResponse, DomainLookupResponse, ClassDetail, ProxyDetail, PubproxyDetail, CarrierDetail, SatelliteDetail, SshDetail, SmtpDetail, WebDetail, DnsResolverDetail, BitTorrentDetail, Location, Asn, Company, AbuseContact, Whois, Rwhois, HostedDomains, AsnPrefix, DomainDns, DnsAddressRecord, DnsMxRecord, DnsNsRecord, DnsCnameRecord, DomainIpRanges, DomainIpRange, DisposableDetail, DomainHost, CohostedDomains, DomainWeb, DomainWebLinks, DomainRedirects, DomainBacklinks, Entitlement, EntitlementApikey, EntitlementPlan, EntitlementUsage, } from './types.js';
10
+ export type { Result, AsnResult, DomainResult, LookupResponse, AsnLookupResponse, DomainLookupResponse, ClassDetail, ProxyDetail, PubproxyDetail, CarrierDetail, SatelliteDetail, SshDetail, SmtpDetail, WebDetail, DnsResolverDetail, BitTorrentDetail, BotDetail, UserAgentVerdict, Location, Asn, Company, AbuseContact, Whois, Rwhois, HostedDomains, AsnPrefix, DomainDns, DnsAddressRecord, DnsMxRecord, DnsNsRecord, DnsCnameRecord, DomainIpRanges, DomainIpRange, DisposableDetail, DomainHost, CohostedDomains, DomainWeb, DomainWebLinks, DomainRedirects, DomainBacklinks, Entitlement, EntitlementApikey, EntitlementPlan, EntitlementUsage, } from './types.js';
@@ -21,6 +21,8 @@ export interface RequestView {
21
21
  * and your edge, so this is yours to choose.
22
22
  */
23
23
  export type IpSelector<Req> = (request: Req) => string | undefined;
24
+ /** How the request's own `User-Agent` is read, for `allowBots`. */
25
+ export type UserAgentSelector<Req> = (request: Req) => string | undefined;
24
26
  /** What a lookup attached to the request, whether or not it succeeded. */
25
27
  export interface Lookup {
26
28
  /** The address that was classified, as the selector resolved it. */
@@ -72,7 +74,19 @@ export interface MiddlewareOptions<Req> {
72
74
  * become yours.
73
75
  */
74
76
  failClosed?: boolean;
75
- /** What to do when the condition names a member your plan does not serve. Default `warn`. */
77
+ /**
78
+ * Let a verified crawler through. Default false. On, the lookup sends the request's own
79
+ * `User-Agent`, and a request whose answer's `userAgent.verdict` is `verified` is never
80
+ * blocked, whatever `blockCondition` matches; the answer is still attached. An absent or
81
+ * empty header sends none. Off, no agent is sent, so the cache keeps one entry per address.
82
+ * A verdict needs every field (a paid plan or the trial): a served answer without one is
83
+ * reported once under `onMissingField`.
84
+ */
85
+ allowBots?: boolean;
86
+ /**
87
+ * What to do when the condition names a member your plan does not serve, or when `allowBots`
88
+ * sent an agent and the answer carries no verdict. Default `warn`.
89
+ */
76
90
  onMissingField?: MissingFieldAction;
77
91
  /** Skip classification for this request entirely. */
78
92
  skip?: (request: Req) => boolean;
@@ -88,9 +102,11 @@ export interface Core<Req> {
88
102
  * and decide whether the condition matched.
89
103
  *
90
104
  * Adapters own the framework-shaped parts - reading a request, attaching the
91
- * answer, and refusing a request - and share everything here.
105
+ * answer, and refusing a request - and share everything here. `userAgent`
106
+ * reads the request's `User-Agent`, which `allowBots` needs; an adapter gets
107
+ * one from `bindSelectors`.
92
108
  */
93
- export declare function createCore<Req>(options: MiddlewareOptions<Req>, defaultIpSelector: IpSelector<Req>): Core<Req>;
109
+ export declare function createCore<Req>(options: MiddlewareOptions<Req>, defaultIpSelector: IpSelector<Req>, userAgent?: UserAgentSelector<Req>): Core<Req>;
94
110
  /**
95
111
  * Selectors bound to one framework's request type.
96
112
  *
@@ -125,4 +141,6 @@ export declare function bindSelectors<Req>(view: (request: Req) => RequestView):
125
141
  * Falls back to the framework's accessor when the header is absent.
126
142
  */
127
143
  headerIpSelector: (name: string) => (request: Req) => string | undefined;
144
+ /** The request's own `User-Agent`, which `allowBots` sends. */
145
+ userAgentSelector: (request: Req) => string | undefined;
128
146
  };
@@ -7,14 +7,23 @@ import { constraintCount, matchesCondition, missingMembers } from './condition.j
7
7
  * and decide whether the condition matched.
8
8
  *
9
9
  * Adapters own the framework-shaped parts - reading a request, attaching the
10
- * answer, and refusing a request - and share everything here.
10
+ * answer, and refusing a request - and share everything here. `userAgent`
11
+ * reads the request's `User-Agent`, which `allowBots` needs; an adapter gets
12
+ * one from `bindSelectors`.
11
13
  */
12
- export function createCore(options, defaultIpSelector) {
14
+ export function createCore(options, defaultIpSelector, userAgent) {
13
15
  const condition = options.blockCondition;
14
16
  if (condition !== undefined && constraintCount(condition) === 0) {
15
17
  throw new Error('internetdata: blockCondition constrains nothing, which would block every request. '
16
18
  + 'A member set to false or null is ignored; state the positive signals you act on.');
17
19
  }
20
+ if (options.allowBots !== undefined && options.allowBots !== null && typeof options.allowBots !== 'boolean') {
21
+ throw new Error(`internetdata: allowBots must be true or false, got ${typeof options.allowBots}`);
22
+ }
23
+ const allowBots = options.allowBots === true;
24
+ if (allowBots && userAgent === undefined) {
25
+ throw new Error('internetdata: allowBots needs the request\'s User-Agent; pass createCore a userAgent selector');
26
+ }
18
27
  const client = options.client ?? new InternetData({
19
28
  apiKey: options.apiKey,
20
29
  baseUrl: options.baseUrl,
@@ -47,9 +56,11 @@ export function createCore(options, defaultIpSelector) {
47
56
  + 'If this application runs behind a proxy or load balancer, configure its '
48
57
  + 'trusted-proxy setting or pass an ipSelector that reads your edge\'s header.');
49
58
  }
59
+ // The empty header is none, as the client reads it.
60
+ const agent = allowBots ? userAgent(request) || undefined : undefined;
50
61
  let result;
51
62
  try {
52
- result = await client.lookup(ip, lookupOptions);
63
+ result = await client.lookup(ip, agent === undefined ? lookupOptions : { ...lookupOptions, userAgent: agent });
53
64
  }
54
65
  catch (err) {
55
66
  return {
@@ -63,10 +74,17 @@ export function createCore(options, defaultIpSelector) {
63
74
  if (condition !== undefined) {
64
75
  reportMissing(condition, result, options.onMissingField ?? 'warn', warn);
65
76
  }
77
+ // A bogon is answered locally, so it was sent nothing and has no verdict to lack.
78
+ if (agent !== undefined && !result.isBogon && result.userAgent === undefined) {
79
+ report(options.onMissingField ?? 'warn', warn, 'allowBots sent the request\'s User-Agent, but '
80
+ + 'the answer carries no userAgent verdict, so no crawler is let through: a verdict needs '
81
+ + 'every field, on a paid plan or the trial.');
82
+ }
83
+ const verified = allowBots && result.userAgent?.verdict === 'verified';
66
84
  return {
67
85
  ip: ip,
68
86
  result: result,
69
- blocked: condition !== undefined && matchesCondition(condition, result),
87
+ blocked: condition !== undefined && !verified && matchesCondition(condition, result),
70
88
  };
71
89
  },
72
90
  };
@@ -116,6 +134,8 @@ export function bindSelectors(view) {
116
134
  const v = view(request);
117
135
  return v.header(name)?.trim() || v.frameworkIp();
118
136
  },
137
+ /** The request's own `User-Agent`, which `allowBots` sends. */
138
+ userAgentSelector: (request) => view(request).header('user-agent'),
119
139
  };
120
140
  }
121
141
  function reportMissing(condition, result, action, warn) {
@@ -126,9 +146,14 @@ function reportMissing(condition, result, action, warn) {
126
146
  if (missing.length === 0) {
127
147
  return;
128
148
  }
129
- const message = `blockCondition names ${missing.join(', ')}, which your plan does not `
149
+ report(action, warn, `blockCondition names ${missing.join(', ')}, which your plan does not `
130
150
  + 'include, so those terms can never match. An absent member means "not in your plan", '
131
- + 'not "checked, and no".';
151
+ + 'not "checked, and no".');
152
+ }
153
+ function report(action, warn, message) {
154
+ if (action === 'ignore') {
155
+ return;
156
+ }
132
157
  if (action === 'throw') {
133
158
  throw new Error(`internetdata: ${message}`);
134
159
  }
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../../src/middleware/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,YAAY,EAAqB,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGjD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAuB,MAAM,gBAAgB,CAAC;AAyFxG;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CACtB,OAA+B,EAC/B,iBAAkC;IAElC,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC;IACzC,IAAI,SAAS,KAAK,SAAS,IAAI,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9D,MAAM,IAAI,KAAK,CACX,oFAAoF;cAClF,kFAAkF,CACvF,CAAC;IACN,CAAC;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,IAAI,YAAY,CAAC;QAC9C,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,KAAK,EAAE,OAAO,CAAC,KAAK;KACvB,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,IAAI,iBAAiB,CAAC;IACzD,MAAM,aAAa,GAAG;QAClB,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,IAAI;QACpC,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,CAAC;KAChC,CAAC;IACF,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAE9E,OAAO;QACH,QAAQ,EAAE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AC,SAAS,EAAE,MAAM,CAAC,CAAC;IAClD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO;IACX,CAAC;IACD,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,wBAAwB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,6BAA6B;UACtF,sFAAsF;UACtF,wBAAwB,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,MAAM,CAAC,MAA0B,EAAE,IAA+B,EAAE,OAAe;IACxF,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;QACtB,OAAO;IACX,CAAC;IACD,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,iBAAiB,OAAO,EAAE,CAAC,CAAC;IAChD,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,CAAC;AAClB,CAAC;AAED,0EAA0E;AAC1E,iEAAiE;AACjE,SAAS,QAAQ,CAAC,IAA+B;IAC7C,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,OAAO,CAAC,OAAO,EAAE,EAAE;QACf,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACpB,OAAO;QACX,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAClB,IAAI,CAAC,kBAAkB,OAAO,EAAE,CAAC,CAAC;IACtC,CAAC,CAAC;AACN,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { bindSelectors, createCore } from './core.js';
2
- export type { Core, IpSelector, Lookup, MiddlewareOptions, MissingFieldAction, RequestView, } from './core.js';
2
+ export type { Core, IpSelector, Lookup, MiddlewareOptions, MissingFieldAction, RequestView, UserAgentSelector, } from './core.js';
3
3
  export { constraintCount, matchesCondition, missingMembers } from './condition.js';
4
4
  export type { BlockCondition, NumericBound } from './condition.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetdata/internetdata",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "Official Node.js client library for the InternetData API. Look up IP addresses, ASNs and domains, and download licensed IP database files.",
5
5
  "type": "module",
6
6
  "license": "MIT",