Skip to content

Commit 1ab0c13

Browse files
Upgrade after onfido-openapi-spec change 30c4d08
1 parent f9524d1 commit 1ab0c13

File tree

10 files changed

+478
-310
lines changed

10 files changed

+478
-310
lines changed

.release.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"source": {
33
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
4-
"short_sha": "c80d3b5",
5-
"long_sha": "c80d3b513a15bb67ec316709884b890ab2f47121",
6-
"version": "v5.5.0"
4+
"short_sha": "30c4d08",
5+
"long_sha": "30c4d08a018e09bc02d87e6c04a137c371541163",
6+
"version": ""
77
},
8-
"release": "v5.5.0"
8+
"release": "v5.6.0"
99
}

onfido/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "5.5.0"
17+
__version__ = "5.6.0"
1818

1919
# import apis into sdk package
2020
from onfido.api.default_api import DefaultApi

onfido/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'onfido-python/5.5.0'
93+
self.user_agent = 'onfido-python/5.6.0'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

onfido/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def to_debug_report(self) -> str:
501501
"OS: {env}\n"\
502502
"Python Version: {pyversion}\n"\
503503
"Version of the API: v3.6\n"\
504-
"SDK Package Version: 5.5.0".\
504+
"SDK Package Version: 5.6.0".\
505505
format(env=sys.platform, pyversion=sys.version)
506506

507507
def get_host_settings(self) -> List[HostSetting]:

onfido/models/extraction_document_classification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def subtype_validate_enum(cls, value):
4242
if value is None:
4343
return value
4444

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')")
4747
return value
4848

4949
model_config = ConfigDict(

onfido/models/proof_of_address_properties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def document_type_validate_enum(cls, value):
4444
if value is None:
4545
return value
4646

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')")
4949
return value
5050

5151
model_config = ConfigDict(

onfido/models/webhook_event_payload_resource.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ class WebhookEventPayloadResource(BaseModel):
4646
link: Optional[WorkflowRunLink] = Field(default=None, description="Object for the configuration of the Workflow Run link.")
4747
error: Optional[WorkflowRunError] = Field(default=None, description="Error object that details why a Workflow Run is in Error status.")
4848
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.")
4950
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"]
5152

5253
@field_validator('task_def_id')
5354
def task_def_id_validate_regular_expression(cls, value):
@@ -148,7 +149,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
148149
"reasons": obj.get("reasons"),
149150
"link": WorkflowRunLink.from_dict(obj["link"]) if obj.get("link") is not None else None,
150151
"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")
152154
})
153155
# store additional fields in additional_properties
154156
for _key in obj.keys():

0 commit comments

Comments
 (0)