onfido-python 5.3.0__py3-none-any.whl → 5.4.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/default_api.py +284 -0
- onfido/api_client.py +1 -1
- onfido/configuration.py +1 -1
- {onfido_python-5.3.0.dist-info → onfido_python-5.4.0.dist-info}/METADATA +1 -1
- {onfido_python-5.3.0.dist-info → onfido_python-5.4.0.dist-info}/RECORD +9 -9
- {onfido_python-5.3.0.dist-info → onfido_python-5.4.0.dist-info}/WHEEL +0 -0
- {onfido_python-5.3.0.dist-info → onfido_python-5.4.0.dist-info}/licenses/LICENSE +0 -0
- {onfido_python-5.3.0.dist-info → onfido_python-5.4.0.dist-info}/top_level.txt +0 -0
onfido/__init__.py
CHANGED
onfido/api/default_api.py
CHANGED
|
@@ -3062,6 +3062,290 @@ class DefaultApi:
|
|
|
3062
3062
|
|
|
3063
3063
|
|
|
3064
3064
|
|
|
3065
|
+
@validate_call
|
|
3066
|
+
def download_aes_document(
|
|
3067
|
+
self,
|
|
3068
|
+
workflow_run_id: Annotated[StrictStr, Field(description="The unique identifier of the Workflow Run for which you want to retrieve the signed document.")],
|
|
3069
|
+
id: Annotated[StrictStr, Field(description="The unique identifier of the file which you want to retrieve.")],
|
|
3070
|
+
_request_timeout: Union[
|
|
3071
|
+
None,
|
|
3072
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3073
|
+
Tuple[
|
|
3074
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3075
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3076
|
+
]
|
|
3077
|
+
] = None,
|
|
3078
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3079
|
+
_content_type: Optional[StrictStr] = None,
|
|
3080
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3081
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3082
|
+
) -> bytearray:
|
|
3083
|
+
"""Retrieves the signed document or signing transaction receipt
|
|
3084
|
+
|
|
3085
|
+
Retrieves the signed document or signing transaction receipt depending on the id provided.
|
|
3086
|
+
|
|
3087
|
+
:param workflow_run_id: The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required)
|
|
3088
|
+
:type workflow_run_id: str
|
|
3089
|
+
:param id: The unique identifier of the file which you want to retrieve. (required)
|
|
3090
|
+
:type id: str
|
|
3091
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3092
|
+
number provided, it will be total request
|
|
3093
|
+
timeout. It can also be a pair (tuple) of
|
|
3094
|
+
(connection, read) timeouts.
|
|
3095
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3096
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3097
|
+
request; this effectively ignores the
|
|
3098
|
+
authentication in the spec for a single request.
|
|
3099
|
+
:type _request_auth: dict, optional
|
|
3100
|
+
:param _content_type: force content-type for the request.
|
|
3101
|
+
:type _content_type: str, Optional
|
|
3102
|
+
:param _headers: set to override the headers for a single
|
|
3103
|
+
request; this effectively ignores the headers
|
|
3104
|
+
in the spec for a single request.
|
|
3105
|
+
:type _headers: dict, optional
|
|
3106
|
+
:param _host_index: set to override the host_index for a single
|
|
3107
|
+
request; this effectively ignores the host_index
|
|
3108
|
+
in the spec for a single request.
|
|
3109
|
+
:type _host_index: int, optional
|
|
3110
|
+
:return: Returns the result object.
|
|
3111
|
+
""" # noqa: E501
|
|
3112
|
+
|
|
3113
|
+
_param = self._download_aes_document_serialize(
|
|
3114
|
+
workflow_run_id=workflow_run_id,
|
|
3115
|
+
id=id,
|
|
3116
|
+
_request_auth=_request_auth,
|
|
3117
|
+
_content_type=_content_type,
|
|
3118
|
+
_headers=_headers,
|
|
3119
|
+
_host_index=_host_index
|
|
3120
|
+
)
|
|
3121
|
+
|
|
3122
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3123
|
+
'302': None,
|
|
3124
|
+
'200': "bytearray",
|
|
3125
|
+
}
|
|
3126
|
+
response_data = self.api_client.call_api(
|
|
3127
|
+
*_param,
|
|
3128
|
+
_request_timeout=_request_timeout
|
|
3129
|
+
)
|
|
3130
|
+
response_data.read()
|
|
3131
|
+
return self.api_client.response_deserialize(
|
|
3132
|
+
response_data=response_data,
|
|
3133
|
+
response_types_map=_response_types_map,
|
|
3134
|
+
).data
|
|
3135
|
+
|
|
3136
|
+
|
|
3137
|
+
@validate_call
|
|
3138
|
+
def download_aes_document_with_http_info(
|
|
3139
|
+
self,
|
|
3140
|
+
workflow_run_id: Annotated[StrictStr, Field(description="The unique identifier of the Workflow Run for which you want to retrieve the signed document.")],
|
|
3141
|
+
id: Annotated[StrictStr, Field(description="The unique identifier of the file which you want to retrieve.")],
|
|
3142
|
+
_request_timeout: Union[
|
|
3143
|
+
None,
|
|
3144
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3145
|
+
Tuple[
|
|
3146
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3147
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3148
|
+
]
|
|
3149
|
+
] = None,
|
|
3150
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3151
|
+
_content_type: Optional[StrictStr] = None,
|
|
3152
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3153
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3154
|
+
) -> ApiResponse[bytearray]:
|
|
3155
|
+
"""Retrieves the signed document or signing transaction receipt
|
|
3156
|
+
|
|
3157
|
+
Retrieves the signed document or signing transaction receipt depending on the id provided.
|
|
3158
|
+
|
|
3159
|
+
:param workflow_run_id: The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required)
|
|
3160
|
+
:type workflow_run_id: str
|
|
3161
|
+
:param id: The unique identifier of the file which you want to retrieve. (required)
|
|
3162
|
+
:type id: str
|
|
3163
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3164
|
+
number provided, it will be total request
|
|
3165
|
+
timeout. It can also be a pair (tuple) of
|
|
3166
|
+
(connection, read) timeouts.
|
|
3167
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3168
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3169
|
+
request; this effectively ignores the
|
|
3170
|
+
authentication in the spec for a single request.
|
|
3171
|
+
:type _request_auth: dict, optional
|
|
3172
|
+
:param _content_type: force content-type for the request.
|
|
3173
|
+
:type _content_type: str, Optional
|
|
3174
|
+
:param _headers: set to override the headers for a single
|
|
3175
|
+
request; this effectively ignores the headers
|
|
3176
|
+
in the spec for a single request.
|
|
3177
|
+
:type _headers: dict, optional
|
|
3178
|
+
:param _host_index: set to override the host_index for a single
|
|
3179
|
+
request; this effectively ignores the host_index
|
|
3180
|
+
in the spec for a single request.
|
|
3181
|
+
:type _host_index: int, optional
|
|
3182
|
+
:return: Returns the result object.
|
|
3183
|
+
""" # noqa: E501
|
|
3184
|
+
|
|
3185
|
+
_param = self._download_aes_document_serialize(
|
|
3186
|
+
workflow_run_id=workflow_run_id,
|
|
3187
|
+
id=id,
|
|
3188
|
+
_request_auth=_request_auth,
|
|
3189
|
+
_content_type=_content_type,
|
|
3190
|
+
_headers=_headers,
|
|
3191
|
+
_host_index=_host_index
|
|
3192
|
+
)
|
|
3193
|
+
|
|
3194
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3195
|
+
'302': None,
|
|
3196
|
+
'200': "bytearray",
|
|
3197
|
+
}
|
|
3198
|
+
response_data = self.api_client.call_api(
|
|
3199
|
+
*_param,
|
|
3200
|
+
_request_timeout=_request_timeout
|
|
3201
|
+
)
|
|
3202
|
+
response_data.read()
|
|
3203
|
+
return self.api_client.response_deserialize(
|
|
3204
|
+
response_data=response_data,
|
|
3205
|
+
response_types_map=_response_types_map,
|
|
3206
|
+
)
|
|
3207
|
+
|
|
3208
|
+
|
|
3209
|
+
@validate_call
|
|
3210
|
+
def download_aes_document_without_preload_content(
|
|
3211
|
+
self,
|
|
3212
|
+
workflow_run_id: Annotated[StrictStr, Field(description="The unique identifier of the Workflow Run for which you want to retrieve the signed document.")],
|
|
3213
|
+
id: Annotated[StrictStr, Field(description="The unique identifier of the file which you want to retrieve.")],
|
|
3214
|
+
_request_timeout: Union[
|
|
3215
|
+
None,
|
|
3216
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3217
|
+
Tuple[
|
|
3218
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3219
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3220
|
+
]
|
|
3221
|
+
] = None,
|
|
3222
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3223
|
+
_content_type: Optional[StrictStr] = None,
|
|
3224
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3225
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3226
|
+
) -> RESTResponseType:
|
|
3227
|
+
"""Retrieves the signed document or signing transaction receipt
|
|
3228
|
+
|
|
3229
|
+
Retrieves the signed document or signing transaction receipt depending on the id provided.
|
|
3230
|
+
|
|
3231
|
+
:param workflow_run_id: The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required)
|
|
3232
|
+
:type workflow_run_id: str
|
|
3233
|
+
:param id: The unique identifier of the file which you want to retrieve. (required)
|
|
3234
|
+
:type id: str
|
|
3235
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3236
|
+
number provided, it will be total request
|
|
3237
|
+
timeout. It can also be a pair (tuple) of
|
|
3238
|
+
(connection, read) timeouts.
|
|
3239
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3240
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3241
|
+
request; this effectively ignores the
|
|
3242
|
+
authentication in the spec for a single request.
|
|
3243
|
+
:type _request_auth: dict, optional
|
|
3244
|
+
:param _content_type: force content-type for the request.
|
|
3245
|
+
:type _content_type: str, Optional
|
|
3246
|
+
:param _headers: set to override the headers for a single
|
|
3247
|
+
request; this effectively ignores the headers
|
|
3248
|
+
in the spec for a single request.
|
|
3249
|
+
:type _headers: dict, optional
|
|
3250
|
+
:param _host_index: set to override the host_index for a single
|
|
3251
|
+
request; this effectively ignores the host_index
|
|
3252
|
+
in the spec for a single request.
|
|
3253
|
+
:type _host_index: int, optional
|
|
3254
|
+
:return: Returns the result object.
|
|
3255
|
+
""" # noqa: E501
|
|
3256
|
+
|
|
3257
|
+
_param = self._download_aes_document_serialize(
|
|
3258
|
+
workflow_run_id=workflow_run_id,
|
|
3259
|
+
id=id,
|
|
3260
|
+
_request_auth=_request_auth,
|
|
3261
|
+
_content_type=_content_type,
|
|
3262
|
+
_headers=_headers,
|
|
3263
|
+
_host_index=_host_index
|
|
3264
|
+
)
|
|
3265
|
+
|
|
3266
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3267
|
+
'302': None,
|
|
3268
|
+
'200': "bytearray",
|
|
3269
|
+
}
|
|
3270
|
+
response_data = self.api_client.call_api(
|
|
3271
|
+
*_param,
|
|
3272
|
+
_request_timeout=_request_timeout
|
|
3273
|
+
)
|
|
3274
|
+
return response_data.response
|
|
3275
|
+
|
|
3276
|
+
|
|
3277
|
+
def _download_aes_document_serialize(
|
|
3278
|
+
self,
|
|
3279
|
+
workflow_run_id,
|
|
3280
|
+
id,
|
|
3281
|
+
_request_auth,
|
|
3282
|
+
_content_type,
|
|
3283
|
+
_headers,
|
|
3284
|
+
_host_index,
|
|
3285
|
+
) -> RequestSerialized:
|
|
3286
|
+
|
|
3287
|
+
_host = None
|
|
3288
|
+
|
|
3289
|
+
_collection_formats: Dict[str, str] = {
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
_path_params: Dict[str, str] = {}
|
|
3293
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3294
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3295
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3296
|
+
_files: Dict[
|
|
3297
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3298
|
+
] = {}
|
|
3299
|
+
_body_params: Optional[bytes] = None
|
|
3300
|
+
|
|
3301
|
+
# process the path parameters
|
|
3302
|
+
# process the query parameters
|
|
3303
|
+
if workflow_run_id is not None:
|
|
3304
|
+
|
|
3305
|
+
_query_params.append(('workflow_run_id', workflow_run_id))
|
|
3306
|
+
|
|
3307
|
+
if id is not None:
|
|
3308
|
+
|
|
3309
|
+
_query_params.append(('id', id))
|
|
3310
|
+
|
|
3311
|
+
# process the header parameters
|
|
3312
|
+
# process the form parameters
|
|
3313
|
+
# process the body parameter
|
|
3314
|
+
|
|
3315
|
+
|
|
3316
|
+
# set the HTTP header `Accept`
|
|
3317
|
+
if 'Accept' not in _header_params:
|
|
3318
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3319
|
+
[
|
|
3320
|
+
'application/pdf',
|
|
3321
|
+
'application/json'
|
|
3322
|
+
]
|
|
3323
|
+
)
|
|
3324
|
+
|
|
3325
|
+
|
|
3326
|
+
# authentication setting
|
|
3327
|
+
_auth_settings: List[str] = [
|
|
3328
|
+
'Token'
|
|
3329
|
+
]
|
|
3330
|
+
|
|
3331
|
+
return self.api_client.param_serialize(
|
|
3332
|
+
method='GET',
|
|
3333
|
+
resource_path='/advanced_electronic_signature/documents',
|
|
3334
|
+
path_params=_path_params,
|
|
3335
|
+
query_params=_query_params,
|
|
3336
|
+
header_params=_header_params,
|
|
3337
|
+
body=_body_params,
|
|
3338
|
+
post_params=_form_params,
|
|
3339
|
+
files=_files,
|
|
3340
|
+
auth_settings=_auth_settings,
|
|
3341
|
+
collection_formats=_collection_formats,
|
|
3342
|
+
_host=_host,
|
|
3343
|
+
_request_auth=_request_auth
|
|
3344
|
+
)
|
|
3345
|
+
|
|
3346
|
+
|
|
3347
|
+
|
|
3348
|
+
|
|
3065
3349
|
@validate_call
|
|
3066
3350
|
def download_check(
|
|
3067
3351
|
self,
|
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/5.
|
|
93
|
+
self.user_agent = 'onfido-python/5.4.0'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
onfido/configuration.py
CHANGED
|
@@ -501,7 +501,7 @@ conf = onfido.Configuration(
|
|
|
501
501
|
"OS: {env}\n"\
|
|
502
502
|
"Python Version: {pyversion}\n"\
|
|
503
503
|
"Version of the API: v3.6\n"\
|
|
504
|
-
"SDK Package Version: 5.
|
|
504
|
+
"SDK Package Version: 5.4.0".\
|
|
505
505
|
format(env=sys.platform, pyversion=sys.version)
|
|
506
506
|
|
|
507
507
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
onfido/__init__.py,sha256=
|
|
2
|
-
onfido/api_client.py,sha256=
|
|
1
|
+
onfido/__init__.py,sha256=wgGBFAC0GZ14HmDX_9rCfMAZtvSfFPMbwNlfDdyho8s,29014
|
|
2
|
+
onfido/api_client.py,sha256=NdSLexlgGvIz5usXI8eQVKdfNleFwZzqUW2Mu3cP2Ig,27336
|
|
3
3
|
onfido/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
onfido/configuration.py,sha256=
|
|
4
|
+
onfido/configuration.py,sha256=LfJDIQsN5-05qFuo-VgMrvEZkI3NW4mOg9X9ctwXH3M,17499
|
|
5
5
|
onfido/exceptions.py,sha256=WeiPD-xpPmBqoLZK859mtLTO5bM8aIsj_oSrkr4bUR4,6393
|
|
6
6
|
onfido/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
onfido/rest.py,sha256=kI5k8RQ6_BemD6Zx99dJDmr7zwA1mSrHLlba2WwwoMM,9419
|
|
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=
|
|
10
|
+
onfido/api/default_api.py,sha256=hIBYJSTpKaFzUoJsrtuwagGRo42_kOirDVz-5FEOtfo,740113
|
|
11
11
|
onfido/models/__init__.py,sha256=QgGBqOnwutfMAc7p9MGkaNTly2TbLCczdqIVkk7EXxo,28362
|
|
12
12
|
onfido/models/address.py,sha256=47oVzKVhn6Qxd24HMIuAQmVKgHPyfOnlFmBnthi2wOE,6812
|
|
13
13
|
onfido/models/address_builder.py,sha256=SjuOn2_T7Yic2l7qhaxd-euaijx85BziRkunp5j292M,6840
|
|
@@ -304,8 +304,8 @@ onfido/models/workflow_run_request.py,sha256=IGCpkcvqn6kJ2L2nZeuBHNeANqcSUfvx0Ig
|
|
|
304
304
|
onfido/models/workflow_run_response.py,sha256=Ze469zDUWxZMxqIxas6Sjts3EB21z7PhZTfuWgs0Thw,5080
|
|
305
305
|
onfido/models/workflow_run_shared.py,sha256=WP9qLkf79iaJTeK-QxkwzB2MvR4atT3LdZZRmZopPp4,4857
|
|
306
306
|
onfido/models/workflow_run_status.py,sha256=JCHhcFSLM3aiW-fOve51psGJ0_RS-PI--NnvVNSG3fI,942
|
|
307
|
-
onfido_python-5.
|
|
308
|
-
onfido_python-5.
|
|
309
|
-
onfido_python-5.
|
|
310
|
-
onfido_python-5.
|
|
311
|
-
onfido_python-5.
|
|
307
|
+
onfido_python-5.4.0.dist-info/licenses/LICENSE,sha256=SKY_O1OkFX8yNWFuVVfYTsXvN46jsgtff-xReserHw4,1073
|
|
308
|
+
onfido_python-5.4.0.dist-info/METADATA,sha256=eG3tojCF-5QmmrgEYSb0ek9LUoJ54ohjhq024snIgmw,676
|
|
309
|
+
onfido_python-5.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
310
|
+
onfido_python-5.4.0.dist-info/top_level.txt,sha256=NHu8xI4S4Avh7xUark3dpdk9atpIVgyf-ptjHXU0-Ns,7
|
|
311
|
+
onfido_python-5.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|