affinidi_tdk_wallets_client 1.19.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.
Potentially problematic release.
This version of affinidi_tdk_wallets_client might be problematic. Click here for more details.
- affinidi_tdk_wallets_client/__init__.py +63 -0
- affinidi_tdk_wallets_client/api/__init__.py +7 -0
- affinidi_tdk_wallets_client/api/default_api.py +202 -0
- affinidi_tdk_wallets_client/api/revocation_api.py +351 -0
- affinidi_tdk_wallets_client/api/wallet_api.py +1094 -0
- affinidi_tdk_wallets_client/api_client.py +760 -0
- affinidi_tdk_wallets_client/api_response.py +25 -0
- affinidi_tdk_wallets_client/configuration.py +464 -0
- affinidi_tdk_wallets_client/exceptions.py +167 -0
- affinidi_tdk_wallets_client/models/__init__.py +44 -0
- affinidi_tdk_wallets_client/models/create_wallet_input.py +142 -0
- affinidi_tdk_wallets_client/models/create_wallet_response.py +76 -0
- affinidi_tdk_wallets_client/models/did_key_input_params.py +86 -0
- affinidi_tdk_wallets_client/models/did_web_input_params.py +92 -0
- affinidi_tdk_wallets_client/models/entity_not_found_error.py +109 -0
- affinidi_tdk_wallets_client/models/get_revocation_credential_status_ok.py +72 -0
- affinidi_tdk_wallets_client/models/get_revocation_list_credential_result_dto.py +72 -0
- affinidi_tdk_wallets_client/models/invalid_did_parameter_error.py +109 -0
- affinidi_tdk_wallets_client/models/invalid_parameter_error.py +109 -0
- affinidi_tdk_wallets_client/models/key_not_found_error.py +109 -0
- affinidi_tdk_wallets_client/models/not_found_error.py +109 -0
- affinidi_tdk_wallets_client/models/operation_forbidden_error.py +109 -0
- affinidi_tdk_wallets_client/models/revoke_credential_input.py +79 -0
- affinidi_tdk_wallets_client/models/service_error_response.py +86 -0
- affinidi_tdk_wallets_client/models/service_error_response_details_inner.py +78 -0
- affinidi_tdk_wallets_client/models/sign_credential400_response.py +142 -0
- affinidi_tdk_wallets_client/models/sign_credential_input_dto.py +92 -0
- affinidi_tdk_wallets_client/models/sign_credential_input_dto_unsigned_credential_params.py +89 -0
- affinidi_tdk_wallets_client/models/sign_credential_result_dto.py +76 -0
- affinidi_tdk_wallets_client/models/sign_credential_result_dto_signed_credential.py +148 -0
- affinidi_tdk_wallets_client/models/sign_jwt_token.py +74 -0
- affinidi_tdk_wallets_client/models/sign_jwt_token_ok.py +72 -0
- affinidi_tdk_wallets_client/models/signing_failed_error.py +109 -0
- affinidi_tdk_wallets_client/models/update_wallet_input.py +74 -0
- affinidi_tdk_wallets_client/models/wallet_dto.py +96 -0
- affinidi_tdk_wallets_client/models/wallet_dto_keys_inner.py +74 -0
- affinidi_tdk_wallets_client/models/wallets_list_dto.py +80 -0
- affinidi_tdk_wallets_client/py.typed +0 -0
- affinidi_tdk_wallets_client/rest.py +328 -0
- affinidi_tdk_wallets_client-1.19.0.dist-info/METADATA +188 -0
- affinidi_tdk_wallets_client-1.19.0.dist-info/RECORD +42 -0
- affinidi_tdk_wallets_client-1.19.0.dist-info/WHEEL +4 -0
|
@@ -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,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'))
|
|
@@ -0,0 +1,351 @@
|
|
|
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
|
+
from affinidi_tdk_wallets_client.models.revoke_credential_input import RevokeCredentialInput
|
|
27
|
+
|
|
28
|
+
from affinidi_tdk_wallets_client.api_client import ApiClient
|
|
29
|
+
from affinidi_tdk_wallets_client.api_response import ApiResponse
|
|
30
|
+
from affinidi_tdk_wallets_client.exceptions import ( # noqa: F401
|
|
31
|
+
ApiTypeError,
|
|
32
|
+
ApiValueError
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class RevocationApi:
|
|
37
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
38
|
+
Ref: https://openapi-generator.tech
|
|
39
|
+
|
|
40
|
+
Do not edit the class manually.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
def __init__(self, api_client=None) -> None:
|
|
44
|
+
if api_client is None:
|
|
45
|
+
api_client = ApiClient.get_default()
|
|
46
|
+
self.api_client = api_client
|
|
47
|
+
|
|
48
|
+
@validate_arguments
|
|
49
|
+
def get_revocation_list_credential(self, list_id : StrictStr, wallet_id : Annotated[StrictStr, Field(..., description="id of the wallet")], **kwargs) -> GetRevocationListCredentialResultDto: # noqa: E501
|
|
50
|
+
"""(Deprecated) Return revocation list credential. # noqa: E501
|
|
51
|
+
|
|
52
|
+
Get revocation list 2020 Credential (required to check if VC revoked). It is a public endpoint. # noqa: E501
|
|
53
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
54
|
+
asynchronous HTTP request, please pass async_req=True
|
|
55
|
+
|
|
56
|
+
>>> thread = api.get_revocation_list_credential(list_id, wallet_id, async_req=True)
|
|
57
|
+
>>> result = thread.get()
|
|
58
|
+
|
|
59
|
+
:param list_id: (required)
|
|
60
|
+
:type list_id: str
|
|
61
|
+
:param wallet_id: id of the wallet (required)
|
|
62
|
+
:type wallet_id: str
|
|
63
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
64
|
+
:type async_req: bool, optional
|
|
65
|
+
:param _request_timeout: timeout setting for this request.
|
|
66
|
+
If one number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:return: Returns the result object.
|
|
70
|
+
If the method is called asynchronously,
|
|
71
|
+
returns the request thread.
|
|
72
|
+
:rtype: GetRevocationListCredentialResultDto
|
|
73
|
+
"""
|
|
74
|
+
kwargs['_return_http_data_only'] = True
|
|
75
|
+
if '_preload_content' in kwargs:
|
|
76
|
+
message = "Error! Please call the get_revocation_list_credential_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
|
77
|
+
raise ValueError(message)
|
|
78
|
+
return self.get_revocation_list_credential_with_http_info(list_id, wallet_id, **kwargs) # noqa: E501
|
|
79
|
+
|
|
80
|
+
@validate_arguments
|
|
81
|
+
def get_revocation_list_credential_with_http_info(self, list_id : StrictStr, wallet_id : Annotated[StrictStr, Field(..., description="id of the wallet")], **kwargs) -> ApiResponse: # noqa: E501
|
|
82
|
+
"""(Deprecated) Return revocation list credential. # noqa: E501
|
|
83
|
+
|
|
84
|
+
Get revocation list 2020 Credential (required to check if VC revoked). It is a public endpoint. # noqa: E501
|
|
85
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
86
|
+
asynchronous HTTP request, please pass async_req=True
|
|
87
|
+
|
|
88
|
+
>>> thread = api.get_revocation_list_credential_with_http_info(list_id, wallet_id, async_req=True)
|
|
89
|
+
>>> result = thread.get()
|
|
90
|
+
|
|
91
|
+
:param list_id: (required)
|
|
92
|
+
:type list_id: str
|
|
93
|
+
:param wallet_id: id of the wallet (required)
|
|
94
|
+
:type wallet_id: str
|
|
95
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
96
|
+
:type async_req: bool, optional
|
|
97
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
98
|
+
be set to none and raw_data will store the
|
|
99
|
+
HTTP response body without reading/decoding.
|
|
100
|
+
Default is True.
|
|
101
|
+
:type _preload_content: bool, optional
|
|
102
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
103
|
+
object with status code, headers, etc
|
|
104
|
+
:type _return_http_data_only: bool, optional
|
|
105
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
106
|
+
number provided, it will be total request
|
|
107
|
+
timeout. It can also be a pair (tuple) of
|
|
108
|
+
(connection, read) timeouts.
|
|
109
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
110
|
+
request; this effectively ignores the authentication
|
|
111
|
+
in the spec for a single request.
|
|
112
|
+
:type _request_auth: dict, optional
|
|
113
|
+
:type _content_type: string, optional: force content-type for the request
|
|
114
|
+
:return: Returns the result object.
|
|
115
|
+
If the method is called asynchronously,
|
|
116
|
+
returns the request thread.
|
|
117
|
+
:rtype: tuple(GetRevocationListCredentialResultDto, status_code(int), headers(HTTPHeaderDict))
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
warnings.warn("GET /v1/wallets/{walletId}/revocation-list/{listId} is deprecated.", DeprecationWarning)
|
|
121
|
+
|
|
122
|
+
_params = locals()
|
|
123
|
+
|
|
124
|
+
_all_params = [
|
|
125
|
+
'list_id',
|
|
126
|
+
'wallet_id'
|
|
127
|
+
]
|
|
128
|
+
_all_params.extend(
|
|
129
|
+
[
|
|
130
|
+
'async_req',
|
|
131
|
+
'_return_http_data_only',
|
|
132
|
+
'_preload_content',
|
|
133
|
+
'_request_timeout',
|
|
134
|
+
'_request_auth',
|
|
135
|
+
'_content_type',
|
|
136
|
+
'_headers'
|
|
137
|
+
]
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
# validate the arguments
|
|
141
|
+
for _key, _val in _params['kwargs'].items():
|
|
142
|
+
if _key not in _all_params:
|
|
143
|
+
raise ApiTypeError(
|
|
144
|
+
"Got an unexpected keyword argument '%s'"
|
|
145
|
+
" to method get_revocation_list_credential" % _key
|
|
146
|
+
)
|
|
147
|
+
_params[_key] = _val
|
|
148
|
+
del _params['kwargs']
|
|
149
|
+
|
|
150
|
+
_collection_formats = {}
|
|
151
|
+
|
|
152
|
+
# process the path parameters
|
|
153
|
+
_path_params = {}
|
|
154
|
+
if _params['list_id'] is not None:
|
|
155
|
+
_path_params['listId'] = _params['list_id']
|
|
156
|
+
|
|
157
|
+
if _params['wallet_id'] is not None:
|
|
158
|
+
_path_params['walletId'] = _params['wallet_id']
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
# process the query parameters
|
|
162
|
+
_query_params = []
|
|
163
|
+
# process the header parameters
|
|
164
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
165
|
+
# process the form parameters
|
|
166
|
+
_form_params = []
|
|
167
|
+
_files = {}
|
|
168
|
+
# process the body parameter
|
|
169
|
+
_body_params = None
|
|
170
|
+
# set the HTTP header `Accept`
|
|
171
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
172
|
+
['application/json']) # noqa: E501
|
|
173
|
+
|
|
174
|
+
# authentication setting
|
|
175
|
+
_auth_settings = ['ProjectTokenAuth'] # noqa: E501
|
|
176
|
+
|
|
177
|
+
_response_types_map = {
|
|
178
|
+
'200': "GetRevocationListCredentialResultDto",
|
|
179
|
+
'400': "InvalidParameterError",
|
|
180
|
+
'403': "OperationForbiddenError",
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return self.api_client.call_api(
|
|
184
|
+
'/v1/wallets/{walletId}/revocation-list/{listId}', 'GET',
|
|
185
|
+
_path_params,
|
|
186
|
+
_query_params,
|
|
187
|
+
_header_params,
|
|
188
|
+
body=_body_params,
|
|
189
|
+
post_params=_form_params,
|
|
190
|
+
files=_files,
|
|
191
|
+
response_types_map=_response_types_map,
|
|
192
|
+
auth_settings=_auth_settings,
|
|
193
|
+
async_req=_params.get('async_req'),
|
|
194
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
195
|
+
_preload_content=_params.get('_preload_content', True),
|
|
196
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
197
|
+
collection_formats=_collection_formats,
|
|
198
|
+
_request_auth=_params.get('_request_auth'))
|
|
199
|
+
|
|
200
|
+
@validate_arguments
|
|
201
|
+
def revoke_credential(self, wallet_id : Annotated[StrictStr, Field(..., description="id of the wallet")], revoke_credential_input : Annotated[RevokeCredentialInput, Field(..., description="RevokeCredential")], **kwargs) -> None: # noqa: E501
|
|
202
|
+
"""Revoke Credential. # noqa: E501
|
|
203
|
+
|
|
204
|
+
Update index/credetial at appropriate revocation list (set revoken is true). # noqa: E501
|
|
205
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
206
|
+
asynchronous HTTP request, please pass async_req=True
|
|
207
|
+
|
|
208
|
+
>>> thread = api.revoke_credential(wallet_id, revoke_credential_input, async_req=True)
|
|
209
|
+
>>> result = thread.get()
|
|
210
|
+
|
|
211
|
+
:param wallet_id: id of the wallet (required)
|
|
212
|
+
:type wallet_id: str
|
|
213
|
+
:param revoke_credential_input: RevokeCredential (required)
|
|
214
|
+
:type revoke_credential_input: RevokeCredentialInput
|
|
215
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
216
|
+
:type async_req: bool, optional
|
|
217
|
+
:param _request_timeout: timeout setting for this request.
|
|
218
|
+
If one number provided, it will be total request
|
|
219
|
+
timeout. It can also be a pair (tuple) of
|
|
220
|
+
(connection, read) timeouts.
|
|
221
|
+
:return: Returns the result object.
|
|
222
|
+
If the method is called asynchronously,
|
|
223
|
+
returns the request thread.
|
|
224
|
+
:rtype: None
|
|
225
|
+
"""
|
|
226
|
+
kwargs['_return_http_data_only'] = True
|
|
227
|
+
if '_preload_content' in kwargs:
|
|
228
|
+
message = "Error! Please call the revoke_credential_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
|
229
|
+
raise ValueError(message)
|
|
230
|
+
return self.revoke_credential_with_http_info(wallet_id, revoke_credential_input, **kwargs) # noqa: E501
|
|
231
|
+
|
|
232
|
+
@validate_arguments
|
|
233
|
+
def revoke_credential_with_http_info(self, wallet_id : Annotated[StrictStr, Field(..., description="id of the wallet")], revoke_credential_input : Annotated[RevokeCredentialInput, Field(..., description="RevokeCredential")], **kwargs) -> ApiResponse: # noqa: E501
|
|
234
|
+
"""Revoke Credential. # noqa: E501
|
|
235
|
+
|
|
236
|
+
Update index/credetial at appropriate revocation list (set revoken is true). # noqa: E501
|
|
237
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
238
|
+
asynchronous HTTP request, please pass async_req=True
|
|
239
|
+
|
|
240
|
+
>>> thread = api.revoke_credential_with_http_info(wallet_id, revoke_credential_input, async_req=True)
|
|
241
|
+
>>> result = thread.get()
|
|
242
|
+
|
|
243
|
+
:param wallet_id: id of the wallet (required)
|
|
244
|
+
:type wallet_id: str
|
|
245
|
+
:param revoke_credential_input: RevokeCredential (required)
|
|
246
|
+
:type revoke_credential_input: RevokeCredentialInput
|
|
247
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
248
|
+
:type async_req: bool, optional
|
|
249
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
250
|
+
be set to none and raw_data will store the
|
|
251
|
+
HTTP response body without reading/decoding.
|
|
252
|
+
Default is True.
|
|
253
|
+
:type _preload_content: bool, optional
|
|
254
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
255
|
+
object with status code, headers, etc
|
|
256
|
+
:type _return_http_data_only: bool, optional
|
|
257
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
258
|
+
number provided, it will be total request
|
|
259
|
+
timeout. It can also be a pair (tuple) of
|
|
260
|
+
(connection, read) timeouts.
|
|
261
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
262
|
+
request; this effectively ignores the authentication
|
|
263
|
+
in the spec for a single request.
|
|
264
|
+
:type _request_auth: dict, optional
|
|
265
|
+
:type _content_type: string, optional: force content-type for the request
|
|
266
|
+
:return: Returns the result object.
|
|
267
|
+
If the method is called asynchronously,
|
|
268
|
+
returns the request thread.
|
|
269
|
+
:rtype: None
|
|
270
|
+
"""
|
|
271
|
+
|
|
272
|
+
_params = locals()
|
|
273
|
+
|
|
274
|
+
_all_params = [
|
|
275
|
+
'wallet_id',
|
|
276
|
+
'revoke_credential_input'
|
|
277
|
+
]
|
|
278
|
+
_all_params.extend(
|
|
279
|
+
[
|
|
280
|
+
'async_req',
|
|
281
|
+
'_return_http_data_only',
|
|
282
|
+
'_preload_content',
|
|
283
|
+
'_request_timeout',
|
|
284
|
+
'_request_auth',
|
|
285
|
+
'_content_type',
|
|
286
|
+
'_headers'
|
|
287
|
+
]
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
# validate the arguments
|
|
291
|
+
for _key, _val in _params['kwargs'].items():
|
|
292
|
+
if _key not in _all_params:
|
|
293
|
+
raise ApiTypeError(
|
|
294
|
+
"Got an unexpected keyword argument '%s'"
|
|
295
|
+
" to method revoke_credential" % _key
|
|
296
|
+
)
|
|
297
|
+
_params[_key] = _val
|
|
298
|
+
del _params['kwargs']
|
|
299
|
+
|
|
300
|
+
_collection_formats = {}
|
|
301
|
+
|
|
302
|
+
# process the path parameters
|
|
303
|
+
_path_params = {}
|
|
304
|
+
if _params['wallet_id'] is not None:
|
|
305
|
+
_path_params['walletId'] = _params['wallet_id']
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
# process the query parameters
|
|
309
|
+
_query_params = []
|
|
310
|
+
# process the header parameters
|
|
311
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
312
|
+
# process the form parameters
|
|
313
|
+
_form_params = []
|
|
314
|
+
_files = {}
|
|
315
|
+
# process the body parameter
|
|
316
|
+
_body_params = None
|
|
317
|
+
if _params['revoke_credential_input'] is not None:
|
|
318
|
+
_body_params = _params['revoke_credential_input']
|
|
319
|
+
|
|
320
|
+
# set the HTTP header `Accept`
|
|
321
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
322
|
+
['application/json']) # noqa: E501
|
|
323
|
+
|
|
324
|
+
# set the HTTP header `Content-Type`
|
|
325
|
+
_content_types_list = _params.get('_content_type',
|
|
326
|
+
self.api_client.select_header_content_type(
|
|
327
|
+
['application/json']))
|
|
328
|
+
if _content_types_list:
|
|
329
|
+
_header_params['Content-Type'] = _content_types_list
|
|
330
|
+
|
|
331
|
+
# authentication setting
|
|
332
|
+
_auth_settings = ['ProjectTokenAuth'] # noqa: E501
|
|
333
|
+
|
|
334
|
+
_response_types_map = {}
|
|
335
|
+
|
|
336
|
+
return self.api_client.call_api(
|
|
337
|
+
'/v1/wallets/{walletId}/revoke', 'POST',
|
|
338
|
+
_path_params,
|
|
339
|
+
_query_params,
|
|
340
|
+
_header_params,
|
|
341
|
+
body=_body_params,
|
|
342
|
+
post_params=_form_params,
|
|
343
|
+
files=_files,
|
|
344
|
+
response_types_map=_response_types_map,
|
|
345
|
+
auth_settings=_auth_settings,
|
|
346
|
+
async_req=_params.get('async_req'),
|
|
347
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
348
|
+
_preload_content=_params.get('_preload_content', True),
|
|
349
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
350
|
+
collection_formats=_collection_formats,
|
|
351
|
+
_request_auth=_params.get('_request_auth'))
|