internetdata-mcp 3.1.12 → 3.2.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 +61 -6
- package/dist/coverage.d.ts +58 -0
- package/dist/coverage.js +95 -0
- package/dist/coverage.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/schema.gen.d.ts +12 -1
- package/dist/schema.gen.js +1594 -1
- package/dist/schema.gen.js.map +1 -1
- package/dist/tools.js +309 -13
- package/dist/tools.js.map +1 -1
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
The official [Model Context Protocol](https://modelcontextprotocol.io) server for the [InternetData](https://internetdata.io) API.
|
|
7
7
|
|
|
8
|
-
InternetData publishes IP and
|
|
8
|
+
It gives an AI agent nine read-only tools: what every database InternetData publishes says about an IP address, an AS or a domain - where an address is, which network announces it and who uses it, whether it is a VPN, a residential, datacenter, mobile or public proxy, a Tor node, a privacy relay, a hosting provider or a CDN, anycast, a mobile carrier's or satellite operator's space, or private and reserved space, and whether an SSH, mail, web, open DNS resolver or BitTorrent service answered on it - plus what your key's plan includes, the IP and ASN database catalog with where your organization's license for each one stands, what is inside a database, the digests to verify a copy you already hold, and your recent download history.
|
|
9
9
|
|
|
10
10
|
## Getting Started
|
|
11
11
|
|
|
12
|
-
We host it at `https://mcp.internetdata.io/mcp`, and you sign in to it with your InternetData account. It also runs on your own machine from npm.
|
|
12
|
+
We host it at `https://mcp.internetdata.io/mcp`, and you sign in to it with your InternetData account. It also runs on your own machine from npm. Databases are licensed by contract. The Open ones, `tor_ip_v1` among them, are licensed to every organization from the start and are free under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). For the rest, see the [API documentation](https://docs.internetdata.io/api), or [request an evaluation](https://internetdata.io/contact?purpose=evaluation&subject=Evaluation+license) if your organization doesn't have a license yet.
|
|
13
13
|
|
|
14
14
|
### In Claude
|
|
15
15
|
|
|
@@ -34,13 +34,40 @@ codex mcp login internetdata
|
|
|
34
34
|
|
|
35
35
|
Either way you sign in with your InternetData account, and neither sees your API key. The steps: [docs.internetdata.io/integrations/chatgpt](https://docs.internetdata.io/integrations/chatgpt) and [docs.internetdata.io/integrations/codex](https://docs.internetdata.io/integrations/codex). On the OpenAI API, the Responses API's `mcp` tool takes the server as its `server_url` and your key as its `authorization`.
|
|
36
36
|
|
|
37
|
+
### In Gemini CLI
|
|
38
|
+
|
|
39
|
+
Install our extension, which runs the npm package below on your machine:
|
|
40
|
+
|
|
41
|
+
```console
|
|
42
|
+
gemini extensions install https://github.com/internetdata/mcp
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
It asks for your API key and keeps it in your system keychain. Leave it blank to look things up without one; the database tools need a key with the `db.download` scope.
|
|
46
|
+
|
|
37
47
|
### In any other MCP client
|
|
38
48
|
|
|
39
49
|
Point it at `https://mcp.internetdata.io/mcp`. A client that supports MCP authorization signs in the same way. One that doesn't can send a key instead, as `Authorization: Bearer your-key`.
|
|
40
50
|
|
|
41
51
|
### On your own machine
|
|
42
52
|
|
|
43
|
-
|
|
53
|
+
**No API key needed to look something up.** Unlimited, the free plan, answers with no daily or monthly cap, with a key or without one: an address's country-level location, the network that announces it, the company that uses it, its abuse email and reverse DNS name, and whether it is Tor, a relay, anycast, carrier or satellite space and which services answer on it; an AS's registration; and whether a domain is registered and which DNS record types it has. Every paid plan answers every field: VPN, proxy, hosting and CDN detection with the detail behind each flag, city-level location, Whois and RWHOIS, an AS's prefixes and RPKI status, and a domain's records, IP ranges and whether it is disposable. A free account tries every field, 100 lookups a day.
|
|
54
|
+
|
|
55
|
+
Add this to your MCP client's config:
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"mcpServers": {
|
|
60
|
+
"internetdata": {
|
|
61
|
+
"command": "npx",
|
|
62
|
+
"args": ["-y", "internetdata-mcp"]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Requires Node.js 22 or newer.
|
|
69
|
+
|
|
70
|
+
A key on a paid plan unlocks every field, and the database tools need a key carrying the `db.download` scope. Put it in the environment:
|
|
44
71
|
|
|
45
72
|
```json
|
|
46
73
|
{
|
|
@@ -54,18 +81,46 @@ You need an API key carrying the `db.download` scope. Add this to your MCP clien
|
|
|
54
81
|
}
|
|
55
82
|
```
|
|
56
83
|
|
|
57
|
-
|
|
84
|
+
`INTERNETDATA_BASE_URL` overrides the endpoint if you need to point somewhere else.
|
|
58
85
|
|
|
59
86
|
## Tools
|
|
60
87
|
|
|
61
88
|
| Tool | What it answers |
|
|
62
89
|
|---|---|
|
|
90
|
+
| `lookup_ip` | What every database says about one address. |
|
|
91
|
+
| `lookup_ips` | The same for a whole list of addresses in one call, keyed by address. A long list is batched for you. Needs a key on a paid plan; with a key on the free plan, a list of up to 10 addresses is looked up one address at a time instead. |
|
|
92
|
+
| `lookup_asn` | What we know about one AS, by its number: its registration, and on a paid plan its prefixes, RPKI status and Whois record. |
|
|
93
|
+
| `lookup_domain` | What we know about one domain: whether it is registered and which DNS record types it has, and on a paid plan the records, its organization's IP ranges and whether it is disposable. |
|
|
94
|
+
| `my_entitlement` | What this key is entitled to and what it has spent: plan, field tier, requests so far, allowance, and when it resets. |
|
|
63
95
|
| `list_databases` | Every database we publish, with its `standing` for your organization (`licensed`, `expired` or `unlicensed`) and the type and term of any license. |
|
|
64
96
|
| `database_metadata` | A database's columns, sample rows, row count, build date and file sizes. |
|
|
65
97
|
| `database_checksum` | The published digests for one database file. |
|
|
66
98
|
| `list_downloads` | Your organization's recent download attempts, refusals included. |
|
|
67
99
|
|
|
68
|
-
Every tool is read-only.
|
|
100
|
+
Every tool is read-only. Answers come from our databases' latest builds: no lookup sends a DNS query, or opens a connection to the address or the domain.
|
|
101
|
+
|
|
102
|
+
**There is deliberately no `my_ip` tool, although every client library has one.** Over a hosted transport the address our edge observes belongs to whatever proxied the call - Claude's infrastructure, not the person asking - so the tool would answer confidently and wrongly for the only reading anyone would put on it. `my_entitlement` has no such problem and is the same answer from any transport, because it describes the credential rather than the connection.
|
|
103
|
+
|
|
104
|
+
A paid plan's usage counts against the anniversary of the subscription, not the calendar month and not the billing period, and the free plan's against the UTC day. A null `hard_limit` means we never stop serving; it is not a limit of zero.
|
|
105
|
+
|
|
106
|
+
## Reading a result
|
|
107
|
+
|
|
108
|
+
Each lookup comes back with a `coverage` block beside it:
|
|
109
|
+
|
|
110
|
+
```json
|
|
111
|
+
{
|
|
112
|
+
"result": { "ip": "146.70.116.130", "is_bogon": false, "is_tor": false, "location": { "country": "AT", "...": "..." }, "...": "..." },
|
|
113
|
+
"coverage": {
|
|
114
|
+
"included": ["ip", "is_bogon", "is_tor", "is_relay", "tor", "relay", "location", "asn", "..."],
|
|
115
|
+
"not_included": ["is_vpn", "is_hosting", "vpn", "whois", "location.city", "..."],
|
|
116
|
+
"note": "The fields in not_included were not returned, because this API key's plan does not include them. ..."
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
This matters more here than in a normal client library. A field missing from a result means your plan doesn't include it, never "we checked and found nothing" - and a model reading the result on its own will otherwise treat the absence as a negative answer. `coverage` states the difference explicitly so it can't. A paid field inside an object every plan gets, such as `location.city`, is named by its path.
|
|
122
|
+
|
|
123
|
+
An answer to a key on the free plan also carries `trial_expired`: false while its organization's daily trial of every field lasts, and true once the answer is Unlimited's, which `coverage.note` then says.
|
|
69
124
|
|
|
70
125
|
## Two spellings of a database ID
|
|
71
126
|
|
|
@@ -96,7 +151,7 @@ There are official InternetData client libraries available for many languages in
|
|
|
96
151
|
|
|
97
152
|
## About InternetData
|
|
98
153
|
|
|
99
|
-
Geolocation, anonymity, ownership and
|
|
154
|
+
Geolocation, anonymity, ownership, network, service and domain data for any IP address, AS or domain, by API or as databases you download.
|
|
100
155
|
|
|
101
156
|
[<img src="https://s3.internetdata.io/internetdata-public/brand/mark.svg" alt="InternetData" height="64"/>](https://internetdata.io/)
|
|
102
157
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a lookup answer did and did not cover.
|
|
3
|
+
*
|
|
4
|
+
* The API's contract is that a missing member means "not in this plan", never
|
|
5
|
+
* "we checked and found nothing". A model reading a served body cannot tell the
|
|
6
|
+
* two apart and will report an absent `is_vpn` as a negative finding, so every
|
|
7
|
+
* answer carries this alongside it.
|
|
8
|
+
*/
|
|
9
|
+
export interface Coverage {
|
|
10
|
+
/** Members the API returned, so they were actually checked. */
|
|
11
|
+
included: string[];
|
|
12
|
+
/** Members this plan does not buy. Absent, not false. */
|
|
13
|
+
not_included: string[];
|
|
14
|
+
note: string;
|
|
15
|
+
}
|
|
16
|
+
/** Which lookup an answer came from: an address, an AS or a domain. */
|
|
17
|
+
export type LookupKind = 'ip' | 'asn' | 'domain';
|
|
18
|
+
/**
|
|
19
|
+
* Derives coverage from the answer body alone.
|
|
20
|
+
*
|
|
21
|
+
* Deliberately no plan table: the members are read from the pinned spec and the
|
|
22
|
+
* absent ones are whatever the API left out, so a field added to the API starts
|
|
23
|
+
* appearing here as soon as `scripts/download-spec.sh` is re-run. The caller's
|
|
24
|
+
* plan is never named, because the plan's identity is not the useful fact - what
|
|
25
|
+
* it failed to check is.
|
|
26
|
+
*/
|
|
27
|
+
export declare function coverageOf(body: Record<string, unknown>, kind?: LookupKind): Coverage;
|
|
28
|
+
/**
|
|
29
|
+
* One coverage for a whole batch, taken from the first served answer.
|
|
30
|
+
*
|
|
31
|
+
* A bogon is answered locally in the widest shape, so reading coverage off one
|
|
32
|
+
* would report every dataset as covered whatever the plan actually buys. Errors
|
|
33
|
+
* carry no shape at all. With neither available there is nothing honest to say,
|
|
34
|
+
* which is what `NOTE_UNKNOWN` says.
|
|
35
|
+
*/
|
|
36
|
+
export declare function batchCoverage(bodies: Record<string, unknown>[]): Coverage;
|
|
37
|
+
export declare const COVERAGE_SCHEMA: {
|
|
38
|
+
readonly type: "object";
|
|
39
|
+
readonly description: "Which datasets this result covered. Read `note` before interpreting any absent field.";
|
|
40
|
+
readonly properties: {
|
|
41
|
+
readonly included: {
|
|
42
|
+
readonly type: "array";
|
|
43
|
+
readonly items: {
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly not_included: {
|
|
48
|
+
readonly type: "array";
|
|
49
|
+
readonly items: {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly note: {
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
readonly required: readonly ["included", "not_included", "note"];
|
|
58
|
+
};
|
package/dist/coverage.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ASN_LOOKUP_GATED_MEMBERS, ASN_LOOKUP_MEMBERS, DOMAIN_LOOKUP_GATED_MEMBERS, DOMAIN_LOOKUP_MEMBERS, LOOKUP_GATED_MEMBERS, LOOKUP_MEMBERS, } from './schema.gen.js';
|
|
2
|
+
const KINDS = {
|
|
3
|
+
ip: {
|
|
4
|
+
members: LOOKUP_MEMBERS,
|
|
5
|
+
gated: LOOKUP_GATED_MEMBERS,
|
|
6
|
+
subject: 'the address',
|
|
7
|
+
misreading: 'that the address is not a VPN, a proxy, hosting or a CDN, or that a detail of its '
|
|
8
|
+
+ 'location, network or abuse contact is unknown',
|
|
9
|
+
},
|
|
10
|
+
asn: {
|
|
11
|
+
members: ASN_LOOKUP_MEMBERS,
|
|
12
|
+
gated: ASN_LOOKUP_GATED_MEMBERS,
|
|
13
|
+
subject: 'the AS',
|
|
14
|
+
misreading: 'that the AS announces nothing or has no Whois record',
|
|
15
|
+
},
|
|
16
|
+
domain: {
|
|
17
|
+
members: DOMAIN_LOOKUP_MEMBERS,
|
|
18
|
+
gated: DOMAIN_LOOKUP_GATED_MEMBERS,
|
|
19
|
+
subject: 'the domain',
|
|
20
|
+
misreading: 'that the domain is not a disposable email domain or has no DNS records or IP ranges',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
const NOTE_FULL = 'This plan covers every dataset the API serves, so every field was checked. A '
|
|
24
|
+
+ 'false flag here is a real negative result.';
|
|
25
|
+
const NOTE_BOGON = 'This is a private, reserved or otherwise non-routable address. It was answered '
|
|
26
|
+
+ 'locally without calling the API, so every flag is false by definition rather than by lookup, '
|
|
27
|
+
+ 'and it did not count against the key\'s allowance.';
|
|
28
|
+
const NOTE_UNKNOWN = 'No served answer was available to derive coverage from, so this batch says '
|
|
29
|
+
+ 'nothing about which datasets the plan covers.';
|
|
30
|
+
/**
|
|
31
|
+
* Derives coverage from the answer body alone.
|
|
32
|
+
*
|
|
33
|
+
* Deliberately no plan table: the members are read from the pinned spec and the
|
|
34
|
+
* absent ones are whatever the API left out, so a field added to the API starts
|
|
35
|
+
* appearing here as soon as `scripts/download-spec.sh` is re-run. The caller's
|
|
36
|
+
* plan is never named, because the plan's identity is not the useful fact - what
|
|
37
|
+
* it failed to check is.
|
|
38
|
+
*/
|
|
39
|
+
export function coverageOf(body, kind = 'ip') {
|
|
40
|
+
const { members, gated, subject, misreading } = KINDS[kind];
|
|
41
|
+
const included = members.filter((m) => served(body, m));
|
|
42
|
+
const notIncluded = gated.filter((m) => !served(body, m));
|
|
43
|
+
let note = NOTE_FULL;
|
|
44
|
+
if (notIncluded.length > 0) {
|
|
45
|
+
const lead = body['trial_expired'] === true
|
|
46
|
+
? 'This key is on the free plan, and its organization\'s daily trial of every field is spent '
|
|
47
|
+
+ 'for the UTC day, so this answer is Unlimited\'s and the fields in not_included were not '
|
|
48
|
+
+ 'returned.'
|
|
49
|
+
: 'The fields in not_included were not returned, because this API key\'s plan does not include '
|
|
50
|
+
+ 'them.';
|
|
51
|
+
note = `${lead} Their absence is not a negative result: ${subject} was never checked against those `
|
|
52
|
+
+ 'datasets. Do not state or imply, on the basis of a field missing from this result, '
|
|
53
|
+
+ `${misreading}.`;
|
|
54
|
+
}
|
|
55
|
+
if (kind === 'ip' && body['is_bogon'] === true) {
|
|
56
|
+
note = NOTE_BOGON;
|
|
57
|
+
}
|
|
58
|
+
return { included: included, not_included: notIncluded, note: note };
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* One coverage for a whole batch, taken from the first served answer.
|
|
62
|
+
*
|
|
63
|
+
* A bogon is answered locally in the widest shape, so reading coverage off one
|
|
64
|
+
* would report every dataset as covered whatever the plan actually buys. Errors
|
|
65
|
+
* carry no shape at all. With neither available there is nothing honest to say,
|
|
66
|
+
* which is what `NOTE_UNKNOWN` says.
|
|
67
|
+
*/
|
|
68
|
+
export function batchCoverage(bodies) {
|
|
69
|
+
const answered = bodies.find((b) => b['is_bogon'] !== true);
|
|
70
|
+
if (answered === undefined) {
|
|
71
|
+
return { included: [], not_included: [], note: NOTE_UNKNOWN };
|
|
72
|
+
}
|
|
73
|
+
return coverageOf(answered);
|
|
74
|
+
}
|
|
75
|
+
/** Whether an answer carries a member, `location.city` naming one inside `location`. */
|
|
76
|
+
function served(body, member) {
|
|
77
|
+
const [outer, inner] = member.split('.');
|
|
78
|
+
if (!Object.hasOwn(body, outer)) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
const value = body[outer];
|
|
82
|
+
return inner === undefined
|
|
83
|
+
|| (value !== null && typeof value === 'object' && Object.hasOwn(value, inner));
|
|
84
|
+
}
|
|
85
|
+
export const COVERAGE_SCHEMA = {
|
|
86
|
+
type: 'object',
|
|
87
|
+
description: 'Which datasets this result covered. Read `note` before interpreting any absent field.',
|
|
88
|
+
properties: {
|
|
89
|
+
included: { type: 'array', items: { type: 'string' } },
|
|
90
|
+
not_included: { type: 'array', items: { type: 'string' } },
|
|
91
|
+
note: { type: 'string' },
|
|
92
|
+
},
|
|
93
|
+
required: ['included', 'not_included', 'note'],
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=coverage.js.map
|
|
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AAE,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1B,OAAO,KAAK,KAAK,SAAS;WACnB,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AACxF,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,uFAAuF;IACpG,UAAU,EAAE;QACR,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QACtD,YAAY,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC1D,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC3B;IACD,QAAQ,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,MAAM,CAAC;CACxC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { createTools, registerTools, DOWNLOADS_LIMIT } from './tools.js';
|
|
2
2
|
export type { ToolContext, ToolDef } from './tools.js';
|
|
3
|
-
export {
|
|
3
|
+
export { coverageOf, batchCoverage, COVERAGE_SCHEMA } from './coverage.js';
|
|
4
|
+
export type { Coverage, LookupKind } from './coverage.js';
|
|
5
|
+
export { LOOKUP_MEMBERS, LOOKUP_GATED_MEMBERS, ASN_LOOKUP_MEMBERS, ASN_LOOKUP_GATED_MEMBERS, DOMAIN_LOOKUP_MEMBERS, DOMAIN_LOOKUP_GATED_MEMBERS, SPEC_VERSION, } from './schema.gen.js';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { createTools, registerTools, DOWNLOADS_LIMIT } from './tools.js';
|
|
2
|
-
export {
|
|
2
|
+
export { coverageOf, batchCoverage, COVERAGE_SCHEMA } from './coverage.js';
|
|
3
|
+
export { LOOKUP_MEMBERS, LOOKUP_GATED_MEMBERS, ASN_LOOKUP_MEMBERS, ASN_LOOKUP_GATED_MEMBERS, DOMAIN_LOOKUP_MEMBERS, DOMAIN_LOOKUP_GATED_MEMBERS, SPEC_VERSION, } from './schema.gen.js';
|
|
3
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAE3E,OAAO,EACH,cAAc,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,qBAAqB,EACzG,2BAA2B,EAAE,YAAY,GAC5C,MAAM,iBAAiB,CAAC"}
|
package/dist/schema.gen.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const LOOKUP_MEMBERS: readonly string[];
|
|
2
|
+
export declare const LOOKUP_GATED_MEMBERS: readonly string[];
|
|
3
|
+
export declare const ASN_LOOKUP_MEMBERS: readonly string[];
|
|
4
|
+
export declare const ASN_LOOKUP_GATED_MEMBERS: readonly string[];
|
|
5
|
+
export declare const DOMAIN_LOOKUP_MEMBERS: readonly string[];
|
|
6
|
+
export declare const DOMAIN_LOOKUP_GATED_MEMBERS: readonly string[];
|
|
7
|
+
export declare const LOOKUP_MARKERS: readonly string[];
|
|
8
|
+
export declare const SPEC_VERSION = "2026.11.13";
|
|
2
9
|
/** The most history rows `list_downloads` may ask for. The API clamps to the same. */
|
|
3
10
|
export declare const DOWNLOADS_LIMIT = 200;
|
|
4
11
|
/** The fewest it may ask for. */
|
|
@@ -11,7 +18,11 @@ export interface ObjectSchema {
|
|
|
11
18
|
required?: string[];
|
|
12
19
|
[k: string]: unknown;
|
|
13
20
|
}
|
|
21
|
+
export declare const LOOKUP_RESULT_SCHEMA: ObjectSchema;
|
|
22
|
+
export declare const ASN_LOOKUP_RESULT_SCHEMA: ObjectSchema;
|
|
23
|
+
export declare const DOMAIN_LOOKUP_RESULT_SCHEMA: ObjectSchema;
|
|
14
24
|
export declare const DATABASE_SCHEMA: ObjectSchema;
|
|
15
25
|
export declare const DATABASE_METADATA_SCHEMA: ObjectSchema;
|
|
16
26
|
export declare const DB_CHECKSUMS_SCHEMA: ObjectSchema;
|
|
17
27
|
export declare const DOWNLOAD_SCHEMA: ObjectSchema;
|
|
28
|
+
export declare const ENTITLEMENT_SCHEMA: ObjectSchema;
|