vpndetection 5.9.0 → 5.10.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
@@ -17,7 +17,7 @@ Requires Node.js 22 or newer. TypeScript types are included.
17
17
 
18
18
  ## Usage
19
19
 
20
- **No API key needed to start.** The free tier answers `ip` and `is_vpn`, and allows 1000 requests per day per source address.
20
+ **No API key needed to start.** Without a key, a lookup answers `ip` and `is_vpn`, up to 1000 a day per source address.
21
21
 
22
22
  ```js
23
23
  import { VPNDetection } from 'vpndetection';
@@ -30,16 +30,17 @@ console.log(result.isVpn); // true
30
30
 
31
31
  ### With an API key
32
32
 
33
- An API key raises your quota, and raises your features on a paid plan. Create one in the [console](https://app.vpndetection.io), then pass it in:
33
+ A free key adds Tor and relay detection, where the address is and the AS that announces it. Every paid plan answers every field, the same on each, and the plans differ only in how many lookups they include. Create a key in the [console](https://app.vpndetection.io), then pass it in:
34
34
 
35
35
  ```js
36
36
  const client = new VPNDetection({ apiKey: process.env.VPNDETECTION_API_KEY });
37
37
 
38
38
  const result = await client.lookup('45.83.91.1');
39
- console.log(result.isVpn); // true
40
- console.log(result.vpn?.provider);
41
- console.log(result.isHosting); // true
42
- console.log(result.hosting?.provider);
39
+ console.log(result.isVpn); // true
40
+ console.log(result.location?.country); // the ISO 3166 country code
41
+ console.log(result.asn?.name); // who runs the announcing network
42
+ console.log(result.vpn?.provider); // on a paid plan
43
+ console.log(result.isHosting); // on a paid plan
43
44
  ```
44
45
 
45
46
  ### Your own address
@@ -246,7 +247,7 @@ Each redirect URI must be https on a public host name, or http on a loopback add
246
247
 
247
248
  ### Absent is not false
248
249
 
249
- Only `ip` and `isVpn` come back on every plan. A field your plan does not include is `undefined`, which means "not in your plan" rather than "checked, and no".
250
+ Without a key only `ip` and `isVpn` come back, and a free key adds Tor, relay, `location` and `asn`. A field your key does not include is `undefined`, which means "not in your plan" rather than "checked, and no".
250
251
 
251
252
  ```js
252
253
  result.isHosting ?? false // when you only want the flag
package/dist/bogon.d.ts CHANGED
@@ -18,7 +18,8 @@ export declare function isBogon(ip: string): boolean;
18
18
  export declare function unmapped(ip: string): string;
19
19
  /**
20
20
  * The answer a bogon gets, in the full shape the API serves at its widest plan:
21
- * every flag present and false, every detail object present and empty.
21
+ * every flag present and false, every detail object present and empty, and
22
+ * `location` and `asn` with every key empty, as the API answers a bogon.
22
23
  *
23
24
  * `isBogon` is set so a caller can always tell a locally computed answer from a
24
25
  * served one. Note this is deliberately the WIDEST shape regardless of your
package/dist/bogon.js CHANGED
@@ -36,7 +36,8 @@ export function unmapped(ip) {
36
36
  }
37
37
  /**
38
38
  * The answer a bogon gets, in the full shape the API serves at its widest plan:
39
- * every flag present and false, every detail object present and empty.
39
+ * every flag present and false, every detail object present and empty, and
40
+ * `location` and `asn` with every key empty, as the API answers a bogon.
40
41
  *
41
42
  * `isBogon` is set so a caller can always tell a locally computed answer from a
42
43
  * served one. Note this is deliberately the WIDEST shape regardless of your
@@ -64,6 +65,19 @@ export function bogonResult(ip) {
64
65
  dcproxy: {},
65
66
  mobproxy: {},
66
67
  pubproxy: {},
68
+ location: {
69
+ continent: '',
70
+ continent_name: '',
71
+ country: '',
72
+ country_name: '',
73
+ timezone: '',
74
+ currency_code: '',
75
+ currency_name: '',
76
+ currency_symbol: '',
77
+ flag_emoji: '',
78
+ flag_unicode: '',
79
+ },
80
+ asn: { asn: 0, name: '', domain: '', type: '', prefix: '' },
67
81
  raw: {},
68
82
  };
69
83
  }
package/dist/bogon.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bogon.js","sourceRoot":"","sources":["../src/bogon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAIrD;;;;;;;;GAQG;AACH,MAAM,UAAU,OAAO,CAAC,EAAU;IAC9B,MAAM,IAAI,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC1B,IAAI,I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;IAC7C,CAAC;IACD,OAAO,CAAC,CAAC;AACb,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export { accountCreateApikey, accountIdentity, accountListApikeys, accountOrg, accountOrgMembers, accountRevealApikey, accountRevokeApikey, accountRotateApikey, databaseChecksum, databaseMetadata, downloadDatabase, listDatabases, listDownloads, lookupBatch, lookupIp, lookupMyIp, myEntitlement, oauthAuthorize, oauthDeviceAuthorization, oauthMetadata, oauthRegister, oauthRevoke, oauthToken, type Options } from './sdk.gen.js';
2
- export type { AccountCreateApikeyData, AccountCreateApikeyError, AccountCreateApikeyErrors, AccountCreateApikeyRequest, AccountCreateApikeyResponse, AccountCreateApikeyResponses, AccountCreatedApikey, AccountIdentityData, AccountIdentityError, AccountIdentityErrors, AccountIdentityResponse, AccountIdentityResponses, AccountListApikeysData, AccountListApikeysError, AccountListApikeysErrors, AccountListApikeysResponse, AccountListApikeysResponses, AccountOrg, AccountOrgData, AccountOrgError, AccountOrgErrors, AccountOrgMembersData, AccountOrgMembersError, AccountOrgMembersErrors, AccountOrgMembersResponse, AccountOrgMembersResponses, AccountOrgRef, AccountOrgResponse, AccountOrgResponses, AccountOrgWrap, AccountRc, AccountRevealApikeyData, AccountRevealApikeyError, AccountRevealApikeyErrors, AccountRevealApikeyResponse, AccountRevealApikeyResponses, AccountRevealedApikey, AccountRevokeApikeyData, AccountRevokeApikeyError, AccountRevokeApikeyErrors, AccountRevokeApikeyResponse, AccountRevokeApikeyResponses, AccountRotateApikeyData, AccountRotateApikeyError, AccountRotateApikeyErrors, AccountRotateApikeyResponse, AccountRotateApikeyResponses, AccountUser, ApikeyDetail, ApikeyIdParam, ApikeyList, BatchLookupError, BatchLookupRequest, BatchLookupResponse, ClassDetail, ClientOptions, ClientRegistration, ClientRegistrationRequest, Database, DatabaseChecksumData, DatabaseChecksumError, DatabaseChecksumErrors, DatabaseChecksumResponse, DatabaseChecksumResponses, DatabaseFormat, DatabaseFormatSize, DatabaseMetadata, DatabaseMetadataColumn, DatabaseMetadataData, DatabaseMetadataError, DatabaseMetadataErrors, DatabaseMetadataResponse, DatabaseMetadataResponses, DatabaseVersion, DbChecksums, DeviceAuthorization, DeviceAuthorizationRequest, Download, DownloadDatabaseData, DownloadDatabaseError, DownloadDatabaseErrors, Entitlement, EntitlementApikey, EntitlementError, EntitlementPlan, EntitlementUsage, Error, Identity, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListDownloadsData, ListDownloadsError, ListDownloadsErrors, ListDownloadsResponse, ListDownloadsResponses, LookupBatchData, LookupBatchError, LookupBatchErrors, LookupBatchResponse, LookupBatchResponses, LookupError, LookupIpData, LookupIpError, LookupIpErrors, LookupIpResponse, LookupIpResponses, LookupMyIpData, LookupMyIpError, LookupMyIpErrors, LookupMyIpResponse, LookupMyIpResponses, LookupResponse, MyEntitlementData, MyEntitlementError, MyEntitlementErrors, MyEntitlementResponse, MyEntitlementResponses, OauthAuthorizeData, OauthAuthorizeErrors, OauthDeviceAuthorizationData, OauthDeviceAuthorizationError, OauthDeviceAuthorizationErrors, OauthDeviceAuthorizationResponse, OauthDeviceAuthorizationResponses, OauthError, OauthMetadata, OauthMetadataData, OauthMetadataResponse, OauthMetadataResponses, OauthRegisterData, OauthRegisterError, OauthRegisterErrors, OauthRegisterResponse, OauthRegisterResponses, OauthRevokeData, OauthRevokeResponse, OauthRevokeResponses, OauthTokenData, OauthTokenError, OauthTokenErrors, OauthTokenResponse, OauthTokenResponses, ProxyDetail, PubproxyDetail, RevokeRequest, Standing, TokenRequest, TokenResponse, VpnDetail } from './types.gen.js';
2
+ export type { AccountCreateApikeyData, AccountCreateApikeyError, AccountCreateApikeyErrors, AccountCreateApikeyRequest, AccountCreateApikeyResponse, AccountCreateApikeyResponses, AccountCreatedApikey, AccountIdentityData, AccountIdentityError, AccountIdentityErrors, AccountIdentityResponse, AccountIdentityResponses, AccountListApikeysData, AccountListApikeysError, AccountListApikeysErrors, AccountListApikeysResponse, AccountListApikeysResponses, AccountOrg, AccountOrgData, AccountOrgError, AccountOrgErrors, AccountOrgMembersData, AccountOrgMembersError, AccountOrgMembersErrors, AccountOrgMembersResponse, AccountOrgMembersResponses, AccountOrgRef, AccountOrgResponse, AccountOrgResponses, AccountOrgWrap, AccountRc, AccountRevealApikeyData, AccountRevealApikeyError, AccountRevealApikeyErrors, AccountRevealApikeyResponse, AccountRevealApikeyResponses, AccountRevealedApikey, AccountRevokeApikeyData, AccountRevokeApikeyError, AccountRevokeApikeyErrors, AccountRevokeApikeyResponse, AccountRevokeApikeyResponses, AccountRotateApikeyData, AccountRotateApikeyError, AccountRotateApikeyErrors, AccountRotateApikeyResponse, AccountRotateApikeyResponses, AccountUser, ApikeyDetail, ApikeyIdParam, ApikeyList, Asn, BatchLookupError, BatchLookupRequest, BatchLookupResponse, ClassDetail, ClientOptions, ClientRegistration, ClientRegistrationRequest, Database, DatabaseChecksumData, DatabaseChecksumError, DatabaseChecksumErrors, DatabaseChecksumResponse, DatabaseChecksumResponses, DatabaseFormat, DatabaseFormatSize, DatabaseMetadata, DatabaseMetadataColumn, DatabaseMetadataData, DatabaseMetadataError, DatabaseMetadataErrors, DatabaseMetadataResponse, DatabaseMetadataResponses, DatabaseVersion, DbChecksums, DeviceAuthorization, DeviceAuthorizationRequest, Download, DownloadDatabaseData, DownloadDatabaseError, DownloadDatabaseErrors, Entitlement, EntitlementApikey, EntitlementError, EntitlementPlan, EntitlementUsage, Error, Identity, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListDownloadsData, ListDownloadsError, ListDownloadsErrors, ListDownloadsResponse, ListDownloadsResponses, Location, LookupBatchData, LookupBatchError, LookupBatchErrors, LookupBatchResponse, LookupBatchResponses, LookupError, LookupIpData, LookupIpError, LookupIpErrors, LookupIpResponse, LookupIpResponses, LookupMyIpData, LookupMyIpError, LookupMyIpErrors, LookupMyIpResponse, LookupMyIpResponses, LookupResponse, MyEntitlementData, MyEntitlementError, MyEntitlementErrors, MyEntitlementResponse, MyEntitlementResponses, OauthAuthorizeData, OauthAuthorizeErrors, OauthDeviceAuthorizationData, OauthDeviceAuthorizationError, OauthDeviceAuthorizationErrors, OauthDeviceAuthorizationResponse, OauthDeviceAuthorizationResponses, OauthError, OauthMetadata, OauthMetadataData, OauthMetadataResponse, OauthMetadataResponses, OauthRegisterData, OauthRegisterError, OauthRegisterErrors, OauthRegisterResponse, OauthRegisterResponses, OauthRevokeData, OauthRevokeResponse, OauthRevokeResponses, OauthTokenData, OauthTokenError, OauthTokenErrors, OauthTokenResponse, OauthTokenResponses, ProxyDetail, PubproxyDetail, RevokeRequest, Standing, TokenRequest, TokenResponse, VpnDetail } from './types.gen.js';
@@ -17,8 +17,8 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
17
17
  * Lookup
18
18
  *
19
19
  * Answers what is known about a single IPv4 or IPv6 address. Which fields
20
- * come back is decided by the plan behind the presented key; with no key
21
- * the answer is `ip` and `is_vpn`.
20
+ * come back is decided by the presented key; with no key the answer is
21
+ * `ip` and `is_vpn`.
22
22
  *
23
23
  */
24
24
  export declare const lookupIp: <ThrowOnError extends boolean = false>(options: Options<LookupIpData, ThrowOnError>) => RequestResult<LookupIpResponses, LookupIpErrors, ThrowOnError>;
@@ -26,9 +26,9 @@ export declare const lookupIp: <ThrowOnError extends boolean = false>(options: O
26
26
  * My IP
27
27
  *
28
28
  * Answers what is known about the address this request came from, which is
29
- * the same answer `GET /{ip}` gives for that address: the plan behind the
30
- * presented key decides which fields come back, and the request counts
31
- * against the same allowance.
29
+ * the same answer `GET /{ip}` gives for that address: the presented key
30
+ * decides which fields come back, and the request counts against the same
31
+ * allowance.
32
32
  *
33
33
  * The address is the one our edge observed, so a request through a proxy
34
34
  * or a VPN reports the exit it left through rather than the machine that
@@ -5,8 +5,8 @@ import { urlSearchParamsBodySerializer } from './client/index.js';
5
5
  * Lookup
6
6
  *
7
7
  * Answers what is known about a single IPv4 or IPv6 address. Which fields
8
- * come back is decided by the plan behind the presented key; with no key
9
- * the answer is `ip` and `is_vpn`.
8
+ * come back is decided by the presented key; with no key the answer is
9
+ * `ip` and `is_vpn`.
10
10
  *
11
11
  */
12
12
  export const lookupIp = (options) => (options.client ?? client).get({
@@ -26,9 +26,9 @@ export const lookupIp = (options) => (options.client ?? client).get({
26
26
  * My IP
27
27
  *
28
28
  * Answers what is known about the address this request came from, which is
29
- * the same answer `GET /{ip}` gives for that address: the plan behind the
30
- * presented key decides which fields come back, and the request counts
31
- * against the same allowance.
29
+ * the same answer `GET /{ip}` gives for that address: the presented key
30
+ * decides which fields come back, and the request counts against the same
31
+ * allowance.
32
32
  *
33
33
  * The address is the one our edge observed, so a request through a proxy
34
34
  * or a VPN reports the exit it left through rather than the machine that
@@ -21,76 +21,78 @@ export type LookupResponse = {
21
21
  */
22
22
  is_vpn: boolean;
23
23
  /**
24
- * Whether the address belongs to a hosting or cloud provider. Starter and above.
24
+ * Whether the address belongs to a hosting or cloud provider. Paid plans.
25
25
  */
26
26
  is_hosting?: boolean;
27
27
  /**
28
- * Whether the address is privacy relay or enterprise web gateway egress, such as iCloud Private Relay or Zscaler. Starter and above.
28
+ * Whether the address is privacy relay or enterprise web gateway egress, such as iCloud Private Relay or Zscaler. Free and paid plans.
29
29
  */
30
30
  is_relay?: boolean;
31
31
  /**
32
- * Whether the address is a Tor node. Starter and above.
32
+ * Whether the address is a Tor node. Free and paid plans.
33
33
  */
34
34
  is_tor?: boolean;
35
35
  /**
36
- * Whether the address belongs to a CDN. Starter and above.
36
+ * Whether the address belongs to a CDN. Paid plans.
37
37
  */
38
38
  is_cdn?: boolean;
39
39
  /**
40
- * Whether the address was seen in a residential proxy pool. Scale and above.
40
+ * Whether the address was seen in a residential proxy pool. Paid plans.
41
41
  */
42
42
  is_resproxy?: boolean;
43
43
  /**
44
- * Whether the address was seen in a datacenter proxy pool. Scale and above.
44
+ * Whether the address was seen in a datacenter proxy pool. Paid plans.
45
45
  */
46
46
  is_dcproxy?: boolean;
47
47
  /**
48
- * Whether the address was seen in a mobile proxy pool. Scale and above.
48
+ * Whether the address was seen in a mobile proxy pool. Paid plans.
49
49
  */
50
50
  is_mobproxy?: boolean;
51
51
  /**
52
- * Whether a public proxy, one anyone can connect through, listens on the address or sends its traffic out from it. Scale and above.
52
+ * Whether a public proxy, one anyone can connect through, listens on the address or sends its traffic out from it. Paid plans.
53
53
  */
54
54
  is_pubproxy?: boolean;
55
55
  /**
56
- * Detail for `is_vpn`. Empty when `is_vpn` is false. Starter and above.
56
+ * Detail for `is_vpn`. Empty when `is_vpn` is false. Paid plans.
57
57
  *
58
58
  */
59
59
  vpn?: VpnDetail;
60
60
  /**
61
- * Detail for `is_hosting`. Empty when false. Scale and above.
61
+ * Detail for `is_hosting`. Empty when false. Paid plans.
62
62
  */
63
63
  hosting?: ClassDetail;
64
64
  /**
65
- * Detail for `is_relay`. Empty when false. Scale and above.
65
+ * Detail for `is_relay`. Empty when false. Free and paid plans.
66
66
  */
67
67
  relay?: ClassDetail;
68
68
  /**
69
- * Detail for `is_tor`. Empty when false. Scale and above. The tor
69
+ * Detail for `is_tor`. Empty when false. Free and paid plans. The tor
70
70
  * dataset carries no provider, so `provider` is always an empty string.
71
71
  *
72
72
  */
73
73
  tor?: ClassDetail;
74
74
  /**
75
- * Detail for `is_cdn`. Empty when false. Scale and above.
75
+ * Detail for `is_cdn`. Empty when false. Paid plans.
76
76
  */
77
77
  cdn?: ClassDetail;
78
78
  /**
79
- * Detail for `is_resproxy`. Empty when false. Max only.
79
+ * Detail for `is_resproxy`. Empty when false. Paid plans.
80
80
  */
81
81
  resproxy?: ProxyDetail;
82
82
  /**
83
- * Detail for `is_dcproxy`. Empty when false. Max only.
83
+ * Detail for `is_dcproxy`. Empty when false. Paid plans.
84
84
  */
85
85
  dcproxy?: ProxyDetail;
86
86
  /**
87
- * Detail for `is_mobproxy`. Empty when false. Max only.
87
+ * Detail for `is_mobproxy`. Empty when false. Paid plans.
88
88
  */
89
89
  mobproxy?: ProxyDetail;
90
90
  /**
91
- * Detail for `is_pubproxy`. Empty when false. Max only.
91
+ * Detail for `is_pubproxy`. Empty when false. Paid plans.
92
92
  */
93
93
  pubproxy?: PubproxyDetail;
94
+ location?: Location;
95
+ asn?: Asn;
94
96
  };
95
97
  export type BatchLookupRequest = {
96
98
  /**
@@ -139,8 +141,7 @@ export type BatchLookupError = {
139
141
  /**
140
142
  * What is known about the VPN attribution. Every key is present when the
141
143
  * object is populated, empty values included; the object is `{}` when
142
- * `is_vpn` is false. `confidence` and `method` are max only, so on a lower
143
- * plan they are absent from a populated object rather than empty.
144
+ * `is_vpn` is false.
144
145
  *
145
146
  */
146
147
  export type VpnDetail = {
@@ -153,20 +154,16 @@ export type VpnDetail = {
153
154
  */
154
155
  last_seen?: string;
155
156
  /**
156
- * How strongly the attribution is supported. Max only.
157
+ * How strongly the attribution is supported.
157
158
  */
158
159
  confidence?: string;
159
160
  /**
160
- * The class of evidence the attribution rests on, one of four values.
161
- * Max only.
161
+ * Never returned since 2026-10-20: no plan is answered with the class of
162
+ * evidence an attribution rests on. Declared so that a client typed
163
+ * against it keeps compiling; read `confidence` instead.
162
164
  *
163
- * `scan` - we spoke the VPN protocol to the address ourselves and got a
164
- * valid server response. `scrape` - the operator published the address
165
- * through its own API, client or configuration. `registry` - public
166
- * registration or naming records attribute it to the operator.
167
- * `infer` - the address was extrapolated from confirmed neighbors in
168
- * the same block.
169
165
  *
166
+ * @deprecated
170
167
  */
171
168
  method?: string;
172
169
  };
@@ -273,6 +270,83 @@ export type PubproxyDetail = {
273
270
  */
274
271
  last_usable?: string;
275
272
  };
273
+ /**
274
+ * Where the address is, to the country: the fields of our IP Country
275
+ * database. Free and paid plans. Each field is present whenever the
276
+ * object is, so an address in no country, or a private one, answers
277
+ * empty strings.
278
+ *
279
+ */
280
+ export type Location = {
281
+ /**
282
+ * Continent code: AF, AN (Antarctica), AS, EU, NA, OC or SA.
283
+ */
284
+ continent: string;
285
+ /**
286
+ * Continent name.
287
+ */
288
+ continent_name: string;
289
+ /**
290
+ * ISO 3166-1 alpha-2 country code.
291
+ */
292
+ country: string;
293
+ /**
294
+ * Country name.
295
+ */
296
+ country_name: string;
297
+ /**
298
+ * IANA timezone of the address.
299
+ */
300
+ timezone: string;
301
+ /**
302
+ * ISO 4217 code of the country's currency, where there is one.
303
+ */
304
+ currency_code: string;
305
+ /**
306
+ * Name of the country's currency, where there is one.
307
+ */
308
+ currency_name: string;
309
+ /**
310
+ * Symbol of the country's currency, where known.
311
+ */
312
+ currency_symbol: string;
313
+ /**
314
+ * The country's flag, as an emoji.
315
+ */
316
+ flag_emoji: string;
317
+ /**
318
+ * The Unicode code points of the flag emoji.
319
+ */
320
+ flag_unicode: string;
321
+ };
322
+ /**
323
+ * The autonomous system that announces the address. Free and paid plans.
324
+ * Each field is present whenever the object is: `asn` is 0 and the rest
325
+ * empty where no announcement covers the address.
326
+ *
327
+ */
328
+ export type Asn = {
329
+ /**
330
+ * The AS number, 0 when no announcement covers the address.
331
+ */
332
+ asn: number;
333
+ /**
334
+ * Name of the organization that operates the AS.
335
+ */
336
+ name: string;
337
+ /**
338
+ * The AS operator's own registrable domain.
339
+ */
340
+ domain: string;
341
+ /**
342
+ * The kind of network the AS runs: isp, hosting, education, government or business.
343
+ */
344
+ type: string;
345
+ /**
346
+ * The announced BGP prefix that covers the address, the most specific when several do.
347
+ */
348
+ prefix: string;
349
+ };
276
350
  /**
277
351
  * Every non-2xx response carries this shape.
278
352
  */
@@ -345,6 +419,15 @@ export type Database = {
345
419
  */
346
420
  in_term: boolean;
347
421
  standing: Standing;
422
+ /**
423
+ * An Open database: free under CC BY-SA 4.0 (credit VPNDetection,
424
+ * https://vpndetection.io, and share what you build from it under the
425
+ * same license). Every organization holds a `standard` license to it
426
+ * from the start, which `standing` and `license_type` report like any
427
+ * other.
428
+ *
429
+ */
430
+ open: boolean;
348
431
  /**
349
432
  * Every published version of this family. The `id` here is what the
350
433
  * download and checksum endpoints take.
@@ -378,6 +461,10 @@ export type Download = {
378
461
  * The evaluation sample rather than the database itself.
379
462
  */
380
463
  sample: boolean;
464
+ /**
465
+ * A download of an Open database.
466
+ */
467
+ open: boolean;
381
468
  /**
382
469
  * Object size at redirect time, NOT bytes delivered: the transfer is a
383
470
  * presigned redirect straight to object storage, so we never observe it.
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export type { OauthOptions, DeviceAuthorizationOptions, PollDeviceTokenOptions,
5
5
  export { isBogon } from './bogon.js';
6
6
  export { VPNDetectionError, OauthError, OauthAccessDeniedError, OauthExpiredTokenError, } from './errors.js';
7
7
  export type { ErrorKind } from './errors.js';
8
- export type { Result, VpnDetail, ClassDetail, ProxyDetail, PubproxyDetail, LookupResponse, } from './types.js';
8
+ export type { Result, VpnDetail, ClassDetail, ProxyDetail, PubproxyDetail, Location, Asn, LookupResponse, } from './types.js';
9
9
  export { DATABASE_FORMATS, STANDINGS, LICENSE_TYPES } from './types.js';
10
10
  export type { Database, DatabaseFormat, DatabaseFormatSize, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DbChecksums, Download, Standing, } from './generated/types.gen.js';
11
11
  export type LicenseType = NonNullable<import('./generated/types.gen.js').Database['license_type']>;
package/dist/shapes.d.ts CHANGED
@@ -5,12 +5,12 @@ export declare const ENTITLEMENT_MEMBERS: readonly ["org_id", "apikey", "plan",
5
5
  export declare const ENTITLEMENT_APIKEY_MEMBERS: readonly ["id", "allowed_cidrs"];
6
6
  export declare const ENTITLEMENT_PLAN_MEMBERS: readonly ["key", "tier"];
7
7
  export declare const ENTITLEMENT_USAGE_MEMBERS: readonly ["requests", "quota", "window_start", "window_end"];
8
- export declare const DATABASE_MEMBERS: readonly ["base", "name", "summary", "in_term", "standing", "versions"];
8
+ export declare const DATABASE_MEMBERS: readonly ["base", "name", "summary", "in_term", "standing", "open", "versions"];
9
9
  export declare const DATABASE_VERSION_MEMBERS: readonly ["id", "version", "formats"];
10
10
  export declare const DATABASE_FORMAT_SIZE_MEMBERS: readonly ["format"];
11
11
  export declare const DATABASE_METADATA_MEMBERS: readonly ["id", "updated", "entries", "schema"];
12
12
  export declare const DB_CHECKSUMS_MEMBERS: readonly ["md5", "sha1", "sha256", "sha512"];
13
- export declare const DOWNLOAD_MEMBERS: readonly ["dataset_id", "format", "outcome", "sample", "created"];
13
+ export declare const DOWNLOAD_MEMBERS: readonly ["dataset_id", "format", "outcome", "sample", "open", "created"];
14
14
  export declare function isLookup(data: unknown): boolean;
15
15
  /** Both maps present. An entry in either is judged on its own, as that address's answer. */
16
16
  export declare function isBatch(data: unknown): boolean;
package/dist/shapes.js CHANGED
@@ -10,12 +10,12 @@ export const ENTITLEMENT_MEMBERS = ['org_id', 'apikey', 'plan', 'usage'];
10
10
  export const ENTITLEMENT_APIKEY_MEMBERS = ['id', 'allowed_cidrs'];
11
11
  export const ENTITLEMENT_PLAN_MEMBERS = ['key', 'tier'];
12
12
  export const ENTITLEMENT_USAGE_MEMBERS = ['requests', 'quota', 'window_start', 'window_end'];
13
- export const DATABASE_MEMBERS = ['base', 'name', 'summary', 'in_term', 'standing', 'versions'];
13
+ export const DATABASE_MEMBERS = ['base', 'name', 'summary', 'in_term', 'standing', 'open', 'versions'];
14
14
  export const DATABASE_VERSION_MEMBERS = ['id', 'version', 'formats'];
15
15
  export const DATABASE_FORMAT_SIZE_MEMBERS = ['format'];
16
16
  export const DATABASE_METADATA_MEMBERS = ['id', 'updated', 'entries', 'schema'];
17
17
  export const DB_CHECKSUMS_MEMBERS = ['md5', 'sha1', 'sha256', 'sha512'];
18
- export const DOWNLOAD_MEMBERS = ['dataset_id', 'format', 'outcome', 'sample', 'created'];
18
+ export const DOWNLOAD_MEMBERS = ['dataset_id', 'format', 'outcome', 'sample', 'open', 'created'];
19
19
  function isObject(value) {
20
20
  return typeof value === 'object' && value !== null && !Array.isArray(value);
21
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"shapes.js","sourceRoot":"","sources":["../src/shapes.ts"],"names":[],"mappings":"AAAA,gFAAg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@ -1,5 +1,5 @@
1
- import type { ClassDetail, Database, DatabaseFormat, LookupResponse, ProxyDetail, PubproxyDetail, Standing, VpnDetail } from './generated/types.gen.js';
2
- export type { ClassDetail, ProxyDetail, PubproxyDetail, VpnDetail, LookupResponse };
1
+ import type { Asn, ClassDetail, Database, DatabaseFormat, Location, LookupResponse, ProxyDetail, PubproxyDetail, Standing, VpnDetail } from './generated/types.gen.js';
2
+ export type { Asn, ClassDetail, Location, ProxyDetail, PubproxyDetail, VpnDetail, LookupResponse };
3
3
  export declare const DATABASE_FORMATS: readonly DatabaseFormat[];
4
4
  export declare const STANDINGS: readonly Standing[];
5
5
  export declare const LICENSE_TYPES: readonly NonNullable<Database['license_type']>[];
@@ -38,6 +38,13 @@ export interface Result {
38
38
  dcproxy?: ProxyDetail;
39
39
  mobproxy?: ProxyDetail;
40
40
  pubproxy?: PubproxyDetail;
41
+ /**
42
+ * Where the address is, on every keyed answer: every key present, empty strings where it is
43
+ * not known.
44
+ */
45
+ location?: Location;
46
+ /** The AS announcing the address, on every keyed answer: `asn` is 0 where none does. */
47
+ asn?: Asn;
41
48
  /** The response exactly as it came off the wire, with its original names. */
42
49
  raw: LookupResponse;
43
50
  }
package/dist/types.js CHANGED
@@ -40,6 +40,8 @@ export function toResult(body) {
40
40
  copyDetail(body, r, 'dcproxy', 'dcproxy');
41
41
  copyDetail(body, r, 'mobproxy', 'mobproxy');
42
42
  copyDetail(body, r, 'pubproxy', 'pubproxy');
43
+ copyDetail(body, r, 'location', 'location');
44
+ copyDetail(body, r, 'asn', 'asn');
43
45
  return r;
44
46
  }
45
47
  function copyFlag(body, out, from, to) {
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAOA,+EAA+E;AAC/E,+EAA+E;AAC/E,+EAA+E;AAC/E,gFAAgF;AAChF,8BAA8B;AAC9B,EAAE;AACF,4EAA4E;AAC5E,gFAAgF;AAChF,oEA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1
1
  {
2
2
  "name": "vpndetection",
3
- "version": "5.9.0",
3
+ "version": "5.10.0",
4
4
  "description": "Official Node.js client library for the VPNDetection API. Detect VPNs, proxies, Tor, hosting and CDN IPs.",
5
5
  "type": "module",
6
6
  "license": "MIT",