Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .release.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"source": {
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
"short_sha": "c80d3b5",
"long_sha": "c80d3b513a15bb67ec316709884b890ab2f47121",
"version": "v5.5.0"
"short_sha": "30c4d08",
"long_sha": "30c4d08a018e09bc02d87e6c04a137c371541163",
"version": "v5.6.0"
},
"release": "v5.5.0"
"release": "v5.6.0"
}
2 changes: 1 addition & 1 deletion onfido/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "5.5.0"
__version__ = "5.6.0"

# import apis into sdk package
from onfido.api.default_api import DefaultApi
Expand Down
2 changes: 1 addition & 1 deletion onfido/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'onfido-python/5.5.0'
self.user_agent = 'onfido-python/5.6.0'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion onfido/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def to_debug_report(self) -> str:
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v3.6\n"\
"SDK Package Version: 5.5.0".\
"SDK Package Version: 5.6.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
4 changes: 2 additions & 2 deletions onfido/models/extraction_document_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def subtype_validate_enum(cls, value):
if value is None:
return value

if value not in set(['full', 'not_full', 'provisional', 'unknown_default_open_api']):
raise ValueError("must be one of enum values ('full', 'not_full', 'provisional', 'unknown_default_open_api')")
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']):
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')")
return value

model_config = ConfigDict(
Expand Down
4 changes: 2 additions & 2 deletions onfido/models/proof_of_address_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def document_type_validate_enum(cls, value):
if value is None:
return value

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']):
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')")
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']):
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')")
return value

model_config = ConfigDict(
Expand Down
6 changes: 4 additions & 2 deletions onfido/models/webhook_event_payload_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ class WebhookEventPayloadResource(BaseModel):
link: Optional[WorkflowRunLink] = Field(default=None, description="Object for the configuration of the Workflow Run link.")
error: Optional[WorkflowRunError] = Field(default=None, description="Error object that details why a Workflow Run is in Error status.")
customer_user_id: Optional[Annotated[str, Field(strict=True, max_length=256)]] = Field(default=None, description="Customer-provided user identifier.")
timeline_file_download_url: Optional[StrictStr] = Field(default=None, description="Pre-signed URL to download the timeline file for the Workflow Run.")
additional_properties: Dict[str, Any] = {}
__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"]
__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"]

@field_validator('task_def_id')
def task_def_id_validate_regular_expression(cls, value):
Expand Down Expand Up @@ -148,7 +149,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"reasons": obj.get("reasons"),
"link": WorkflowRunLink.from_dict(obj["link"]) if obj.get("link") is not None else None,
"error": WorkflowRunError.from_dict(obj["error"]) if obj.get("error") is not None else None,
"customer_user_id": obj.get("customer_user_id")
"customer_user_id": obj.get("customer_user_id"),
"timeline_file_download_url": obj.get("timeline_file_download_url")
})
# store additional fields in additional_properties
for _key in obj.keys():
Expand Down
Loading
Loading