vpndetection 5.18.1 → 5.19.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 (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/vpndetection/api/account_wire_api.rb +3 -3
  4. data/lib/vpndetection/api/api_keys_wire_api.rb +9 -9
  5. data/lib/vpndetection/api/authorization_wire_api.rb +1 -1
  6. data/lib/vpndetection/api/database_wire_api.rb +1 -1
  7. data/lib/vpndetection/api/entitlement_wire_api.rb +1 -1
  8. data/lib/vpndetection/api/lookup_wire_api.rb +15 -1
  9. data/lib/vpndetection/api/organization_wire_api.rb +5 -5
  10. data/lib/vpndetection/api_client.rb +1 -1
  11. data/lib/vpndetection/api_error.rb +1 -1
  12. data/lib/vpndetection/api_model_base.rb +1 -1
  13. data/lib/vpndetection/configuration.rb +1 -1
  14. data/lib/vpndetection/models/abuse_contact.rb +1 -1
  15. data/lib/vpndetection/models/account_create_apikey_request.rb +1 -1
  16. data/lib/vpndetection/models/account_created_apikey.rb +1 -1
  17. data/lib/vpndetection/models/account_org.rb +1 -1
  18. data/lib/vpndetection/models/account_org_ref.rb +1 -1
  19. data/lib/vpndetection/models/account_org_wrap.rb +1 -1
  20. data/lib/vpndetection/models/account_rc.rb +1 -1
  21. data/lib/vpndetection/models/account_revealed_apikey.rb +1 -1
  22. data/lib/vpndetection/models/account_user.rb +1 -1
  23. data/lib/vpndetection/models/apikey_detail.rb +1 -1
  24. data/lib/vpndetection/models/apikey_list.rb +1 -1
  25. data/lib/vpndetection/models/asn.rb +35 -1
  26. data/lib/vpndetection/models/batch_lookup_error.rb +1 -1
  27. data/lib/vpndetection/models/batch_lookup_request.rb +17 -5
  28. data/lib/vpndetection/models/batch_lookup_response.rb +1 -1
  29. data/lib/vpndetection/models/bit_torrent_detail.rb +1 -1
  30. data/lib/vpndetection/models/bot_detail.rb +243 -0
  31. data/lib/vpndetection/models/carrier_detail.rb +1 -1
  32. data/lib/vpndetection/models/class_detail.rb +1 -1
  33. data/lib/vpndetection/models/client_registration.rb +1 -1
  34. data/lib/vpndetection/models/client_registration_request.rb +1 -1
  35. data/lib/vpndetection/models/company.rb +1 -1
  36. data/lib/vpndetection/models/database.rb +1 -1
  37. data/lib/vpndetection/models/database_checksums_response.rb +1 -1
  38. data/lib/vpndetection/models/database_format.rb +1 -1
  39. data/lib/vpndetection/models/database_format_size.rb +1 -1
  40. data/lib/vpndetection/models/database_list.rb +1 -1
  41. data/lib/vpndetection/models/database_metadata.rb +1 -1
  42. data/lib/vpndetection/models/database_metadata_column.rb +1 -1
  43. data/lib/vpndetection/models/database_version.rb +1 -1
  44. data/lib/vpndetection/models/db_checksums.rb +1 -1
  45. data/lib/vpndetection/models/device_authorization.rb +1 -1
  46. data/lib/vpndetection/models/dns_resolver_detail.rb +1 -1
  47. data/lib/vpndetection/models/download.rb +1 -1
  48. data/lib/vpndetection/models/download_list.rb +1 -1
  49. data/lib/vpndetection/models/entitlement.rb +1 -1
  50. data/lib/vpndetection/models/entitlement_apikey.rb +1 -1
  51. data/lib/vpndetection/models/entitlement_error.rb +1 -1
  52. data/lib/vpndetection/models/entitlement_plan.rb +1 -1
  53. data/lib/vpndetection/models/entitlement_usage.rb +1 -1
  54. data/lib/vpndetection/models/error_envelope.rb +1 -1
  55. data/lib/vpndetection/models/identity.rb +1 -1
  56. data/lib/vpndetection/models/location.rb +1 -1
  57. data/lib/vpndetection/models/lookup_error.rb +1 -1
  58. data/lib/vpndetection/models/lookup_response.rb +32 -2
  59. data/lib/vpndetection/models/oauth_error.rb +1 -1
  60. data/lib/vpndetection/models/oauth_metadata.rb +1 -1
  61. data/lib/vpndetection/models/proxy_detail.rb +1 -1
  62. data/lib/vpndetection/models/pubproxy_detail.rb +1 -1
  63. data/lib/vpndetection/models/satellite_detail.rb +1 -1
  64. data/lib/vpndetection/models/smtp_detail.rb +1 -1
  65. data/lib/vpndetection/models/ssh_detail.rb +1 -1
  66. data/lib/vpndetection/models/standing.rb +1 -1
  67. data/lib/vpndetection/models/token_response.rb +1 -1
  68. data/lib/vpndetection/models/user_agent_verdict.rb +239 -0
  69. data/lib/vpndetection/models/vpn_detail.rb +1 -1
  70. data/lib/vpndetection/models/web_detail.rb +1 -1
  71. data/lib/vpndetection/result.rb +25 -3
  72. data/lib/vpndetection/transport.rb +3 -1
  73. data/lib/vpndetection/version.rb +1 -1
  74. metadata +3 -1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -37,6 +37,9 @@ module VPNDetection
37
37
  # Whether the address belongs to a CDN. Paid plans.
38
38
  attr_accessor :is_cdn
39
39
 
40
+ # Whether an automated client uses the address, such as a search engine's or an AI company's crawler, an uptime monitor, an internet scanner or a webhook sender. `bot` says whose, what it does and whether its operator vouches for the address. Every answer, with or without a key.
41
+ attr_accessor :is_bot
42
+
40
43
  # Whether the address was seen in a residential proxy pool. Paid plans.
41
44
  attr_accessor :is_resproxy
42
45
 
@@ -88,6 +91,9 @@ module VPNDetection
88
91
  # Detail for `is_cdn`. Empty when false. Paid plans.
89
92
  attr_accessor :cdn
90
93
 
94
+ # Detail for `is_bot`. Empty when false. Paid plans.
95
+ attr_accessor :bot
96
+
91
97
  # Detail for `is_resproxy`. Empty when false. Paid plans.
92
98
  attr_accessor :resproxy
93
99
 
@@ -132,6 +138,9 @@ module VPNDetection
132
138
 
133
139
  attr_accessor :abuse
134
140
 
141
+ # When the request sent `user_agent`, with every field: the agent it names and whether this address bears it out. Absent otherwise.
142
+ attr_accessor :user_agent
143
+
135
144
  # 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.
136
145
  attr_accessor :trial_expired
137
146
 
@@ -148,6 +157,7 @@ module VPNDetection
148
157
  :'is_relay' => :'is_relay',
149
158
  :'is_tor' => :'is_tor',
150
159
  :'is_cdn' => :'is_cdn',
160
+ :'is_bot' => :'is_bot',
151
161
  :'is_resproxy' => :'is_resproxy',
152
162
  :'is_dcproxy' => :'is_dcproxy',
153
163
  :'is_mobproxy' => :'is_mobproxy',
@@ -165,6 +175,7 @@ module VPNDetection
165
175
  :'relay' => :'relay',
166
176
  :'tor' => :'tor',
167
177
  :'cdn' => :'cdn',
178
+ :'bot' => :'bot',
168
179
  :'resproxy' => :'resproxy',
169
180
  :'dcproxy' => :'dcproxy',
170
181
  :'mobproxy' => :'mobproxy',
@@ -181,6 +192,7 @@ module VPNDetection
181
192
  :'company' => :'company',
182
193
  :'hostname' => :'hostname',
183
194
  :'abuse' => :'abuse',
195
+ :'user_agent' => :'user_agent',
184
196
  :'trial_expired' => :'trial_expired',
185
197
  :'cap_reached' => :'cap_reached'
186
198
  }
@@ -206,6 +218,7 @@ module VPNDetection
206
218
  :'is_relay' => :'Boolean',
207
219
  :'is_tor' => :'Boolean',
208
220
  :'is_cdn' => :'Boolean',
221
+ :'is_bot' => :'Boolean',
209
222
  :'is_resproxy' => :'Boolean',
210
223
  :'is_dcproxy' => :'Boolean',
211
224
  :'is_mobproxy' => :'Boolean',
@@ -223,6 +236,7 @@ module VPNDetection
223
236
  :'relay' => :'ClassDetail',
224
237
  :'tor' => :'ClassDetail',
225
238
  :'cdn' => :'ClassDetail',
239
+ :'bot' => :'BotDetail',
226
240
  :'resproxy' => :'ProxyDetail',
227
241
  :'dcproxy' => :'ProxyDetail',
228
242
  :'mobproxy' => :'ProxyDetail',
@@ -239,6 +253,7 @@ module VPNDetection
239
253
  :'company' => :'Company',
240
254
  :'hostname' => :'String',
241
255
  :'abuse' => :'AbuseContact',
256
+ :'user_agent' => :'UserAgentVerdict',
242
257
  :'trial_expired' => :'Boolean',
243
258
  :'cap_reached' => :'Boolean'
244
259
  }
@@ -298,6 +313,10 @@ module VPNDetection
298
313
  self.is_cdn = attributes[:'is_cdn']
299
314
  end
300
315
 
316
+ if attributes.key?(:'is_bot')
317
+ self.is_bot = attributes[:'is_bot']
318
+ end
319
+
301
320
  if attributes.key?(:'is_resproxy')
302
321
  self.is_resproxy = attributes[:'is_resproxy']
303
322
  end
@@ -366,6 +385,10 @@ module VPNDetection
366
385
  self.cdn = attributes[:'cdn']
367
386
  end
368
387
 
388
+ if attributes.key?(:'bot')
389
+ self.bot = attributes[:'bot']
390
+ end
391
+
369
392
  if attributes.key?(:'resproxy')
370
393
  self.resproxy = attributes[:'resproxy']
371
394
  end
@@ -432,6 +455,10 @@ module VPNDetection
432
455
  self.abuse = attributes[:'abuse']
433
456
  end
434
457
 
458
+ if attributes.key?(:'user_agent')
459
+ self.user_agent = attributes[:'user_agent']
460
+ end
461
+
435
462
  if attributes.key?(:'trial_expired')
436
463
  self.trial_expired = attributes[:'trial_expired']
437
464
  end
@@ -498,6 +525,7 @@ module VPNDetection
498
525
  is_relay == o.is_relay &&
499
526
  is_tor == o.is_tor &&
500
527
  is_cdn == o.is_cdn &&
528
+ is_bot == o.is_bot &&
501
529
  is_resproxy == o.is_resproxy &&
502
530
  is_dcproxy == o.is_dcproxy &&
503
531
  is_mobproxy == o.is_mobproxy &&
@@ -515,6 +543,7 @@ module VPNDetection
515
543
  relay == o.relay &&
516
544
  tor == o.tor &&
517
545
  cdn == o.cdn &&
546
+ bot == o.bot &&
518
547
  resproxy == o.resproxy &&
519
548
  dcproxy == o.dcproxy &&
520
549
  mobproxy == o.mobproxy &&
@@ -531,6 +560,7 @@ module VPNDetection
531
560
  company == o.company &&
532
561
  hostname == o.hostname &&
533
562
  abuse == o.abuse &&
563
+ user_agent == o.user_agent &&
534
564
  trial_expired == o.trial_expired &&
535
565
  cap_reached == o.cap_reached
536
566
  end
@@ -544,7 +574,7 @@ module VPNDetection
544
574
  # Calculates hash code according to all attributes.
545
575
  # @return [Integer] Hash code
546
576
  def hash
547
- [ip, is_bogon, is_vpn, is_hosting, is_relay, is_tor, is_cdn, is_resproxy, is_dcproxy, is_mobproxy, is_pubproxy, is_anycast, is_carrier, is_satellite, is_ssh, is_smtp, is_web, is_dns_resolver, is_bittorrent, vpn, hosting, relay, tor, cdn, resproxy, dcproxy, mobproxy, pubproxy, carrier, satellite, ssh, smtp, web, dns_resolver, bittorrent, location, asn, company, hostname, abuse, trial_expired, cap_reached].hash
577
+ [ip, is_bogon, is_vpn, is_hosting, is_relay, is_tor, is_cdn, is_bot, is_resproxy, is_dcproxy, is_mobproxy, is_pubproxy, is_anycast, is_carrier, is_satellite, is_ssh, is_smtp, is_web, is_dns_resolver, is_bittorrent, vpn, hosting, relay, tor, cdn, bot, resproxy, dcproxy, mobproxy, pubproxy, carrier, satellite, ssh, smtp, web, dns_resolver, bittorrent, location, asn, company, hostname, abuse, user_agent, trial_expired, cap_reached].hash
548
578
  end
549
579
 
550
580
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -0,0 +1,239 @@
1
+ =begin
2
+ #VPNDetection API
3
+
4
+ #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
+
6
+ The version of the OpenAPI document: 2026.11.21
7
+ Contact: support@vpndetection.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.25.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module VPNDetection
17
+ class UserAgentVerdict < ApiModelBase
18
+ # The agent the user agent names, such as `Googlebot` or `Chrome`; `Unknown` where it names none.
19
+ attr_accessor :agent
20
+
21
+ # `browser`, `inapp`, `automation`, `bot`, `ai-bot`, `http-client` or `unknown`: what kind of client the user agent says it is.
22
+ attr_accessor :kind
23
+
24
+ # `verified`: the agent's operator vouches for this address as it. `spoofed`: the operator of a bot that publishes its addresses, or whose registered space it uses, does not vouch for this one, or this address posed as the bot before. `unverifiable`: a bot no published list or registered space can confirm. `not_bot`: a browser, an app or a script.
25
+ attr_accessor :verdict
26
+
27
+ class EnumAttributeValidator
28
+ attr_reader :datatype
29
+ attr_reader :allowable_values
30
+
31
+ def initialize(datatype, allowable_values)
32
+ @allowable_values = allowable_values.map do |value|
33
+ case datatype.to_s
34
+ when /Integer/i
35
+ value.to_i
36
+ when /Float/i
37
+ value.to_f
38
+ else
39
+ value
40
+ end
41
+ end
42
+ end
43
+
44
+ def valid?(value)
45
+ !value || allowable_values.include?(value)
46
+ end
47
+ end
48
+
49
+ # Attribute mapping from ruby-style variable name to JSON key.
50
+ def self.attribute_map
51
+ {
52
+ :'agent' => :'agent',
53
+ :'kind' => :'kind',
54
+ :'verdict' => :'verdict'
55
+ }
56
+ end
57
+
58
+ # Returns attribute mapping this model knows about
59
+ def self.acceptable_attribute_map
60
+ attribute_map
61
+ end
62
+
63
+ # Returns all the JSON keys this model knows about
64
+ def self.acceptable_attributes
65
+ acceptable_attribute_map.values
66
+ end
67
+
68
+ # Attribute type mapping.
69
+ def self.openapi_types
70
+ {
71
+ :'agent' => :'String',
72
+ :'kind' => :'String',
73
+ :'verdict' => :'String'
74
+ }
75
+ end
76
+
77
+ # List of attributes with nullable: true
78
+ def self.openapi_nullable
79
+ Set.new([
80
+ ])
81
+ end
82
+
83
+ # Initializes the object
84
+ # @param [Hash] attributes Model attributes in the form of hash
85
+ def initialize(attributes = {})
86
+ if (!attributes.is_a?(Hash))
87
+ fail ArgumentError, "The input argument (attributes) must be a hash in `VPNDetection::UserAgentVerdict` initialize method"
88
+ end
89
+
90
+ # check to see if the attribute exists and convert string to symbol for hash key
91
+ acceptable_attribute_map = self.class.acceptable_attribute_map
92
+ attributes = attributes.each_with_object({}) { |(k, v), h|
93
+ if (!acceptable_attribute_map.key?(k.to_sym))
94
+ fail ArgumentError, "`#{k}` is not a valid attribute in `VPNDetection::UserAgentVerdict`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
95
+ end
96
+ h[k.to_sym] = v
97
+ }
98
+
99
+ if attributes.key?(:'agent')
100
+ self.agent = attributes[:'agent']
101
+ else
102
+ self.agent = nil
103
+ end
104
+
105
+ if attributes.key?(:'kind')
106
+ self.kind = attributes[:'kind']
107
+ else
108
+ self.kind = nil
109
+ end
110
+
111
+ if attributes.key?(:'verdict')
112
+ self.verdict = attributes[:'verdict']
113
+ else
114
+ self.verdict = nil
115
+ end
116
+ end
117
+
118
+ # Show invalid properties with the reasons. Usually used together with valid?
119
+ # @return Array for valid properties with the reasons
120
+ def list_invalid_properties
121
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
122
+ invalid_properties = Array.new
123
+ if @agent.nil?
124
+ invalid_properties.push('invalid value for "agent", agent cannot be nil.')
125
+ end
126
+
127
+ if @kind.nil?
128
+ invalid_properties.push('invalid value for "kind", kind cannot be nil.')
129
+ end
130
+
131
+ if @verdict.nil?
132
+ invalid_properties.push('invalid value for "verdict", verdict cannot be nil.')
133
+ end
134
+
135
+ invalid_properties
136
+ end
137
+
138
+ # Check to see if the all the properties in the model are valid
139
+ # @return true if the model is valid
140
+ def valid?
141
+ warn '[DEPRECATED] the `valid?` method is obsolete'
142
+ return false if @agent.nil?
143
+ return false if @kind.nil?
144
+ return false if @verdict.nil?
145
+ verdict_validator = EnumAttributeValidator.new('String', ["verified", "spoofed", "unverifiable", "not_bot"])
146
+ return false unless verdict_validator.valid?(@verdict)
147
+ true
148
+ end
149
+
150
+ # Custom attribute writer method with validation
151
+ # @param [Object] agent Value to be assigned
152
+ def agent=(agent)
153
+ if agent.nil?
154
+ fail ArgumentError, 'agent cannot be nil'
155
+ end
156
+
157
+ @agent = agent
158
+ end
159
+
160
+ # Custom attribute writer method with validation
161
+ # @param [Object] kind Value to be assigned
162
+ def kind=(kind)
163
+ if kind.nil?
164
+ fail ArgumentError, 'kind cannot be nil'
165
+ end
166
+
167
+ @kind = kind
168
+ end
169
+
170
+ # Custom attribute writer method checking allowed values (enum).
171
+ # @param [Object] verdict Object to be assigned
172
+ def verdict=(verdict)
173
+ @verdict = verdict
174
+ end
175
+
176
+ # Checks equality by comparing each attribute.
177
+ # @param [Object] Object to be compared
178
+ def ==(o)
179
+ return true if self.equal?(o)
180
+ self.class == o.class &&
181
+ agent == o.agent &&
182
+ kind == o.kind &&
183
+ verdict == o.verdict
184
+ end
185
+
186
+ # @see the `==` method
187
+ # @param [Object] Object to be compared
188
+ def eql?(o)
189
+ self == o
190
+ end
191
+
192
+ # Calculates hash code according to all attributes.
193
+ # @return [Integer] Hash code
194
+ def hash
195
+ [agent, kind, verdict].hash
196
+ end
197
+
198
+ # Builds the object from hash
199
+ # @param [Hash] attributes Model attributes in the form of hash
200
+ # @return [Object] Returns the model itself
201
+ def self.build_from_hash(attributes)
202
+ return nil unless attributes.is_a?(Hash)
203
+ attributes = attributes.transform_keys(&:to_sym)
204
+ transformed_hash = {}
205
+ openapi_types.each_pair do |key, type|
206
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
207
+ transformed_hash["#{key}"] = nil
208
+ elsif type =~ /\AArray<(.*)>/i
209
+ # check to ensure the input is an array given that the attribute
210
+ # is documented as an array but the input is not
211
+ if attributes[attribute_map[key]].is_a?(Array)
212
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
213
+ end
214
+ elsif !attributes[attribute_map[key]].nil?
215
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
216
+ end
217
+ end
218
+ new(transformed_hash)
219
+ end
220
+
221
+ # Returns the object in the form of hash
222
+ # @return [Hash] Returns the object in the form of hash
223
+ def to_hash
224
+ hash = {}
225
+ self.class.attribute_map.each_pair do |attr, param|
226
+ value = self.send(attr)
227
+ if value.nil?
228
+ is_nullable = self.class.openapi_nullable.include?(attr)
229
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
230
+ end
231
+
232
+ hash[param] = _to_hash(value)
233
+ end
234
+ hash
235
+ end
236
+
237
+ end
238
+
239
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@vpndetection.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -18,15 +18,15 @@ module VPNDetection
18
18
  # wire hashes with their original string keys, so `result.vpn['provider']`.
19
19
  class Result
20
20
  FLAGS = %w[
21
- is_vpn is_hosting is_relay is_tor is_cdn is_resproxy is_dcproxy is_mobproxy
21
+ is_vpn is_hosting is_relay is_tor is_cdn is_bot is_resproxy is_dcproxy is_mobproxy
22
22
  is_pubproxy is_anycast is_carrier is_satellite is_ssh is_smtp is_web is_dns_resolver
23
23
  is_bittorrent
24
24
  ].freeze
25
25
 
26
26
  # The detail object behind each flag that has one; `is_anycast` has none.
27
27
  DETAILS = %w[
28
- vpn hosting relay tor cdn resproxy dcproxy mobproxy pubproxy carrier satellite ssh smtp dns_resolver
29
- bittorrent
28
+ vpn hosting relay tor cdn bot resproxy dcproxy mobproxy pubproxy carrier satellite ssh smtp
29
+ dns_resolver bittorrent
30
30
  ].freeze
31
31
 
32
32
  # The details that are a list of rows rather than one object.
@@ -138,6 +138,19 @@ module VPNDetection
138
138
  @raw['is_cdn'] == true
139
139
  end
140
140
 
141
+ # Whether an automated client uses the address, such as a search engine's
142
+ # or an AI company's crawler, an uptime monitor, an internet scanner or a
143
+ # webhook sender, or nil when your plan does not include it. Every answer,
144
+ # with or without a key.
145
+ def is_bot
146
+ @raw['is_bot']
147
+ end
148
+
149
+ # `is_bot` with an absent member read as false.
150
+ def bot?
151
+ @raw['is_bot'] == true
152
+ end
153
+
141
154
  # Whether the address was seen in a residential proxy pool, or nil when your
142
155
  # plan does not include it. On every paid plan.
143
156
  def is_resproxy
@@ -299,6 +312,15 @@ module VPNDetection
299
312
  @raw['cdn']
300
313
  end
301
314
 
315
+ # Detail for `is_bot`: provider, provider_name, agents, categories,
316
+ # verified, identity, verified_by, confidence, first_seen and last_seen.
317
+ # agents and categories are lists, in the order served, and `[]` where none
318
+ # is known; verified_by is an empty string when verified is false. Every
319
+ # paid plan.
320
+ def bot
321
+ @raw['bot']
322
+ end
323
+
302
324
  # Detail for `is_resproxy`. Every paid plan.
303
325
  def resproxy
304
326
  @raw['resproxy']
@@ -310,6 +310,7 @@ module VPNDetection
310
310
  'LookupResponse' => %i[ip is_vpn],
311
311
  'VpnDetail' => [],
312
312
  'ClassDetail' => [],
313
+ 'BotDetail' => [],
313
314
  'ProxyDetail' => [],
314
315
  'PubproxyDetail' => [],
315
316
  'CarrierDetail' => [],
@@ -322,9 +323,10 @@ module VPNDetection
322
323
  'BitTorrentDetail' => [],
323
324
  'Location' => %i[continent continent_name country country_name timezone currency_code currency_name
324
325
  currency_symbol flag_emoji flag_unicode],
325
- 'Asn' => %i[asn name domain type prefix],
326
+ 'Asn' => %i[asn name domain type prefix country rpki_status],
326
327
  'Company' => %i[name domain],
327
328
  'AbuseContact' => %i[email],
329
+ 'UserAgentVerdict' => %i[agent kind verdict],
328
330
  'BatchLookupError' => %i[status error],
329
331
  'Entitlement' => %i[org_id apikey plan usage],
330
332
  'EntitlementApikey' => %i[id expires allowed_cidrs],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VPNDetection
4
- VERSION = '5.18.1'
4
+ VERSION = '5.19.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vpndetection
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.18.1
4
+ version: 5.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev
@@ -84,6 +84,7 @@ files:
84
84
  - lib/vpndetection/models/batch_lookup_request.rb
85
85
  - lib/vpndetection/models/batch_lookup_response.rb
86
86
  - lib/vpndetection/models/bit_torrent_detail.rb
87
+ - lib/vpndetection/models/bot_detail.rb
87
88
  - lib/vpndetection/models/carrier_detail.rb
88
89
  - lib/vpndetection/models/class_detail.rb
89
90
  - lib/vpndetection/models/client_registration.rb
@@ -121,6 +122,7 @@ files:
121
122
  - lib/vpndetection/models/ssh_detail.rb
122
123
  - lib/vpndetection/models/standing.rb
123
124
  - lib/vpndetection/models/token_response.rb
125
+ - lib/vpndetection/models/user_agent_verdict.rb
124
126
  - lib/vpndetection/models/vpn_detail.rb
125
127
  - lib/vpndetection/models/web_detail.rb
126
128
  - lib/vpndetection/oauth_api.rb