onfido-python 5.5.0__py3-none-any.whl → 5.6.0__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.
- onfido/__init__.py +1 -1
- onfido/api_client.py +1 -1
- onfido/configuration.py +1 -1
- onfido/models/extraction_document_classification.py +2 -2
- onfido/models/proof_of_address_properties.py +2 -2
- onfido/models/webhook_event_payload_resource.py +4 -2
- {onfido_python-5.5.0.dist-info → onfido_python-5.6.0.dist-info}/METADATA +1 -1
- {onfido_python-5.5.0.dist-info → onfido_python-5.6.0.dist-info}/RECORD +11 -11
- {onfido_python-5.5.0.dist-info → onfido_python-5.6.0.dist-info}/WHEEL +0 -0
- {onfido_python-5.5.0.dist-info → onfido_python-5.6.0.dist-info}/licenses/LICENSE +0 -0
- {onfido_python-5.5.0.dist-info → onfido_python-5.6.0.dist-info}/top_level.txt +0 -0
onfido/__init__.py
CHANGED
onfido/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'onfido-python/5.
|
|
93
|
+
self.user_agent = 'onfido-python/5.6.0'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
onfido/configuration.py
CHANGED
|
@@ -501,7 +501,7 @@ conf = onfido.Configuration(
|
|
|
501
501
|
"OS: {env}\n"\
|
|
502
502
|
"Python Version: {pyversion}\n"\
|
|
503
503
|
"Version of the API: v3.6\n"\
|
|
504
|
-
"SDK Package Version: 5.
|
|
504
|
+
"SDK Package Version: 5.6.0".\
|
|
505
505
|
format(env=sys.platform, pyversion=sys.version)
|
|
506
506
|
|
|
507
507
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -42,8 +42,8 @@ class ExtractionDocumentClassification(BaseModel):
|
|
|
42
42
|
if value is None:
|
|
43
43
|
return value
|
|
44
44
|
|
|
45
|
-
if value not in set(['full', 'not_full', 'provisional', 'unknown_default_open_api']):
|
|
46
|
-
raise ValueError("must be one of enum values ('full', 'not_full', 'provisional', 'unknown_default_open_api')")
|
|
45
|
+
if value not in set(['SPE', 'ali', 'alien', 'com', 'commercial', 'dom', 'domestic', 'full', 'not_full', 'full driving licence', 'heavy_vehicle', 'learner', 'minor (u21 or u18)', 'mot', 'mul', 'provisional', 'provisional driving licence', 'ser', 'spe', 'special', 'standard', 'tem', 'u21', 'unknown_default_open_api']):
|
|
46
|
+
raise ValueError("must be one of enum values ('SPE', 'ali', 'alien', 'com', 'commercial', 'dom', 'domestic', 'full', 'not_full', 'full driving licence', 'heavy_vehicle', 'learner', 'minor (u21 or u18)', 'mot', 'mul', 'provisional', 'provisional driving licence', 'ser', 'spe', 'special', 'standard', 'tem', 'u21', 'unknown_default_open_api')")
|
|
47
47
|
return value
|
|
48
48
|
|
|
49
49
|
model_config = ConfigDict(
|
|
@@ -44,8 +44,8 @@ class ProofOfAddressProperties(BaseModel):
|
|
|
44
44
|
if value is None:
|
|
45
45
|
return value
|
|
46
46
|
|
|
47
|
-
if value not in set(['bank_building_society_statement', 'utility_bill', 'council_tax', 'benefit_letters', 'mortgage_statement', 'mobile_phone_bill', 'general_letter', 'insurance_statement', 'pension_property_statement_letter', 'identity_document_with_address', 'exchange_house_statement', 'unknown_default_open_api']):
|
|
48
|
-
raise ValueError("must be one of enum values ('bank_building_society_statement', 'utility_bill', 'council_tax', 'benefit_letters', 'mortgage_statement', 'mobile_phone_bill', 'general_letter', 'insurance_statement', 'pension_property_statement_letter', 'identity_document_with_address', 'exchange_house_statement', 'unknown_default_open_api')")
|
|
47
|
+
if value not in set(['bank_building_society_statement', 'utility_bill', 'council_tax', 'benefit_letters', 'mortgage_statement', 'mobile_phone_bill', 'general_letter', 'insurance_statement', 'pension_property_statement_letter', 'identity_document_with_address', 'exchange_house_statement', 'accommodation_tenancy_certificate', 'address_certificate', 'electricity_bill', 'gas_bill', 'internet_bill', 'phone_bill', 'water_bill', 'unknown_default_open_api']):
|
|
48
|
+
raise ValueError("must be one of enum values ('bank_building_society_statement', 'utility_bill', 'council_tax', 'benefit_letters', 'mortgage_statement', 'mobile_phone_bill', 'general_letter', 'insurance_statement', 'pension_property_statement_letter', 'identity_document_with_address', 'exchange_house_statement', 'accommodation_tenancy_certificate', 'address_certificate', 'electricity_bill', 'gas_bill', 'internet_bill', 'phone_bill', 'water_bill', 'unknown_default_open_api')")
|
|
49
49
|
return value
|
|
50
50
|
|
|
51
51
|
model_config = ConfigDict(
|
|
@@ -46,8 +46,9 @@ class WebhookEventPayloadResource(BaseModel):
|
|
|
46
46
|
link: Optional[WorkflowRunLink] = Field(default=None, description="Object for the configuration of the Workflow Run link.")
|
|
47
47
|
error: Optional[WorkflowRunError] = Field(default=None, description="Error object that details why a Workflow Run is in Error status.")
|
|
48
48
|
customer_user_id: Optional[Annotated[str, Field(strict=True, max_length=256)]] = Field(default=None, description="Customer-provided user identifier.")
|
|
49
|
+
timeline_file_download_url: Optional[StrictStr] = Field(default=None, description="Pre-signed URL to download the timeline file for the Workflow Run.")
|
|
49
50
|
additional_properties: Dict[str, Any] = {}
|
|
50
|
-
__properties: ClassVar[List[str]] = ["id", "applicant_id", "created_at", "updated_at", "dashboard_url", "workflow_id", "workflow_run_id", "workflow_version_id", "task_def_id", "task_def_version", "input", "output", "reasons", "link", "error", "customer_user_id"]
|
|
51
|
+
__properties: ClassVar[List[str]] = ["id", "applicant_id", "created_at", "updated_at", "dashboard_url", "workflow_id", "workflow_run_id", "workflow_version_id", "task_def_id", "task_def_version", "input", "output", "reasons", "link", "error", "customer_user_id", "timeline_file_download_url"]
|
|
51
52
|
|
|
52
53
|
@field_validator('task_def_id')
|
|
53
54
|
def task_def_id_validate_regular_expression(cls, value):
|
|
@@ -148,7 +149,8 @@ class WebhookEventPayloadResource(BaseModel):
|
|
|
148
149
|
"reasons": obj.get("reasons"),
|
|
149
150
|
"link": WorkflowRunLink.from_dict(obj["link"]) if obj.get("link") is not None else None,
|
|
150
151
|
"error": WorkflowRunError.from_dict(obj["error"]) if obj.get("error") is not None else None,
|
|
151
|
-
"customer_user_id": obj.get("customer_user_id")
|
|
152
|
+
"customer_user_id": obj.get("customer_user_id"),
|
|
153
|
+
"timeline_file_download_url": obj.get("timeline_file_download_url")
|
|
152
154
|
})
|
|
153
155
|
# store additional fields in additional_properties
|
|
154
156
|
for _key in obj.keys():
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
onfido/__init__.py,sha256=
|
|
2
|
-
onfido/api_client.py,sha256=
|
|
1
|
+
onfido/__init__.py,sha256=XX57WYQjL0rQLgkges2LjvZmBD88kU2Sen7zkOdiKrU,29380
|
|
2
|
+
onfido/api_client.py,sha256=9dpx7PrhzOeszgQ3XOqRNKHryLoAmwZCPgiwHQiy060,27350
|
|
3
3
|
onfido/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
onfido/configuration.py,sha256=
|
|
4
|
+
onfido/configuration.py,sha256=m6Gb_r0GU2gI8XWVI06zbnusxraSEllsTcgflyfLvwM,17513
|
|
5
5
|
onfido/exceptions.py,sha256=BarZFo40puld313QRT2BQoc8K8PGjlaSsziwydNcEYk,6407
|
|
6
6
|
onfido/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
onfido/rest.py,sha256=YOJTfHvEv4LrCRfXuL3LsS9QRyIMO3mVGOr_g26pWW8,9433
|
|
@@ -112,7 +112,7 @@ onfido/models/error_properties.py,sha256=UPrRZu_cXBFD9C8c-cfYPvt0h2RHCs3jV_4tB6C
|
|
|
112
112
|
onfido/models/error_properties1.py,sha256=38GldK4oLyMz_LPA34LhurJprqOI92yLDbrQZMJfvxw,3132
|
|
113
113
|
onfido/models/extract_request.py,sha256=pwUzKkImStp3NFhdOcrYK0HkHLmdjK--ao0t6rOTHeo,3129
|
|
114
114
|
onfido/models/extraction.py,sha256=IdNB-csZLNNob37nenaAapcJ8W2Afflu0rwO8pbpgLk,4218
|
|
115
|
-
onfido/models/extraction_document_classification.py,sha256=
|
|
115
|
+
onfido/models/extraction_document_classification.py,sha256=HkJx07DMSd6W__TOM6Ix3uQPKwGhAzx6GbgaBJR5Qcs,4914
|
|
116
116
|
onfido/models/extraction_extracted_data.py,sha256=nXTWg2o3jfsn2crSK-BZ5e3cb6YWhkwbTKlMNtTP65Q,8461
|
|
117
117
|
onfido/models/facial_similarity_motion_breakdown.py,sha256=qNZQXFgbyeHwMKMBQVunflP7dVLm-7f2B-Hr_8heYWw,4818
|
|
118
118
|
onfido/models/facial_similarity_motion_breakdown_face_comparison.py,sha256=VB5peI_PmsipXkZgXmuYO8h7wO7q6dhpqdEsiMQOwcg,3763
|
|
@@ -219,7 +219,7 @@ onfido/models/proof_of_address_breakdown_document_classification.py,sha256=VJtqK
|
|
|
219
219
|
onfido/models/proof_of_address_breakdown_document_classification_breakdown.py,sha256=wubwAcE47G31hTVWd-HSbYmrVfmuPmJKlFDjKOgKaIY,3748
|
|
220
220
|
onfido/models/proof_of_address_breakdown_image_integrity.py,sha256=GsN6MEgxtSztANOKIYRTcGEBbn7D2ZRDlt5GNQzqGp0,3721
|
|
221
221
|
onfido/models/proof_of_address_breakdown_image_integrity_breakdown.py,sha256=8wSML9AZHWeyl4wh2h355oAMUVmnGkTx7B7bivI5TVk,3671
|
|
222
|
-
onfido/models/proof_of_address_properties.py,sha256=
|
|
222
|
+
onfido/models/proof_of_address_properties.py,sha256=O14_MwJtAMbN6ecgpnMmcLdG9mLJaF7GAc-AGDqWCpM,5842
|
|
223
223
|
onfido/models/proof_of_address_report.py,sha256=KKMu_8yspvdhhx-01OFX6MwkXxdGBhqldUcUW3h6M-E,5173
|
|
224
224
|
onfido/models/repeat_attempts_list.py,sha256=rmb5FOV3DDIEw_sDbRgZ6yxQFLfuXdxwslAh8Htf32M,5129
|
|
225
225
|
onfido/models/repeat_attempts_list_repeat_attempts_inner.py,sha256=1WNOm_AOUuRvZ0MsVuvH2E7ddQlKZr7DEMXKZ25BkVw,5515
|
|
@@ -290,7 +290,7 @@ onfido/models/webhook_event.py,sha256=YFbx9meCyW7uDFkIKiilPkvCvI0344TfZcmt5i76yO
|
|
|
290
290
|
onfido/models/webhook_event_object_status.py,sha256=xSiIeJZ1PE-swSXh3GB61cduYmThab1uR1JRESxn2WY,1339
|
|
291
291
|
onfido/models/webhook_event_payload.py,sha256=rIgSI8SRifbBzvfjjVgSfDzYsmnSuG_dSwuhDTuSIA0,4331
|
|
292
292
|
onfido/models/webhook_event_payload_object.py,sha256=O0IdB_NKllFaC4nX9m6o016ShhHfRAbeb4DndO7imOo,3950
|
|
293
|
-
onfido/models/webhook_event_payload_resource.py,sha256=
|
|
293
|
+
onfido/models/webhook_event_payload_resource.py,sha256=z9BSXaQ7sb5ctqSs2U-DOmMy36p2NnD1DImeWvcdLD8,7762
|
|
294
294
|
onfido/models/webhook_event_resource_type.py,sha256=M6bJZJisDKMmMi1rNTHzy8Ad6X-LM9YtHRFNi2Ia-CU,1039
|
|
295
295
|
onfido/models/webhook_event_type.py,sha256=x_E02tbtM_9yxRqoQ4mqkBeaXp83TDb1uN68Eevv1qM,1639
|
|
296
296
|
onfido/models/webhook_resend.py,sha256=-vZgktLnIFsnSRaSU-UwAvlab0KaL6O5ZbT2UkokHJA,3492
|
|
@@ -308,8 +308,8 @@ onfido/models/workflow_run_request.py,sha256=M5DUoxOmGTz5ZSP7LQBwNyV7DSLS6mwfbo3
|
|
|
308
308
|
onfido/models/workflow_run_response.py,sha256=a1tuwNZWYWZKWyWYeTCRjGwlpnXHUkWGJOg7fft2lqk,5094
|
|
309
309
|
onfido/models/workflow_run_shared.py,sha256=sHEGIuiSFxiwzsmhT3u2BMniGKMHivgXsIrQD4MURM4,4871
|
|
310
310
|
onfido/models/workflow_run_status.py,sha256=mg8U9-qU-eKzkTKs4ddXWyVhgc78fluA_3w9irnyCaA,956
|
|
311
|
-
onfido_python-5.
|
|
312
|
-
onfido_python-5.
|
|
313
|
-
onfido_python-5.
|
|
314
|
-
onfido_python-5.
|
|
315
|
-
onfido_python-5.
|
|
311
|
+
onfido_python-5.6.0.dist-info/licenses/LICENSE,sha256=SKY_O1OkFX8yNWFuVVfYTsXvN46jsgtff-xReserHw4,1073
|
|
312
|
+
onfido_python-5.6.0.dist-info/METADATA,sha256=zZRXmUs4Nky9ZNi7WbsKmxsjJ9xbCU8nW2jnuH3gnfg,683
|
|
313
|
+
onfido_python-5.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
314
|
+
onfido_python-5.6.0.dist-info/top_level.txt,sha256=NHu8xI4S4Avh7xUark3dpdk9atpIVgyf-ptjHXU0-Ns,7
|
|
315
|
+
onfido_python-5.6.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|