Skip to content

Commit 8221bbe

Browse files
dvacca-onfidogithub-actions[bot]
authored andcommitted
Upgrade after onfido-openapi-spec change 9ab76fa
1 parent fc4dc99 commit 8221bbe

10 files changed

Lines changed: 177 additions & 127 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": "9ab76fa",
5+
"long_sha": "9ab76fa6174c86cb255b24501607b27ba304153c",
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/default_api.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13922,6 +13922,7 @@ def list_workflow_runs(
1392213922
created_at_gt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date greater than (after) the one provided.")] = None,
1392313923
created_at_lt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date less than (before) the one provided.")] = None,
1392413924
sort: Annotated[Optional[StrictStr], Field(description="A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.")] = None,
13925+
applicant_id: Annotated[Optional[StrictStr], Field(description="the applicant's id.")] = None,
1392513926
_request_timeout: Union[
1392613927
None,
1392713928
Annotated[StrictFloat, Field(gt=0)],
@@ -13949,6 +13950,8 @@ def list_workflow_runs(
1394913950
:type created_at_lt: datetime
1395013951
:param sort: A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.
1395113952
:type sort: str
13953+
:param applicant_id: the applicant's id.
13954+
:type applicant_id: str
1395213955
:param _request_timeout: timeout setting for this request. If one
1395313956
number provided, it will be total request
1395413957
timeout. It can also be a pair (tuple) of
@@ -13977,6 +13980,7 @@ def list_workflow_runs(
1397713980
created_at_gt=created_at_gt,
1397813981
created_at_lt=created_at_lt,
1397913982
sort=sort,
13983+
applicant_id=applicant_id,
1398013984
_request_auth=_request_auth,
1398113985
_content_type=_content_type,
1398213986
_headers=_headers,
@@ -14005,6 +14009,7 @@ def list_workflow_runs_with_http_info(
1400514009
created_at_gt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date greater than (after) the one provided.")] = None,
1400614010
created_at_lt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date less than (before) the one provided.")] = None,
1400714011
sort: Annotated[Optional[StrictStr], Field(description="A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.")] = None,
14012+
applicant_id: Annotated[Optional[StrictStr], Field(description="the applicant's id.")] = None,
1400814013
_request_timeout: Union[
1400914014
None,
1401014015
Annotated[StrictFloat, Field(gt=0)],
@@ -14032,6 +14037,8 @@ def list_workflow_runs_with_http_info(
1403214037
:type created_at_lt: datetime
1403314038
:param sort: A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.
1403414039
:type sort: str
14040+
:param applicant_id: the applicant's id.
14041+
:type applicant_id: str
1403514042
:param _request_timeout: timeout setting for this request. If one
1403614043
number provided, it will be total request
1403714044
timeout. It can also be a pair (tuple) of
@@ -14060,6 +14067,7 @@ def list_workflow_runs_with_http_info(
1406014067
created_at_gt=created_at_gt,
1406114068
created_at_lt=created_at_lt,
1406214069
sort=sort,
14070+
applicant_id=applicant_id,
1406314071
_request_auth=_request_auth,
1406414072
_content_type=_content_type,
1406514073
_headers=_headers,
@@ -14088,6 +14096,7 @@ def list_workflow_runs_without_preload_content(
1408814096
created_at_gt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date greater than (after) the one provided.")] = None,
1408914097
created_at_lt: Annotated[Optional[datetime], Field(description="A ISO-8601 date to filter results with a created date less than (before) the one provided.")] = None,
1409014098
sort: Annotated[Optional[StrictStr], Field(description="A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.")] = None,
14099+
applicant_id: Annotated[Optional[StrictStr], Field(description="the applicant's id.")] = None,
1409114100
_request_timeout: Union[
1409214101
None,
1409314102
Annotated[StrictFloat, Field(gt=0)],
@@ -14115,6 +14124,8 @@ def list_workflow_runs_without_preload_content(
1411514124
:type created_at_lt: datetime
1411614125
:param sort: A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'.
1411714126
:type sort: str
14127+
:param applicant_id: the applicant's id.
14128+
:type applicant_id: str
1411814129
:param _request_timeout: timeout setting for this request. If one
1411914130
number provided, it will be total request
1412014131
timeout. It can also be a pair (tuple) of
@@ -14143,6 +14154,7 @@ def list_workflow_runs_without_preload_content(
1414314154
created_at_gt=created_at_gt,
1414414155
created_at_lt=created_at_lt,
1414514156
sort=sort,
14157+
applicant_id=applicant_id,
1414614158
_request_auth=_request_auth,
1414714159
_content_type=_content_type,
1414814160
_headers=_headers,
@@ -14166,6 +14178,7 @@ def _list_workflow_runs_serialize(
1416614178
created_at_gt,
1416714179
created_at_lt,
1416814180
sort,
14181+
applicant_id,
1416914182
_request_auth,
1417014183
_content_type,
1417114184
_headers,
@@ -14226,6 +14239,10 @@ def _list_workflow_runs_serialize(
1422614239

1422714240
_query_params.append(('sort', sort))
1422814241

14242+
if applicant_id is not None:
14243+
14244+
_query_params.append(('applicant_id', applicant_id))
14245+
1422914246
# process the header parameters
1423014247
# process the form parameters
1423114248
# process the body parameter

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/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:

0 commit comments

Comments
 (0)