Trinsic-Api 0.2.3__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.
Files changed (43) hide show
  1. Trinsic_Api-0.2.3.dist-info/METADATA +19 -0
  2. Trinsic_Api-0.2.3.dist-info/RECORD +43 -0
  3. Trinsic_Api-0.2.3.dist-info/WHEEL +5 -0
  4. Trinsic_Api-0.2.3.dist-info/top_level.txt +1 -0
  5. trinsic-api/__init__.py +62 -0
  6. trinsic-api/api/__init__.py +7 -0
  7. trinsic-api/api/attachments_api.py +320 -0
  8. trinsic-api/api/network_api.py +563 -0
  9. trinsic-api/api/sessions_api.py +1761 -0
  10. trinsic-api/api_client.py +781 -0
  11. trinsic-api/api_response.py +21 -0
  12. trinsic-api/configuration.py +458 -0
  13. trinsic-api/exceptions.py +199 -0
  14. trinsic-api/models/__init__.py +43 -0
  15. trinsic-api/models/address.py +101 -0
  16. trinsic-api/models/attachments.py +93 -0
  17. trinsic-api/models/cancel_session_response.py +91 -0
  18. trinsic-api/models/create_session_request.py +95 -0
  19. trinsic-api/models/create_session_response.py +93 -0
  20. trinsic-api/models/disclosed_fields.py +109 -0
  21. trinsic-api/models/disclosed_fields_request.py +109 -0
  22. trinsic-api/models/document_data.py +97 -0
  23. trinsic-api/models/exchange_attachment_access_key_request.py +88 -0
  24. trinsic-api/models/exchange_results_key_request.py +87 -0
  25. trinsic-api/models/exchange_results_key_response.py +97 -0
  26. trinsic-api/models/failure_message.py +87 -0
  27. trinsic-api/models/get_session_response.py +91 -0
  28. trinsic-api/models/identity_data.py +105 -0
  29. trinsic-api/models/identity_lookup_response.py +87 -0
  30. trinsic-api/models/list_providers_response.py +95 -0
  31. trinsic-api/models/list_sessions_response.py +99 -0
  32. trinsic-api/models/order_direction.py +37 -0
  33. trinsic-api/models/person_data.py +107 -0
  34. trinsic-api/models/provider_info.py +91 -0
  35. trinsic-api/models/session.py +109 -0
  36. trinsic-api/models/session_fail_code.py +42 -0
  37. trinsic-api/models/session_ordering.py +38 -0
  38. trinsic-api/models/session_state.py +41 -0
  39. trinsic-api/models/validation_result.py +91 -0
  40. trinsic-api/models/verification.py +90 -0
  41. trinsic-api/models/verification_fail_code.py +40 -0
  42. trinsic-api/py.typed +0 -0
  43. trinsic-api/rest.py +257 -0
@@ -0,0 +1,19 @@
1
+ Metadata-Version: 2.1
2
+ Name: Trinsic-Api
3
+ Version: 0.2.3
4
+ Summary: Connect API
5
+ Home-page: https://trinsic.id
6
+ Author: OpenAPI Generator community
7
+ Author-email: team@openapitools.org
8
+ License: UNKNOWN
9
+ Keywords: OpenAPI,OpenAPI-Generator,Connect API
10
+ Platform: UNKNOWN
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: pydantic (>=2)
13
+ Requires-Dist: python-dateutil
14
+ Requires-Dist: typing-extensions (>=4.7.1)
15
+ Requires-Dist: urllib3 (<2.1.0,>=1.25.3)
16
+
17
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
18
+
19
+
@@ -0,0 +1,43 @@
1
+ trinsic-api/__init__.py,sha256=NXs8UGrsxYQqf2eOzjMDPPzIr0FLGNSJUQPO-rBisUg,2888
2
+ trinsic-api/api_client.py,sha256=r5WYz2dxqrTq9Q3CCTfTWFInli-WQWu3pHX8xWDEo1c,26786
3
+ trinsic-api/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
+ trinsic-api/configuration.py,sha256=DMWI3tQ4M3EGHu_0OCjAa6kxrmI5Qr-jhTA-c8HZOPQ,15322
5
+ trinsic-api/exceptions.py,sha256=5Hcd0PIxspgWPba4cj2znuLaFZ-XZWA58dOGq4Gpy_g,5973
6
+ trinsic-api/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ trinsic-api/rest.py,sha256=YO4dgNOJtD2bJZfzBS-s0r2dwPWQpCXzlkXoHPMuVE0,9406
8
+ trinsic-api/api/__init__.py,sha256=NxG4RMHFb26rBhEc2bYIIUtuBbgJ34S1E6Iw2Xy4zCE,211
9
+ trinsic-api/api/attachments_api.py,sha256=IRi4u5gg3y504QOYWOf3pIgRWM8mk9TFUSL5IF90Exg,13667
10
+ trinsic-api/api/network_api.py,sha256=zpBnlzpyY8bKlguTolDO0hmZrhqL_7Jc_MiBK4YtNgE,21187
11
+ trinsic-api/api/sessions_api.py,sha256=9WSnBwlRi4WG-nAsGqhuHMA06ZBg9JcsqvU2xbhoGaA,68465
12
+ trinsic-api/models/__init__.py,sha256=pgCG_qUAkZTVrcROKioPiX1Ry_1-CR2KPUalgvm4Ck0,2208
13
+ trinsic-api/models/address.py,sha256=I3vlCuWMEFbCUo7XeOro-jFF9FBXFqV4Qe_lyDlLqmY,3287
14
+ trinsic-api/models/attachments.py,sha256=CypUpHJtdfR6oFQ91ExZuefx-bz-m03dg_9Y9ldepXg,3558
15
+ trinsic-api/models/cancel_session_response.py,sha256=7LuEVujglN82PnUk3IekA4yA9jWFlf6D1Ct6HyeW_Pk,2771
16
+ trinsic-api/models/create_session_request.py,sha256=EtDiJnZGPmDc_6NxdhY7Qi_wW0eTwa6SI48EXAQFFZw,4270
17
+ trinsic-api/models/create_session_response.py,sha256=vDrh1tD29q7ibMD-lDhLc5V4i6A3jMXjVJqgMYjEidY,3577
18
+ trinsic-api/models/disclosed_fields.py,sha256=AAJhDj_zdxf2MQYF6kmO-t88qDCGT37CUhI31yCWYvE,3782
19
+ trinsic-api/models/disclosed_fields_request.py,sha256=ojcfcztH3zY6fBMg6PRhl4XHvVLuMFa04i5-sCoBBrU,4087
20
+ trinsic-api/models/document_data.py,sha256=r1G237fdGvpmb91qcqlXU5zsfOghDQZRxLCeSIxgFB8,3222
21
+ trinsic-api/models/exchange_attachment_access_key_request.py,sha256=lS_AUoXbZjd6AqfSDVh2F-Xo3ec66WeWtp17avE7Zp4,2832
22
+ trinsic-api/models/exchange_results_key_request.py,sha256=3i23mfDYPYKNKX0F0GGgoFKvufk1uCNEkmY_9uy-D0k,2658
23
+ trinsic-api/models/exchange_results_key_response.py,sha256=apUJpdxGbNbzSJrMPO8vWm79Cy9WmPaW_tCri2rdI2Q,3278
24
+ trinsic-api/models/failure_message.py,sha256=c1jhTp6NLFxYF5HMD-27F_PR3ky8rGQARmF-tkLLjb8,2485
25
+ trinsic-api/models/get_session_response.py,sha256=6Y6kCVa_0rRDD1zIhF2dJFoGV4tUb7TOyyckhIOgaHM,2759
26
+ trinsic-api/models/identity_data.py,sha256=nH3q6iV6bkiiE9xuTKKLqScoI-In_gf6Z1wrABWtmM4,4151
27
+ trinsic-api/models/identity_lookup_response.py,sha256=x9wnpoGmL2tIGgtCqbHSVfVpnUHLldA2RhE7bkQNkSU,2694
28
+ trinsic-api/models/list_providers_response.py,sha256=7nhyvsYFDV4FM27PblkEtjuePiSglbqNo3qiXp1iA1E,3064
29
+ trinsic-api/models/list_sessions_response.py,sha256=Oj79G-Nfm1CX-3WkinIE7ROSGvTUeW9Wg-cn9AVu-7Y,3263
30
+ trinsic-api/models/order_direction.py,sha256=dd-EffJxlZ5A6bzMWyPtIdNdBgWselgE3opPZOzxH1g,770
31
+ trinsic-api/models/person_data.py,sha256=kbQbIVgIlouBaBAnV_fWewz-RXmAeaamlQAtsBSPChY,4232
32
+ trinsic-api/models/provider_info.py,sha256=9UAOEl3zqrhqg7Dkzwj7vBuxcwt_Y4eYwR5_g5vsD2o,2850
33
+ trinsic-api/models/session.py,sha256=ZBdKFhd1U6ZWNApJMBMtRee-NABo_nOYbty1PYX5oqo,4336
34
+ trinsic-api/models/session_fail_code.py,sha256=SRbf2u08Lf4OXTtROWyo7HHUzhY6EhlJoe_7eSunK6s,1085
35
+ trinsic-api/models/session_ordering.py,sha256=pcZm-dBikz03-DpYgo5YB2YS_Ljvx3bwhiou4GqdOfA,783
36
+ trinsic-api/models/session_state.py,sha256=ONkmz6_zI2a4-CNmHZe8JYjLUL75i2uk9kF5FGGQNGU,908
37
+ trinsic-api/models/validation_result.py,sha256=VrPnkUNBw7x0ZSKIcNDOPKXmqGsoYbmaPpEzhkahFS0,2792
38
+ trinsic-api/models/verification.py,sha256=dycPLjee0SiOotdhe99WPl-vmHK5GQqdGYj423zu8hU,2976
39
+ trinsic-api/models/verification_fail_code.py,sha256=8xlO-qrqhfldXNfHtjQN0c93Gup2QlJ-k6kl0Uu6wOw,1048
40
+ Trinsic_Api-0.2.3.dist-info/METADATA,sha256=rtkXjnsGsQNL7lMIBWJHDbVCCCd0msBVlyWF8JLm2A4,564
41
+ Trinsic_Api-0.2.3.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
42
+ Trinsic_Api-0.2.3.dist-info/top_level.txt,sha256=r5ZuFiFLUMo1cKQH7uGZw2vSbwvoyPFlRQnntNYvm7Q,12
43
+ Trinsic_Api-0.2.3.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.37.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ trinsic-api
@@ -0,0 +1,62 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Connect API
7
+
8
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
9
+
10
+ The version of the OpenAPI document: v1
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
+
13
+ Do not edit the class manually.
14
+ """ # noqa: E501
15
+
16
+
17
+ __version__ = "0.2.3"
18
+
19
+ # import apis into sdk package
20
+ from trinsic-api.api.attachments_api import AttachmentsApi
21
+ from trinsic-api.api.network_api import NetworkApi
22
+ from trinsic-api.api.sessions_api import SessionsApi
23
+
24
+ # import ApiClient
25
+ from trinsic-api.api_response import ApiResponse
26
+ from trinsic-api.api_client import ApiClient
27
+ from trinsic-api.configuration import Configuration
28
+ from trinsic-api.exceptions import OpenApiException
29
+ from trinsic-api.exceptions import ApiTypeError
30
+ from trinsic-api.exceptions import ApiValueError
31
+ from trinsic-api.exceptions import ApiKeyError
32
+ from trinsic-api.exceptions import ApiAttributeError
33
+ from trinsic-api.exceptions import ApiException
34
+
35
+ # import models into sdk package
36
+ from trinsic-api.models.address import Address
37
+ from trinsic-api.models.attachments import Attachments
38
+ from trinsic-api.models.cancel_session_response import CancelSessionResponse
39
+ from trinsic-api.models.create_session_request import CreateSessionRequest
40
+ from trinsic-api.models.create_session_response import CreateSessionResponse
41
+ from trinsic-api.models.disclosed_fields import DisclosedFields
42
+ from trinsic-api.models.disclosed_fields_request import DisclosedFieldsRequest
43
+ from trinsic-api.models.document_data import DocumentData
44
+ from trinsic-api.models.exchange_attachment_access_key_request import ExchangeAttachmentAccessKeyRequest
45
+ from trinsic-api.models.exchange_results_key_request import ExchangeResultsKeyRequest
46
+ from trinsic-api.models.exchange_results_key_response import ExchangeResultsKeyResponse
47
+ from trinsic-api.models.failure_message import FailureMessage
48
+ from trinsic-api.models.get_session_response import GetSessionResponse
49
+ from trinsic-api.models.identity_data import IdentityData
50
+ from trinsic-api.models.identity_lookup_response import IdentityLookupResponse
51
+ from trinsic-api.models.list_providers_response import ListProvidersResponse
52
+ from trinsic-api.models.list_sessions_response import ListSessionsResponse
53
+ from trinsic-api.models.order_direction import OrderDirection
54
+ from trinsic-api.models.person_data import PersonData
55
+ from trinsic-api.models.provider_info import ProviderInfo
56
+ from trinsic-api.models.session import Session
57
+ from trinsic-api.models.session_fail_code import SessionFailCode
58
+ from trinsic-api.models.session_ordering import SessionOrdering
59
+ from trinsic-api.models.session_state import SessionState
60
+ from trinsic-api.models.validation_result import ValidationResult
61
+ from trinsic-api.models.verification import Verification
62
+ from trinsic-api.models.verification_fail_code import VerificationFailCode
@@ -0,0 +1,7 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from trinsic-api.api.attachments_api import AttachmentsApi
5
+ from trinsic-api.api.network_api import NetworkApi
6
+ from trinsic-api.api.sessions_api import SessionsApi
7
+
@@ -0,0 +1,320 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Connect API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from typing import Optional
20
+ from trinsic-api.models.exchange_attachment_access_key_request import ExchangeAttachmentAccessKeyRequest
21
+
22
+ from trinsic-api.api_client import ApiClient, RequestSerialized
23
+ from trinsic-api.api_response import ApiResponse
24
+ from trinsic-api.rest import RESTResponseType
25
+
26
+
27
+ class AttachmentsApi:
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None) -> None:
35
+ if api_client is None:
36
+ api_client = ApiClient.get_default()
37
+ self.api_client = api_client
38
+
39
+
40
+ @validate_call
41
+ def exchange_attachment_access_key(
42
+ self,
43
+ exchange_attachment_access_key_request: Optional[ExchangeAttachmentAccessKeyRequest] = None,
44
+ _request_timeout: Union[
45
+ None,
46
+ Annotated[StrictFloat, Field(gt=0)],
47
+ Tuple[
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Annotated[StrictFloat, Field(gt=0)]
50
+ ]
51
+ ] = None,
52
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
53
+ _content_type: Optional[StrictStr] = None,
54
+ _headers: Optional[Dict[StrictStr, Any]] = None,
55
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
56
+ ) -> None:
57
+ """Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
58
+
59
+
60
+ :param exchange_attachment_access_key_request:
61
+ :type exchange_attachment_access_key_request: ExchangeAttachmentAccessKeyRequest
62
+ :param _request_timeout: timeout setting for this request. If one
63
+ number provided, it will be total request
64
+ timeout. It can also be a pair (tuple) of
65
+ (connection, read) timeouts.
66
+ :type _request_timeout: int, tuple(int, int), optional
67
+ :param _request_auth: set to override the auth_settings for an a single
68
+ request; this effectively ignores the
69
+ authentication in the spec for a single request.
70
+ :type _request_auth: dict, optional
71
+ :param _content_type: force content-type for the request.
72
+ :type _content_type: str, Optional
73
+ :param _headers: set to override the headers for a single
74
+ request; this effectively ignores the headers
75
+ in the spec for a single request.
76
+ :type _headers: dict, optional
77
+ :param _host_index: set to override the host_index for a single
78
+ request; this effectively ignores the host_index
79
+ in the spec for a single request.
80
+ :type _host_index: int, optional
81
+ :return: Returns the result object.
82
+ """ # noqa: E501
83
+
84
+ _param = self._exchange_attachment_access_key_serialize(
85
+ exchange_attachment_access_key_request=exchange_attachment_access_key_request,
86
+ _request_auth=_request_auth,
87
+ _content_type=_content_type,
88
+ _headers=_headers,
89
+ _host_index=_host_index
90
+ )
91
+
92
+ _response_types_map: Dict[str, Optional[str]] = {
93
+ '200': None,
94
+ '400': "List[ValidationResult]",
95
+ '401': "FailureMessage",
96
+ '403': None,
97
+ '500': None,
98
+ }
99
+ response_data = self.api_client.call_api(
100
+ *_param,
101
+ _request_timeout=_request_timeout
102
+ )
103
+ response_data.read()
104
+ return self.api_client.response_deserialize(
105
+ response_data=response_data,
106
+ response_types_map=_response_types_map,
107
+ ).data
108
+
109
+
110
+ @validate_call
111
+ def exchange_attachment_access_key_with_http_info(
112
+ self,
113
+ exchange_attachment_access_key_request: Optional[ExchangeAttachmentAccessKeyRequest] = None,
114
+ _request_timeout: Union[
115
+ None,
116
+ Annotated[StrictFloat, Field(gt=0)],
117
+ Tuple[
118
+ Annotated[StrictFloat, Field(gt=0)],
119
+ Annotated[StrictFloat, Field(gt=0)]
120
+ ]
121
+ ] = None,
122
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
123
+ _content_type: Optional[StrictStr] = None,
124
+ _headers: Optional[Dict[StrictStr, Any]] = None,
125
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
126
+ ) -> ApiResponse[None]:
127
+ """Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
128
+
129
+
130
+ :param exchange_attachment_access_key_request:
131
+ :type exchange_attachment_access_key_request: ExchangeAttachmentAccessKeyRequest
132
+ :param _request_timeout: timeout setting for this request. If one
133
+ number provided, it will be total request
134
+ timeout. It can also be a pair (tuple) of
135
+ (connection, read) timeouts.
136
+ :type _request_timeout: int, tuple(int, int), optional
137
+ :param _request_auth: set to override the auth_settings for an a single
138
+ request; this effectively ignores the
139
+ authentication in the spec for a single request.
140
+ :type _request_auth: dict, optional
141
+ :param _content_type: force content-type for the request.
142
+ :type _content_type: str, Optional
143
+ :param _headers: set to override the headers for a single
144
+ request; this effectively ignores the headers
145
+ in the spec for a single request.
146
+ :type _headers: dict, optional
147
+ :param _host_index: set to override the host_index for a single
148
+ request; this effectively ignores the host_index
149
+ in the spec for a single request.
150
+ :type _host_index: int, optional
151
+ :return: Returns the result object.
152
+ """ # noqa: E501
153
+
154
+ _param = self._exchange_attachment_access_key_serialize(
155
+ exchange_attachment_access_key_request=exchange_attachment_access_key_request,
156
+ _request_auth=_request_auth,
157
+ _content_type=_content_type,
158
+ _headers=_headers,
159
+ _host_index=_host_index
160
+ )
161
+
162
+ _response_types_map: Dict[str, Optional[str]] = {
163
+ '200': None,
164
+ '400': "List[ValidationResult]",
165
+ '401': "FailureMessage",
166
+ '403': None,
167
+ '500': None,
168
+ }
169
+ response_data = self.api_client.call_api(
170
+ *_param,
171
+ _request_timeout=_request_timeout
172
+ )
173
+ response_data.read()
174
+ return self.api_client.response_deserialize(
175
+ response_data=response_data,
176
+ response_types_map=_response_types_map,
177
+ )
178
+
179
+
180
+ @validate_call
181
+ def exchange_attachment_access_key_without_preload_content(
182
+ self,
183
+ exchange_attachment_access_key_request: Optional[ExchangeAttachmentAccessKeyRequest] = None,
184
+ _request_timeout: Union[
185
+ None,
186
+ Annotated[StrictFloat, Field(gt=0)],
187
+ Tuple[
188
+ Annotated[StrictFloat, Field(gt=0)],
189
+ Annotated[StrictFloat, Field(gt=0)]
190
+ ]
191
+ ] = None,
192
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
193
+ _content_type: Optional[StrictStr] = None,
194
+ _headers: Optional[Dict[StrictStr, Any]] = None,
195
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
196
+ ) -> RESTResponseType:
197
+ """Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
198
+
199
+
200
+ :param exchange_attachment_access_key_request:
201
+ :type exchange_attachment_access_key_request: ExchangeAttachmentAccessKeyRequest
202
+ :param _request_timeout: timeout setting for this request. If one
203
+ number provided, it will be total request
204
+ timeout. It can also be a pair (tuple) of
205
+ (connection, read) timeouts.
206
+ :type _request_timeout: int, tuple(int, int), optional
207
+ :param _request_auth: set to override the auth_settings for an a single
208
+ request; this effectively ignores the
209
+ authentication in the spec for a single request.
210
+ :type _request_auth: dict, optional
211
+ :param _content_type: force content-type for the request.
212
+ :type _content_type: str, Optional
213
+ :param _headers: set to override the headers for a single
214
+ request; this effectively ignores the headers
215
+ in the spec for a single request.
216
+ :type _headers: dict, optional
217
+ :param _host_index: set to override the host_index for a single
218
+ request; this effectively ignores the host_index
219
+ in the spec for a single request.
220
+ :type _host_index: int, optional
221
+ :return: Returns the result object.
222
+ """ # noqa: E501
223
+
224
+ _param = self._exchange_attachment_access_key_serialize(
225
+ exchange_attachment_access_key_request=exchange_attachment_access_key_request,
226
+ _request_auth=_request_auth,
227
+ _content_type=_content_type,
228
+ _headers=_headers,
229
+ _host_index=_host_index
230
+ )
231
+
232
+ _response_types_map: Dict[str, Optional[str]] = {
233
+ '200': None,
234
+ '400': "List[ValidationResult]",
235
+ '401': "FailureMessage",
236
+ '403': None,
237
+ '500': None,
238
+ }
239
+ response_data = self.api_client.call_api(
240
+ *_param,
241
+ _request_timeout=_request_timeout
242
+ )
243
+ return response_data.response
244
+
245
+
246
+ def _exchange_attachment_access_key_serialize(
247
+ self,
248
+ exchange_attachment_access_key_request,
249
+ _request_auth,
250
+ _content_type,
251
+ _headers,
252
+ _host_index,
253
+ ) -> RequestSerialized:
254
+
255
+ _host = None
256
+
257
+ _collection_formats: Dict[str, str] = {
258
+ }
259
+
260
+ _path_params: Dict[str, str] = {}
261
+ _query_params: List[Tuple[str, str]] = []
262
+ _header_params: Dict[str, Optional[str]] = _headers or {}
263
+ _form_params: List[Tuple[str, str]] = []
264
+ _files: Dict[str, Union[str, bytes]] = {}
265
+ _body_params: Optional[bytes] = None
266
+
267
+ # process the path parameters
268
+ # process the query parameters
269
+ # process the header parameters
270
+ # process the form parameters
271
+ # process the body parameter
272
+ if exchange_attachment_access_key_request is not None:
273
+ _body_params = exchange_attachment_access_key_request
274
+
275
+
276
+ # set the HTTP header `Accept`
277
+ if 'Accept' not in _header_params:
278
+ _header_params['Accept'] = self.api_client.select_header_accept(
279
+ [
280
+ 'application/json'
281
+ ]
282
+ )
283
+
284
+ # set the HTTP header `Content-Type`
285
+ if _content_type:
286
+ _header_params['Content-Type'] = _content_type
287
+ else:
288
+ _default_content_type = (
289
+ self.api_client.select_header_content_type(
290
+ [
291
+ 'application/json',
292
+ 'text/json',
293
+ 'application/*+json'
294
+ ]
295
+ )
296
+ )
297
+ if _default_content_type is not None:
298
+ _header_params['Content-Type'] = _default_content_type
299
+
300
+ # authentication setting
301
+ _auth_settings: List[str] = [
302
+ 'Bearer'
303
+ ]
304
+
305
+ return self.api_client.param_serialize(
306
+ method='POST',
307
+ resource_path='/api/v1/attachments/exchange',
308
+ path_params=_path_params,
309
+ query_params=_query_params,
310
+ header_params=_header_params,
311
+ body=_body_params,
312
+ post_params=_form_params,
313
+ files=_files,
314
+ auth_settings=_auth_settings,
315
+ collection_formats=_collection_formats,
316
+ _host=_host,
317
+ _request_auth=_request_auth
318
+ )
319
+
320
+