opportify-sdk 0.1.1__py3-none-any.whl → 0.3.1__py3-none-any.whl

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.

Potentially problematic release.


This version of opportify-sdk might be problematic. Click here for more details.

Files changed (113) hide show
  1. openapi_client/__init__.py +186 -0
  2. openapi_client/api/email_insights_api.py +1491 -0
  3. openapi_client/api/ip_insights_api.py +1494 -0
  4. {lib/v1/openapi_client → openapi_client}/api_client.py +14 -7
  5. {lib/v1/openapi_client → openapi_client}/configuration.py +16 -5
  6. {lib/v1/openapi_client → openapi_client}/exceptions.py +18 -1
  7. openapi_client/models/__init__.py +84 -0
  8. {lib/v1/openapi_client → openapi_client}/models/abuse_contact.py +1 -1
  9. openapi_client/models/address_signals.py +99 -0
  10. {lib/v1/openapi_client → openapi_client}/models/admin_contact.py +1 -1
  11. openapi_client/models/analyze_email200_response.py +127 -0
  12. lib/v1/openapi_client/models/analyze_email400_response_error.py → openapi_client/models/analyze_email400_response.py +9 -9
  13. openapi_client/models/analyze_email403_response.py +207 -0
  14. openapi_client/models/analyze_email500_response.py +89 -0
  15. openapi_client/models/analyze_email_request.py +94 -0
  16. {lib/v1/openapi_client → openapi_client}/models/analyze_ip200_response.py +4 -4
  17. lib/v1/openapi_client/models/analyze_ip400_response_error.py → openapi_client/models/analyze_ip400_response.py +20 -20
  18. {lib/v1/openapi_client → openapi_client}/models/analyze_ip_request.py +1 -1
  19. {lib/v1/openapi_client → openapi_client}/models/asn.py +1 -1
  20. openapi_client/models/batch_analyze_emails202_response.py +93 -0
  21. openapi_client/models/batch_analyze_emails400_response.py +137 -0
  22. openapi_client/models/batch_analyze_emails401_response.py +89 -0
  23. openapi_client/models/batch_analyze_emails402_response.py +137 -0
  24. openapi_client/models/batch_analyze_emails403_response.py +193 -0
  25. openapi_client/models/batch_analyze_emails413_response.py +89 -0
  26. openapi_client/models/batch_analyze_emails429_response.py +89 -0
  27. openapi_client/models/batch_analyze_emails_request.py +93 -0
  28. openapi_client/models/batch_analyze_ips202_response.py +93 -0
  29. openapi_client/models/batch_analyze_ips400_response.py +137 -0
  30. openapi_client/models/batch_analyze_ips_request.py +91 -0
  31. {lib/v1/openapi_client → openapi_client}/models/block_listed.py +3 -4
  32. openapi_client/models/create_email_batch_export400_response.py +89 -0
  33. openapi_client/models/create_email_batch_export403_response.py +89 -0
  34. openapi_client/models/create_email_batch_export404_response.py +89 -0
  35. openapi_client/models/create_email_batch_export409_response.py +137 -0
  36. openapi_client/models/email_dns.py +97 -0
  37. openapi_client/models/email_domain.py +113 -0
  38. openapi_client/models/export_created_response.py +91 -0
  39. openapi_client/models/export_filter.py +95 -0
  40. openapi_client/models/export_request.py +92 -0
  41. openapi_client/models/export_status_response.py +119 -0
  42. openapi_client/models/exportnotfound.py +89 -0
  43. openapi_client/models/forbidden.py +89 -0
  44. {lib/v1/openapi_client → openapi_client}/models/geo.py +1 -1
  45. openapi_client/models/get_email_batch_export_status400_response.py +89 -0
  46. openapi_client/models/get_email_batch_export_status404_response.py +137 -0
  47. openapi_client/models/get_email_batch_status200_response.py +101 -0
  48. openapi_client/models/get_email_batch_status200_response_download_urls.py +93 -0
  49. openapi_client/models/get_email_batch_status404_response.py +89 -0
  50. openapi_client/models/get_ip_batch_status200_response.py +101 -0
  51. openapi_client/models/internalerror.py +89 -0
  52. openapi_client/models/internalerror1.py +89 -0
  53. openapi_client/models/invaliddata.py +89 -0
  54. openapi_client/models/invaliddata1.py +89 -0
  55. openapi_client/models/invalidemail.py +89 -0
  56. openapi_client/models/invalidplan.py +89 -0
  57. openapi_client/models/invalidplan1.py +89 -0
  58. openapi_client/models/invalidtoken.py +89 -0
  59. openapi_client/models/ipvalidationfailed.py +89 -0
  60. openapi_client/models/jobnotfound.py +89 -0
  61. openapi_client/models/jobnotready.py +89 -0
  62. openapi_client/models/malformedrequest.py +89 -0
  63. openapi_client/models/malformedrequest1.py +89 -0
  64. openapi_client/models/malformedrequest2.py +89 -0
  65. openapi_client/models/malformedrequest3.py +89 -0
  66. openapi_client/models/manifestnotavailable.py +89 -0
  67. openapi_client/models/notfound.py +89 -0
  68. {lib/v1/openapi_client → openapi_client}/models/organization.py +1 -1
  69. openapi_client/models/quotaexceeded.py +89 -0
  70. openapi_client/models/risk_report_email.py +92 -0
  71. openapi_client/models/risk_report_ip.py +89 -0
  72. {lib/v1/openapi_client → openapi_client}/models/tech_contact.py +1 -1
  73. openapi_client/models/toomanyrequests.py +89 -0
  74. {lib/v1/openapi_client → openapi_client}/models/trusted_provider.py +1 -1
  75. {lib/v1/openapi_client → openapi_client}/models/whois.py +2 -2
  76. {lib/v1/openapi_client → openapi_client}/rest.py +2 -1
  77. opportify_sdk/email_insights.py +427 -0
  78. opportify_sdk/ip_insights.py +410 -0
  79. opportify_sdk-0.3.1.dist-info/METADATA +300 -0
  80. opportify_sdk-0.3.1.dist-info/RECORD +86 -0
  81. {opportify_sdk-0.1.1.dist-info → opportify_sdk-0.3.1.dist-info}/WHEEL +1 -1
  82. opportify_sdk-0.3.1.dist-info/top_level.txt +2 -0
  83. lib/__init__.py +0 -0
  84. lib/v1/__init__.py +0 -0
  85. lib/v1/openapi_client/__init__.py +0 -63
  86. lib/v1/openapi_client/api/email_insights_api.py +0 -317
  87. lib/v1/openapi_client/api/ip_insights_api.py +0 -322
  88. lib/v1/openapi_client/models/__init__.py +0 -45
  89. lib/v1/openapi_client/models/analyze_email200_response.py +0 -113
  90. lib/v1/openapi_client/models/analyze_email400_response.py +0 -91
  91. lib/v1/openapi_client/models/analyze_email500_response.py +0 -91
  92. lib/v1/openapi_client/models/analyze_email500_response_error.py +0 -89
  93. lib/v1/openapi_client/models/analyze_email_request.py +0 -92
  94. lib/v1/openapi_client/models/analyze_ip400_response.py +0 -91
  95. lib/v1/openapi_client/models/analyze_ip404_response.py +0 -91
  96. lib/v1/openapi_client/models/analyze_ip500_response.py +0 -91
  97. lib/v1/openapi_client/models/email_dns.py +0 -87
  98. lib/v1/openapi_client/models/internalerror.py +0 -89
  99. lib/v1/openapi_client/models/invalidemail.py +0 -89
  100. lib/v1/openapi_client/models/ipvalidationfailed.py +0 -89
  101. lib/v1/openapi_client/models/malformedrequest.py +0 -89
  102. lib/v1/openapi_client/models/malformedrequest1.py +0 -89
  103. lib/v1/openapi_client/models/notfound.py +0 -89
  104. lib/v1/openapi_client/models/risk_report.py +0 -89
  105. opportify_sdk-0.1.1.dist-info/METADATA +0 -108
  106. opportify_sdk-0.1.1.dist-info/RECORD +0 -49
  107. opportify_sdk-0.1.1.dist-info/top_level.txt +0 -2
  108. src/email_insights.py +0 -97
  109. src/ip_insights.py +0 -93
  110. {lib/v1/openapi_client → openapi_client}/api/__init__.py +0 -0
  111. {lib/v1/openapi_client → openapi_client}/api_response.py +0 -0
  112. {lib/v1/openapi_client → openapi_client}/py.typed +0 -0
  113. {src → opportify_sdk}/__init__.py +0 -0
@@ -0,0 +1,186 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Opportify Insights API
7
+
8
+ ## Overview The **Opportify Insights API** provides access to a powerful and up-to-date platform. With advanced data warehousing and AI-driven capabilities, this API is designed to empower your business to make informed, data-driven decisions and effectively assess potential risks. ### Base URL Use the following base URL for all API requests: ```plaintext https://api.opportify.ai/insights/v1/<service>/<endpoint> ``` ### Features - [**Email Insights:**](/docs/api/api-reference/email-insights) - Validate email syntax. - Identify email types (free, disposable, private or unknown). - Real time verifications: - Reachable: Confirms if the email domain has valid MX DNS records using DNS lookup. - Deliverable: Simulates an SMTP handshake to check if the email address exists and is deliverable. - Catch-All: Detects if the domain accepts all emails (catch-all configuration). - Intelligent Error Correction: Automatically corrects well-known misspelled email addresses. - Risk Report: Provides an AI-driven normalized score (200-1000) to evaluate email risk, using predefined thresholds. [Access Documentation >>](/docs/api/api-reference/email-insights) - [**IP Insights:**](/docs/api/api-reference/ip-insights) - Connection types: Detects connection types such as `wired`, `mobile`, `enterprise`, `satellite`, `VPN`, `cloud-provider`, `open-proxy`, or `Tor`. - Geo location: Delivers detailed insights such as country, city, timezone, language preferences, and additional location-based information to enhance regional understanding. - WHOIS: Provides main details including RIR, ASN, organization, and abuse/admin/technical contacts. - Trusted Provider Recognition: Identifies if the IP is part of a known trusted provider (e.g., ZTNA - Zero Trust Network Access). - Blocklist Reports: Retrieves up-to-date blocklist statuses, active reports, and the latest detections. - Risk Report: Delivers an AI-driven normalized score (200-1000) to evaluate IP risk, supported by predefined thresholds. [Access Documentation >>](/docs/api/api-reference/ip-insights) ### Authentication & Security - **API Key:** Access to the API requires an API key, which must be included in the request headers. Businesses can generate unlimited API keys directly from their account, offering flexibility and ease of use. - **ACL Rules:** Enhance security with Access Control Lists (ACL), allowing you to restrict API access from specific IP addresses or ranges. This feature provides an additional layer of protection by ensuring only authorized IPs can interact with the API. - **No Query Parameters:** As a precautionary measure, our API avoids the use of query parameters for all operations, including authentication and handling Personally Identifiable Information (PII). This approach minimizes security risks by preventing sensitive data from being exposed in access logs, browser history, cached URLs, debugging tools, or inadvertently shared URLs. All sensitive information is securely transmitted through headers or the request body.
9
+
10
+ The version of the OpenAPI document: 1.0.0
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
+
13
+ Do not edit the class manually.
14
+ """ # noqa: E501
15
+
16
+
17
+ __version__ = "1.0.0"
18
+
19
+ # Define package exports
20
+ __all__ = [
21
+ "EmailInsightsApi",
22
+ "IPInsightsApi",
23
+ "ApiResponse",
24
+ "ApiClient",
25
+ "Configuration",
26
+ "OpenApiException",
27
+ "ApiTypeError",
28
+ "ApiValueError",
29
+ "ApiKeyError",
30
+ "ApiAttributeError",
31
+ "ApiException",
32
+ "AbuseContact",
33
+ "AddressSignals",
34
+ "AdminContact",
35
+ "AnalyzeEmail200Response",
36
+ "AnalyzeEmail400Response",
37
+ "AnalyzeEmail403Response",
38
+ "AnalyzeEmail500Response",
39
+ "AnalyzeEmailRequest",
40
+ "AnalyzeIp200Response",
41
+ "AnalyzeIp400Response",
42
+ "AnalyzeIpRequest",
43
+ "Asn",
44
+ "BatchAnalyzeEmails202Response",
45
+ "BatchAnalyzeEmails400Response",
46
+ "BatchAnalyzeEmails401Response",
47
+ "BatchAnalyzeEmails402Response",
48
+ "BatchAnalyzeEmails403Response",
49
+ "BatchAnalyzeEmails413Response",
50
+ "BatchAnalyzeEmails429Response",
51
+ "BatchAnalyzeEmailsRequest",
52
+ "BatchAnalyzeIps202Response",
53
+ "BatchAnalyzeIps400Response",
54
+ "BatchAnalyzeIpsRequest",
55
+ "BlockListed",
56
+ "CreateEmailBatchExport400Response",
57
+ "CreateEmailBatchExport403Response",
58
+ "CreateEmailBatchExport404Response",
59
+ "CreateEmailBatchExport409Response",
60
+ "EXPORTNOTFOUND",
61
+ "EmailDNS",
62
+ "EmailDomain",
63
+ "ExportCreatedResponse",
64
+ "ExportFilter",
65
+ "ExportRequest",
66
+ "ExportStatusResponse",
67
+ "FORBIDDEN",
68
+ "Geo",
69
+ "GetEmailBatchExportStatus400Response",
70
+ "GetEmailBatchExportStatus404Response",
71
+ "GetEmailBatchStatus200Response",
72
+ "GetEmailBatchStatus200ResponseDownloadUrls",
73
+ "GetEmailBatchStatus404Response",
74
+ "GetIpBatchStatus200Response",
75
+ "INTERNALERROR",
76
+ "INTERNALERROR1",
77
+ "INVALIDDATA",
78
+ "INVALIDDATA1",
79
+ "INVALIDEMAIL",
80
+ "INVALIDPLAN",
81
+ "INVALIDPLAN1",
82
+ "INVALIDTOKEN",
83
+ "IPVALIDATIONFAILED",
84
+ "JOBNOTFOUND",
85
+ "JOBNOTREADY",
86
+ "MALFORMEDREQUEST",
87
+ "MALFORMEDREQUEST1",
88
+ "MALFORMEDREQUEST2",
89
+ "MALFORMEDREQUEST3",
90
+ "MANIFESTNOTAVAILABLE",
91
+ "NOTFOUND",
92
+ "Organization",
93
+ "QUOTAEXCEEDED",
94
+ "RiskReportEmail",
95
+ "RiskReportIp",
96
+ "TOOMANYREQUESTS",
97
+ "TechContact",
98
+ "TrustedProvider",
99
+ "Whois",
100
+ ]
101
+
102
+ # import apis into sdk package
103
+ from openapi_client.api.email_insights_api import EmailInsightsApi as EmailInsightsApi
104
+ from openapi_client.api.ip_insights_api import IPInsightsApi as IPInsightsApi
105
+
106
+ # import ApiClient
107
+ from openapi_client.api_response import ApiResponse as ApiResponse
108
+ from openapi_client.api_client import ApiClient as ApiClient
109
+ from openapi_client.configuration import Configuration as Configuration
110
+ from openapi_client.exceptions import OpenApiException as OpenApiException
111
+ from openapi_client.exceptions import ApiTypeError as ApiTypeError
112
+ from openapi_client.exceptions import ApiValueError as ApiValueError
113
+ from openapi_client.exceptions import ApiKeyError as ApiKeyError
114
+ from openapi_client.exceptions import ApiAttributeError as ApiAttributeError
115
+ from openapi_client.exceptions import ApiException as ApiException
116
+
117
+ # import models into sdk package
118
+ from openapi_client.models.abuse_contact import AbuseContact as AbuseContact
119
+ from openapi_client.models.address_signals import AddressSignals as AddressSignals
120
+ from openapi_client.models.admin_contact import AdminContact as AdminContact
121
+ from openapi_client.models.analyze_email200_response import AnalyzeEmail200Response as AnalyzeEmail200Response
122
+ from openapi_client.models.analyze_email400_response import AnalyzeEmail400Response as AnalyzeEmail400Response
123
+ from openapi_client.models.analyze_email403_response import AnalyzeEmail403Response as AnalyzeEmail403Response
124
+ from openapi_client.models.analyze_email500_response import AnalyzeEmail500Response as AnalyzeEmail500Response
125
+ from openapi_client.models.analyze_email_request import AnalyzeEmailRequest as AnalyzeEmailRequest
126
+ from openapi_client.models.analyze_ip200_response import AnalyzeIp200Response as AnalyzeIp200Response
127
+ from openapi_client.models.analyze_ip400_response import AnalyzeIp400Response as AnalyzeIp400Response
128
+ from openapi_client.models.analyze_ip_request import AnalyzeIpRequest as AnalyzeIpRequest
129
+ from openapi_client.models.asn import Asn as Asn
130
+ from openapi_client.models.batch_analyze_emails202_response import BatchAnalyzeEmails202Response as BatchAnalyzeEmails202Response
131
+ from openapi_client.models.batch_analyze_emails400_response import BatchAnalyzeEmails400Response as BatchAnalyzeEmails400Response
132
+ from openapi_client.models.batch_analyze_emails401_response import BatchAnalyzeEmails401Response as BatchAnalyzeEmails401Response
133
+ from openapi_client.models.batch_analyze_emails402_response import BatchAnalyzeEmails402Response as BatchAnalyzeEmails402Response
134
+ from openapi_client.models.batch_analyze_emails403_response import BatchAnalyzeEmails403Response as BatchAnalyzeEmails403Response
135
+ from openapi_client.models.batch_analyze_emails413_response import BatchAnalyzeEmails413Response as BatchAnalyzeEmails413Response
136
+ from openapi_client.models.batch_analyze_emails429_response import BatchAnalyzeEmails429Response as BatchAnalyzeEmails429Response
137
+ from openapi_client.models.batch_analyze_emails_request import BatchAnalyzeEmailsRequest as BatchAnalyzeEmailsRequest
138
+ from openapi_client.models.batch_analyze_ips202_response import BatchAnalyzeIps202Response as BatchAnalyzeIps202Response
139
+ from openapi_client.models.batch_analyze_ips400_response import BatchAnalyzeIps400Response as BatchAnalyzeIps400Response
140
+ from openapi_client.models.batch_analyze_ips_request import BatchAnalyzeIpsRequest as BatchAnalyzeIpsRequest
141
+ from openapi_client.models.block_listed import BlockListed as BlockListed
142
+ from openapi_client.models.create_email_batch_export400_response import CreateEmailBatchExport400Response as CreateEmailBatchExport400Response
143
+ from openapi_client.models.create_email_batch_export403_response import CreateEmailBatchExport403Response as CreateEmailBatchExport403Response
144
+ from openapi_client.models.create_email_batch_export404_response import CreateEmailBatchExport404Response as CreateEmailBatchExport404Response
145
+ from openapi_client.models.create_email_batch_export409_response import CreateEmailBatchExport409Response as CreateEmailBatchExport409Response
146
+ from openapi_client.models.exportnotfound import EXPORTNOTFOUND as EXPORTNOTFOUND
147
+ from openapi_client.models.email_dns import EmailDNS as EmailDNS
148
+ from openapi_client.models.email_domain import EmailDomain as EmailDomain
149
+ from openapi_client.models.export_created_response import ExportCreatedResponse as ExportCreatedResponse
150
+ from openapi_client.models.export_filter import ExportFilter as ExportFilter
151
+ from openapi_client.models.export_request import ExportRequest as ExportRequest
152
+ from openapi_client.models.export_status_response import ExportStatusResponse as ExportStatusResponse
153
+ from openapi_client.models.forbidden import FORBIDDEN as FORBIDDEN
154
+ from openapi_client.models.geo import Geo as Geo
155
+ from openapi_client.models.get_email_batch_export_status400_response import GetEmailBatchExportStatus400Response as GetEmailBatchExportStatus400Response
156
+ from openapi_client.models.get_email_batch_export_status404_response import GetEmailBatchExportStatus404Response as GetEmailBatchExportStatus404Response
157
+ from openapi_client.models.get_email_batch_status200_response import GetEmailBatchStatus200Response as GetEmailBatchStatus200Response
158
+ from openapi_client.models.get_email_batch_status200_response_download_urls import GetEmailBatchStatus200ResponseDownloadUrls as GetEmailBatchStatus200ResponseDownloadUrls
159
+ from openapi_client.models.get_email_batch_status404_response import GetEmailBatchStatus404Response as GetEmailBatchStatus404Response
160
+ from openapi_client.models.get_ip_batch_status200_response import GetIpBatchStatus200Response as GetIpBatchStatus200Response
161
+ from openapi_client.models.internalerror import INTERNALERROR as INTERNALERROR
162
+ from openapi_client.models.internalerror1 import INTERNALERROR1 as INTERNALERROR1
163
+ from openapi_client.models.invaliddata import INVALIDDATA as INVALIDDATA
164
+ from openapi_client.models.invaliddata1 import INVALIDDATA1 as INVALIDDATA1
165
+ from openapi_client.models.invalidemail import INVALIDEMAIL as INVALIDEMAIL
166
+ from openapi_client.models.invalidplan import INVALIDPLAN as INVALIDPLAN
167
+ from openapi_client.models.invalidplan1 import INVALIDPLAN1 as INVALIDPLAN1
168
+ from openapi_client.models.invalidtoken import INVALIDTOKEN as INVALIDTOKEN
169
+ from openapi_client.models.ipvalidationfailed import IPVALIDATIONFAILED as IPVALIDATIONFAILED
170
+ from openapi_client.models.jobnotfound import JOBNOTFOUND as JOBNOTFOUND
171
+ from openapi_client.models.jobnotready import JOBNOTREADY as JOBNOTREADY
172
+ from openapi_client.models.malformedrequest import MALFORMEDREQUEST as MALFORMEDREQUEST
173
+ from openapi_client.models.malformedrequest1 import MALFORMEDREQUEST1 as MALFORMEDREQUEST1
174
+ from openapi_client.models.malformedrequest2 import MALFORMEDREQUEST2 as MALFORMEDREQUEST2
175
+ from openapi_client.models.malformedrequest3 import MALFORMEDREQUEST3 as MALFORMEDREQUEST3
176
+ from openapi_client.models.manifestnotavailable import MANIFESTNOTAVAILABLE as MANIFESTNOTAVAILABLE
177
+ from openapi_client.models.notfound import NOTFOUND as NOTFOUND
178
+ from openapi_client.models.organization import Organization as Organization
179
+ from openapi_client.models.quotaexceeded import QUOTAEXCEEDED as QUOTAEXCEEDED
180
+ from openapi_client.models.risk_report_email import RiskReportEmail as RiskReportEmail
181
+ from openapi_client.models.risk_report_ip import RiskReportIp as RiskReportIp
182
+ from openapi_client.models.toomanyrequests import TOOMANYREQUESTS as TOOMANYREQUESTS
183
+ from openapi_client.models.tech_contact import TechContact as TechContact
184
+ from openapi_client.models.trusted_provider import TrustedProvider as TrustedProvider
185
+ from openapi_client.models.whois import Whois as Whois
186
+