onfido-python 5.6.0__py3-none-any.whl → 5.7.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 +8 -1
- onfido/api/default_api.py +5216 -2456
- onfido/api_client.py +1 -1
- onfido/configuration.py +1 -1
- onfido/models/__init__.py +7 -0
- onfido/models/document_properties.py +3 -1
- onfido/models/document_with_driver_verification_report_all_of_properties.py +3 -1
- onfido/models/passkey.py +116 -0
- onfido/models/passkey_updater.py +107 -0
- onfido/models/passkeys_list.py +108 -0
- onfido/models/signing_document.py +115 -0
- onfido/models/signing_document_response.py +113 -0
- onfido/models/signing_document_shared.py +100 -0
- onfido/models/signing_documents_list.py +108 -0
- {onfido_python-5.6.0.dist-info → onfido_python-5.7.0.dist-info}/METADATA +1 -1
- {onfido_python-5.6.0.dist-info → onfido_python-5.7.0.dist-info}/RECORD +19 -12
- {onfido_python-5.6.0.dist-info → onfido_python-5.7.0.dist-info}/WHEEL +1 -1
- {onfido_python-5.6.0.dist-info → onfido_python-5.7.0.dist-info}/licenses/LICENSE +0 -0
- {onfido_python-5.6.0.dist-info → onfido_python-5.7.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Onfido Public API v3.6
|
|
5
|
+
|
|
6
|
+
The Onfido Public API (v3.6)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3.6
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class SigningDocumentShared(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
SigningDocumentShared
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
applicant_id: Optional[StrictStr] = Field(default=None, description="The ID of the applicant whose signing document is being uploaded.")
|
|
30
|
+
additional_properties: Dict[str, Any] = {}
|
|
31
|
+
__properties: ClassVar[List[str]] = ["applicant_id"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of SigningDocumentShared from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
"additional_properties",
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
# puts key-value pairs in additional_properties in the top level
|
|
75
|
+
if self.additional_properties is not None:
|
|
76
|
+
for _key, _value in self.additional_properties.items():
|
|
77
|
+
_dict[_key] = _value
|
|
78
|
+
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of SigningDocumentShared from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"applicant_id": obj.get("applicant_id")
|
|
92
|
+
})
|
|
93
|
+
# store additional fields in additional_properties
|
|
94
|
+
for _key in obj.keys():
|
|
95
|
+
if _key not in cls.__properties:
|
|
96
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
97
|
+
|
|
98
|
+
return _obj
|
|
99
|
+
|
|
100
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Onfido Public API v3.6
|
|
5
|
+
|
|
6
|
+
The Onfido Public API (v3.6)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3.6
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from onfido.models.signing_document import SigningDocument
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class SigningDocumentsList(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
SigningDocumentsList
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
signing_documents: List[SigningDocument]
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["signing_documents"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of SigningDocumentsList from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# override the default output from pydantic by calling `to_dict()` of each item in signing_documents (list)
|
|
76
|
+
_items = []
|
|
77
|
+
if self.signing_documents:
|
|
78
|
+
for _item_signing_documents in self.signing_documents:
|
|
79
|
+
if _item_signing_documents:
|
|
80
|
+
_items.append(_item_signing_documents.to_dict())
|
|
81
|
+
_dict['signing_documents'] = _items
|
|
82
|
+
# puts key-value pairs in additional_properties in the top level
|
|
83
|
+
if self.additional_properties is not None:
|
|
84
|
+
for _key, _value in self.additional_properties.items():
|
|
85
|
+
_dict[_key] = _value
|
|
86
|
+
|
|
87
|
+
return _dict
|
|
88
|
+
|
|
89
|
+
@classmethod
|
|
90
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
91
|
+
"""Create an instance of SigningDocumentsList from a dict"""
|
|
92
|
+
if obj is None:
|
|
93
|
+
return None
|
|
94
|
+
|
|
95
|
+
if not isinstance(obj, dict):
|
|
96
|
+
return cls.model_validate(obj)
|
|
97
|
+
|
|
98
|
+
_obj = cls.model_validate({
|
|
99
|
+
"signing_documents": [SigningDocument.from_dict(_item) for _item in obj["signing_documents"]] if obj.get("signing_documents") is not None else None
|
|
100
|
+
})
|
|
101
|
+
# store additional fields in additional_properties
|
|
102
|
+
for _key in obj.keys():
|
|
103
|
+
if _key not in cls.__properties:
|
|
104
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
105
|
+
|
|
106
|
+
return _obj
|
|
107
|
+
|
|
108
|
+
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
onfido/__init__.py,sha256=
|
|
2
|
-
onfido/api_client.py,sha256=
|
|
1
|
+
onfido/__init__.py,sha256=h_R8UKCYxsXiHQs6skOrp_rnRcE8532EXETjMWvJcZw,29809
|
|
2
|
+
onfido/api_client.py,sha256=A1zk5TkjRv61ICpuG1G7mZ49tA7mbvrx0ya4IkA2FP4,27350
|
|
3
3
|
onfido/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
onfido/configuration.py,sha256=
|
|
4
|
+
onfido/configuration.py,sha256=ECw_Y9ZH25WvjsfAAlk3aHx5T3qNO2B9NckeMOlbkA8,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
|
|
8
8
|
onfido/webhook_event_verifier.py,sha256=RPoASdqspjgBn9Q_U4dRzOMuMVDYpXSaXluB_zydSIk,891
|
|
9
9
|
onfido/api/__init__.py,sha256=hqeJm_GD67zukfFQ-H5PPPxYgZZ0DKOMPGTNRAjc3gw,94
|
|
10
|
-
onfido/api/default_api.py,sha256=
|
|
11
|
-
onfido/models/__init__.py,sha256=
|
|
10
|
+
onfido/api/default_api.py,sha256=umLtboukRX3nNTBhNCV0qfZvkH9st9sChYxREoNLOZ0,849159
|
|
11
|
+
onfido/models/__init__.py,sha256=kcu83DdMzpk7sKwEYhp22BGIuH7iUeg6d2oysCxfQCo,29157
|
|
12
12
|
onfido/models/address.py,sha256=2aCXuL7uChZ8lwTJ7TiHHXshvgaMBuy6zvcgJ4xeSEg,6826
|
|
13
13
|
onfido/models/address_builder.py,sha256=jUn6wpYUD0HTF9C-Px58y8HZnagUOwAVnmoSJFcyOnM,6854
|
|
14
14
|
onfido/models/address_shared.py,sha256=6aUyNR7XkB-hRht74VwEW2j8kv_YYNVIUycVDoUjqoc,6850
|
|
@@ -84,7 +84,7 @@ onfido/models/document_breakdown_visual_authenticity_breakdown_template.py,sha25
|
|
|
84
84
|
onfido/models/document_cdq_reasons.py,sha256=p8A2h5Nyyvp00jBgbOQ0zw89TGsXxxvjkPl_kGqhpWw,5228
|
|
85
85
|
onfido/models/document_iq_reasons.py,sha256=rCe8scw5SR_SuTIxjgRGD1hKxdLIqqDT8pRZqJGnOG0,5406
|
|
86
86
|
onfido/models/document_odp_reasons.py,sha256=SJiyLpV8G7Oo9viYPMdVtx29FlxAe-2fTnftRRZncOU,3980
|
|
87
|
-
onfido/models/document_properties.py,sha256=
|
|
87
|
+
onfido/models/document_properties.py,sha256=FdjlobiEH11eZuBDmv_rQ12YmpYTngvweC3QtMCEAxA,13486
|
|
88
88
|
onfido/models/document_properties_address_lines.py,sha256=g8qWJF5EvTL5s5_DDkaT4DNKKt9cCU5AroYKzzy6UBw,3620
|
|
89
89
|
onfido/models/document_properties_barcode_inner.py,sha256=iVWpNLIdAMI5NLdju8fhm2d3OGcZxY5NGfzSfmuVIOY,5164
|
|
90
90
|
onfido/models/document_properties_document_classification.py,sha256=gDutT1IdApkY2mv6Z0UR0V-UDrDZPUg1SJoyFFD-oeA,3414
|
|
@@ -101,7 +101,7 @@ onfido/models/document_video_report.py,sha256=_BDFg76SKIQ78_Mm9r3Fjh3V3Fxdvo2DAc
|
|
|
101
101
|
onfido/models/document_video_with_address_information_report.py,sha256=aznMRFfkaLbNH0hKGcl6dk8M0zYvJSD6DRR6Ah8XAbg,5909
|
|
102
102
|
onfido/models/document_with_address_information_report.py,sha256=KJZGTPfntOkZGc7RiAHShxDqs4jmxO3XIgqGD-gE6eI,5889
|
|
103
103
|
onfido/models/document_with_driver_verification_report.py,sha256=1il0aeGtbj1Vd57KvmgUrUxBKRtP8Qjy7MVP-I0C7PQ,6027
|
|
104
|
-
onfido/models/document_with_driver_verification_report_all_of_properties.py,sha256=
|
|
104
|
+
onfido/models/document_with_driver_verification_report_all_of_properties.py,sha256=KDfDanQTDbykRdaoZ8EOviQ76YA5LNTDFhoZcdjzBxw,16662
|
|
105
105
|
onfido/models/document_with_driver_verification_report_all_of_properties_all_of_passenger_vehicle.py,sha256=Bo7da6bPqifzdEiQO3eFfNL0Bjmc4B-AG8zCrZJec04,3806
|
|
106
106
|
onfido/models/document_with_driver_verification_report_all_of_properties_all_of_vehicle_class_details_inner.py,sha256=3mfTHHGh4kpaKLjTSLcG_3UoC1SK7IkGkpB9mF1PxHc,3880
|
|
107
107
|
onfido/models/document_with_driving_licence_information_report.py,sha256=baWyuHvBQF3AY5DeWNNJ4Ksgx-pdJ_iT-B8dOYjmRKc,5917
|
|
@@ -210,6 +210,9 @@ onfido/models/location_builder.py,sha256=3n5WsGtF5JDZNV5yelyLD7lk23AKtA1vdEQiSri
|
|
|
210
210
|
onfido/models/location_shared.py,sha256=nLx4n3YgK_3N5Uum48TAjZQIHs-47qHMGAYrPu_G55A,3410
|
|
211
211
|
onfido/models/motion_capture.py,sha256=TEjr-65XOTNWFJY1ORbCj3Ty_VbrHQd9queFeDHcF54,4174
|
|
212
212
|
onfido/models/motion_captures_list.py,sha256=mjSHuljYYAXNqJmDOd1QfAC-PrXpIDH4Vaj2VQQQIv4,3596
|
|
213
|
+
onfido/models/passkey.py,sha256=bHw0qr6NWcP1DOixGryCBR438eidKc2Kk8ZOayRn0I0,4038
|
|
214
|
+
onfido/models/passkey_updater.py,sha256=VH2qYGkY70pkOc3QwQU8O3LG_D2jwqkjtM1TvutrvyU,3400
|
|
215
|
+
onfido/models/passkeys_list.py,sha256=ZfoVCwNJ9F-2dYaRvbsNS7MQuW2E9I-SMwq5sLMmrMA,3463
|
|
213
216
|
onfido/models/photo_auto_reasons.py,sha256=4JOgHkBvwu_B_pFKlMqrBVLvNeq0UJ5Jt9OopwyuLjs,4112
|
|
214
217
|
onfido/models/photo_reasons.py,sha256=Hmy7wcAA0aEwgaqeIsiWpFQRYZE_DD9yia1FAaj1L8c,4096
|
|
215
218
|
onfido/models/proof_of_address_breakdown.py,sha256=_--ZLKkDR2QQvcQp_hp6F9LOVCYQa42GKVgRdgZAfpk,4742
|
|
@@ -238,6 +241,10 @@ onfido/models/sdk_token.py,sha256=DAfGt0sw-MfLiNjzFJQXHb_im1uz7W99rObGi9mWjro,30
|
|
|
238
241
|
onfido/models/sdk_token_builder.py,sha256=DYPDoMdozTRWeuFVTeOsOI8vNiMbiZn_f6PWFvGyWY8,3680
|
|
239
242
|
onfido/models/sdk_token_request.py,sha256=OzmZNTRFsnB1xEVnZc8vPqNv0rdO00F5KIDO0HBIksE,3680
|
|
240
243
|
onfido/models/sdk_token_response.py,sha256=VxRT31ditI-iYv4XpU3-D74KjZyw3VA78EVZMdGvTDg,3069
|
|
244
|
+
onfido/models/signing_document.py,sha256=Dq61tP2bsc0TQjpOmHbA2GIZ4q7yi-wKG9x5p4OL02A,4367
|
|
245
|
+
onfido/models/signing_document_response.py,sha256=lP8LJPWxRONwh9G0yG88EZ-G74hJXZksunYw0s5IB8Y,4189
|
|
246
|
+
onfido/models/signing_document_shared.py,sha256=mLQdYJvGdRwPku4K8NmzVuaEAk1SN1Q5xJuczG-nu2Q,3193
|
|
247
|
+
onfido/models/signing_documents_list.py,sha256=6F4m_NkJEf9doJQHNmm9mamUuR4mlL8dzbb3h7xGbec,3636
|
|
241
248
|
onfido/models/task.py,sha256=Eta6lxSz7aniEy1a6pfjNGs5ZgaPEieisPXNkIpdnFI,5637
|
|
242
249
|
onfido/models/task_item.py,sha256=VSn8vRPYWo_YTrwhIxteQ-xnayYA_r9Ylj0f2psHYgs,5069
|
|
243
250
|
onfido/models/timeline_file_reference.py,sha256=valL43TvOjZGIp0DNhFrBsvGWrlZOHs2t4MXkxH0yHY,3354
|
|
@@ -308,8 +315,8 @@ onfido/models/workflow_run_request.py,sha256=M5DUoxOmGTz5ZSP7LQBwNyV7DSLS6mwfbo3
|
|
|
308
315
|
onfido/models/workflow_run_response.py,sha256=a1tuwNZWYWZKWyWYeTCRjGwlpnXHUkWGJOg7fft2lqk,5094
|
|
309
316
|
onfido/models/workflow_run_shared.py,sha256=sHEGIuiSFxiwzsmhT3u2BMniGKMHivgXsIrQD4MURM4,4871
|
|
310
317
|
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.
|
|
318
|
+
onfido_python-5.7.0.dist-info/licenses/LICENSE,sha256=SKY_O1OkFX8yNWFuVVfYTsXvN46jsgtff-xReserHw4,1073
|
|
319
|
+
onfido_python-5.7.0.dist-info/METADATA,sha256=3JrQnrn6XiWgO8bd5GVHHM-98_bq5RK-InP6dXls4vU,683
|
|
320
|
+
onfido_python-5.7.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
321
|
+
onfido_python-5.7.0.dist-info/top_level.txt,sha256=NHu8xI4S4Avh7xUark3dpdk9atpIVgyf-ptjHXU0-Ns,7
|
|
322
|
+
onfido_python-5.7.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|