Skip to content

Commit 3ed2ff0

Browse files
Merge pull request #77 from onfido/release-upgrade
Refresh onfido-python after onfido-openapi-spec update (964fb43)
2 parents fc4dc99 + 54de55a commit 3ed2ff0

15 files changed

Lines changed: 534 additions & 137 deletions

.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": "8c793a1",
5-
"long_sha": "8c793a1c8307dcd92fa657edb2a1e9b184c15278",
6-
"version": "v4.3.0"
4+
"short_sha": "964fb43",
5+
"long_sha": "964fb43a1bf211197ef7a45c230771b8ba561b3c",
6+
"version": "v4.4.0"
77
},
8-
"release": "v4.3.0"
8+
"release": "v4.4.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__ = "4.3.0"
17+
__version__ = "4.4.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/4.3.0'
93+
self.user_agent = 'onfido-python/4.4.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
@@ -394,7 +394,7 @@ def to_debug_report(self):
394394
"OS: {env}\n"\
395395
"Python Version: {pyversion}\n"\
396396
"Version of the API: v3.6\n"\
397-
"SDK Package Version: 4.3.0".\
397+
"SDK Package Version: 4.4.0".\
398398
format(env=sys.platform, pyversion=sys.version)
399399

400400
def get_host_settings(self):

onfido/models/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Task(BaseModel):
3333
task_def_id: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The identifier for the Task Definition.")
3434
task_def_version: Optional[StrictStr] = Field(default=None, description="The task definition version.")
3535
input: Optional[Dict[str, Any]] = Field(default=None, description="Input object with the fields used by the Task to execute.")
36-
output: Optional[Dict[str, Any]] = Field(default=None, description="Output object with the fields produced by the Task execution.")
36+
output: Any = Field(default=None, description="Value field (it can be an Object, List, etc.) with the fields produced by the Task execution.")
3737
created_at: Optional[datetime] = Field(default=None, description="The date and time when the Task was created.")
3838
updated_at: Optional[datetime] = Field(default=None, description="The date and time when the Task was last updated.")
3939
additional_properties: Dict[str, Any] = {}

onfido/models/webhook_event_payload_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class WebhookEventPayloadResource(BaseModel):
4141
task_def_id: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The identifier for the Task Definition.")
4242
task_def_version: Optional[StrictStr] = Field(default=None, description="The task definition version.")
4343
input: Optional[Dict[str, Any]] = Field(default=None, description="Input object with the fields used by the Task execution.")
44-
output: Optional[Dict[str, Any]] = Field(default=None, description="Output object with the fields produced by the Task execution.")
44+
output: Any = Field(default=None, description="Value field (it can be an Object, List, etc.) with the fields produced by the Task execution.")
4545
reasons: Optional[List[StrictStr]] = Field(default=None, description="The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow Version.")
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.")

onfido/models/webhook_event_resource_type.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class WebhookEventResourceType(str, Enum):
3232
WORKFLOW_RUN = 'workflow_run'
3333
WORKFLOW_TASK = 'workflow_task'
3434
WATCHLIST_MONITOR = 'watchlist_monitor'
35+
WORKFLOW_TIMELINE_FILE = 'workflow_timeline_file'
36+
WORKFLOW_RUN_EVIDENCE_FOLDER = 'workflow_run_evidence_folder'
3537

3638
@classmethod
3739
def from_json(cls, json_str: str) -> Self:

onfido/models/webhook_event_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class WebhookEventType(str, Enum):
4343
REPORT_DOT_COMPLETED = 'report.completed'
4444
WORKFLOW_TIMELINE_FILE_DOT_CREATED = 'workflow_timeline_file.created'
4545
WORKFLOW_SIGNED_EVIDENCE_FILE_DOT_CREATED = 'workflow_signed_evidence_file.created'
46+
WORKFLOW_RUN_EVIDENCE_FOLDER_DOT_CREATED = 'workflow_run_evidence_folder.created'
4647

4748
@classmethod
4849
def from_json(cls, json_str: str) -> Self:

poetry.lock

Lines changed: 148 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "onfido-python"
3-
version = "4.3.0"
3+
version = "4.4.0"
44
description = "Python library for the Onfido API"
55
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
66
license = "MIT"

0 commit comments

Comments
 (0)