internetdata 2.6.3 → 2.7.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b6a8f4fb33244001e88839b70a653777f091911b885a02cedbcc4ad637d658e
4
- data.tar.gz: c068ea8ade475fbf6f570cd60414637e6fc7074ba083d445f3c2856435a64270
3
+ metadata.gz: e82fb5eb7859d275fc2afd049004a7c81bb1011414d233f48e2be9a76743e82e
4
+ data.tar.gz: 164f190384cc89c588b20ab86702db0d3d5f563c2c7dc8b2c764b5783eda56d3
5
5
  SHA512:
6
- metadata.gz: 8b3746379cfc383ca98641ff59f475270fe6eedb4566b3977fc6ef75db320a542ba1cffcab694b465ac3fc6d0280ebe21bf973970ebd4b17354fbc140012d410
7
- data.tar.gz: f29a490ae7ae8f17cc84325978e58ba3337100ef3e15641222a71980b62811881c37ccde11db828758aabbf865f78c9347c3b1c2954bba7cfac8362c65dad734
6
+ metadata.gz: 5ce2ae19a89030b3d6a84556b23a747369540dc9d2c9d036f34f278fbe4495a18c7011a88fb73b8b693ff852a73fbe01d3d12bb3f24887558e238634eb2ea36a
7
+ data.tar.gz: cdb7fdd1bb252a72b7a6e1b7ff01407c579813451c20f47b094b03afe46baddf631d83fc16bd2b7cb3898f1538c31f37bb8bbcb127d30e176d2e3ea03803e1c5
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -36,6 +36,9 @@ module InternetData
36
36
  # Any client may sign in with an https `client_id` serving its own metadata.
37
37
  attr_accessor :client_id_metadata_document_supported
38
38
 
39
+ # RFC 7591 dynamic client registration, for a client that cannot serve its own metadata.
40
+ attr_accessor :registration_endpoint
41
+
39
42
  # Always `none`. Every client is public and has no secret.
40
43
  attr_accessor :token_endpoint_auth_methods_supported
41
44
 
@@ -57,6 +60,7 @@ module InternetData
57
60
  :'grant_types_supported' => :'grant_types_supported',
58
61
  :'code_challenge_methods_supported' => :'code_challenge_methods_supported',
59
62
  :'client_id_metadata_document_supported' => :'client_id_metadata_document_supported',
63
+ :'registration_endpoint' => :'registration_endpoint',
60
64
  :'token_endpoint_auth_methods_supported' => :'token_endpoint_auth_methods_supported',
61
65
  :'authorization_response_iss_parameter_supported' => :'authorization_response_iss_parameter_supported',
62
66
  :'service_documentation' => :'service_documentation'
@@ -86,6 +90,7 @@ module InternetData
86
90
  :'grant_types_supported' => :'Array<String>',
87
91
  :'code_challenge_methods_supported' => :'Array<String>',
88
92
  :'client_id_metadata_document_supported' => :'Boolean',
93
+ :'registration_endpoint' => :'String',
89
94
  :'token_endpoint_auth_methods_supported' => :'Array<String>',
90
95
  :'authorization_response_iss_parameter_supported' => :'Boolean',
91
96
  :'service_documentation' => :'String'
@@ -168,6 +173,10 @@ module InternetData
168
173
  self.client_id_metadata_document_supported = attributes[:'client_id_metadata_document_supported']
169
174
  end
170
175
 
176
+ if attributes.key?(:'registration_endpoint')
177
+ self.registration_endpoint = attributes[:'registration_endpoint']
178
+ end
179
+
171
180
  if attributes.key?(:'token_endpoint_auth_methods_supported')
172
181
  if (value = attributes[:'token_endpoint_auth_methods_supported']).is_a?(Array)
173
182
  self.token_endpoint_auth_methods_supported = value
@@ -258,6 +267,7 @@ module InternetData
258
267
  grant_types_supported == o.grant_types_supported &&
259
268
  code_challenge_methods_supported == o.code_challenge_methods_supported &&
260
269
  client_id_metadata_document_supported == o.client_id_metadata_document_supported &&
270
+ registration_endpoint == o.registration_endpoint &&
261
271
  token_endpoint_auth_methods_supported == o.token_endpoint_auth_methods_supported &&
262
272
  authorization_response_iss_parameter_supported == o.authorization_response_iss_parameter_supported &&
263
273
  service_documentation == o.service_documentation
@@ -272,7 +282,7 @@ module InternetData
272
282
  # Calculates hash code according to all attributes.
273
283
  # @return [Integer] Hash code
274
284
  def hash
275
- [issuer, authorization_endpoint, token_endpoint, device_authorization_endpoint, revocation_endpoint, scopes_supported, response_types_supported, grant_types_supported, code_challenge_methods_supported, client_id_metadata_document_supported, token_endpoint_auth_methods_supported, authorization_response_iss_parameter_supported, service_documentation].hash
285
+ [issuer, authorization_endpoint, token_endpoint, device_authorization_endpoint, revocation_endpoint, scopes_supported, response_types_supported, grant_types_supported, code_challenge_methods_supported, client_id_metadata_document_supported, registration_endpoint, token_endpoint_auth_methods_supported, authorization_response_iss_parameter_supported, service_documentation].hash
276
286
  end
277
287
 
278
288
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
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: 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.10.15
6
+ The version of the OpenAPI document: 2026.10.16
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -32,7 +32,7 @@ module InternetData
32
32
  # Not part of OAuth, and only for our own clients. The ID of the API key the person picked when they approved, returned by every grant while this authorization may still read that key back. Absent when no key was picked, or when the person's role no longer allows reading keys back.
33
33
  attr_accessor :apikey_id
34
34
 
35
- # Not part of OAuth, and only for our own clients: a client that signed in with a Client ID Metadata Document never receives a key. The API key itself, so a device ends up holding an ordinary key. Returned by the device code and authorization code grants only, never by a refresh, and only alongside `mslm:apikey_id`. Absent when that key's secret cannot be read back, which is the case for a key created before keys could be shown again in the console; a rotated key can be.
35
+ # Not part of OAuth, and only for our own clients: a client that signed in with a Client ID Metadata Document or registered itself never receives a key. The API key itself, so a device ends up holding an ordinary key. Returned by the device code and authorization code grants only, never by a refresh, and only alongside `mslm:apikey_id`. Absent when that key's secret cannot be read back, which is the case for a key created before keys could be shown again in the console; a rotated key can be.
36
36
  attr_accessor :apikey
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -90,11 +90,17 @@ module InternetData
90
90
  # the spec requires. The generated reader raised a RuntimeError, a
91
91
  # JSON::ParserError or an ArgumentError for those, none of them retried, and
92
92
  # handed an empty or non-object body back as nil, as if it were the answer.
93
+ #
94
+ # Every member present is checked against the type the spec gives it before
95
+ # the answer is handed back: the generated reader converts with `to_i` and
96
+ # `to_s`, so `"version":"x"` came back as version 0 and `"version":"3"` as 3,
97
+ # as if either were the answer (2.6.3, measured 2026-10-16).
93
98
  def deserialize(response, return_type)
94
99
  data = super
95
- return data unless data.nil?
100
+ raise Error.new(:server_error, "the API answered with no #{return_type}", status: response.code) if data.nil?
96
101
 
97
- raise Error.new(:server_error, "the API answered with no #{return_type}", status: response.code)
102
+ check_type!(JSON.parse(response.body, symbolize_names: true), return_type.to_s, 'the answer') if return_type
103
+ data
98
104
  rescue Error
99
105
  raise
100
106
  rescue StandardError => e
@@ -189,5 +195,42 @@ module InternetData
189
195
  end
190
196
 
191
197
  private_class_method :transport_failure?, :parse_object, :oauth_refusal
198
+
199
+ private
200
+
201
+ # True when `value` has the generated `type`, a model's members recursively;
202
+ # raises TypeError naming where it does not. A null is left to the models'
203
+ # own required-member checks.
204
+ def check_type!(value, type, where)
205
+ return true if value.nil?
206
+
207
+ typed =
208
+ case type
209
+ when 'String', 'Date', 'Time' then value.is_a?(String)
210
+ when 'Integer' then value.is_a?(Integer)
211
+ when 'Float' then value.is_a?(Numeric)
212
+ when 'Boolean' then [true, false].include?(value)
213
+ when 'Object' then true
214
+ when /\AArray<(?<inner>.+)>\z/
215
+ inner = Regexp.last_match(:inner)
216
+ value.is_a?(Array) && value.each_with_index.all? { |v, i| check_type!(v, inner, "#{where}[#{i}]") }
217
+ when /\AHash<String, ?(?<inner>.+)>\z/
218
+ inner = Regexp.last_match(:inner)
219
+ value.is_a?(Hash) && value.all? { |k, v| check_type!(v, inner, "#{where}.#{k}") }
220
+ else
221
+ model = InternetData.const_get(type)
222
+ if model.respond_to?(:openapi_types)
223
+ value.is_a?(Hash) && model.openapi_types.all? do |attr, member|
224
+ key = model.attribute_map[attr]
225
+ check_type!(value[key], member.to_s, "#{where}.#{key}")
226
+ end
227
+ else
228
+ value.is_a?(String) # an enum
229
+ end
230
+ end
231
+ return true if typed
232
+
233
+ raise TypeError, "#{where} is not a #{type}"
234
+ end
192
235
  end
193
236
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InternetData
4
- VERSION = '2.6.3'
4
+ VERSION = '2.7.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: internetdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev