internetdata 2.20.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -12
  3. data/lib/internetdata/api/database_v2_api.rb +1 -1
  4. data/lib/internetdata/api_client.rb +1 -1
  5. data/lib/internetdata/api_error.rb +1 -1
  6. data/lib/internetdata/api_model_base.rb +1 -1
  7. data/lib/internetdata/asn_result.rb +37 -37
  8. data/lib/internetdata/cache.rb +6 -6
  9. data/lib/internetdata/client.rb +99 -58
  10. data/lib/internetdata/configuration.rb +1 -1
  11. data/lib/internetdata/domain_result.rb +25 -34
  12. data/lib/internetdata/errors.rb +21 -1
  13. data/lib/internetdata/middleware/core.rb +61 -9
  14. data/lib/internetdata/models/abuse_contact.rb +9 -9
  15. data/lib/internetdata/models/asn.rb +2 -2
  16. data/lib/internetdata/models/asn_hosted_domains.rb +2 -2
  17. data/lib/internetdata/models/asn_lookup_response.rb +20 -30
  18. data/lib/internetdata/models/asn_prefix.rb +1 -1
  19. data/lib/internetdata/models/batch_lookup_error.rb +1 -1
  20. data/lib/internetdata/models/bit_torrent_detail.rb +1 -1
  21. data/lib/internetdata/models/bot_detail.rb +1 -1
  22. data/lib/internetdata/models/carrier_detail.rb +1 -1
  23. data/lib/internetdata/models/class_detail.rb +1 -1
  24. data/lib/internetdata/models/client_registration.rb +1 -1
  25. data/lib/internetdata/models/cohosted_domains.rb +2 -2
  26. data/lib/internetdata/models/company.rb +4 -4
  27. data/lib/internetdata/models/database.rb +1 -1
  28. data/lib/internetdata/models/database_checksums_response.rb +1 -1
  29. data/lib/internetdata/models/database_format.rb +1 -1
  30. data/lib/internetdata/models/database_list.rb +1 -1
  31. data/lib/internetdata/models/database_metadata.rb +1 -1
  32. data/lib/internetdata/models/database_metadata_column.rb +1 -1
  33. data/lib/internetdata/models/database_version.rb +1 -1
  34. data/lib/internetdata/models/db_checksums.rb +1 -1
  35. data/lib/internetdata/models/device_authorization.rb +1 -1
  36. data/lib/internetdata/models/disposable_detail.rb +1 -1
  37. data/lib/internetdata/models/dns_address_record.rb +1 -1
  38. data/lib/internetdata/models/dns_cname_record.rb +1 -1
  39. data/lib/internetdata/models/dns_mx_record.rb +1 -1
  40. data/lib/internetdata/models/dns_ns_record.rb +1 -1
  41. data/lib/internetdata/models/dns_resolver_detail.rb +1 -1
  42. data/lib/internetdata/models/domain_backlinks.rb +2 -2
  43. data/lib/internetdata/models/domain_dns.rb +2 -2
  44. data/lib/internetdata/models/domain_host.rb +1 -1
  45. data/lib/internetdata/models/domain_ip_range.rb +1 -1
  46. data/lib/internetdata/models/domain_ip_ranges.rb +2 -2
  47. data/lib/internetdata/models/domain_lookup_response.rb +6 -16
  48. data/lib/internetdata/models/domain_redirects.rb +2 -2
  49. data/lib/internetdata/models/domain_web.rb +2 -2
  50. data/lib/internetdata/models/domain_web_links.rb +1 -1
  51. data/lib/internetdata/models/download.rb +1 -1
  52. data/lib/internetdata/models/download_list.rb +1 -1
  53. data/lib/internetdata/models/entitlement.rb +1 -1
  54. data/lib/internetdata/models/entitlement_apikey.rb +1 -1
  55. data/lib/internetdata/models/entitlement_plan.rb +3 -3
  56. data/lib/internetdata/models/entitlement_usage.rb +4 -4
  57. data/lib/internetdata/models/error_envelope.rb +1 -1
  58. data/lib/internetdata/models/hosted_domains.rb +2 -2
  59. data/lib/internetdata/models/location.rb +11 -11
  60. data/lib/internetdata/models/lookup_response.rb +33 -77
  61. data/lib/internetdata/models/oauth_metadata.rb +1 -1
  62. data/lib/internetdata/models/proxy_detail.rb +2 -2
  63. data/lib/internetdata/models/pubproxy_detail.rb +1 -1
  64. data/lib/internetdata/models/rwhois.rb +2 -2
  65. data/lib/internetdata/models/satellite_detail.rb +1 -1
  66. data/lib/internetdata/models/smtp_detail.rb +1 -1
  67. data/lib/internetdata/models/ssh_detail.rb +1 -1
  68. data/lib/internetdata/models/standing.rb +1 -1
  69. data/lib/internetdata/models/token_response.rb +1 -1
  70. data/lib/internetdata/models/user_agent_verdict.rb +1 -1
  71. data/lib/internetdata/models/web_detail.rb +1 -1
  72. data/lib/internetdata/models/whois.rb +2 -2
  73. data/lib/internetdata/result.rb +72 -70
  74. data/lib/internetdata/transport.rb +6 -6
  75. data/lib/internetdata/version.rb +1 -1
  76. metadata +1 -1
@@ -4,13 +4,13 @@ module InternetData
4
4
  # What a lookup of a domain answers.
5
5
  #
6
6
  # As with {Result}, an absent member is one your plan does not include, and
7
- # reads as `nil`, never as false: Unlimited answers whether the domain is
8
- # registered and which record types it has, and paid plans and the trial add
9
- # the records themselves, the network announcing each address, the other
10
- # domains on its first IPv4 address, its organization's IP ranges, Disposable
11
- # Domain, its home page and the domains redirecting or linking to it.
12
- # Each flag has the three readers {Result}'s have: `is_disposable`,
13
- # `disposable?` and `included?(:is_disposable)`.
7
+ # reads as `nil`, never as false: the basics are whether the domain is
8
+ # registered and which record types it has, and paid plans and a free key's
9
+ # full answers add the records themselves, the network announcing each
10
+ # address, the other domains on its first IPv4 address, its organization's IP
11
+ # ranges, Disposable Domain, its home page and the domains redirecting or
12
+ # linking to it. Each flag has the three readers {Result}'s have:
13
+ # `is_disposable`, `disposable?` and `included?(:is_disposable)`.
14
14
  class DomainResult
15
15
  include Answer
16
16
 
@@ -30,7 +30,7 @@ module InternetData
30
30
  end
31
31
 
32
32
  # Whether it is a disposable email domain (Disposable Domain), or nil when
33
- # your plan does not include it. Paid plans and the trial.
33
+ # your plan does not include it. Paid plans and a free key's full answers.
34
34
  def is_disposable
35
35
  @raw['is_disposable']
36
36
  end
@@ -91,72 +91,63 @@ module InternetData
91
91
  end
92
92
 
93
93
  # Its records in Domain DNS, up to 100 a type, as a wire hash
94
- # (`result.dns['mx']`). Paid plans and the trial.
94
+ # (`result.dns['mx']`). Paid plans and a free key's full answers.
95
95
  def dns
96
96
  @raw['dns']
97
97
  end
98
98
 
99
99
  # The network announcing each address in `dns.a` and then `dns.aaaa`, from
100
100
  # IP ASN, as wire hashes (`result.hosting.first['asn']['name']`); `[]` where
101
- # it resolves to none. Paid plans and the trial.
101
+ # it resolves to none. Paid plans and a free key's full answers.
102
102
  def hosting
103
103
  @raw['hosting']
104
104
  end
105
105
 
106
106
  # From IP Hosted Domains, as a wire hash: the other registered domains on
107
107
  # its first IPv4 address (`ip`), how many (`total`) and up to 10, the most
108
- # popular first (`domains`). Paid plans and the trial.
108
+ # popular first (`domains`). Paid plans and a free key's full answers.
109
109
  def cohosted_domains
110
110
  @raw['cohosted_domains']
111
111
  end
112
112
 
113
- # Its organization's IP ranges, from Domain IP Ranges. Paid plans and the
114
- # trial.
113
+ # Its organization's IP ranges, from Domain IP Ranges. Paid plans and a free
114
+ # key's full answers.
115
115
  def ip_ranges
116
116
  @raw['ip_ranges']
117
117
  end
118
118
 
119
- # Detail for `is_disposable`, `{}` when it is false. Paid plans and the
120
- # trial.
119
+ # Detail for `is_disposable`, `{}` when it is false. Paid plans and a free
120
+ # key's full answers.
121
121
  def disposable
122
122
  @raw['disposable']
123
123
  end
124
124
 
125
- # What our crawl last read of its home page, as a wire hash: `url`,
126
- # `title`, `description`, `last_seen` and the external hosts it links to
127
- # (`links`), each empty where it holds none. Paid plans and the trial.
125
+ # What our crawl last read of its home page, as a wire hash: `url`, `title`,
126
+ # `description`, `last_seen` and the external hosts it links to (`links`),
127
+ # each empty where it holds none. Paid plans and a free key's full answers.
128
128
  def web
129
129
  @raw['web']
130
130
  end
131
131
 
132
132
  # The registered domains whose home page redirects to it, as a wire hash:
133
133
  # how many (`total`) and up to 10, the most popular first (`domains`). Paid
134
- # plans and the trial.
134
+ # plans and a free key's full answers.
135
135
  def redirects
136
136
  @raw['redirects']
137
137
  end
138
138
 
139
139
  # The registered domains whose home page links to it, as a wire hash: how
140
140
  # many (`total`) and up to 10, the most popular first (`domains`). Paid
141
- # plans and the trial.
141
+ # plans and a free key's full answers.
142
142
  def backlinks
143
143
  @raw['backlinks']
144
144
  end
145
145
 
146
- # On answers to a key on the free plan only: false while its organization's
147
- # trial of every field lasts, true once the answer has Unlimited's; nil on any other.
148
- def trial_expired
149
- @raw['trial_expired']
150
- end
151
-
152
- # `trial_expired` with an absent member read as false.
153
- def trial_expired?
154
- @raw['trial_expired'] == true
155
- end
156
-
157
- # On answers to a key on a paid plan only: false while the answer has every
158
- # field, true once its organization's overage cap is reached and the answer
159
- # has Unlimited's, which is not billed; nil on any other.
146
+ # On every answer to a key: false while the answer has every field, true
147
+ # once its organization's lookups with every field are used up (a free key's
148
+ # for the UTC day, a paid key's quota or overage cap) and the answer has the
149
+ # basics; nil on an answer to no key. A true one is never returned: the call
150
+ # raises `:quota_exceeded` carrying it as {Error#result}.
160
151
  def cap_reached
161
152
  @raw['cap_reached']
162
153
  end
@@ -11,6 +11,11 @@ module InternetData
11
11
  # `Retry-After`; retrying works. A spent quota carries no such header and
12
12
  # retrying will not help until the window rolls over or the limit is raised.
13
13
  # The header is the only thing that distinguishes them.
14
+ #
15
+ # A third `:quota_exceeded` is an answer rather than a failure: a 200 whose
16
+ # `cap_reached` is true, carrying the basics because the organization's lookups
17
+ # with every field are used up (a free key's for the UTC day, a paid key's quota
18
+ # or overage cap). {Error#result} holds that answer; its `status` is 200.
14
19
  class Error < StandardError
15
20
  KINDS = %i[
16
21
  bad_request unauthorized forbidden rate_limited quota_exceeded server_error network
@@ -25,12 +30,27 @@ module InternetData
25
30
  # message is the API's own words.
26
31
  attr_reader :kind, :status, :rc, :retry_after_seconds
27
32
 
28
- def initialize(kind, message, status: nil, rc: nil, retry_after_seconds: nil)
33
+ # The answer a `:quota_exceeded` that carries one holds, a {Result},
34
+ # {AsnResult} or {DomainResult} as the call returns, so a rescue still has
35
+ # the basics. nil on every other error.
36
+ attr_reader :result
37
+
38
+ # What a capped answer says, whatever the plan and whatever the figure.
39
+ CAPPED_MESSAGE = "this organization's lookups with every field are used up; this answer has the basics"
40
+
41
+ def initialize(kind, message, status: nil, rc: nil, retry_after_seconds: nil, result: nil)
29
42
  super(message)
30
43
  @kind = kind
31
44
  @status = status
32
45
  @rc = rc
33
46
  @retry_after_seconds = retry_after_seconds
47
+ @result = result
48
+ end
49
+
50
+ # The error a capped answer is: `:quota_exceeded`, status 200, never retried,
51
+ # holding `result`.
52
+ def self.capped(result)
53
+ new(:quota_exceeded, CAPPED_MESSAGE, status: 200, result: result)
34
54
  end
35
55
 
36
56
  # Whether retrying this exact request could succeed.
@@ -42,6 +42,33 @@ module InternetData
42
42
  AGENTS_MAX_ADDRESSES = 10_000
43
43
  private_constant :AGENTS_TTL, :AGENTS_MAX_ADDRESSES
44
44
 
45
+ # The shortest gap, in seconds, between two errors logged for capped lookups
46
+ # by one middleware.
47
+ CAPPED_LOG_INTERVAL = 60
48
+
49
+ # Lets one event through per interval, on the monotonic clock, from any thread.
50
+ # @api private
51
+ class Throttle
52
+ def initialize(interval, clock: -> { Process.clock_gettime(Process::CLOCK_MONOTONIC) })
53
+ @interval = interval
54
+ @clock = clock
55
+ @last = nil
56
+ @lock = Mutex.new
57
+ end
58
+
59
+ # Whether this event is the first in the interval that began at the last
60
+ # one that passed.
61
+ def pass?
62
+ now = @clock.call
63
+ @lock.synchronize do
64
+ return false if @last && now - @last < @interval
65
+
66
+ @last = now
67
+ true
68
+ end
69
+ end
70
+ end
71
+
45
72
  # Whether a `User-Agent` names a crawler, the only kind of agent whose verdict
46
73
  # can be `verified` or `spoofed`. It errs toward a match, which costs a lookup.
47
74
  # Case is folded for A to Z alone, as the corpus's terms are written.
@@ -68,9 +95,17 @@ module InternetData
68
95
  # only be `not_bot`. One address is looked up with at most
69
96
  # {MAX_AGENTS_PER_ADDRESS} crawler agents an hour: past those, the lookup
70
97
  # sends none, and the request passes as a crawler only where the answer's
71
- # `bot.verified` is true. A keyless client, or a free key past its trial,
72
- # never gets a verdict, so nothing is let through there, and that is
73
- # warned of once under `on_missing_field`.
98
+ # `bot.verified` is true. A keyless client, or a free key past its full
99
+ # answers for the day, never gets a verdict, so nothing is let through
100
+ # there, and that is warned of once under `on_missing_field`.
101
+ # @option options [Boolean] :fail_closed (false) refuse a request whose
102
+ # lookup failed, a capped answer included, rather than let it through.
103
+ # @option options [#call] :on_error receives the message of an error the
104
+ # middleware logs: a lookup that raised `quota_exceeded` with its answer,
105
+ # because the organization's lookups with every field are used up, at most
106
+ # once a minute per middleware however many requests fail that way. The
107
+ # request fails open with nothing attached, or is refused under
108
+ # `fail_closed`. Written to stderr when none is given.
74
109
  def initialize(default_ip_selector, user_agent_of = DEFAULT_USER_AGENT, **options)
75
110
  Condition.validate!(options[:block_condition])
76
111
  @condition = options[:block_condition]
@@ -82,6 +117,8 @@ module InternetData
82
117
  @on_missing_field = options.fetch(:on_missing_field, :warn)
83
118
  @skip = options[:skip]
84
119
  @on_warn = options[:on_warn]
120
+ @on_error = options[:on_error]
121
+ @capped_log = Throttle.new(CAPPED_LOG_INTERVAL)
85
122
  @retries = options.fetch(:retries, DEFAULT_RETRIES)
86
123
  Retries.checked_count(@retries) unless @retries.nil?
87
124
  @warned = {}
@@ -100,9 +137,10 @@ module InternetData
100
137
  # Classify one request. Answers nil when `skip` claimed it.
101
138
  #
102
139
  # A failed LOOKUP is not raised: it lands on `Lookup#error` and the
103
- # request is let through. What CAN raise is a misconfiguration - a
104
- # condition naming a member the plan does not serve, with
105
- # `on_missing_field: :raise`.
140
+ # request is let through. A capped answer is a failed lookup, `quota_exceeded`
141
+ # with the basics as `error.result`: nothing is attached, and it is logged.
142
+ # What CAN raise is a misconfiguration - a condition naming a member the plan
143
+ # does not serve, with `on_missing_field: :raise`.
106
144
  def evaluate(request)
107
145
  return nil if @skip&.call(request)
108
146
 
@@ -125,6 +163,7 @@ module InternetData
125
163
  begin
126
164
  result = @client.lookup(ip, retries: @retries, **(agent ? { user_agent: agent } : {}))
127
165
  rescue InternetData::Error => e
166
+ log_capped(e)
128
167
  return Lookup.new(blocked: @fail_closed, ip: ip, error: e)
129
168
  end
130
169
  decide(ip, result, claim)
@@ -132,6 +171,19 @@ module InternetData
132
171
 
133
172
  private
134
173
 
174
+ # A capped answer raised `quota_exceeded` with its basics: every lookup now
175
+ # fails until the allowance is raised or its window ends, so it is an error
176
+ # worth a line, once a minute and never one per request.
177
+ def log_capped(error)
178
+ return unless error.kind == :quota_exceeded && !error.result.nil?
179
+ return unless @capped_log.pass?
180
+
181
+ message = "lookups fail with quota_exceeded: #{error.message}. Requests " \
182
+ "#{@fail_closed ? 'are refused' : 'pass with no answer attached'} until the allowance " \
183
+ 'is raised or its window ends.'
184
+ @on_error ? @on_error.call(message) : Kernel.warn("[internetdata] error: #{message}")
185
+ end
186
+
135
187
  def unresolved
136
188
  warn_once(
137
189
  'could not resolve a client address from this request; pass an ip_selector that ' \
@@ -196,14 +248,14 @@ module InternetData
196
248
  end
197
249
 
198
250
  # An agent went with the lookup and the served answer carries no verdict:
199
- # a keyless client, or a free key past its trial, is never answered one,
200
- # so allow_bots lets no crawler through.
251
+ # a keyless client, or a free key past its full answers for the day, is
252
+ # never answered one, so allow_bots lets no crawler through.
201
253
  def report_unanswered_agent(result)
202
254
  return if @on_missing_field == :ignore || result.included?(:user_agent)
203
255
 
204
256
  report('allow_bots sends the request\'s User-Agent, but the answer carries no user_agent ' \
205
257
  'verdict, which your plan does not include, so no crawler is let through. A key on ' \
206
- 'a paid plan, or on its trial, is answered one.')
258
+ 'a paid plan, or a free key within its full answers, is answered one.')
207
259
  end
208
260
 
209
261
  def report(message)
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -16,28 +16,28 @@ require 'time'
16
16
  module InternetData
17
17
  # Where to report abuse, from IP Abuse Contact.
18
18
  class AbuseContact < ApiModelBase
19
- # Where to report abuse from the address.
19
+ # Where to report abuse from the address. On a paid plan or a free key's full answers.
20
20
  attr_accessor :email
21
21
 
22
- # The contact. On a paid plan or the trial.
22
+ # The contact. On a paid plan or a free key's full answers.
23
23
  attr_accessor :name
24
24
 
25
- # Its phone number. On a paid plan or the trial.
25
+ # Its phone number. On a paid plan or a free key's full answers.
26
26
  attr_accessor :phone
27
27
 
28
- # Its postal address. On a paid plan or the trial.
28
+ # Its postal address. On a paid plan or a free key's full answers.
29
29
  attr_accessor :address
30
30
 
31
- # ISO 3166 country code. On a paid plan or the trial.
31
+ # ISO 3166 country code. On a paid plan or a free key's full answers.
32
32
  attr_accessor :country
33
33
 
34
- # The registry block it was derived from. On a paid plan or the trial.
34
+ # The registry block it was derived from. On a paid plan or a free key's full answers.
35
35
  attr_accessor :network
36
36
 
37
- # ARIN reports the contact answered its yearly validation. On a paid plan or the trial.
37
+ # ARIN reports the contact answered its yearly validation. On a paid plan or a free key's full answers.
38
38
  attr_accessor :validated
39
39
 
40
- # Since when it has not. On a paid plan or the trial.
40
+ # Since when it has not. On a paid plan or a free key's full answers.
41
41
  attr_accessor :unvalidated_since
42
42
 
43
43
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -25,7 +25,7 @@ module InternetData
25
25
  # Its operator's domain.
26
26
  attr_accessor :domain
27
27
 
28
- # The kind of network it runs. On a paid plan or the trial.
28
+ # The kind of network it runs. On a paid plan or a free key's full answers.
29
29
  attr_accessor :type
30
30
 
31
31
  # The announced prefix covering the address.
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module InternetData
17
- # 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.
17
+ # 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 a free key's full answers.
18
18
  class AsnHostedDomains < ApiModelBase
19
19
  # How many registered domains resolve to an address the AS announces.
20
20
  attr_accessor :total
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -34,63 +34,60 @@ module InternetData
34
34
  # Its operator's domain.
35
35
  attr_accessor :domain
36
36
 
37
- # The kind of network it runs. On a paid plan or the trial.
37
+ # The kind of network it runs. On a paid plan or a free key's full answers.
38
38
  attr_accessor :type
39
39
 
40
- # IPv4 addresses it announces. On a paid plan or the trial.
40
+ # IPv4 addresses it announces. On a paid plan or a free key's full answers.
41
41
  attr_accessor :num_ips
42
42
 
43
- # IPv4 prefixes it announces. On a paid plan or the trial.
43
+ # IPv4 prefixes it announces. On a paid plan or a free key's full answers.
44
44
  attr_accessor :num_prefixes4
45
45
 
46
- # IPv6 prefixes it announces. On a paid plan or the trial.
46
+ # IPv6 prefixes it announces. On a paid plan or a free key's full answers.
47
47
  attr_accessor :num_prefixes6
48
48
 
49
- # Its announcements RPKI calls valid. On a paid plan or the trial.
49
+ # Its announcements RPKI calls valid. On a paid plan or a free key's full answers.
50
50
  attr_accessor :rpki_valid
51
51
 
52
- # Invalid. On a paid plan or the trial.
52
+ # Invalid. On a paid plan or a free key's full answers.
53
53
  attr_accessor :rpki_invalid
54
54
 
55
- # With no RPKI record. On a paid plan or the trial.
55
+ # With no RPKI record. On a paid plan or a free key's full answers.
56
56
  attr_accessor :rpki_not_found
57
57
 
58
- # Its ASN Whois record, every column, empty where the registry states nothing. On a paid plan or the trial.
58
+ # Its ASN Whois record, every column, empty where the registry states nothing. On a paid plan or a free key's full answers.
59
59
  attr_accessor :whois
60
60
 
61
- # What it announces, IPv4 then IPv6, up to 20000 a family. On a paid plan or the trial.
61
+ # What it announces, IPv4 then IPv6, up to 20000 a family. On a paid plan or a free key's full answers.
62
62
  attr_accessor :prefixes
63
63
 
64
- # 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.
64
+ # 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 a free key's full answers.
65
65
  attr_accessor :rank
66
66
 
67
- # 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.
67
+ # 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 a free key's full answers.
68
68
  attr_accessor :tier1
69
69
 
70
- # How many AS numbers it gets transit from. On a paid plan or the trial.
70
+ # How many AS numbers it gets transit from. On a paid plan or a free key's full answers.
71
71
  attr_accessor :num_upstreams
72
72
 
73
- # Those AS numbers, ascending, up to 20000. On a paid plan or the trial.
73
+ # Those AS numbers, ascending, up to 20000. On a paid plan or a free key's full answers.
74
74
  attr_accessor :upstreams
75
75
 
76
- # How many AS numbers it exchanges its own and its customers' routes with. On a paid plan or the trial.
76
+ # How many AS numbers it exchanges its own and its customers' routes with. On a paid plan or a free key's full answers.
77
77
  attr_accessor :num_peers
78
78
 
79
- # Those AS numbers, ascending, up to 20000. On a paid plan or the trial.
79
+ # Those AS numbers, ascending, up to 20000. On a paid plan or a free key's full answers.
80
80
  attr_accessor :peers
81
81
 
82
- # How many AS numbers it provides transit to. On a paid plan or the trial.
82
+ # How many AS numbers it provides transit to. On a paid plan or a free key's full answers.
83
83
  attr_accessor :num_downstreams
84
84
 
85
- # Those AS numbers, ascending, up to 20000. On a paid plan or the trial.
85
+ # Those AS numbers, ascending, up to 20000. On a paid plan or a free key's full answers.
86
86
  attr_accessor :downstreams
87
87
 
88
88
  attr_accessor :hosted_domains
89
89
 
90
- # On every answer to a key on the free plan, and on no other: `false` while its organization's trial of every field lasts, `true` once the answer has Unlimited's fields.
91
- attr_accessor :trial_expired
92
-
93
- # On every answer to a key on a paid plan, and on no other: `false` while the answer has every field, `true` once its organization's overage cap is reached and the answer has Unlimited's. Lookups answered past the cap are not billed; raising or removing the cap in Billing turns it `false` again.
90
+ # On every answer to a key, and on no other: `false` while the answer has every field, `true` once its organization's allowance is used and the answer has the basics: a free-plan key's full answers for the UTC day, or a paid key's quota or overage cap. A paid key's lookups answered past it are not billed, and raising or removing the cap in Billing turns it `false` again.
94
91
  attr_accessor :cap_reached
95
92
 
96
93
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -120,7 +117,6 @@ module InternetData
120
117
  :'num_downstreams' => :'num_downstreams',
121
118
  :'downstreams' => :'downstreams',
122
119
  :'hosted_domains' => :'hosted_domains',
123
- :'trial_expired' => :'trial_expired',
124
120
  :'cap_reached' => :'cap_reached'
125
121
  }
126
122
  end
@@ -162,7 +158,6 @@ module InternetData
162
158
  :'num_downstreams' => :'Integer',
163
159
  :'downstreams' => :'Array<Integer>',
164
160
  :'hosted_domains' => :'AsnHostedDomains',
165
- :'trial_expired' => :'Boolean',
166
161
  :'cap_reached' => :'Boolean'
167
162
  }
168
163
  end
@@ -307,10 +302,6 @@ module InternetData
307
302
  self.hosted_domains = attributes[:'hosted_domains']
308
303
  end
309
304
 
310
- if attributes.key?(:'trial_expired')
311
- self.trial_expired = attributes[:'trial_expired']
312
- end
313
-
314
305
  if attributes.key?(:'cap_reached')
315
306
  self.cap_reached = attributes[:'cap_reached']
316
307
  end
@@ -450,7 +441,6 @@ module InternetData
450
441
  num_downstreams == o.num_downstreams &&
451
442
  downstreams == o.downstreams &&
452
443
  hosted_domains == o.hosted_domains &&
453
- trial_expired == o.trial_expired &&
454
444
  cap_reached == o.cap_reached
455
445
  end
456
446
 
@@ -463,7 +453,7 @@ module InternetData
463
453
  # Calculates hash code according to all attributes.
464
454
  # @return [Integer] Hash code
465
455
  def hash
466
- [asn, name, country, registry, allocated, domain, type, num_ips, num_prefixes4, num_prefixes6, rpki_valid, rpki_invalid, rpki_not_found, whois, prefixes, rank, tier1, num_upstreams, upstreams, num_peers, peers, num_downstreams, downstreams, hosted_domains, trial_expired, cap_reached].hash
456
+ [asn, name, country, registry, allocated, domain, type, num_ips, num_prefixes4, num_prefixes6, rpki_valid, rpki_invalid, rpki_not_found, whois, prefixes, rank, tier1, num_upstreams, upstreams, num_peers, peers, num_downstreams, downstreams, hosted_domains, cap_reached].hash
467
457
  end
468
458
 
469
459
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module InternetData
17
- # 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.
17
+ # 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 a free key's full answers.
18
18
  class CohostedDomains < ApiModelBase
19
19
  # The domain's first IPv4 address, `''` where it has none.
20
20
  attr_accessor :ip
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -16,16 +16,16 @@ require 'time'
16
16
  module InternetData
17
17
  # Who uses the address, from IP Company.
18
18
  class Company < ApiModelBase
19
- # Who uses the address.
19
+ # Who uses the address. On a paid plan or a free key's full answers.
20
20
  attr_accessor :name
21
21
 
22
22
  # Their domain.
23
23
  attr_accessor :domain
24
24
 
25
- # What kind of organization: hosting, isp, business, education, government. On a paid plan or the trial.
25
+ # What kind of organization: hosting, isp, business, education, government. On a paid plan or a free key's full answers.
26
26
  attr_accessor :type
27
27
 
28
- # ISO 3166 country code. On a paid plan or the trial.
28
+ # ISO 3166 country code. On a paid plan or a free key's full answers.
29
29
  attr_accessor :country
30
30
 
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.27
6
+ The version of the OpenAPI document: 2026.11.29
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0