Trinsic-Api 0.2.3__tar.gz
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.
- Trinsic-Api-0.2.3/PKG-INFO +15 -0
- Trinsic-Api-0.2.3/README.md +152 -0
- Trinsic-Api-0.2.3/Trinsic_Api.egg-info/PKG-INFO +15 -0
- Trinsic-Api-0.2.3/Trinsic_Api.egg-info/SOURCES.txt +78 -0
- Trinsic-Api-0.2.3/Trinsic_Api.egg-info/dependency_links.txt +1 -0
- Trinsic-Api-0.2.3/Trinsic_Api.egg-info/requires.txt +4 -0
- Trinsic-Api-0.2.3/Trinsic_Api.egg-info/top_level.txt +1 -0
- Trinsic-Api-0.2.3/pyproject.toml +71 -0
- Trinsic-Api-0.2.3/setup.cfg +7 -0
- Trinsic-Api-0.2.3/setup.py +49 -0
- Trinsic-Api-0.2.3/test/test_address.py +58 -0
- Trinsic-Api-0.2.3/test/test_attachments.py +54 -0
- Trinsic-Api-0.2.3/test/test_attachments_api.py +38 -0
- Trinsic-Api-0.2.3/test/test_cancel_session_response.py +66 -0
- Trinsic-Api-0.2.3/test/test_create_session_request.py +67 -0
- Trinsic-Api-0.2.3/test/test_create_session_response.py +67 -0
- Trinsic-Api-0.2.3/test/test_disclosed_fields.py +74 -0
- Trinsic-Api-0.2.3/test/test_disclosed_fields_request.py +62 -0
- Trinsic-Api-0.2.3/test/test_document_data.py +56 -0
- Trinsic-Api-0.2.3/test/test_exchange_attachment_access_key_request.py +52 -0
- Trinsic-Api-0.2.3/test/test_exchange_results_key_request.py +52 -0
- Trinsic-Api-0.2.3/test/test_exchange_results_key_response.py +71 -0
- Trinsic-Api-0.2.3/test/test_failure_message.py +52 -0
- Trinsic-Api-0.2.3/test/test_get_session_response.py +66 -0
- Trinsic-Api-0.2.3/test/test_identity_data.py +73 -0
- Trinsic-Api-0.2.3/test/test_identity_lookup_response.py +52 -0
- Trinsic-Api-0.2.3/test/test_list_providers_response.py +62 -0
- Trinsic-Api-0.2.3/test/test_list_sessions_response.py +74 -0
- Trinsic-Api-0.2.3/test/test_network_api.py +45 -0
- Trinsic-Api-0.2.3/test/test_order_direction.py +33 -0
- Trinsic-Api-0.2.3/test/test_person_data.py +67 -0
- Trinsic-Api-0.2.3/test/test_provider_info.py +56 -0
- Trinsic-Api-0.2.3/test/test_session.py +91 -0
- Trinsic-Api-0.2.3/test/test_session_fail_code.py +33 -0
- Trinsic-Api-0.2.3/test/test_session_ordering.py +33 -0
- Trinsic-Api-0.2.3/test/test_session_state.py +33 -0
- Trinsic-Api-0.2.3/test/test_sessions_api.py +73 -0
- Trinsic-Api-0.2.3/test/test_validation_result.py +57 -0
- Trinsic-Api-0.2.3/test/test_verification.py +52 -0
- Trinsic-Api-0.2.3/test/test_verification_fail_code.py +33 -0
- Trinsic-Api-0.2.3/trinsic-api/__init__.py +62 -0
- Trinsic-Api-0.2.3/trinsic-api/api/__init__.py +7 -0
- Trinsic-Api-0.2.3/trinsic-api/api/attachments_api.py +320 -0
- Trinsic-Api-0.2.3/trinsic-api/api/network_api.py +563 -0
- Trinsic-Api-0.2.3/trinsic-api/api/sessions_api.py +1761 -0
- Trinsic-Api-0.2.3/trinsic-api/api_client.py +781 -0
- Trinsic-Api-0.2.3/trinsic-api/api_response.py +21 -0
- Trinsic-Api-0.2.3/trinsic-api/configuration.py +458 -0
- Trinsic-Api-0.2.3/trinsic-api/exceptions.py +199 -0
- Trinsic-Api-0.2.3/trinsic-api/models/__init__.py +43 -0
- Trinsic-Api-0.2.3/trinsic-api/models/address.py +101 -0
- Trinsic-Api-0.2.3/trinsic-api/models/attachments.py +93 -0
- Trinsic-Api-0.2.3/trinsic-api/models/cancel_session_response.py +91 -0
- Trinsic-Api-0.2.3/trinsic-api/models/create_session_request.py +95 -0
- Trinsic-Api-0.2.3/trinsic-api/models/create_session_response.py +93 -0
- Trinsic-Api-0.2.3/trinsic-api/models/disclosed_fields.py +109 -0
- Trinsic-Api-0.2.3/trinsic-api/models/disclosed_fields_request.py +109 -0
- Trinsic-Api-0.2.3/trinsic-api/models/document_data.py +97 -0
- Trinsic-Api-0.2.3/trinsic-api/models/exchange_attachment_access_key_request.py +88 -0
- Trinsic-Api-0.2.3/trinsic-api/models/exchange_results_key_request.py +87 -0
- Trinsic-Api-0.2.3/trinsic-api/models/exchange_results_key_response.py +97 -0
- Trinsic-Api-0.2.3/trinsic-api/models/failure_message.py +87 -0
- Trinsic-Api-0.2.3/trinsic-api/models/get_session_response.py +91 -0
- Trinsic-Api-0.2.3/trinsic-api/models/identity_data.py +105 -0
- Trinsic-Api-0.2.3/trinsic-api/models/identity_lookup_response.py +87 -0
- Trinsic-Api-0.2.3/trinsic-api/models/list_providers_response.py +95 -0
- Trinsic-Api-0.2.3/trinsic-api/models/list_sessions_response.py +99 -0
- Trinsic-Api-0.2.3/trinsic-api/models/order_direction.py +37 -0
- Trinsic-Api-0.2.3/trinsic-api/models/person_data.py +107 -0
- Trinsic-Api-0.2.3/trinsic-api/models/provider_info.py +91 -0
- Trinsic-Api-0.2.3/trinsic-api/models/session.py +109 -0
- Trinsic-Api-0.2.3/trinsic-api/models/session_fail_code.py +42 -0
- Trinsic-Api-0.2.3/trinsic-api/models/session_ordering.py +38 -0
- Trinsic-Api-0.2.3/trinsic-api/models/session_state.py +41 -0
- Trinsic-Api-0.2.3/trinsic-api/models/validation_result.py +91 -0
- Trinsic-Api-0.2.3/trinsic-api/models/verification.py +90 -0
- Trinsic-Api-0.2.3/trinsic-api/models/verification_fail_code.py +40 -0
- Trinsic-Api-0.2.3/trinsic-api/py.typed +0 -0
- Trinsic-Api-0.2.3/trinsic-api/rest.py +257 -0
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
|
|
13
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# Trinsic-Api
|
|
2
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
3
|
+
|
|
4
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
|
+
|
|
6
|
+
- API version: v1
|
|
7
|
+
- Package version: 0.2.3
|
|
8
|
+
- Generator version: 7.7.0
|
|
9
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
|
+
|
|
11
|
+
## Requirements.
|
|
12
|
+
|
|
13
|
+
Python 3.7+
|
|
14
|
+
|
|
15
|
+
## Installation & Usage
|
|
16
|
+
### pip install
|
|
17
|
+
|
|
18
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
22
|
+
```
|
|
23
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
24
|
+
|
|
25
|
+
Then import the package:
|
|
26
|
+
```python
|
|
27
|
+
import trinsic-api
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Setuptools
|
|
31
|
+
|
|
32
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
python setup.py install --user
|
|
36
|
+
```
|
|
37
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
38
|
+
|
|
39
|
+
Then import the package:
|
|
40
|
+
```python
|
|
41
|
+
import trinsic-api
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Tests
|
|
45
|
+
|
|
46
|
+
Execute `pytest` to run the tests.
|
|
47
|
+
|
|
48
|
+
## Getting Started
|
|
49
|
+
|
|
50
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
|
|
54
|
+
import trinsic-api
|
|
55
|
+
from trinsic-api.rest import ApiException
|
|
56
|
+
from pprint import pprint
|
|
57
|
+
|
|
58
|
+
# Defining the host is optional and defaults to https://api.trinsic.id
|
|
59
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
60
|
+
configuration = trinsic-api.Configuration(
|
|
61
|
+
host = "https://api.trinsic.id"
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# The client must configure the authentication and authorization parameters
|
|
65
|
+
# in accordance with the API server security policy.
|
|
66
|
+
# Examples for each auth method are provided below, use the example that
|
|
67
|
+
# satisfies your auth use case.
|
|
68
|
+
|
|
69
|
+
# Configure Bearer authorization: Bearer
|
|
70
|
+
configuration = trinsic-api.Configuration(
|
|
71
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
# Enter a context with an instance of the API client
|
|
76
|
+
with trinsic-api.ApiClient(configuration) as api_client:
|
|
77
|
+
# Create an instance of the API class
|
|
78
|
+
api_instance = trinsic-api.AttachmentsApi(api_client)
|
|
79
|
+
exchange_attachment_access_key_request = trinsic-api.ExchangeAttachmentAccessKeyRequest() # ExchangeAttachmentAccessKeyRequest | (optional)
|
|
80
|
+
|
|
81
|
+
try:
|
|
82
|
+
# 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.
|
|
83
|
+
api_instance.exchange_attachment_access_key(exchange_attachment_access_key_request=exchange_attachment_access_key_request)
|
|
84
|
+
except ApiException as e:
|
|
85
|
+
print("Exception when calling AttachmentsApi->exchange_attachment_access_key: %s\n" % e)
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Documentation for API Endpoints
|
|
90
|
+
|
|
91
|
+
All URIs are relative to *https://api.trinsic.id*
|
|
92
|
+
|
|
93
|
+
Class | Method | HTTP request | Description
|
|
94
|
+
------------ | ------------- | ------------- | -------------
|
|
95
|
+
*AttachmentsApi* | [**exchange_attachment_access_key**](docs/AttachmentsApi.md#exchange_attachment_access_key) | **POST** /api/v1/attachments/exchange | 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.
|
|
96
|
+
*NetworkApi* | [**identity_lookup**](docs/NetworkApi.md#identity_lookup) | **GET** /api/v1/network/identities/{phoneNumber} | Query the availability of an identity in the Trinsic Network by phone number
|
|
97
|
+
*NetworkApi* | [**list_providers**](docs/NetworkApi.md#list_providers) | **GET** /api/v1/network/providers | List all identity providers available for use
|
|
98
|
+
*SessionsApi* | [**cancel_session**](docs/SessionsApi.md#cancel_session) | **POST** /api/v1/sessions/{sessionId}/cancel | Cancel a Session by its ID
|
|
99
|
+
*SessionsApi* | [**create_session**](docs/SessionsApi.md#create_session) | **POST** /api/v1/sessions | Create a Session to verify a user's identity
|
|
100
|
+
*SessionsApi* | [**exchange_results_key**](docs/SessionsApi.md#exchange_results_key) | **POST** /api/v1/sessions/{sessionId}/results/exchange | Exchange a Results Access Key for Identity Data
|
|
101
|
+
*SessionsApi* | [**get_session**](docs/SessionsApi.md#get_session) | **GET** /api/v1/sessions/{sessionId} | Get a Session by its ID
|
|
102
|
+
*SessionsApi* | [**list_sessions**](docs/SessionsApi.md#list_sessions) | **GET** /api/v1/sessions | List Sessions created by your account
|
|
103
|
+
*SessionsApi* | [**redact_session**](docs/SessionsApi.md#redact_session) | **POST** /api/v1/sessions/{sessionId}/redact | Redact a Session, removing all identity data from Trinsic's servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## Documentation For Models
|
|
107
|
+
|
|
108
|
+
- [Address](docs/Address.md)
|
|
109
|
+
- [Attachments](docs/Attachments.md)
|
|
110
|
+
- [CancelSessionResponse](docs/CancelSessionResponse.md)
|
|
111
|
+
- [CreateSessionRequest](docs/CreateSessionRequest.md)
|
|
112
|
+
- [CreateSessionResponse](docs/CreateSessionResponse.md)
|
|
113
|
+
- [DisclosedFields](docs/DisclosedFields.md)
|
|
114
|
+
- [DisclosedFieldsRequest](docs/DisclosedFieldsRequest.md)
|
|
115
|
+
- [DocumentData](docs/DocumentData.md)
|
|
116
|
+
- [ExchangeAttachmentAccessKeyRequest](docs/ExchangeAttachmentAccessKeyRequest.md)
|
|
117
|
+
- [ExchangeResultsKeyRequest](docs/ExchangeResultsKeyRequest.md)
|
|
118
|
+
- [ExchangeResultsKeyResponse](docs/ExchangeResultsKeyResponse.md)
|
|
119
|
+
- [FailureMessage](docs/FailureMessage.md)
|
|
120
|
+
- [GetSessionResponse](docs/GetSessionResponse.md)
|
|
121
|
+
- [IdentityData](docs/IdentityData.md)
|
|
122
|
+
- [IdentityLookupResponse](docs/IdentityLookupResponse.md)
|
|
123
|
+
- [ListProvidersResponse](docs/ListProvidersResponse.md)
|
|
124
|
+
- [ListSessionsResponse](docs/ListSessionsResponse.md)
|
|
125
|
+
- [OrderDirection](docs/OrderDirection.md)
|
|
126
|
+
- [PersonData](docs/PersonData.md)
|
|
127
|
+
- [ProviderInfo](docs/ProviderInfo.md)
|
|
128
|
+
- [Session](docs/Session.md)
|
|
129
|
+
- [SessionFailCode](docs/SessionFailCode.md)
|
|
130
|
+
- [SessionOrdering](docs/SessionOrdering.md)
|
|
131
|
+
- [SessionState](docs/SessionState.md)
|
|
132
|
+
- [ValidationResult](docs/ValidationResult.md)
|
|
133
|
+
- [Verification](docs/Verification.md)
|
|
134
|
+
- [VerificationFailCode](docs/VerificationFailCode.md)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
<a id="documentation-for-authorization"></a>
|
|
138
|
+
## Documentation For Authorization
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
Authentication schemes defined for the API:
|
|
142
|
+
<a id="Bearer"></a>
|
|
143
|
+
### Bearer
|
|
144
|
+
|
|
145
|
+
- **Type**: Bearer authentication
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## Author
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
|
|
13
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
setup.cfg
|
|
4
|
+
setup.py
|
|
5
|
+
Trinsic_Api.egg-info/PKG-INFO
|
|
6
|
+
Trinsic_Api.egg-info/SOURCES.txt
|
|
7
|
+
Trinsic_Api.egg-info/dependency_links.txt
|
|
8
|
+
Trinsic_Api.egg-info/requires.txt
|
|
9
|
+
Trinsic_Api.egg-info/top_level.txt
|
|
10
|
+
test/test_address.py
|
|
11
|
+
test/test_attachments.py
|
|
12
|
+
test/test_attachments_api.py
|
|
13
|
+
test/test_cancel_session_response.py
|
|
14
|
+
test/test_create_session_request.py
|
|
15
|
+
test/test_create_session_response.py
|
|
16
|
+
test/test_disclosed_fields.py
|
|
17
|
+
test/test_disclosed_fields_request.py
|
|
18
|
+
test/test_document_data.py
|
|
19
|
+
test/test_exchange_attachment_access_key_request.py
|
|
20
|
+
test/test_exchange_results_key_request.py
|
|
21
|
+
test/test_exchange_results_key_response.py
|
|
22
|
+
test/test_failure_message.py
|
|
23
|
+
test/test_get_session_response.py
|
|
24
|
+
test/test_identity_data.py
|
|
25
|
+
test/test_identity_lookup_response.py
|
|
26
|
+
test/test_list_providers_response.py
|
|
27
|
+
test/test_list_sessions_response.py
|
|
28
|
+
test/test_network_api.py
|
|
29
|
+
test/test_order_direction.py
|
|
30
|
+
test/test_person_data.py
|
|
31
|
+
test/test_provider_info.py
|
|
32
|
+
test/test_session.py
|
|
33
|
+
test/test_session_fail_code.py
|
|
34
|
+
test/test_session_ordering.py
|
|
35
|
+
test/test_session_state.py
|
|
36
|
+
test/test_sessions_api.py
|
|
37
|
+
test/test_validation_result.py
|
|
38
|
+
test/test_verification.py
|
|
39
|
+
test/test_verification_fail_code.py
|
|
40
|
+
trinsic-api/__init__.py
|
|
41
|
+
trinsic-api/api_client.py
|
|
42
|
+
trinsic-api/api_response.py
|
|
43
|
+
trinsic-api/configuration.py
|
|
44
|
+
trinsic-api/exceptions.py
|
|
45
|
+
trinsic-api/py.typed
|
|
46
|
+
trinsic-api/rest.py
|
|
47
|
+
trinsic-api/api/__init__.py
|
|
48
|
+
trinsic-api/api/attachments_api.py
|
|
49
|
+
trinsic-api/api/network_api.py
|
|
50
|
+
trinsic-api/api/sessions_api.py
|
|
51
|
+
trinsic-api/models/__init__.py
|
|
52
|
+
trinsic-api/models/address.py
|
|
53
|
+
trinsic-api/models/attachments.py
|
|
54
|
+
trinsic-api/models/cancel_session_response.py
|
|
55
|
+
trinsic-api/models/create_session_request.py
|
|
56
|
+
trinsic-api/models/create_session_response.py
|
|
57
|
+
trinsic-api/models/disclosed_fields.py
|
|
58
|
+
trinsic-api/models/disclosed_fields_request.py
|
|
59
|
+
trinsic-api/models/document_data.py
|
|
60
|
+
trinsic-api/models/exchange_attachment_access_key_request.py
|
|
61
|
+
trinsic-api/models/exchange_results_key_request.py
|
|
62
|
+
trinsic-api/models/exchange_results_key_response.py
|
|
63
|
+
trinsic-api/models/failure_message.py
|
|
64
|
+
trinsic-api/models/get_session_response.py
|
|
65
|
+
trinsic-api/models/identity_data.py
|
|
66
|
+
trinsic-api/models/identity_lookup_response.py
|
|
67
|
+
trinsic-api/models/list_providers_response.py
|
|
68
|
+
trinsic-api/models/list_sessions_response.py
|
|
69
|
+
trinsic-api/models/order_direction.py
|
|
70
|
+
trinsic-api/models/person_data.py
|
|
71
|
+
trinsic-api/models/provider_info.py
|
|
72
|
+
trinsic-api/models/session.py
|
|
73
|
+
trinsic-api/models/session_fail_code.py
|
|
74
|
+
trinsic-api/models/session_ordering.py
|
|
75
|
+
trinsic-api/models/session_state.py
|
|
76
|
+
trinsic-api/models/validation_result.py
|
|
77
|
+
trinsic-api/models/verification.py
|
|
78
|
+
trinsic-api/models/verification_fail_code.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
trinsic-api
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[tool.poetry]
|
|
2
|
+
name = "trinsic-api"
|
|
3
|
+
version = "0.2.3"
|
|
4
|
+
description = "Connect API"
|
|
5
|
+
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
|
|
6
|
+
license = "NoLicense"
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
9
|
+
keywords = ["OpenAPI", "OpenAPI-Generator", "Connect API"]
|
|
10
|
+
include = ["trinsic-api/py.typed"]
|
|
11
|
+
|
|
12
|
+
[tool.poetry.dependencies]
|
|
13
|
+
python = "^3.7"
|
|
14
|
+
|
|
15
|
+
urllib3 = ">= 1.25.3"
|
|
16
|
+
python-dateutil = ">=2.8.2"
|
|
17
|
+
pydantic = ">=2"
|
|
18
|
+
typing-extensions = ">=4.7.1"
|
|
19
|
+
|
|
20
|
+
[tool.poetry.dev-dependencies]
|
|
21
|
+
pytest = ">=7.2.1"
|
|
22
|
+
tox = ">=3.9.0"
|
|
23
|
+
flake8 = ">=4.0.0"
|
|
24
|
+
types-python-dateutil = ">=2.8.19.14"
|
|
25
|
+
mypy = "1.4.1"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
[build-system]
|
|
29
|
+
requires = ["setuptools"]
|
|
30
|
+
build-backend = "setuptools.build_meta"
|
|
31
|
+
|
|
32
|
+
[tool.pylint.'MESSAGES CONTROL']
|
|
33
|
+
extension-pkg-whitelist = "pydantic"
|
|
34
|
+
|
|
35
|
+
[tool.mypy]
|
|
36
|
+
files = [
|
|
37
|
+
"trinsic-api",
|
|
38
|
+
#"test", # auto-generated tests
|
|
39
|
+
"tests", # hand-written tests
|
|
40
|
+
]
|
|
41
|
+
# TODO: enable "strict" once all these individual checks are passing
|
|
42
|
+
# strict = true
|
|
43
|
+
|
|
44
|
+
# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
|
|
45
|
+
warn_unused_configs = true
|
|
46
|
+
warn_redundant_casts = true
|
|
47
|
+
warn_unused_ignores = true
|
|
48
|
+
|
|
49
|
+
## Getting these passing should be easy
|
|
50
|
+
strict_equality = true
|
|
51
|
+
strict_concatenate = true
|
|
52
|
+
|
|
53
|
+
## Strongly recommend enabling this one as soon as you can
|
|
54
|
+
check_untyped_defs = true
|
|
55
|
+
|
|
56
|
+
## These shouldn't be too much additional work, but may be tricky to
|
|
57
|
+
## get passing if you use a lot of untyped libraries
|
|
58
|
+
disallow_subclassing_any = true
|
|
59
|
+
disallow_untyped_decorators = true
|
|
60
|
+
disallow_any_generics = true
|
|
61
|
+
|
|
62
|
+
### These next few are various gradations of forcing use of type annotations
|
|
63
|
+
#disallow_untyped_calls = true
|
|
64
|
+
#disallow_incomplete_defs = true
|
|
65
|
+
#disallow_untyped_defs = true
|
|
66
|
+
#
|
|
67
|
+
### This one isn't too hard to get passing, but return on investment is lower
|
|
68
|
+
#no_implicit_reexport = true
|
|
69
|
+
#
|
|
70
|
+
### This one can be tricky to get passing if you use a lot of untyped libraries
|
|
71
|
+
#warn_return_any = true
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
|
|
15
|
+
from setuptools import setup, find_packages # noqa: H301
|
|
16
|
+
|
|
17
|
+
# To install the library, run the following
|
|
18
|
+
#
|
|
19
|
+
# python setup.py install
|
|
20
|
+
#
|
|
21
|
+
# prerequisite: setuptools
|
|
22
|
+
# http://pypi.python.org/pypi/setuptools
|
|
23
|
+
NAME = "Trinsic-Api"
|
|
24
|
+
VERSION = "0.2.3"
|
|
25
|
+
PYTHON_REQUIRES = ">=3.7"
|
|
26
|
+
REQUIRES = [
|
|
27
|
+
"urllib3 >= 1.25.3, < 2.1.0",
|
|
28
|
+
"python-dateutil",
|
|
29
|
+
"pydantic >= 2",
|
|
30
|
+
"typing-extensions >= 4.7.1",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
setup(
|
|
34
|
+
name=NAME,
|
|
35
|
+
version=VERSION,
|
|
36
|
+
description="Connect API",
|
|
37
|
+
author="OpenAPI Generator community",
|
|
38
|
+
author_email="team@openapitools.org",
|
|
39
|
+
url="https://trinsic.id",
|
|
40
|
+
keywords=["OpenAPI", "OpenAPI-Generator", "Connect API"],
|
|
41
|
+
install_requires=REQUIRES,
|
|
42
|
+
packages=find_packages(exclude=["test", "tests"]),
|
|
43
|
+
include_package_data=True,
|
|
44
|
+
long_description_content_type='text/markdown',
|
|
45
|
+
long_description="""\
|
|
46
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
47
|
+
""", # noqa: E501
|
|
48
|
+
package_data={"trinsic-api": ["py.typed"]},
|
|
49
|
+
)
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from trinsic-api.models.address import Address
|
|
18
|
+
|
|
19
|
+
class TestAddress(unittest.TestCase):
|
|
20
|
+
"""Address unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> Address:
|
|
29
|
+
"""Test Address
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `Address`
|
|
34
|
+
"""
|
|
35
|
+
model = Address()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return Address(
|
|
38
|
+
line1 = '',
|
|
39
|
+
line2 = '',
|
|
40
|
+
line3 = '',
|
|
41
|
+
city = '',
|
|
42
|
+
state = '',
|
|
43
|
+
postal_code = '',
|
|
44
|
+
country = '',
|
|
45
|
+
full_address = ''
|
|
46
|
+
)
|
|
47
|
+
else:
|
|
48
|
+
return Address(
|
|
49
|
+
)
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
def testAddress(self):
|
|
53
|
+
"""Test Address"""
|
|
54
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
55
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
56
|
+
|
|
57
|
+
if __name__ == '__main__':
|
|
58
|
+
unittest.main()
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from trinsic-api.models.attachments import Attachments
|
|
18
|
+
|
|
19
|
+
class TestAttachments(unittest.TestCase):
|
|
20
|
+
"""Attachments unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> Attachments:
|
|
29
|
+
"""Test Attachments
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `Attachments`
|
|
34
|
+
"""
|
|
35
|
+
model = Attachments()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return Attachments(
|
|
38
|
+
selfie = '',
|
|
39
|
+
document_front = '',
|
|
40
|
+
document_back = '',
|
|
41
|
+
document_portrait = ''
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return Attachments(
|
|
45
|
+
)
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def testAttachments(self):
|
|
49
|
+
"""Test Attachments"""
|
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
52
|
+
|
|
53
|
+
if __name__ == '__main__':
|
|
54
|
+
unittest.main()
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from trinsic-api.api.attachments_api import AttachmentsApi
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class TestAttachmentsApi(unittest.TestCase):
|
|
21
|
+
"""AttachmentsApi unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self) -> None:
|
|
24
|
+
self.api = AttachmentsApi()
|
|
25
|
+
|
|
26
|
+
def tearDown(self) -> None:
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def test_exchange_attachment_access_key(self) -> None:
|
|
30
|
+
"""Test case for exchange_attachment_access_key
|
|
31
|
+
|
|
32
|
+
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.
|
|
33
|
+
"""
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
if __name__ == '__main__':
|
|
38
|
+
unittest.main()
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from trinsic-api.models.cancel_session_response import CancelSessionResponse
|
|
18
|
+
|
|
19
|
+
class TestCancelSessionResponse(unittest.TestCase):
|
|
20
|
+
"""CancelSessionResponse unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> CancelSessionResponse:
|
|
29
|
+
"""Test CancelSessionResponse
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `CancelSessionResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = CancelSessionResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return CancelSessionResponse(
|
|
38
|
+
session = trinsic-api.models.session.Session(
|
|
39
|
+
id = '678c1ff6-2178-49e7-81d2-548afb6f85ec',
|
|
40
|
+
state = null,
|
|
41
|
+
fail_code = null,
|
|
42
|
+
verification = null,
|
|
43
|
+
disclosed_fields = null,
|
|
44
|
+
created = 1722526411,
|
|
45
|
+
updated = 1722526722, )
|
|
46
|
+
)
|
|
47
|
+
else:
|
|
48
|
+
return CancelSessionResponse(
|
|
49
|
+
session = trinsic-api.models.session.Session(
|
|
50
|
+
id = '678c1ff6-2178-49e7-81d2-548afb6f85ec',
|
|
51
|
+
state = null,
|
|
52
|
+
fail_code = null,
|
|
53
|
+
verification = null,
|
|
54
|
+
disclosed_fields = null,
|
|
55
|
+
created = 1722526411,
|
|
56
|
+
updated = 1722526722, ),
|
|
57
|
+
)
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
def testCancelSessionResponse(self):
|
|
61
|
+
"""Test CancelSessionResponse"""
|
|
62
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
63
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
64
|
+
|
|
65
|
+
if __name__ == '__main__':
|
|
66
|
+
unittest.main()
|