onfido-python 4.5.0__py3-none-any.whl → 4.6.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 +1 -1
- onfido/api_client.py +1 -1
- onfido/configuration.py +1 -1
- onfido/models/id_number.py +2 -2
- onfido/models/webhook_event_payload_resource.py +4 -2
- {onfido_python-4.5.0.dist-info → onfido_python-4.6.0.dist-info}/METADATA +10 -2
- {onfido_python-4.5.0.dist-info → onfido_python-4.6.0.dist-info}/RECORD +10 -10
- {onfido_python-4.5.0.dist-info → onfido_python-4.6.0.dist-info}/WHEEL +1 -1
- {onfido_python-4.5.0.dist-info → onfido_python-4.6.0.dist-info}/LICENSE +0 -0
- {onfido_python-4.5.0.dist-info → onfido_python-4.6.0.dist-info}/top_level.txt +0 -0
onfido/__init__.py
CHANGED
onfido/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'onfido-python/4.
|
|
93
|
+
self.user_agent = 'onfido-python/4.6.0'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
onfido/configuration.py
CHANGED
|
@@ -394,7 +394,7 @@ conf = onfido.Configuration(
|
|
|
394
394
|
"OS: {env}\n"\
|
|
395
395
|
"Python Version: {pyversion}\n"\
|
|
396
396
|
"Version of the API: v3.6\n"\
|
|
397
|
-
"SDK Package Version: 4.
|
|
397
|
+
"SDK Package Version: 4.6.0".\
|
|
398
398
|
format(env=sys.platform, pyversion=sys.version)
|
|
399
399
|
|
|
400
400
|
def get_host_settings(self):
|
onfido/models/id_number.py
CHANGED
|
@@ -38,8 +38,8 @@ class IdNumber(BaseModel):
|
|
|
38
38
|
if value is None:
|
|
39
39
|
return value
|
|
40
40
|
|
|
41
|
-
if value not in set(['ssn', 'social_insurance', 'tax_id', 'identity_card', 'driving_licence', 'share_code', 'voter_id', 'passport', 'other']):
|
|
42
|
-
raise ValueError("must be one of enum values ('ssn', 'social_insurance', 'tax_id', 'identity_card', 'driving_licence', 'share_code', 'voter_id', 'passport', 'other')")
|
|
41
|
+
if value not in set(['ssn', 'social_insurance', 'tax_id', 'identity_card', 'driving_license', 'driving_licence', 'share_code', 'voter_id', 'passport', 'other']):
|
|
42
|
+
raise ValueError("must be one of enum values ('ssn', 'social_insurance', 'tax_id', 'identity_card', 'driving_license', 'driving_licence', 'share_code', 'voter_id', 'passport', 'other')")
|
|
43
43
|
return value
|
|
44
44
|
|
|
45
45
|
model_config = ConfigDict(
|
|
@@ -45,8 +45,9 @@ class WebhookEventPayloadResource(BaseModel):
|
|
|
45
45
|
reasons: Optional[List[StrictStr]] = Field(default=None, description="The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow Version.")
|
|
46
46
|
link: Optional[WorkflowRunLink] = Field(default=None, description="Object for the configuration of the Workflow Run link.")
|
|
47
47
|
error: Optional[WorkflowRunError] = Field(default=None, description="Error object that details why a Workflow Run is in Error status.")
|
|
48
|
+
customer_user_id: Optional[Annotated[str, Field(strict=True, max_length=256)]] = Field(default=None, description="Customer-provided user identifier.")
|
|
48
49
|
additional_properties: Dict[str, Any] = {}
|
|
49
|
-
__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"]
|
|
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"]
|
|
50
51
|
|
|
51
52
|
@field_validator('task_def_id')
|
|
52
53
|
def task_def_id_validate_regular_expression(cls, value):
|
|
@@ -146,7 +147,8 @@ class WebhookEventPayloadResource(BaseModel):
|
|
|
146
147
|
"output": obj.get("output"),
|
|
147
148
|
"reasons": obj.get("reasons"),
|
|
148
149
|
"link": WorkflowRunLink.from_dict(obj["link"]) if obj.get("link") is not None else None,
|
|
149
|
-
"error": WorkflowRunError.from_dict(obj["error"]) if obj.get("error") is not None else None
|
|
150
|
+
"error": WorkflowRunError.from_dict(obj["error"]) if obj.get("error") is not None else None,
|
|
151
|
+
"customer_user_id": obj.get("customer_user_id")
|
|
150
152
|
})
|
|
151
153
|
# store additional fields in additional_properties
|
|
152
154
|
for _key in obj.keys():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: onfido-python
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.6.0
|
|
4
4
|
Summary: Python library for the Onfido API
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: OpenAPI Generator community
|
|
@@ -13,6 +13,14 @@ Requires-Dist: urllib3<3.0.0,>=1.25.3
|
|
|
13
13
|
Requires-Dist: python-dateutil>=2.8.2
|
|
14
14
|
Requires-Dist: pydantic>=2
|
|
15
15
|
Requires-Dist: typing-extensions>=4.7.1
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: description
|
|
19
|
+
Dynamic: description-content-type
|
|
20
|
+
Dynamic: keywords
|
|
21
|
+
Dynamic: license
|
|
22
|
+
Dynamic: requires-dist
|
|
23
|
+
Dynamic: summary
|
|
16
24
|
|
|
17
25
|
The Onfido API (v3.6)
|
|
18
26
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
onfido/__init__.py,sha256=
|
|
2
|
-
onfido/api_client.py,sha256=
|
|
1
|
+
onfido/__init__.py,sha256=fHHWxi8IY7jZAxUSnK2vHrLOV_ADikvdqrCQY5GysII,28658
|
|
2
|
+
onfido/api_client.py,sha256=mV9VOHYwcCL3UpDJmLjrFLXuzZrHZ532a-7Sp5Sem9s,27329
|
|
3
3
|
onfido/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
onfido/configuration.py,sha256=
|
|
4
|
+
onfido/configuration.py,sha256=ANsRZl6rruHhNHvO0NSgTBNhYZHaYttmKC4GspAT1PU,15012
|
|
5
5
|
onfido/exceptions.py,sha256=5W4DJIPVwIzljxoedh5czPXOTBaq6CTTVD92h5ZyN88,5894
|
|
6
6
|
onfido/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
onfido/rest.py,sha256=kI5k8RQ6_BemD6Zx99dJDmr7zwA1mSrHLlba2WwwoMM,9419
|
|
@@ -157,7 +157,7 @@ onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_li
|
|
|
157
157
|
onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_spoofing_detection.py,sha256=RRBNzE6u9YXQ8PmJxOa6kNdWineFm6EEg4qtPGTZcws,3974
|
|
158
158
|
onfido/models/facial_similarity_video_properties.py,sha256=ICtG2ymOwHxDh0yLWeW5D8kvKBw8TJO752w3Vp9msBU,3400
|
|
159
159
|
onfido/models/facial_similarity_video_report.py,sha256=3E9EtYOzfxpQ37PY6nhaj1A4pbC_dEkYuBTSu_m3fmw,8914
|
|
160
|
-
onfido/models/id_number.py,sha256
|
|
160
|
+
onfido/models/id_number.py,sha256=-rSMPPNrhnEjKJXfgPuZj3PLeHtHRMuv04FNhfBfzA4,3951
|
|
161
161
|
onfido/models/id_photo.py,sha256=MINVgfDRrOPPTZFyL-wYxQvmOHTXs9qKT3rbtMJksro,4085
|
|
162
162
|
onfido/models/id_photo_response.py,sha256=MzNcewhNkp86SNn1JdTyy8yfhR-4m4tnWyIU2-3YA3s,4117
|
|
163
163
|
onfido/models/id_photos_list.py,sha256=cng280Pm_0uVGfxHtJ1jGFDM4XXCRtsBJDxYnwbvw-8,3462
|
|
@@ -281,7 +281,7 @@ onfido/models/webhook_event.py,sha256=g5lobXwKJsA0J34puBVMcLbm7vcrVlZoFTuvRvCFE9
|
|
|
281
281
|
onfido/models/webhook_event_object_status.py,sha256=4jEEia3Ecbji5bNaD4weG21BrgucVod3EKnEdKVJF6A,1267
|
|
282
282
|
onfido/models/webhook_event_payload.py,sha256=aHlXjU0FX3F30zau9JBDkZqsZ2HgeBd_QXN19cNiRVo,4317
|
|
283
283
|
onfido/models/webhook_event_payload_object.py,sha256=VbRajHlUahupevBm464VVuVWbYS4NrsXpEJFgC20KmU,3912
|
|
284
|
-
onfido/models/webhook_event_payload_resource.py,sha256=
|
|
284
|
+
onfido/models/webhook_event_payload_resource.py,sha256=7kWajSY3e_1Pe7aT04z5AMIcPSKpdYBNkgJNR-07C1Q,7481
|
|
285
285
|
onfido/models/webhook_event_resource_type.py,sha256=paadOwFMD8K8JCuBCAE3F_sWV-32HD3qhkabEl1Ae0E,967
|
|
286
286
|
onfido/models/webhook_event_type.py,sha256=S863kbG9lmTrvxcRUTHpKA5Nng9-uD-naW7XP2nVbS4,1655
|
|
287
287
|
onfido/models/webhook_resend.py,sha256=H_qpNUnh0y1FJQUy1B6ngY69iH7nHU9qjglRXLXKmPc,3478
|
|
@@ -299,8 +299,8 @@ onfido/models/workflow_run_request.py,sha256=IGCpkcvqn6kJ2L2nZeuBHNeANqcSUfvx0Ig
|
|
|
299
299
|
onfido/models/workflow_run_response.py,sha256=Ze469zDUWxZMxqIxas6Sjts3EB21z7PhZTfuWgs0Thw,5080
|
|
300
300
|
onfido/models/workflow_run_shared.py,sha256=WP9qLkf79iaJTeK-QxkwzB2MvR4atT3LdZZRmZopPp4,4857
|
|
301
301
|
onfido/models/workflow_run_status.py,sha256=34P9aHn0FEAirtAo64ej00LH4h-3V36ShZG1XbS_hZo,884
|
|
302
|
-
onfido_python-4.
|
|
303
|
-
onfido_python-4.
|
|
304
|
-
onfido_python-4.
|
|
305
|
-
onfido_python-4.
|
|
306
|
-
onfido_python-4.
|
|
302
|
+
onfido_python-4.6.0.dist-info/LICENSE,sha256=SKY_O1OkFX8yNWFuVVfYTsXvN46jsgtff-xReserHw4,1073
|
|
303
|
+
onfido_python-4.6.0.dist-info/METADATA,sha256=k0vuk4kzUWkXBO3N3do_F2FlQPf5sN3wVmFcLQPIsbc,654
|
|
304
|
+
onfido_python-4.6.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
305
|
+
onfido_python-4.6.0.dist-info/top_level.txt,sha256=NHu8xI4S4Avh7xUark3dpdk9atpIVgyf-ptjHXU0-Ns,7
|
|
306
|
+
onfido_python-4.6.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|