affinidi_tdk_wallets_client 1.19.0__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.

Potentially problematic release.


This version of affinidi_tdk_wallets_client might be problematic. Click here for more details.

Files changed (42) hide show
  1. affinidi_tdk_wallets_client-1.19.0/PKG-INFO +188 -0
  2. affinidi_tdk_wallets_client-1.19.0/README.md +162 -0
  3. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/__init__.py +63 -0
  4. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/api/__init__.py +7 -0
  5. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/api/default_api.py +202 -0
  6. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/api/revocation_api.py +351 -0
  7. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/api/wallet_api.py +1094 -0
  8. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/api_client.py +760 -0
  9. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/api_response.py +25 -0
  10. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/configuration.py +464 -0
  11. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/exceptions.py +167 -0
  12. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/__init__.py +44 -0
  13. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/create_wallet_input.py +142 -0
  14. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/create_wallet_response.py +76 -0
  15. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/did_key_input_params.py +86 -0
  16. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/did_web_input_params.py +92 -0
  17. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/entity_not_found_error.py +109 -0
  18. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/get_revocation_credential_status_ok.py +72 -0
  19. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/get_revocation_list_credential_result_dto.py +72 -0
  20. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/invalid_did_parameter_error.py +109 -0
  21. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/invalid_parameter_error.py +109 -0
  22. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/key_not_found_error.py +109 -0
  23. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/not_found_error.py +109 -0
  24. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/operation_forbidden_error.py +109 -0
  25. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/revoke_credential_input.py +79 -0
  26. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/service_error_response.py +86 -0
  27. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/service_error_response_details_inner.py +78 -0
  28. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/sign_credential400_response.py +142 -0
  29. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/sign_credential_input_dto.py +92 -0
  30. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/sign_credential_input_dto_unsigned_credential_params.py +89 -0
  31. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/sign_credential_result_dto.py +76 -0
  32. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/sign_credential_result_dto_signed_credential.py +148 -0
  33. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/sign_jwt_token.py +74 -0
  34. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/sign_jwt_token_ok.py +72 -0
  35. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/signing_failed_error.py +109 -0
  36. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/update_wallet_input.py +74 -0
  37. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/wallet_dto.py +96 -0
  38. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/wallet_dto_keys_inner.py +74 -0
  39. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/models/wallets_list_dto.py +80 -0
  40. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/py.typed +0 -0
  41. affinidi_tdk_wallets_client-1.19.0/affinidi_tdk_wallets_client/rest.py +328 -0
  42. affinidi_tdk_wallets_client-1.19.0/pyproject.toml +30 -0
@@ -0,0 +1,188 @@
1
+ Metadata-Version: 2.1
2
+ Name: affinidi_tdk_wallets_client
3
+ Version: 1.19.0
4
+ Summary: CloudWalletEssentials
5
+ Home-page: https://github.com/GIT_USER_ID/GIT_REPO_ID
6
+ License: Apache-2.0
7
+ Keywords: OpenAPI,OpenAPI-Generator,CloudWalletEssentials
8
+ Author: Affinidi
9
+ Author-email: info@affinidi.com
10
+ Requires-Python: >=3.7,<4.0
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.7
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Requires-Dist: aenum (>=3.1.11)
20
+ Requires-Dist: pydantic (>=1.10.5,<2.0.0)
21
+ Requires-Dist: python-dateutil (>=2.8.2)
22
+ Requires-Dist: urllib3 (>=1.25.3)
23
+ Project-URL: Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
24
+ Description-Content-Type: text/markdown
25
+
26
+ # affinidi_tdk_wallets_client
27
+
28
+ Cloud Wallet For Enterprise Structure
29
+
30
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
31
+
32
+ - API version: 1.0.0
33
+ - Package version: 1.0.0
34
+ - Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
35
+ For more information, please visit [https://github.com/affinidi/affinidi-tdk](https://github.com/affinidi/affinidi-tdk)
36
+
37
+ ## Requirements.
38
+
39
+ Python 3.7+
40
+
41
+ ## Installation & Usage
42
+
43
+ ### pip install
44
+
45
+ If the python package is hosted on a repository, you can install directly using:
46
+
47
+ ```sh
48
+ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
49
+ ```
50
+
51
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
52
+
53
+ Then import the package:
54
+
55
+ ```python
56
+ import affinidi_tdk_wallets_client
57
+ ```
58
+
59
+ ### Setuptools
60
+
61
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
62
+
63
+ ```sh
64
+ python setup.py install --user
65
+ ```
66
+
67
+ (or `sudo python setup.py install` to install the package for all users)
68
+
69
+ Then import the package:
70
+
71
+ ```python
72
+ import affinidi_tdk_wallets_client
73
+ ```
74
+
75
+ ### Tests
76
+
77
+ Execute `pytest` to run the tests.
78
+
79
+ ## Getting Started
80
+
81
+ Please follow the [installation procedure](#installation--usage) and then run the following:
82
+
83
+ ```python
84
+
85
+ import time
86
+ import affinidi_tdk_wallets_client
87
+ from affinidi_tdk_wallets_client.rest import ApiException
88
+ from pprint import pprint
89
+
90
+ # Defining the host is optional and defaults to https://apse1.api.affinidi.io/cwe
91
+ # See configuration.py for a list of all supported configuration parameters.
92
+ configuration = affinidi_tdk_wallets_client.Configuration(
93
+ host = "https://apse1.api.affinidi.io/cwe"
94
+ )
95
+
96
+ # The client must configure the authentication and authorization parameters
97
+ # in accordance with the API server security policy.
98
+ # Examples for each auth method are provided below, use the example that
99
+ # satisfies your auth use case.
100
+
101
+ # Configure API key authorization: ProjectTokenAuth
102
+ configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"]
103
+
104
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
105
+ # configuration.api_key_prefix['ProjectTokenAuth'] = 'Bearer'
106
+
107
+
108
+ # Enter a context with an instance of the API client
109
+ with affinidi_tdk_wallets_client.ApiClient(configuration) as api_client:
110
+ # Create an instance of the API class
111
+ api_instance = affinidi_tdk_wallets_client.RevocationApi(api_client)
112
+ list_id = 'list_id_example' # str |
113
+ wallet_id = 'wallet_id_example' # str | id of the wallet
114
+
115
+ try:
116
+ # Return revocation list credential.
117
+ api_response = api_instance.get_revocation_list_credential(list_id, wallet_id)
118
+ print("The response of RevocationApi->get_revocation_list_credential:\n")
119
+ pprint(api_response)
120
+ except ApiException as e:
121
+ print("Exception when calling RevocationApi->get_revocation_list_credential: %s\n" % e)
122
+
123
+ ```
124
+
125
+ ## Documentation for API Endpoints
126
+
127
+ All URIs are relative to *https://apse1.api.affinidi.io/cwe*
128
+
129
+ | Class | Method | HTTP request | Description |
130
+ | --------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------- |
131
+ | _RevocationApi_ | [**get_revocation_list_credential**](docs/RevocationApi.md#get_revocation_list_credential) | **GET** /v1/wallets/{walletId}/revocation-list/{listId} | Return revocation list credential. |
132
+ | _RevocationApi_ | [**revoke_credential**](docs/RevocationApi.md#revoke_credential) | **POST** /v1/wallets/{walletId}/revoke | Revoke Credential. |
133
+ | _DefaultApi_ | [**get_revocation_credential_status**](docs/DefaultApi.md#get_revocation_credential_status) | **GET** /v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId} |
134
+ | _WalletApi_ | [**create_wallet**](docs/WalletApi.md#create_wallet) | **POST** /v1/wallets |
135
+ | _WalletApi_ | [**delete_wallet**](docs/WalletApi.md#delete_wallet) | **DELETE** /v1/wallets/{walletId} |
136
+ | _WalletApi_ | [**get_wallet**](docs/WalletApi.md#get_wallet) | **GET** /v1/wallets/{walletId} |
137
+ | _WalletApi_ | [**list_wallets**](docs/WalletApi.md#list_wallets) | **GET** /v1/wallets |
138
+ | _WalletApi_ | [**sign_credential**](docs/WalletApi.md#sign_credential) | **POST** /v1/wallets/{walletId}/sign-credential |
139
+ | _WalletApi_ | [**sign_jwt_token**](docs/WalletApi.md#sign_jwt_token) | **POST** /v1/wallets/{walletId}/sign-jwt |
140
+ | _WalletApi_ | [**update_wallet**](docs/WalletApi.md#update_wallet) | **PATCH** /v1/wallets/{walletId} |
141
+
142
+ ## Documentation For Models
143
+
144
+ - [CreateWalletInput](docs/CreateWalletInput.md)
145
+ - [CreateWalletResponse](docs/CreateWalletResponse.md)
146
+ - [DidKeyInputParams](docs/DidKeyInputParams.md)
147
+ - [DidWebInputParams](docs/DidWebInputParams.md)
148
+ - [EntityNotFoundError](docs/EntityNotFoundError.md)
149
+ - [GetRevocationCredentialStatusOK](docs/GetRevocationCredentialStatusOK.md)
150
+ - [GetRevocationListCredentialResultDto](docs/GetRevocationListCredentialResultDto.md)
151
+ - [InvalidDidParameterError](docs/InvalidDidParameterError.md)
152
+ - [InvalidParameterError](docs/InvalidParameterError.md)
153
+ - [KeyNotFoundError](docs/KeyNotFoundError.md)
154
+ - [NotFoundError](docs/NotFoundError.md)
155
+ - [OperationForbiddenError](docs/OperationForbiddenError.md)
156
+ - [RevokeCredentialInput](docs/RevokeCredentialInput.md)
157
+ - [ServiceErrorResponse](docs/ServiceErrorResponse.md)
158
+ - [ServiceErrorResponseDetailsInner](docs/ServiceErrorResponseDetailsInner.md)
159
+ - [SignCredential400Response](docs/SignCredential400Response.md)
160
+ - [SignCredentialInputDto](docs/SignCredentialInputDto.md)
161
+ - [SignCredentialInputDtoUnsignedCredentialParams](docs/SignCredentialInputDtoUnsignedCredentialParams.md)
162
+ - [SignCredentialResultDto](docs/SignCredentialResultDto.md)
163
+ - [SignCredentialResultDtoSignedCredential](docs/SignCredentialResultDtoSignedCredential.md)
164
+ - [SignJwtToken](docs/SignJwtToken.md)
165
+ - [SignJwtTokenOK](docs/SignJwtTokenOK.md)
166
+ - [SigningFailedError](docs/SigningFailedError.md)
167
+ - [UpdateWalletInput](docs/UpdateWalletInput.md)
168
+ - [WalletDto](docs/WalletDto.md)
169
+ - [WalletDtoKeysInner](docs/WalletDtoKeysInner.md)
170
+ - [WalletsListDto](docs/WalletsListDto.md)
171
+
172
+ <a id="documentation-for-authorization"></a>
173
+
174
+ ## Documentation For Authorization
175
+
176
+ Authentication schemes defined for the API:
177
+ <a id="ProjectTokenAuth"></a>
178
+
179
+ ### ProjectTokenAuth
180
+
181
+ - **Type**: API key
182
+ - **API key parameter name**: authorization
183
+ - **Location**: HTTP header
184
+
185
+ ## Author
186
+
187
+ info@affinidi.com
188
+
@@ -0,0 +1,162 @@
1
+ # affinidi_tdk_wallets_client
2
+
3
+ Cloud Wallet For Enterprise Structure
4
+
5
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
6
+
7
+ - API version: 1.0.0
8
+ - Package version: 1.0.0
9
+ - Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
10
+ For more information, please visit [https://github.com/affinidi/affinidi-tdk](https://github.com/affinidi/affinidi-tdk)
11
+
12
+ ## Requirements.
13
+
14
+ Python 3.7+
15
+
16
+ ## Installation & Usage
17
+
18
+ ### pip install
19
+
20
+ If the python package is hosted on a repository, you can install directly using:
21
+
22
+ ```sh
23
+ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
24
+ ```
25
+
26
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
27
+
28
+ Then import the package:
29
+
30
+ ```python
31
+ import affinidi_tdk_wallets_client
32
+ ```
33
+
34
+ ### Setuptools
35
+
36
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
37
+
38
+ ```sh
39
+ python setup.py install --user
40
+ ```
41
+
42
+ (or `sudo python setup.py install` to install the package for all users)
43
+
44
+ Then import the package:
45
+
46
+ ```python
47
+ import affinidi_tdk_wallets_client
48
+ ```
49
+
50
+ ### Tests
51
+
52
+ Execute `pytest` to run the tests.
53
+
54
+ ## Getting Started
55
+
56
+ Please follow the [installation procedure](#installation--usage) and then run the following:
57
+
58
+ ```python
59
+
60
+ import time
61
+ import affinidi_tdk_wallets_client
62
+ from affinidi_tdk_wallets_client.rest import ApiException
63
+ from pprint import pprint
64
+
65
+ # Defining the host is optional and defaults to https://apse1.api.affinidi.io/cwe
66
+ # See configuration.py for a list of all supported configuration parameters.
67
+ configuration = affinidi_tdk_wallets_client.Configuration(
68
+ host = "https://apse1.api.affinidi.io/cwe"
69
+ )
70
+
71
+ # The client must configure the authentication and authorization parameters
72
+ # in accordance with the API server security policy.
73
+ # Examples for each auth method are provided below, use the example that
74
+ # satisfies your auth use case.
75
+
76
+ # Configure API key authorization: ProjectTokenAuth
77
+ configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"]
78
+
79
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
80
+ # configuration.api_key_prefix['ProjectTokenAuth'] = 'Bearer'
81
+
82
+
83
+ # Enter a context with an instance of the API client
84
+ with affinidi_tdk_wallets_client.ApiClient(configuration) as api_client:
85
+ # Create an instance of the API class
86
+ api_instance = affinidi_tdk_wallets_client.RevocationApi(api_client)
87
+ list_id = 'list_id_example' # str |
88
+ wallet_id = 'wallet_id_example' # str | id of the wallet
89
+
90
+ try:
91
+ # Return revocation list credential.
92
+ api_response = api_instance.get_revocation_list_credential(list_id, wallet_id)
93
+ print("The response of RevocationApi->get_revocation_list_credential:\n")
94
+ pprint(api_response)
95
+ except ApiException as e:
96
+ print("Exception when calling RevocationApi->get_revocation_list_credential: %s\n" % e)
97
+
98
+ ```
99
+
100
+ ## Documentation for API Endpoints
101
+
102
+ All URIs are relative to *https://apse1.api.affinidi.io/cwe*
103
+
104
+ | Class | Method | HTTP request | Description |
105
+ | --------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------- |
106
+ | _RevocationApi_ | [**get_revocation_list_credential**](docs/RevocationApi.md#get_revocation_list_credential) | **GET** /v1/wallets/{walletId}/revocation-list/{listId} | Return revocation list credential. |
107
+ | _RevocationApi_ | [**revoke_credential**](docs/RevocationApi.md#revoke_credential) | **POST** /v1/wallets/{walletId}/revoke | Revoke Credential. |
108
+ | _DefaultApi_ | [**get_revocation_credential_status**](docs/DefaultApi.md#get_revocation_credential_status) | **GET** /v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId} |
109
+ | _WalletApi_ | [**create_wallet**](docs/WalletApi.md#create_wallet) | **POST** /v1/wallets |
110
+ | _WalletApi_ | [**delete_wallet**](docs/WalletApi.md#delete_wallet) | **DELETE** /v1/wallets/{walletId} |
111
+ | _WalletApi_ | [**get_wallet**](docs/WalletApi.md#get_wallet) | **GET** /v1/wallets/{walletId} |
112
+ | _WalletApi_ | [**list_wallets**](docs/WalletApi.md#list_wallets) | **GET** /v1/wallets |
113
+ | _WalletApi_ | [**sign_credential**](docs/WalletApi.md#sign_credential) | **POST** /v1/wallets/{walletId}/sign-credential |
114
+ | _WalletApi_ | [**sign_jwt_token**](docs/WalletApi.md#sign_jwt_token) | **POST** /v1/wallets/{walletId}/sign-jwt |
115
+ | _WalletApi_ | [**update_wallet**](docs/WalletApi.md#update_wallet) | **PATCH** /v1/wallets/{walletId} |
116
+
117
+ ## Documentation For Models
118
+
119
+ - [CreateWalletInput](docs/CreateWalletInput.md)
120
+ - [CreateWalletResponse](docs/CreateWalletResponse.md)
121
+ - [DidKeyInputParams](docs/DidKeyInputParams.md)
122
+ - [DidWebInputParams](docs/DidWebInputParams.md)
123
+ - [EntityNotFoundError](docs/EntityNotFoundError.md)
124
+ - [GetRevocationCredentialStatusOK](docs/GetRevocationCredentialStatusOK.md)
125
+ - [GetRevocationListCredentialResultDto](docs/GetRevocationListCredentialResultDto.md)
126
+ - [InvalidDidParameterError](docs/InvalidDidParameterError.md)
127
+ - [InvalidParameterError](docs/InvalidParameterError.md)
128
+ - [KeyNotFoundError](docs/KeyNotFoundError.md)
129
+ - [NotFoundError](docs/NotFoundError.md)
130
+ - [OperationForbiddenError](docs/OperationForbiddenError.md)
131
+ - [RevokeCredentialInput](docs/RevokeCredentialInput.md)
132
+ - [ServiceErrorResponse](docs/ServiceErrorResponse.md)
133
+ - [ServiceErrorResponseDetailsInner](docs/ServiceErrorResponseDetailsInner.md)
134
+ - [SignCredential400Response](docs/SignCredential400Response.md)
135
+ - [SignCredentialInputDto](docs/SignCredentialInputDto.md)
136
+ - [SignCredentialInputDtoUnsignedCredentialParams](docs/SignCredentialInputDtoUnsignedCredentialParams.md)
137
+ - [SignCredentialResultDto](docs/SignCredentialResultDto.md)
138
+ - [SignCredentialResultDtoSignedCredential](docs/SignCredentialResultDtoSignedCredential.md)
139
+ - [SignJwtToken](docs/SignJwtToken.md)
140
+ - [SignJwtTokenOK](docs/SignJwtTokenOK.md)
141
+ - [SigningFailedError](docs/SigningFailedError.md)
142
+ - [UpdateWalletInput](docs/UpdateWalletInput.md)
143
+ - [WalletDto](docs/WalletDto.md)
144
+ - [WalletDtoKeysInner](docs/WalletDtoKeysInner.md)
145
+ - [WalletsListDto](docs/WalletsListDto.md)
146
+
147
+ <a id="documentation-for-authorization"></a>
148
+
149
+ ## Documentation For Authorization
150
+
151
+ Authentication schemes defined for the API:
152
+ <a id="ProjectTokenAuth"></a>
153
+
154
+ ### ProjectTokenAuth
155
+
156
+ - **Type**: API key
157
+ - **API key parameter name**: authorization
158
+ - **Location**: HTTP header
159
+
160
+ ## Author
161
+
162
+ info@affinidi.com
@@ -0,0 +1,63 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ CloudWalletEssentials
7
+
8
+ Cloud Wallet For Enterprise Structure
9
+
10
+ The version of the OpenAPI document: 1.0.0
11
+ Contact: info@affinidi.com
12
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
+
14
+ Do not edit the class manually.
15
+ """ # noqa: E501
16
+
17
+
18
+ __version__ = "1.0.0"
19
+
20
+ # import apis into sdk package
21
+ from affinidi_tdk_wallets_client.api.revocation_api import RevocationApi
22
+ from affinidi_tdk_wallets_client.api.default_api import DefaultApi
23
+ from affinidi_tdk_wallets_client.api.wallet_api import WalletApi
24
+
25
+ # import ApiClient
26
+ from affinidi_tdk_wallets_client.api_response import ApiResponse
27
+ from affinidi_tdk_wallets_client.api_client import ApiClient
28
+ from affinidi_tdk_wallets_client.configuration import Configuration
29
+ from affinidi_tdk_wallets_client.exceptions import OpenApiException
30
+ from affinidi_tdk_wallets_client.exceptions import ApiTypeError
31
+ from affinidi_tdk_wallets_client.exceptions import ApiValueError
32
+ from affinidi_tdk_wallets_client.exceptions import ApiKeyError
33
+ from affinidi_tdk_wallets_client.exceptions import ApiAttributeError
34
+ from affinidi_tdk_wallets_client.exceptions import ApiException
35
+
36
+ # import models into sdk package
37
+ from affinidi_tdk_wallets_client.models.create_wallet_input import CreateWalletInput
38
+ from affinidi_tdk_wallets_client.models.create_wallet_response import CreateWalletResponse
39
+ from affinidi_tdk_wallets_client.models.did_key_input_params import DidKeyInputParams
40
+ from affinidi_tdk_wallets_client.models.did_web_input_params import DidWebInputParams
41
+ from affinidi_tdk_wallets_client.models.entity_not_found_error import EntityNotFoundError
42
+ from affinidi_tdk_wallets_client.models.get_revocation_credential_status_ok import GetRevocationCredentialStatusOK
43
+ from affinidi_tdk_wallets_client.models.get_revocation_list_credential_result_dto import GetRevocationListCredentialResultDto
44
+ from affinidi_tdk_wallets_client.models.invalid_did_parameter_error import InvalidDidParameterError
45
+ from affinidi_tdk_wallets_client.models.invalid_parameter_error import InvalidParameterError
46
+ from affinidi_tdk_wallets_client.models.key_not_found_error import KeyNotFoundError
47
+ from affinidi_tdk_wallets_client.models.not_found_error import NotFoundError
48
+ from affinidi_tdk_wallets_client.models.operation_forbidden_error import OperationForbiddenError
49
+ from affinidi_tdk_wallets_client.models.revoke_credential_input import RevokeCredentialInput
50
+ from affinidi_tdk_wallets_client.models.service_error_response import ServiceErrorResponse
51
+ from affinidi_tdk_wallets_client.models.service_error_response_details_inner import ServiceErrorResponseDetailsInner
52
+ from affinidi_tdk_wallets_client.models.sign_credential400_response import SignCredential400Response
53
+ from affinidi_tdk_wallets_client.models.sign_credential_input_dto import SignCredentialInputDto
54
+ from affinidi_tdk_wallets_client.models.sign_credential_input_dto_unsigned_credential_params import SignCredentialInputDtoUnsignedCredentialParams
55
+ from affinidi_tdk_wallets_client.models.sign_credential_result_dto import SignCredentialResultDto
56
+ from affinidi_tdk_wallets_client.models.sign_credential_result_dto_signed_credential import SignCredentialResultDtoSignedCredential
57
+ from affinidi_tdk_wallets_client.models.sign_jwt_token import SignJwtToken
58
+ from affinidi_tdk_wallets_client.models.sign_jwt_token_ok import SignJwtTokenOK
59
+ from affinidi_tdk_wallets_client.models.signing_failed_error import SigningFailedError
60
+ from affinidi_tdk_wallets_client.models.update_wallet_input import UpdateWalletInput
61
+ from affinidi_tdk_wallets_client.models.wallet_dto import WalletDto
62
+ from affinidi_tdk_wallets_client.models.wallet_dto_keys_inner import WalletDtoKeysInner
63
+ from affinidi_tdk_wallets_client.models.wallets_list_dto import WalletsListDto
@@ -0,0 +1,7 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from affinidi_tdk_wallets_client.api.revocation_api import RevocationApi
5
+ from affinidi_tdk_wallets_client.api.default_api import DefaultApi
6
+ from affinidi_tdk_wallets_client.api.wallet_api import WalletApi
7
+
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ CloudWalletEssentials
5
+
6
+ Cloud Wallet For Enterprise Structure
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: info@affinidi.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ import re # noqa: F401
17
+ import io
18
+ import warnings
19
+
20
+ from pydantic import validate_arguments, ValidationError
21
+
22
+ from typing_extensions import Annotated
23
+ from pydantic import Field, StrictStr
24
+
25
+ from affinidi_tdk_wallets_client.models.get_revocation_list_credential_result_dto import GetRevocationListCredentialResultDto
26
+
27
+ from affinidi_tdk_wallets_client.api_client import ApiClient
28
+ from affinidi_tdk_wallets_client.api_response import ApiResponse
29
+ from affinidi_tdk_wallets_client.exceptions import ( # noqa: F401
30
+ ApiTypeError,
31
+ ApiValueError
32
+ )
33
+
34
+
35
+ class DefaultApi:
36
+ """NOTE: This class is auto generated by OpenAPI Generator
37
+ Ref: https://openapi-generator.tech
38
+
39
+ Do not edit the class manually.
40
+ """
41
+
42
+ def __init__(self, api_client=None) -> None:
43
+ if api_client is None:
44
+ api_client = ApiClient.get_default()
45
+ self.api_client = api_client
46
+
47
+ @validate_arguments
48
+ def get_revocation_credential_status(self, project_id : Annotated[StrictStr, Field(..., description="Description for projectId.")], wallet_id : Annotated[StrictStr, Field(..., description="Description for walletId.")], status_id : Annotated[StrictStr, Field(..., description="Description for statusId.")], **kwargs) -> GetRevocationListCredentialResultDto: # noqa: E501
49
+ """get_revocation_credential_status # noqa: E501
50
+
51
+ Get revocation status list as RevocationListCredential # noqa: E501
52
+ This method makes a synchronous HTTP request by default. To make an
53
+ asynchronous HTTP request, please pass async_req=True
54
+
55
+ >>> thread = api.get_revocation_credential_status(project_id, wallet_id, status_id, async_req=True)
56
+ >>> result = thread.get()
57
+
58
+ :param project_id: Description for projectId. (required)
59
+ :type project_id: str
60
+ :param wallet_id: Description for walletId. (required)
61
+ :type wallet_id: str
62
+ :param status_id: Description for statusId. (required)
63
+ :type status_id: str
64
+ :param async_req: Whether to execute the request asynchronously.
65
+ :type async_req: bool, optional
66
+ :param _request_timeout: timeout setting for this request.
67
+ If one number provided, it will be total request
68
+ timeout. It can also be a pair (tuple) of
69
+ (connection, read) timeouts.
70
+ :return: Returns the result object.
71
+ If the method is called asynchronously,
72
+ returns the request thread.
73
+ :rtype: GetRevocationListCredentialResultDto
74
+ """
75
+ kwargs['_return_http_data_only'] = True
76
+ if '_preload_content' in kwargs:
77
+ message = "Error! Please call the get_revocation_credential_status_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
78
+ raise ValueError(message)
79
+ return self.get_revocation_credential_status_with_http_info(project_id, wallet_id, status_id, **kwargs) # noqa: E501
80
+
81
+ @validate_arguments
82
+ def get_revocation_credential_status_with_http_info(self, project_id : Annotated[StrictStr, Field(..., description="Description for projectId.")], wallet_id : Annotated[StrictStr, Field(..., description="Description for walletId.")], status_id : Annotated[StrictStr, Field(..., description="Description for statusId.")], **kwargs) -> ApiResponse: # noqa: E501
83
+ """get_revocation_credential_status # noqa: E501
84
+
85
+ Get revocation status list as RevocationListCredential # noqa: E501
86
+ This method makes a synchronous HTTP request by default. To make an
87
+ asynchronous HTTP request, please pass async_req=True
88
+
89
+ >>> thread = api.get_revocation_credential_status_with_http_info(project_id, wallet_id, status_id, async_req=True)
90
+ >>> result = thread.get()
91
+
92
+ :param project_id: Description for projectId. (required)
93
+ :type project_id: str
94
+ :param wallet_id: Description for walletId. (required)
95
+ :type wallet_id: str
96
+ :param status_id: Description for statusId. (required)
97
+ :type status_id: str
98
+ :param async_req: Whether to execute the request asynchronously.
99
+ :type async_req: bool, optional
100
+ :param _preload_content: if False, the ApiResponse.data will
101
+ be set to none and raw_data will store the
102
+ HTTP response body without reading/decoding.
103
+ Default is True.
104
+ :type _preload_content: bool, optional
105
+ :param _return_http_data_only: response data instead of ApiResponse
106
+ object with status code, headers, etc
107
+ :type _return_http_data_only: bool, optional
108
+ :param _request_timeout: timeout setting for this request. If one
109
+ number provided, it will be total request
110
+ timeout. It can also be a pair (tuple) of
111
+ (connection, read) timeouts.
112
+ :param _request_auth: set to override the auth_settings for an a single
113
+ request; this effectively ignores the authentication
114
+ in the spec for a single request.
115
+ :type _request_auth: dict, optional
116
+ :type _content_type: string, optional: force content-type for the request
117
+ :return: Returns the result object.
118
+ If the method is called asynchronously,
119
+ returns the request thread.
120
+ :rtype: tuple(GetRevocationListCredentialResultDto, status_code(int), headers(HTTPHeaderDict))
121
+ """
122
+
123
+ _params = locals()
124
+
125
+ _all_params = [
126
+ 'project_id',
127
+ 'wallet_id',
128
+ 'status_id'
129
+ ]
130
+ _all_params.extend(
131
+ [
132
+ 'async_req',
133
+ '_return_http_data_only',
134
+ '_preload_content',
135
+ '_request_timeout',
136
+ '_request_auth',
137
+ '_content_type',
138
+ '_headers'
139
+ ]
140
+ )
141
+
142
+ # validate the arguments
143
+ for _key, _val in _params['kwargs'].items():
144
+ if _key not in _all_params:
145
+ raise ApiTypeError(
146
+ "Got an unexpected keyword argument '%s'"
147
+ " to method get_revocation_credential_status" % _key
148
+ )
149
+ _params[_key] = _val
150
+ del _params['kwargs']
151
+
152
+ _collection_formats = {}
153
+
154
+ # process the path parameters
155
+ _path_params = {}
156
+ if _params['project_id'] is not None:
157
+ _path_params['projectId'] = _params['project_id']
158
+
159
+ if _params['wallet_id'] is not None:
160
+ _path_params['walletId'] = _params['wallet_id']
161
+
162
+ if _params['status_id'] is not None:
163
+ _path_params['statusId'] = _params['status_id']
164
+
165
+
166
+ # process the query parameters
167
+ _query_params = []
168
+ # process the header parameters
169
+ _header_params = dict(_params.get('_headers', {}))
170
+ # process the form parameters
171
+ _form_params = []
172
+ _files = {}
173
+ # process the body parameter
174
+ _body_params = None
175
+ # set the HTTP header `Accept`
176
+ _header_params['Accept'] = self.api_client.select_header_accept(
177
+ ['application/json']) # noqa: E501
178
+
179
+ # authentication setting
180
+ _auth_settings = ['ProjectTokenAuth'] # noqa: E501
181
+
182
+ _response_types_map = {
183
+ '200': "GetRevocationListCredentialResultDto",
184
+ '404': "NotFoundError",
185
+ }
186
+
187
+ return self.api_client.call_api(
188
+ '/v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId}', 'GET',
189
+ _path_params,
190
+ _query_params,
191
+ _header_params,
192
+ body=_body_params,
193
+ post_params=_form_params,
194
+ files=_files,
195
+ response_types_map=_response_types_map,
196
+ auth_settings=_auth_settings,
197
+ async_req=_params.get('async_req'),
198
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
199
+ _preload_content=_params.get('_preload_content', True),
200
+ _request_timeout=_params.get('_request_timeout'),
201
+ collection_formats=_collection_formats,
202
+ _request_auth=_params.get('_request_auth'))