internetdata 2.13.0__tar.gz → 2.14.0__tar.gz

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 (158) hide show
  1. {internetdata-2.13.0 → internetdata-2.14.0}/PKG-INFO +4 -3
  2. {internetdata-2.13.0 → internetdata-2.14.0}/README.md +3 -2
  3. {internetdata-2.13.0 → internetdata-2.14.0}/spec/openapi.yaml +98 -10
  4. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/__init__.py +3 -1
  5. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/lookup/lookup_asn.py +20 -20
  6. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/__init__.py +2 -0
  7. internetdata-2.14.0/src/internetdata/_generated/models/asn_hosted_domains.py +76 -0
  8. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/asn_lookup_response.py +101 -1
  9. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/entitlement_plan.py +16 -3
  10. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/aio.py +2 -2
  11. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/client.py +2 -2
  12. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/models.py +28 -0
  13. {internetdata-2.13.0 → internetdata-2.14.0}/testdata/testdata.json +47 -5
  14. {internetdata-2.13.0 → internetdata-2.14.0}/tests/test_lookup.py +19 -3
  15. {internetdata-2.13.0 → internetdata-2.14.0}/.gitignore +0 -0
  16. {internetdata-2.13.0 → internetdata-2.14.0}/LICENSE +0 -0
  17. {internetdata-2.13.0 → internetdata-2.14.0}/pyproject.toml +0 -0
  18. {internetdata-2.13.0 → internetdata-2.14.0}/scripts/download-spec.sh +0 -0
  19. {internetdata-2.13.0 → internetdata-2.14.0}/scripts/generate.sh +0 -0
  20. {internetdata-2.13.0 → internetdata-2.14.0}/scripts/publish.sh +0 -0
  21. {internetdata-2.13.0 → internetdata-2.14.0}/scripts/v2_subset.py +0 -0
  22. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_bogons.py +0 -0
  23. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_core.py +0 -0
  24. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/__init__.py +0 -0
  25. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/__init__.py +0 -0
  26. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/account/__init__.py +0 -0
  27. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/account/account_identity.py +0 -0
  28. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/api_keys/__init__.py +0 -0
  29. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/api_keys/account_create_apikey.py +0 -0
  30. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/api_keys/account_list_apikeys.py +0 -0
  31. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/api_keys/account_reveal_apikey.py +0 -0
  32. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/api_keys/account_revoke_apikey.py +0 -0
  33. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/api_keys/account_rotate_apikey.py +0 -0
  34. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/authorization/__init__.py +0 -0
  35. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/authorization/oauth_authorize.py +0 -0
  36. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/authorization/oauth_device_authorization.py +0 -0
  37. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/authorization/oauth_metadata.py +0 -0
  38. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/authorization/oauth_register.py +0 -0
  39. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/authorization/oauth_revoke.py +0 -0
  40. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/authorization/oauth_token.py +0 -0
  41. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/database_v_2/__init__.py +0 -0
  42. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/database_v_2/database_checksum_v2.py +0 -0
  43. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/database_v_2/database_metadata_v2.py +0 -0
  44. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/database_v_2/download_database_v2.py +0 -0
  45. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/database_v_2/list_databases.py +0 -0
  46. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/database_v_2/list_downloads.py +0 -0
  47. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/entitlement/__init__.py +0 -0
  48. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/entitlement/my_entitlement.py +0 -0
  49. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/lookup/__init__.py +0 -0
  50. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/lookup/lookup_batch.py +0 -0
  51. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/lookup/lookup_domain.py +0 -0
  52. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/lookup/lookup_ip.py +0 -0
  53. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/lookup/lookup_my_ip.py +0 -0
  54. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/organization/__init__.py +0 -0
  55. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/organization/account_org.py +0 -0
  56. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/api/organization/account_org_members.py +0 -0
  57. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/client.py +0 -0
  58. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/errors.py +0 -0
  59. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/abuse_contact.py +0 -0
  60. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/account_create_apikey_request.py +0 -0
  61. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/account_created_apikey.py +0 -0
  62. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/account_org.py +0 -0
  63. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/account_org_ref.py +0 -0
  64. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/account_org_wrap.py +0 -0
  65. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/account_rc.py +0 -0
  66. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/account_revealed_apikey.py +0 -0
  67. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/account_user.py +0 -0
  68. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/apikey_detail.py +0 -0
  69. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/apikey_list.py +0 -0
  70. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/asn.py +0 -0
  71. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/asn_lookup_response_whois.py +0 -0
  72. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/asn_prefix.py +0 -0
  73. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/batch_lookup_error.py +0 -0
  74. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/batch_lookup_request.py +0 -0
  75. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/batch_lookup_response.py +0 -0
  76. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/batch_lookup_response_errors.py +0 -0
  77. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/batch_lookup_response_results.py +0 -0
  78. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/bit_torrent_detail.py +0 -0
  79. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/carrier_detail.py +0 -0
  80. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/class_detail.py +0 -0
  81. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/client_registration.py +0 -0
  82. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/client_registration_request.py +0 -0
  83. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/company.py +0 -0
  84. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database.py +0 -0
  85. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_checksum_v2_response_200.py +0 -0
  86. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_format.py +0 -0
  87. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_license_type_type_1.py +0 -0
  88. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_license_type_type_2_type_1.py +0 -0
  89. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_license_type_type_3_type_1.py +0 -0
  90. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_metadata.py +0 -0
  91. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_metadata_column.py +0 -0
  92. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_metadata_sample.py +0 -0
  93. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_metadata_sample_additional_property_item.py +0 -0
  94. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_metadata_sample_size.py +0 -0
  95. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_metadata_schema.py +0 -0
  96. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_metadata_size.py +0 -0
  97. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/database_version.py +0 -0
  98. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/db_checksums.py +0 -0
  99. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/device_authorization.py +0 -0
  100. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/device_authorization_request.py +0 -0
  101. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/disposable_detail.py +0 -0
  102. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/dns_address_record.py +0 -0
  103. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/dns_cname_record.py +0 -0
  104. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/dns_mx_record.py +0 -0
  105. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/dns_ns_record.py +0 -0
  106. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/dns_resolver_detail.py +0 -0
  107. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/domain_dns.py +0 -0
  108. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/domain_ip_range.py +0 -0
  109. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/domain_ip_ranges.py +0 -0
  110. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/domain_lookup_response.py +0 -0
  111. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/download.py +0 -0
  112. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/download_outcome.py +0 -0
  113. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/entitlement.py +0 -0
  114. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/entitlement_apikey.py +0 -0
  115. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/entitlement_error.py +0 -0
  116. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/entitlement_plan_tier.py +0 -0
  117. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/entitlement_usage.py +0 -0
  118. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/error.py +0 -0
  119. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/hosted_domains.py +0 -0
  120. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/identity.py +0 -0
  121. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/list_databases_response_200.py +0 -0
  122. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/list_downloads_response_200.py +0 -0
  123. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/location.py +0 -0
  124. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/lookup_error.py +0 -0
  125. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/lookup_response.py +0 -0
  126. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/oauth_authorize_code_challenge_method.py +0 -0
  127. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/oauth_authorize_response_type.py +0 -0
  128. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/oauth_error.py +0 -0
  129. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/oauth_metadata.py +0 -0
  130. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/oauth_revoke_response_200.py +0 -0
  131. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/proxy_detail.py +0 -0
  132. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/pubproxy_detail.py +0 -0
  133. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/revoke_request.py +0 -0
  134. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/rwhois.py +0 -0
  135. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/satellite_detail.py +0 -0
  136. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/smtp_detail.py +0 -0
  137. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/ssh_detail.py +0 -0
  138. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/standing.py +0 -0
  139. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/token_request.py +0 -0
  140. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/token_response.py +0 -0
  141. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/web_detail.py +0 -0
  142. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/models/whois.py +0 -0
  143. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/_generated/types.py +0 -0
  144. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/bogon.py +0 -0
  145. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/errors.py +0 -0
  146. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/middleware/__init__.py +0 -0
  147. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/middleware/condition.py +0 -0
  148. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/middleware/core.py +0 -0
  149. {internetdata-2.13.0 → internetdata-2.14.0}/src/internetdata/py.typed +0 -0
  150. {internetdata-2.13.0 → internetdata-2.14.0}/testdata/bogons.json +0 -0
  151. {internetdata-2.13.0 → internetdata-2.14.0}/tests/conftest.py +0 -0
  152. {internetdata-2.13.0 → internetdata-2.14.0}/tests/helpers.py +0 -0
  153. {internetdata-2.13.0 → internetdata-2.14.0}/tests/test_client.py +0 -0
  154. {internetdata-2.13.0 → internetdata-2.14.0}/tests/test_conformance.py +0 -0
  155. {internetdata-2.13.0 → internetdata-2.14.0}/tests/test_download.py +0 -0
  156. {internetdata-2.13.0 → internetdata-2.14.0}/tests/test_middleware.py +0 -0
  157. {internetdata-2.13.0 → internetdata-2.14.0}/tests/test_oauth.py +0 -0
  158. {internetdata-2.13.0 → internetdata-2.14.0}/tests/test_sharing.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: internetdata
3
- Version: 2.13.0
3
+ Version: 2.14.0
4
4
  Summary: Official Python client library for the InternetData API. Look up IP addresses, ASNs and domains, and download licensed IP databases.
5
5
  Project-URL: Homepage, https://internetdata.io
6
6
  Project-URL: Documentation, https://docs.internetdata.io
@@ -117,6 +117,7 @@ Same answer `lookup` would give for that address, and the same cost against your
117
117
  ```python
118
118
  acct = client.my_entitlement()
119
119
  print(acct.plan.key) # starter
120
+ print(acct.plan.name) # Starter, the name to show
120
121
  print(acct.usage.requests) # 580
121
122
  print(acct.usage.window_end) # when the allowance resets
122
123
  ```
@@ -203,7 +204,7 @@ domain = client.lookup_domain("example.com")
203
204
  print(domain.is_registered, domain.has_mx) # True True
204
205
  ```
205
206
 
206
- On a paid plan an AS answer also carries its Whois record, its counts and every prefix it announces, and a domain answer its DNS records, its organization's IP ranges and `is_disposable`. Neither is cached, and neither goes through the batch. `lookup` takes addresses alone, and refuses an AS or a domain with a `bad_request` before sending anything.
207
+ On a paid plan an AS answer also carries its Whois record, its counts, every prefix it announces, its rank, Tier 1 flag, upstreams, peers and downstreams, and the domains it hosts, and a domain answer its DNS records, its organization's IP ranges and `is_disposable`. Neither is cached, and neither goes through the batch. `lookup` takes addresses alone, and refuses an AS or a domain with a `bad_request` before sending anything.
207
208
 
208
209
  ### Errors
209
210
 
@@ -290,7 +291,7 @@ raw = client.database.download_bytes("bogon_ip_v1", "csvgz")
290
291
  written = client.database.download("bogon_ip_v1", "mmdb", "./bogon_ip_v1.mmdb")
291
292
  ```
292
293
 
293
- `download_url` hands back a time-limited link straight to object storage. It carries its own signature and none of your API key, so you can pass it to `curl`, a job runner or anything else that speaks HTTP. The link authorizes the START of a transfer, so one already running is not cut off when it lapses.
294
+ `download_url` hands back a time-limited link straight to object storage. It carries its own signature and none of your API key, so you can pass it to `curl`, a job runner or anything else that speaks HTTP. The link only has to be valid when a transfer starts, so one already running isn't cut off when it lapses.
294
295
 
295
296
  `download` streams to a file, so nothing larger than a chunk is ever held in memory. The bytes land in a neighboring `.part` file that is moved into place only once the whole transfer has arrived, so a failed refresh leaves the copy you already had untouched. `download_bytes` holds the whole file in memory, so reach for it only at the small end of the catalog.
296
297
 
@@ -82,6 +82,7 @@ Same answer `lookup` would give for that address, and the same cost against your
82
82
  ```python
83
83
  acct = client.my_entitlement()
84
84
  print(acct.plan.key) # starter
85
+ print(acct.plan.name) # Starter, the name to show
85
86
  print(acct.usage.requests) # 580
86
87
  print(acct.usage.window_end) # when the allowance resets
87
88
  ```
@@ -168,7 +169,7 @@ domain = client.lookup_domain("example.com")
168
169
  print(domain.is_registered, domain.has_mx) # True True
169
170
  ```
170
171
 
171
- On a paid plan an AS answer also carries its Whois record, its counts and every prefix it announces, and a domain answer its DNS records, its organization's IP ranges and `is_disposable`. Neither is cached, and neither goes through the batch. `lookup` takes addresses alone, and refuses an AS or a domain with a `bad_request` before sending anything.
172
+ On a paid plan an AS answer also carries its Whois record, its counts, every prefix it announces, its rank, Tier 1 flag, upstreams, peers and downstreams, and the domains it hosts, and a domain answer its DNS records, its organization's IP ranges and `is_disposable`. Neither is cached, and neither goes through the batch. `lookup` takes addresses alone, and refuses an AS or a domain with a `bad_request` before sending anything.
172
173
 
173
174
  ### Errors
174
175
 
@@ -255,7 +256,7 @@ raw = client.database.download_bytes("bogon_ip_v1", "csvgz")
255
256
  written = client.database.download("bogon_ip_v1", "mmdb", "./bogon_ip_v1.mmdb")
256
257
  ```
257
258
 
258
- `download_url` hands back a time-limited link straight to object storage. It carries its own signature and none of your API key, so you can pass it to `curl`, a job runner or anything else that speaks HTTP. The link authorizes the START of a transfer, so one already running is not cut off when it lapses.
259
+ `download_url` hands back a time-limited link straight to object storage. It carries its own signature and none of your API key, so you can pass it to `curl`, a job runner or anything else that speaks HTTP. The link only has to be valid when a transfer starts, so one already running isn't cut off when it lapses.
259
260
 
260
261
  `download` streams to a file, so nothing larger than a chunk is ever held in memory. The bytes land in a neighboring `.part` file that is moved into place only once the whole transfer has arrived, so a failed refresh leaves the copy you already had untouched. `download_bytes` holds the whole file in memory, so reach for it only at the small end of the catalog.
261
262
 
@@ -13,7 +13,7 @@ info:
13
13
  email: support@internetdata.io
14
14
  url: https://internetdata.io
15
15
  termsOfService: https://internetdata.io/terms
16
- version: 2026.11.14
16
+ version: 2026.11.15
17
17
  servers:
18
18
  - url: https://internetdata.io
19
19
  tags:
@@ -1747,13 +1747,16 @@ paths:
1747
1747
  description: >
1748
1748
  Answers what InternetData knows about one autonomous system: its registration on every plan,
1749
1749
 
1750
- and on a paid one its ASN Whois record and every prefix it announces in global BGP, with
1751
- RPKI status,
1750
+ and on a paid one its ASN Whois record, every prefix it announces in global BGP, with RPKI
1751
+ status,
1752
1752
 
1753
- up to 20000 per address family (the counts beside them are always whole). An AS no database
1754
- knows answers
1753
+ up to 20000 per address family, its rank, Tier 1 flag, upstreams, peers and downstreams from
1754
+ ASN
1755
1755
 
1756
- its number with empty values.
1756
+ Extended, up to 20000 each (the counts beside them are always whole), and the domains it
1757
+ hosts. An AS no
1758
+
1759
+ database knows answers its number with empty values.
1757
1760
  parameters:
1758
1761
  - in: path
1759
1762
  name: asn
@@ -1784,7 +1787,7 @@ paths:
1784
1787
  allocated: '2005-06-06'
1785
1788
  domain: m247global.com
1786
1789
  paid:
1787
- summary: A paid plan, two of its prefixes shown
1790
+ summary: A paid plan, two of each list shown
1788
1791
  value:
1789
1792
  asn: 9009
1790
1793
  name: M247 Europe SRL
@@ -1856,6 +1859,25 @@ paths:
1856
1859
  country: US
1857
1860
  size: 0
1858
1861
  other_origins: []
1862
+ rank: 341
1863
+ tier1: false
1864
+ num_upstreams: 18
1865
+ upstreams:
1866
+ - 174
1867
+ - 260
1868
+ num_peers: 1018
1869
+ peers:
1870
+ - 42
1871
+ - 286
1872
+ num_downstreams: 146
1873
+ downstreams:
1874
+ - 3210
1875
+ - 3503
1876
+ hosted_domains:
1877
+ total: 51759
1878
+ domains:
1879
+ - fotopedia.com
1880
+ - kissfm.ro
1859
1881
  '400':
1860
1882
  description: Not an address, an AS number or a domain.
1861
1883
  content:
@@ -2443,6 +2465,7 @@ paths:
2443
2465
  allowed_cidrs: []
2444
2466
  plan:
2445
2467
  key: max
2468
+ name: Max
2446
2469
  tier: max
2447
2470
  usage:
2448
2471
  requests: 580
@@ -2464,6 +2487,7 @@ paths:
2464
2487
  allowed_cidrs: []
2465
2488
  plan:
2466
2489
  key: free
2490
+ name: Unlimited
2467
2491
  tier: free
2468
2492
  usage:
2469
2493
  requests: 37
@@ -4104,6 +4128,22 @@ components:
4104
4128
  description: >-
4105
4129
  From IP Hosted Domains: how many registered domains resolve to the address, and the 10 most
4106
4130
  popular. Its database lists up to 1,000 an address. Paid plans and the trial.
4131
+ AsnHostedDomains:
4132
+ type: object
4133
+ properties:
4134
+ total:
4135
+ type: integer
4136
+ description: How many registered domains resolve to an address the AS announces.
4137
+ domains:
4138
+ type: array
4139
+ items:
4140
+ type: string
4141
+ description: Up to 10 of them, the most popular first; `[]` when none does.
4142
+ required:
4143
+ - total
4144
+ description: >-
4145
+ From ASN Hosted Domains: how many registered domains the AS hosts, and the 10 most popular.
4146
+ Its database lists up to 1,000 an AS. Paid plans and the trial.
4107
4147
  AsnLookupResponse:
4108
4148
  type: object
4109
4149
  properties:
@@ -4158,6 +4198,44 @@ components:
4158
4198
  items:
4159
4199
  $ref: '#/components/schemas/AsnPrefix'
4160
4200
  description: What it announces, IPv4 then IPv6, up to 20000 a family. Paid plans and the trial.
4201
+ rank:
4202
+ type: integer
4203
+ description: >-
4204
+ Its rank in ASN Extended, by customer cone, 1 the largest; `0` for an AS seen in no AS
4205
+ path. Paid plans and the trial.
4206
+ tier1:
4207
+ type: boolean
4208
+ description: >-
4209
+ Whether it is one of the transit-free networks at the top of the hierarchy, which get
4210
+ transit from no one and peer with each other. Paid plans and the trial.
4211
+ num_upstreams:
4212
+ type: integer
4213
+ description: How many AS numbers it gets transit from. Paid plans and the trial.
4214
+ upstreams:
4215
+ type: array
4216
+ items:
4217
+ type: integer
4218
+ description: Those AS numbers, ascending, up to 20000. Paid plans and the trial.
4219
+ num_peers:
4220
+ type: integer
4221
+ description: >-
4222
+ How many AS numbers it exchanges its own and its customers' routes with. Paid plans and
4223
+ the trial.
4224
+ peers:
4225
+ type: array
4226
+ items:
4227
+ type: integer
4228
+ description: Those AS numbers, ascending, up to 20000. Paid plans and the trial.
4229
+ num_downstreams:
4230
+ type: integer
4231
+ description: How many AS numbers it provides transit to. Paid plans and the trial.
4232
+ downstreams:
4233
+ type: array
4234
+ items:
4235
+ type: integer
4236
+ description: Those AS numbers, ascending, up to 20000. Paid plans and the trial.
4237
+ hosted_domains:
4238
+ $ref: '#/components/schemas/AsnHostedDomains'
4161
4239
  trial_expired:
4162
4240
  type: boolean
4163
4241
  description: >-
@@ -4501,15 +4579,24 @@ components:
4501
4579
  type: object
4502
4580
  required:
4503
4581
  - key
4582
+ - name
4504
4583
  - tier
4505
4584
  properties:
4506
4585
  key:
4507
4586
  type: string
4508
4587
  description: |
4509
- The plan the organization is on: `free` for the free plan,
4510
- Unlimited, or a paid plan's key. On `free`, usage counts the
4588
+ The plan the organization is on, as an identifier that is never
4589
+ renamed or reused: `free` for the free plan, or a paid plan's key.
4590
+ Compare against it and show `name`. On `free`, usage counts the
4511
4591
  day's lookups answered with every field, its daily trial.
4512
4592
  example: max
4593
+ name:
4594
+ type: string
4595
+ description: |
4596
+ The plan's name, as the site and console show it: `Unlimited` for
4597
+ the free plan. Show this rather than a name built from `key`: a
4598
+ plan's name can change, and its key never does.
4599
+ example: Max
4513
4600
  tier:
4514
4601
  type: string
4515
4602
  enum:
@@ -4519,7 +4606,8 @@ components:
4519
4606
  - max
4520
4607
  description: |
4521
4608
  The field tier, which decides how much of a lookup answer comes
4522
- back; `free` is the free plan's. What each tier includes is documented
4609
+ back; `free` is the free plan's. This list never gains a value: a
4610
+ new plan reports one of these. What each tier includes is documented
4523
4611
  on the lookup endpoint rather than repeated here, so there is one
4524
4612
  place it can be wrong.
4525
4613
  EntitlementUsage:
@@ -26,6 +26,7 @@ from .models import (
26
26
  STANDINGS,
27
27
  AbuseContact,
28
28
  Asn,
29
+ AsnHostedDomains,
29
30
  AsnPrefix,
30
31
  AsnResult,
31
32
  BitTorrentDetail,
@@ -75,7 +76,7 @@ from .models import (
75
76
  Whois,
76
77
  )
77
78
 
78
- __version__ = "2.13.0"
79
+ __version__ = "2.14.0"
79
80
 
80
81
  __all__ = [
81
82
  "DATABASE_FORMATS",
@@ -84,6 +85,7 @@ __all__ = [
84
85
  "STANDINGS",
85
86
  "AbuseContact",
86
87
  "Asn",
88
+ "AsnHostedDomains",
87
89
  "AsnPrefix",
88
90
  "AsnResult",
89
91
  "AsyncDatabaseApi",
@@ -83,11 +83,11 @@ def sync_detailed(
83
83
  """ASN lookup
84
84
 
85
85
  Answers what InternetData knows about one autonomous system: its registration on every plan,
86
- and on a paid one its ASN Whois record and every prefix it announces in global BGP, with RPKI
87
- status,
88
- up to 20000 per address family (the counts beside them are always whole). An AS no database knows
89
- answers
90
- its number with empty values.
86
+ and on a paid one its ASN Whois record, every prefix it announces in global BGP, with RPKI status,
87
+ up to 20000 per address family, its rank, Tier 1 flag, upstreams, peers and downstreams from ASN
88
+ Extended, up to 20000 each (the counts beside them are always whole), and the domains it hosts. An
89
+ AS no
90
+ database knows answers its number with empty values.
91
91
 
92
92
  Args:
93
93
  asn (str):
@@ -119,11 +119,11 @@ def sync(
119
119
  """ASN lookup
120
120
 
121
121
  Answers what InternetData knows about one autonomous system: its registration on every plan,
122
- and on a paid one its ASN Whois record and every prefix it announces in global BGP, with RPKI
123
- status,
124
- up to 20000 per address family (the counts beside them are always whole). An AS no database knows
125
- answers
126
- its number with empty values.
122
+ and on a paid one its ASN Whois record, every prefix it announces in global BGP, with RPKI status,
123
+ up to 20000 per address family, its rank, Tier 1 flag, upstreams, peers and downstreams from ASN
124
+ Extended, up to 20000 each (the counts beside them are always whole), and the domains it hosts. An
125
+ AS no
126
+ database knows answers its number with empty values.
127
127
 
128
128
  Args:
129
129
  asn (str):
@@ -150,11 +150,11 @@ async def asyncio_detailed(
150
150
  """ASN lookup
151
151
 
152
152
  Answers what InternetData knows about one autonomous system: its registration on every plan,
153
- and on a paid one its ASN Whois record and every prefix it announces in global BGP, with RPKI
154
- status,
155
- up to 20000 per address family (the counts beside them are always whole). An AS no database knows
156
- answers
157
- its number with empty values.
153
+ and on a paid one its ASN Whois record, every prefix it announces in global BGP, with RPKI status,
154
+ up to 20000 per address family, its rank, Tier 1 flag, upstreams, peers and downstreams from ASN
155
+ Extended, up to 20000 each (the counts beside them are always whole), and the domains it hosts. An
156
+ AS no
157
+ database knows answers its number with empty values.
158
158
 
159
159
  Args:
160
160
  asn (str):
@@ -184,11 +184,11 @@ async def asyncio(
184
184
  """ASN lookup
185
185
 
186
186
  Answers what InternetData knows about one autonomous system: its registration on every plan,
187
- and on a paid one its ASN Whois record and every prefix it announces in global BGP, with RPKI
188
- status,
189
- up to 20000 per address family (the counts beside them are always whole). An AS no database knows
190
- answers
191
- its number with empty values.
187
+ and on a paid one its ASN Whois record, every prefix it announces in global BGP, with RPKI status,
188
+ up to 20000 per address family, its rank, Tier 1 flag, upstreams, peers and downstreams from ASN
189
+ Extended, up to 20000 each (the counts beside them are always whole), and the domains it hosts. An
190
+ AS no
191
+ database knows answers its number with empty values.
192
192
 
193
193
  Args:
194
194
  asn (str):
@@ -12,6 +12,7 @@ from .account_user import AccountUser
12
12
  from .apikey_detail import ApikeyDetail
13
13
  from .apikey_list import ApikeyList
14
14
  from .asn import Asn
15
+ from .asn_hosted_domains import AsnHostedDomains
15
16
  from .asn_lookup_response import AsnLookupResponse
16
17
  from .asn_lookup_response_whois import AsnLookupResponseWhois
17
18
  from .asn_prefix import AsnPrefix
@@ -102,6 +103,7 @@ __all__ = (
102
103
  "ApikeyDetail",
103
104
  "ApikeyList",
104
105
  "Asn",
106
+ "AsnHostedDomains",
105
107
  "AsnLookupResponse",
106
108
  "AsnLookupResponseWhois",
107
109
  "AsnPrefix",
@@ -0,0 +1,76 @@
1
+ from __future__ import annotations
2
+
3
+ from collections.abc import Mapping
4
+ from typing import Any, Self, TypeVar, cast
5
+
6
+ from attrs import define as _attrs_define
7
+ from attrs import field as _attrs_field
8
+
9
+ from ..types import UNSET, Unset
10
+
11
+ T = TypeVar("T", bound="AsnHostedDomains")
12
+
13
+
14
+ @_attrs_define
15
+ class AsnHostedDomains:
16
+ """From ASN Hosted Domains: how many registered domains the AS hosts, and the 10 most popular. Its database lists up to
17
+ 1,000 an AS. Paid plans and the trial.
18
+
19
+ Attributes:
20
+ total (int): How many registered domains resolve to an address the AS announces.
21
+ domains (list[str] | Unset): Up to 10 of them, the most popular first; `[]` when none does.
22
+ """
23
+
24
+ total: int
25
+ domains: list[str] | Unset = UNSET
26
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
27
+
28
+ def to_dict(self) -> dict[str, Any]:
29
+ total = self.total
30
+
31
+ domains: list[str] | Unset = UNSET
32
+ if not isinstance(self.domains, Unset):
33
+ domains = self.domains
34
+
35
+ field_dict: dict[str, Any] = {}
36
+ field_dict.update(self.additional_properties)
37
+ field_dict.update(
38
+ {
39
+ "total": total,
40
+ }
41
+ )
42
+ if domains is not UNSET:
43
+ field_dict["domains"] = domains
44
+
45
+ return field_dict
46
+
47
+ @classmethod
48
+ def from_dict(cls, src_dict: Mapping[str, Any]) -> Self:
49
+ d = dict(src_dict)
50
+ total = d.pop("total")
51
+
52
+ domains = cast(list[str], d.pop("domains", UNSET))
53
+
54
+ asn_hosted_domains = cls(
55
+ total=total,
56
+ domains=domains,
57
+ )
58
+
59
+ asn_hosted_domains.additional_properties = d
60
+ return asn_hosted_domains
61
+
62
+ @property
63
+ def additional_keys(self) -> list[str]:
64
+ return list(self.additional_properties.keys())
65
+
66
+ def __getitem__(self, key: str) -> Any:
67
+ return self.additional_properties[key]
68
+
69
+ def __setitem__(self, key: str, value: Any) -> None:
70
+ self.additional_properties[key] = value
71
+
72
+ def __delitem__(self, key: str) -> None:
73
+ del self.additional_properties[key]
74
+
75
+ def __contains__(self, key: str) -> bool:
76
+ return key in self.additional_properties
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from collections.abc import Mapping
4
- from typing import TYPE_CHECKING, Any, Self, TypeVar
4
+ from typing import TYPE_CHECKING, Any, Self, TypeVar, cast
5
5
 
6
6
  from attrs import define as _attrs_define
7
7
  from attrs import field as _attrs_field
@@ -9,6 +9,7 @@ from attrs import field as _attrs_field
9
9
  from ..types import UNSET, Unset
10
10
 
11
11
  if TYPE_CHECKING:
12
+ from ..models.asn_hosted_domains import AsnHostedDomains
12
13
  from ..models.asn_lookup_response_whois import AsnLookupResponseWhois
13
14
  from ..models.asn_prefix import AsnPrefix
14
15
 
@@ -38,6 +39,19 @@ class AsnLookupResponse:
38
39
  nothing. Paid plans and the trial.
39
40
  prefixes (list[AsnPrefix] | Unset): What it announces, IPv4 then IPv6, up to 20000 a family. Paid plans and the
40
41
  trial.
42
+ rank (int | Unset): Its rank in ASN Extended, by customer cone, 1 the largest; `0` for an AS seen in no AS path.
43
+ Paid plans and the trial.
44
+ tier1 (bool | Unset): Whether it is one of the transit-free networks at the top of the hierarchy, which get
45
+ transit from no one and peer with each other. Paid plans and the trial.
46
+ num_upstreams (int | Unset): How many AS numbers it gets transit from. Paid plans and the trial.
47
+ upstreams (list[int] | Unset): Those AS numbers, ascending, up to 20000. Paid plans and the trial.
48
+ num_peers (int | Unset): How many AS numbers it exchanges its own and its customers' routes with. Paid plans and
49
+ the trial.
50
+ peers (list[int] | Unset): Those AS numbers, ascending, up to 20000. Paid plans and the trial.
51
+ num_downstreams (int | Unset): How many AS numbers it provides transit to. Paid plans and the trial.
52
+ downstreams (list[int] | Unset): Those AS numbers, ascending, up to 20000. Paid plans and the trial.
53
+ hosted_domains (AsnHostedDomains | Unset): From ASN Hosted Domains: how many registered domains the AS hosts,
54
+ and the 10 most popular. Its database lists up to 1,000 an AS. Paid plans and the trial.
41
55
  trial_expired (bool | Unset): On every answer to a key on the free plan, and on no other: `false` while the
42
56
  day's trial of every field lasts, `true` once the answer has Unlimited's fields.
43
57
  """
@@ -57,6 +71,15 @@ class AsnLookupResponse:
57
71
  rpki_not_found: int | Unset = UNSET
58
72
  whois: AsnLookupResponseWhois | Unset = UNSET
59
73
  prefixes: list[AsnPrefix] | Unset = UNSET
74
+ rank: int | Unset = UNSET
75
+ tier1: bool | Unset = UNSET
76
+ num_upstreams: int | Unset = UNSET
77
+ upstreams: list[int] | Unset = UNSET
78
+ num_peers: int | Unset = UNSET
79
+ peers: list[int] | Unset = UNSET
80
+ num_downstreams: int | Unset = UNSET
81
+ downstreams: list[int] | Unset = UNSET
82
+ hosted_domains: AsnHostedDomains | Unset = UNSET
60
83
  trial_expired: bool | Unset = UNSET
61
84
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
62
85
 
@@ -98,6 +121,32 @@ class AsnLookupResponse:
98
121
  prefixes_item = prefixes_item_data.to_dict()
99
122
  prefixes.append(prefixes_item)
100
123
 
124
+ rank = self.rank
125
+
126
+ tier1 = self.tier1
127
+
128
+ num_upstreams = self.num_upstreams
129
+
130
+ upstreams: list[int] | Unset = UNSET
131
+ if not isinstance(self.upstreams, Unset):
132
+ upstreams = self.upstreams
133
+
134
+ num_peers = self.num_peers
135
+
136
+ peers: list[int] | Unset = UNSET
137
+ if not isinstance(self.peers, Unset):
138
+ peers = self.peers
139
+
140
+ num_downstreams = self.num_downstreams
141
+
142
+ downstreams: list[int] | Unset = UNSET
143
+ if not isinstance(self.downstreams, Unset):
144
+ downstreams = self.downstreams
145
+
146
+ hosted_domains: dict[str, Any] | Unset = UNSET
147
+ if not isinstance(self.hosted_domains, Unset):
148
+ hosted_domains = self.hosted_domains.to_dict()
149
+
101
150
  trial_expired = self.trial_expired
102
151
 
103
152
  field_dict: dict[str, Any] = {}
@@ -130,6 +179,24 @@ class AsnLookupResponse:
130
179
  field_dict["whois"] = whois
131
180
  if prefixes is not UNSET:
132
181
  field_dict["prefixes"] = prefixes
182
+ if rank is not UNSET:
183
+ field_dict["rank"] = rank
184
+ if tier1 is not UNSET:
185
+ field_dict["tier1"] = tier1
186
+ if num_upstreams is not UNSET:
187
+ field_dict["num_upstreams"] = num_upstreams
188
+ if upstreams is not UNSET:
189
+ field_dict["upstreams"] = upstreams
190
+ if num_peers is not UNSET:
191
+ field_dict["num_peers"] = num_peers
192
+ if peers is not UNSET:
193
+ field_dict["peers"] = peers
194
+ if num_downstreams is not UNSET:
195
+ field_dict["num_downstreams"] = num_downstreams
196
+ if downstreams is not UNSET:
197
+ field_dict["downstreams"] = downstreams
198
+ if hosted_domains is not UNSET:
199
+ field_dict["hosted_domains"] = hosted_domains
133
200
  if trial_expired is not UNSET:
134
201
  field_dict["trial_expired"] = trial_expired
135
202
 
@@ -137,6 +204,7 @@ class AsnLookupResponse:
137
204
 
138
205
  @classmethod
139
206
  def from_dict(cls, src_dict: Mapping[str, Any]) -> Self:
207
+ from ..models.asn_hosted_domains import AsnHostedDomains
140
208
  from ..models.asn_lookup_response_whois import AsnLookupResponseWhois
141
209
  from ..models.asn_prefix import AsnPrefix
142
210
 
@@ -183,6 +251,29 @@ class AsnLookupResponse:
183
251
 
184
252
  prefixes.append(prefixes_item)
185
253
 
254
+ rank = d.pop("rank", UNSET)
255
+
256
+ tier1 = d.pop("tier1", UNSET)
257
+
258
+ num_upstreams = d.pop("num_upstreams", UNSET)
259
+
260
+ upstreams = cast(list[int], d.pop("upstreams", UNSET))
261
+
262
+ num_peers = d.pop("num_peers", UNSET)
263
+
264
+ peers = cast(list[int], d.pop("peers", UNSET))
265
+
266
+ num_downstreams = d.pop("num_downstreams", UNSET)
267
+
268
+ downstreams = cast(list[int], d.pop("downstreams", UNSET))
269
+
270
+ _hosted_domains = d.pop("hosted_domains", UNSET)
271
+ hosted_domains: AsnHostedDomains | Unset
272
+ if isinstance(_hosted_domains, Unset):
273
+ hosted_domains = UNSET
274
+ else:
275
+ hosted_domains = AsnHostedDomains.from_dict(_hosted_domains)
276
+
186
277
  trial_expired = d.pop("trial_expired", UNSET)
187
278
 
188
279
  asn_lookup_response = cls(
@@ -201,6 +292,15 @@ class AsnLookupResponse:
201
292
  rpki_not_found=rpki_not_found,
202
293
  whois=whois,
203
294
  prefixes=prefixes,
295
+ rank=rank,
296
+ tier1=tier1,
297
+ num_upstreams=num_upstreams,
298
+ upstreams=upstreams,
299
+ num_peers=num_peers,
300
+ peers=peers,
301
+ num_downstreams=num_downstreams,
302
+ downstreams=downstreams,
303
+ hosted_domains=hosted_domains,
204
304
  trial_expired=trial_expired,
205
305
  )
206
306
 
@@ -15,23 +15,32 @@ T = TypeVar("T", bound="EntitlementPlan")
15
15
  class EntitlementPlan:
16
16
  """
17
17
  Attributes:
18
- key (str): The plan the organization is on: `free` for the free plan,
19
- Unlimited, or a paid plan's key. On `free`, usage counts the
18
+ key (str): The plan the organization is on, as an identifier that is never
19
+ renamed or reused: `free` for the free plan, or a paid plan's key.
20
+ Compare against it and show `name`. On `free`, usage counts the
20
21
  day's lookups answered with every field, its daily trial.
21
22
  Example: max.
23
+ name (str): The plan's name, as the site and console show it: `Unlimited` for
24
+ the free plan. Show this rather than a name built from `key`: a
25
+ plan's name can change, and its key never does.
26
+ Example: Max.
22
27
  tier (EntitlementPlanTier): The field tier, which decides how much of a lookup answer comes
23
- back; `free` is the free plan's. What each tier includes is documented
28
+ back; `free` is the free plan's. This list never gains a value: a
29
+ new plan reports one of these. What each tier includes is documented
24
30
  on the lookup endpoint rather than repeated here, so there is one
25
31
  place it can be wrong.
26
32
  """
27
33
 
28
34
  key: str
35
+ name: str
29
36
  tier: EntitlementPlanTier
30
37
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
31
38
 
32
39
  def to_dict(self) -> dict[str, Any]:
33
40
  key = self.key
34
41
 
42
+ name = self.name
43
+
35
44
  tier = self.tier.value
36
45
 
37
46
  field_dict: dict[str, Any] = {}
@@ -39,6 +48,7 @@ class EntitlementPlan:
39
48
  field_dict.update(
40
49
  {
41
50
  "key": key,
51
+ "name": name,
42
52
  "tier": tier,
43
53
  }
44
54
  )
@@ -50,10 +60,13 @@ class EntitlementPlan:
50
60
  d = dict(src_dict)
51
61
  key = d.pop("key")
52
62
 
63
+ name = d.pop("name")
64
+
53
65
  tier = EntitlementPlanTier(d.pop("tier"))
54
66
 
55
67
  entitlement_plan = cls(
56
68
  key=key,
69
+ name=name,
57
70
  tier=tier,
58
71
  )
59
72
 
@@ -562,8 +562,8 @@ class AsyncDatabaseApi:
562
562
  The API answers `302` to object storage, and the link carries its own signature,
563
563
  so it holds no API key and can be handed to anything that speaks HTTP. Returned
564
564
  rather than followed so the caller decides how to move a file that reaches
565
- gigabytes; the link authorizes the START of a transfer, so one already running is
566
- not interrupted when it lapses.
565
+ gigabytes. The link only has to be valid when a transfer starts, so one already
566
+ running isn't cut off when it lapses.
567
567
 
568
568
  `build` names one build of the database, as a `database.updated` webhook gives it
569
569
  (`20261105.0t53s5`), so the file is the one whose `sha256` the webhook carries.