affinidi_tdk_wallets_client 1.28.0__tar.gz → 1.29.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.
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/PKG-INFO +36 -21
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/README.md +33 -18
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/__init__.py +0 -1
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/api/__init__.py +0 -1
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/api/revocation_api.py +157 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/configuration.py +1 -1
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/rest.py +2 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/pyproject.toml +2 -2
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/api/default_api.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/api/wallet_api.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/api_client.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/api_response.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/exceptions.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/__init__.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/create_wallet_input.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/create_wallet_response.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/did_key_input_params.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/did_web_input_params.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/entity_not_found_error.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/get_revocation_credential_status_ok.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/get_revocation_list_credential_result_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/invalid_did_parameter_error.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/invalid_parameter_error.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/key_not_found_error.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/not_found_error.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/operation_forbidden_error.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/revoke_credential_input.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/service_error_response.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/service_error_response_details_inner.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/sign_credential400_response.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/sign_credential_input_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/sign_credential_input_dto_unsigned_credential_params.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/sign_credential_result_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/sign_credential_result_dto_signed_credential.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/sign_jwt_token.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/sign_jwt_token_ok.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/signing_failed_error.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/update_wallet_input.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/wallet_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/wallet_dto_keys_inner.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/models/wallets_list_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.28.0 → affinidi_tdk_wallets_client-1.29.0}/affinidi_tdk_wallets_client/py.typed +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: affinidi_tdk_wallets_client
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.29.0
|
|
4
4
|
Summary: CloudWalletEssentials
|
|
5
5
|
Home-page: https://github.com/affinidi.com/affinidi-tdk
|
|
6
6
|
License: Apache-2.0
|
|
7
7
|
Keywords: OpenAPI,OpenAPI-Generator,CloudWalletEssentials
|
|
8
8
|
Author: Affinidi
|
|
9
9
|
Author-email: info@affinidi.com
|
|
10
|
-
Requires-Python: >=3.
|
|
10
|
+
Requires-Python: >=3.8,<4.0
|
|
11
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.8
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.9
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
19
|
Requires-Dist: aenum (>=3.1.11)
|
|
20
20
|
Requires-Dist: pydantic (>=1.10.5,<2.0.0)
|
|
21
21
|
Requires-Dist: python-dateutil (>=2.8.2)
|
|
@@ -94,6 +94,21 @@ configuration = affinidi_tdk_wallets_client.Configuration(
|
|
|
94
94
|
# Configure API key authorization: ProjectTokenAuth
|
|
95
95
|
configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"]
|
|
96
96
|
|
|
97
|
+
# Configure a hook to auto-refresh API key for your personal access token (PAT), if expired
|
|
98
|
+
import affinidi_tdk_auth_provider
|
|
99
|
+
|
|
100
|
+
stats = {
|
|
101
|
+
apiGatewayUrl,
|
|
102
|
+
keyId,
|
|
103
|
+
passphrase,
|
|
104
|
+
privateKey,
|
|
105
|
+
projectId,
|
|
106
|
+
tokenEndpoint,
|
|
107
|
+
tokenId,
|
|
108
|
+
}
|
|
109
|
+
authProvider = affinidi_tdk_auth_provider.AuthProvider(stats)
|
|
110
|
+
configuration.refresh_api_key_hook = lambda api_client: authProvider.fetch_project_scoped_token()
|
|
111
|
+
|
|
97
112
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
98
113
|
# configuration.api_key_prefix['ProjectTokenAuth'] = 'Bearer'
|
|
99
114
|
|
|
@@ -102,16 +117,16 @@ configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"]
|
|
|
102
117
|
with affinidi_tdk_wallets_client.ApiClient(configuration) as api_client:
|
|
103
118
|
# Create an instance of the API class
|
|
104
119
|
api_instance = affinidi_tdk_wallets_client.RevocationApi(api_client)
|
|
105
|
-
|
|
106
|
-
wallet_id = 'wallet_id_example' # str |
|
|
120
|
+
project_id = 'project_id_example' # str | Description for projectId.
|
|
121
|
+
wallet_id = 'wallet_id_example' # str | Description for walletId.
|
|
122
|
+
status_id = 'status_id_example' # str | Description for statusId.
|
|
107
123
|
|
|
108
124
|
try:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
print("The response of RevocationApi->get_revocation_list_credential:\n")
|
|
125
|
+
api_response = api_instance.get_revocation_credential_status(project_id, wallet_id, status_id)
|
|
126
|
+
print("The response of RevocationApi->get_revocation_credential_status:\n")
|
|
112
127
|
pprint(api_response)
|
|
113
128
|
except ApiException as e:
|
|
114
|
-
print("Exception when calling RevocationApi->
|
|
129
|
+
print("Exception when calling RevocationApi->get_revocation_credential_status: %s\n" % e)
|
|
115
130
|
|
|
116
131
|
```
|
|
117
132
|
|
|
@@ -119,18 +134,18 @@ with affinidi_tdk_wallets_client.ApiClient(configuration) as api_client:
|
|
|
119
134
|
|
|
120
135
|
All URIs are relative to *https://apse1.api.affinidi.io/cwe*
|
|
121
136
|
|
|
122
|
-
| Class | Method
|
|
123
|
-
| --------------- |
|
|
124
|
-
| _RevocationApi_ | [**
|
|
125
|
-
| _RevocationApi_ | [**
|
|
126
|
-
|
|
|
127
|
-
| _WalletApi_ | [**create_wallet**](docs/WalletApi.md#create_wallet)
|
|
128
|
-
| _WalletApi_ | [**delete_wallet**](docs/WalletApi.md#delete_wallet)
|
|
129
|
-
| _WalletApi_ | [**get_wallet**](docs/WalletApi.md#get_wallet)
|
|
130
|
-
| _WalletApi_ | [**list_wallets**](docs/WalletApi.md#list_wallets)
|
|
131
|
-
| _WalletApi_ | [**sign_credential**](docs/WalletApi.md#sign_credential)
|
|
132
|
-
| _WalletApi_ | [**sign_jwt_token**](docs/WalletApi.md#sign_jwt_token)
|
|
133
|
-
| _WalletApi_ | [**update_wallet**](docs/WalletApi.md#update_wallet)
|
|
137
|
+
| Class | Method | HTTP request | Description |
|
|
138
|
+
| --------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------- |
|
|
139
|
+
| _RevocationApi_ | [**get_revocation_credential_status**](docs/RevocationApi.md#get_revocation_credential_status) | **GET** /v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId} |
|
|
140
|
+
| _RevocationApi_ | [**get_revocation_list_credential**](docs/RevocationApi.md#get_revocation_list_credential) | **GET** /v1/wallets/{walletId}/revocation-list/{listId} | Return revocation list credential. |
|
|
141
|
+
| _RevocationApi_ | [**revoke_credential**](docs/RevocationApi.md#revoke_credential) | **POST** /v1/wallets/{walletId}/revoke | Revoke Credential. |
|
|
142
|
+
| _WalletApi_ | [**create_wallet**](docs/WalletApi.md#create_wallet) | **POST** /v1/wallets |
|
|
143
|
+
| _WalletApi_ | [**delete_wallet**](docs/WalletApi.md#delete_wallet) | **DELETE** /v1/wallets/{walletId} |
|
|
144
|
+
| _WalletApi_ | [**get_wallet**](docs/WalletApi.md#get_wallet) | **GET** /v1/wallets/{walletId} |
|
|
145
|
+
| _WalletApi_ | [**list_wallets**](docs/WalletApi.md#list_wallets) | **GET** /v1/wallets |
|
|
146
|
+
| _WalletApi_ | [**sign_credential**](docs/WalletApi.md#sign_credential) | **POST** /v1/wallets/{walletId}/sign-credential |
|
|
147
|
+
| _WalletApi_ | [**sign_jwt_token**](docs/WalletApi.md#sign_jwt_token) | **POST** /v1/wallets/{walletId}/sign-jwt |
|
|
148
|
+
| _WalletApi_ | [**update_wallet**](docs/WalletApi.md#update_wallet) | **PATCH** /v1/wallets/{walletId} |
|
|
134
149
|
|
|
135
150
|
## Documentation For Models
|
|
136
151
|
|
|
@@ -69,6 +69,21 @@ configuration = affinidi_tdk_wallets_client.Configuration(
|
|
|
69
69
|
# Configure API key authorization: ProjectTokenAuth
|
|
70
70
|
configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"]
|
|
71
71
|
|
|
72
|
+
# Configure a hook to auto-refresh API key for your personal access token (PAT), if expired
|
|
73
|
+
import affinidi_tdk_auth_provider
|
|
74
|
+
|
|
75
|
+
stats = {
|
|
76
|
+
apiGatewayUrl,
|
|
77
|
+
keyId,
|
|
78
|
+
passphrase,
|
|
79
|
+
privateKey,
|
|
80
|
+
projectId,
|
|
81
|
+
tokenEndpoint,
|
|
82
|
+
tokenId,
|
|
83
|
+
}
|
|
84
|
+
authProvider = affinidi_tdk_auth_provider.AuthProvider(stats)
|
|
85
|
+
configuration.refresh_api_key_hook = lambda api_client: authProvider.fetch_project_scoped_token()
|
|
86
|
+
|
|
72
87
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
73
88
|
# configuration.api_key_prefix['ProjectTokenAuth'] = 'Bearer'
|
|
74
89
|
|
|
@@ -77,16 +92,16 @@ configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"]
|
|
|
77
92
|
with affinidi_tdk_wallets_client.ApiClient(configuration) as api_client:
|
|
78
93
|
# Create an instance of the API class
|
|
79
94
|
api_instance = affinidi_tdk_wallets_client.RevocationApi(api_client)
|
|
80
|
-
|
|
81
|
-
wallet_id = 'wallet_id_example' # str |
|
|
95
|
+
project_id = 'project_id_example' # str | Description for projectId.
|
|
96
|
+
wallet_id = 'wallet_id_example' # str | Description for walletId.
|
|
97
|
+
status_id = 'status_id_example' # str | Description for statusId.
|
|
82
98
|
|
|
83
99
|
try:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
print("The response of RevocationApi->get_revocation_list_credential:\n")
|
|
100
|
+
api_response = api_instance.get_revocation_credential_status(project_id, wallet_id, status_id)
|
|
101
|
+
print("The response of RevocationApi->get_revocation_credential_status:\n")
|
|
87
102
|
pprint(api_response)
|
|
88
103
|
except ApiException as e:
|
|
89
|
-
print("Exception when calling RevocationApi->
|
|
104
|
+
print("Exception when calling RevocationApi->get_revocation_credential_status: %s\n" % e)
|
|
90
105
|
|
|
91
106
|
```
|
|
92
107
|
|
|
@@ -94,18 +109,18 @@ with affinidi_tdk_wallets_client.ApiClient(configuration) as api_client:
|
|
|
94
109
|
|
|
95
110
|
All URIs are relative to *https://apse1.api.affinidi.io/cwe*
|
|
96
111
|
|
|
97
|
-
| Class | Method
|
|
98
|
-
| --------------- |
|
|
99
|
-
| _RevocationApi_ | [**
|
|
100
|
-
| _RevocationApi_ | [**
|
|
101
|
-
|
|
|
102
|
-
| _WalletApi_ | [**create_wallet**](docs/WalletApi.md#create_wallet)
|
|
103
|
-
| _WalletApi_ | [**delete_wallet**](docs/WalletApi.md#delete_wallet)
|
|
104
|
-
| _WalletApi_ | [**get_wallet**](docs/WalletApi.md#get_wallet)
|
|
105
|
-
| _WalletApi_ | [**list_wallets**](docs/WalletApi.md#list_wallets)
|
|
106
|
-
| _WalletApi_ | [**sign_credential**](docs/WalletApi.md#sign_credential)
|
|
107
|
-
| _WalletApi_ | [**sign_jwt_token**](docs/WalletApi.md#sign_jwt_token)
|
|
108
|
-
| _WalletApi_ | [**update_wallet**](docs/WalletApi.md#update_wallet)
|
|
112
|
+
| Class | Method | HTTP request | Description |
|
|
113
|
+
| --------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------- |
|
|
114
|
+
| _RevocationApi_ | [**get_revocation_credential_status**](docs/RevocationApi.md#get_revocation_credential_status) | **GET** /v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId} |
|
|
115
|
+
| _RevocationApi_ | [**get_revocation_list_credential**](docs/RevocationApi.md#get_revocation_list_credential) | **GET** /v1/wallets/{walletId}/revocation-list/{listId} | Return revocation list credential. |
|
|
116
|
+
| _RevocationApi_ | [**revoke_credential**](docs/RevocationApi.md#revoke_credential) | **POST** /v1/wallets/{walletId}/revoke | Revoke Credential. |
|
|
117
|
+
| _WalletApi_ | [**create_wallet**](docs/WalletApi.md#create_wallet) | **POST** /v1/wallets |
|
|
118
|
+
| _WalletApi_ | [**delete_wallet**](docs/WalletApi.md#delete_wallet) | **DELETE** /v1/wallets/{walletId} |
|
|
119
|
+
| _WalletApi_ | [**get_wallet**](docs/WalletApi.md#get_wallet) | **GET** /v1/wallets/{walletId} |
|
|
120
|
+
| _WalletApi_ | [**list_wallets**](docs/WalletApi.md#list_wallets) | **GET** /v1/wallets |
|
|
121
|
+
| _WalletApi_ | [**sign_credential**](docs/WalletApi.md#sign_credential) | **POST** /v1/wallets/{walletId}/sign-credential |
|
|
122
|
+
| _WalletApi_ | [**sign_jwt_token**](docs/WalletApi.md#sign_jwt_token) | **POST** /v1/wallets/{walletId}/sign-jwt |
|
|
123
|
+
| _WalletApi_ | [**update_wallet**](docs/WalletApi.md#update_wallet) | **PATCH** /v1/wallets/{walletId} |
|
|
109
124
|
|
|
110
125
|
## Documentation For Models
|
|
111
126
|
|
|
@@ -19,7 +19,6 @@ __version__ = "1.0.0"
|
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
21
|
from affinidi_tdk_wallets_client.api.revocation_api import RevocationApi
|
|
22
|
-
from affinidi_tdk_wallets_client.api.default_api import DefaultApi
|
|
23
22
|
from affinidi_tdk_wallets_client.api.wallet_api import WalletApi
|
|
24
23
|
|
|
25
24
|
# import ApiClient
|
|
@@ -45,6 +45,163 @@ class RevocationApi:
|
|
|
45
45
|
api_client = ApiClient.get_default()
|
|
46
46
|
self.api_client = api_client
|
|
47
47
|
|
|
48
|
+
@validate_arguments
|
|
49
|
+
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
|
|
50
|
+
"""get_revocation_credential_status # noqa: E501
|
|
51
|
+
|
|
52
|
+
Get revocation status list as RevocationListCredential # 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_credential_status(project_id, wallet_id, status_id, async_req=True)
|
|
57
|
+
>>> result = thread.get()
|
|
58
|
+
|
|
59
|
+
:param project_id: Description for projectId. (required)
|
|
60
|
+
:type project_id: str
|
|
61
|
+
:param wallet_id: Description for walletId. (required)
|
|
62
|
+
:type wallet_id: str
|
|
63
|
+
:param status_id: Description for statusId. (required)
|
|
64
|
+
:type status_id: str
|
|
65
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
66
|
+
:type async_req: bool, optional
|
|
67
|
+
:param _request_timeout: timeout setting for this request.
|
|
68
|
+
If one number provided, it will be total request
|
|
69
|
+
timeout. It can also be a pair (tuple) of
|
|
70
|
+
(connection, read) timeouts.
|
|
71
|
+
:return: Returns the result object.
|
|
72
|
+
If the method is called asynchronously,
|
|
73
|
+
returns the request thread.
|
|
74
|
+
:rtype: GetRevocationListCredentialResultDto
|
|
75
|
+
"""
|
|
76
|
+
kwargs['_return_http_data_only'] = True
|
|
77
|
+
if '_preload_content' in kwargs:
|
|
78
|
+
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
|
|
79
|
+
raise ValueError(message)
|
|
80
|
+
return self.get_revocation_credential_status_with_http_info(project_id, wallet_id, status_id, **kwargs) # noqa: E501
|
|
81
|
+
|
|
82
|
+
@validate_arguments
|
|
83
|
+
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
|
|
84
|
+
"""get_revocation_credential_status # noqa: E501
|
|
85
|
+
|
|
86
|
+
Get revocation status list as RevocationListCredential # noqa: E501
|
|
87
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
88
|
+
asynchronous HTTP request, please pass async_req=True
|
|
89
|
+
|
|
90
|
+
>>> thread = api.get_revocation_credential_status_with_http_info(project_id, wallet_id, status_id, async_req=True)
|
|
91
|
+
>>> result = thread.get()
|
|
92
|
+
|
|
93
|
+
:param project_id: Description for projectId. (required)
|
|
94
|
+
:type project_id: str
|
|
95
|
+
:param wallet_id: Description for walletId. (required)
|
|
96
|
+
:type wallet_id: str
|
|
97
|
+
:param status_id: Description for statusId. (required)
|
|
98
|
+
:type status_id: str
|
|
99
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
100
|
+
:type async_req: bool, optional
|
|
101
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
102
|
+
be set to none and raw_data will store the
|
|
103
|
+
HTTP response body without reading/decoding.
|
|
104
|
+
Default is True.
|
|
105
|
+
:type _preload_content: bool, optional
|
|
106
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
107
|
+
object with status code, headers, etc
|
|
108
|
+
:type _return_http_data_only: bool, optional
|
|
109
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
110
|
+
number provided, it will be total request
|
|
111
|
+
timeout. It can also be a pair (tuple) of
|
|
112
|
+
(connection, read) timeouts.
|
|
113
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
114
|
+
request; this effectively ignores the authentication
|
|
115
|
+
in the spec for a single request.
|
|
116
|
+
:type _request_auth: dict, optional
|
|
117
|
+
:type _content_type: string, optional: force content-type for the request
|
|
118
|
+
:return: Returns the result object.
|
|
119
|
+
If the method is called asynchronously,
|
|
120
|
+
returns the request thread.
|
|
121
|
+
:rtype: tuple(GetRevocationListCredentialResultDto, status_code(int), headers(HTTPHeaderDict))
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
_params = locals()
|
|
125
|
+
|
|
126
|
+
_all_params = [
|
|
127
|
+
'project_id',
|
|
128
|
+
'wallet_id',
|
|
129
|
+
'status_id'
|
|
130
|
+
]
|
|
131
|
+
_all_params.extend(
|
|
132
|
+
[
|
|
133
|
+
'async_req',
|
|
134
|
+
'_return_http_data_only',
|
|
135
|
+
'_preload_content',
|
|
136
|
+
'_request_timeout',
|
|
137
|
+
'_request_auth',
|
|
138
|
+
'_content_type',
|
|
139
|
+
'_headers'
|
|
140
|
+
]
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
# validate the arguments
|
|
144
|
+
for _key, _val in _params['kwargs'].items():
|
|
145
|
+
if _key not in _all_params:
|
|
146
|
+
raise ApiTypeError(
|
|
147
|
+
"Got an unexpected keyword argument '%s'"
|
|
148
|
+
" to method get_revocation_credential_status" % _key
|
|
149
|
+
)
|
|
150
|
+
_params[_key] = _val
|
|
151
|
+
del _params['kwargs']
|
|
152
|
+
|
|
153
|
+
_collection_formats = {}
|
|
154
|
+
|
|
155
|
+
# process the path parameters
|
|
156
|
+
_path_params = {}
|
|
157
|
+
if _params['project_id'] is not None:
|
|
158
|
+
_path_params['projectId'] = _params['project_id']
|
|
159
|
+
|
|
160
|
+
if _params['wallet_id'] is not None:
|
|
161
|
+
_path_params['walletId'] = _params['wallet_id']
|
|
162
|
+
|
|
163
|
+
if _params['status_id'] is not None:
|
|
164
|
+
_path_params['statusId'] = _params['status_id']
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
# process the query parameters
|
|
168
|
+
_query_params = []
|
|
169
|
+
# process the header parameters
|
|
170
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
171
|
+
# process the form parameters
|
|
172
|
+
_form_params = []
|
|
173
|
+
_files = {}
|
|
174
|
+
# process the body parameter
|
|
175
|
+
_body_params = None
|
|
176
|
+
# set the HTTP header `Accept`
|
|
177
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
178
|
+
['application/json']) # noqa: E501
|
|
179
|
+
|
|
180
|
+
# authentication setting
|
|
181
|
+
_auth_settings = ['ProjectTokenAuth'] # noqa: E501
|
|
182
|
+
|
|
183
|
+
_response_types_map = {
|
|
184
|
+
'200': "GetRevocationListCredentialResultDto",
|
|
185
|
+
'404': "NotFoundError",
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return self.api_client.call_api(
|
|
189
|
+
'/v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId}', 'GET',
|
|
190
|
+
_path_params,
|
|
191
|
+
_query_params,
|
|
192
|
+
_header_params,
|
|
193
|
+
body=_body_params,
|
|
194
|
+
post_params=_form_params,
|
|
195
|
+
files=_files,
|
|
196
|
+
response_types_map=_response_types_map,
|
|
197
|
+
auth_settings=_auth_settings,
|
|
198
|
+
async_req=_params.get('async_req'),
|
|
199
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
200
|
+
_preload_content=_params.get('_preload_content', True),
|
|
201
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
202
|
+
collection_formats=_collection_formats,
|
|
203
|
+
_request_auth=_params.get('_request_auth'))
|
|
204
|
+
|
|
48
205
|
@validate_arguments
|
|
49
206
|
def get_revocation_list_credential(self, list_id : StrictStr, wallet_id : Annotated[StrictStr, Field(..., description="id of the wallet")], **kwargs) -> GetRevocationListCredentialResultDto: # noqa: E501
|
|
50
207
|
"""(Deprecated) Return revocation list credential. # noqa: E501
|
|
@@ -348,7 +348,7 @@ conf = affinidi_tdk_wallets_client.Configuration(
|
|
|
348
348
|
:return: The token for api key authentication.
|
|
349
349
|
"""
|
|
350
350
|
if self.refresh_api_key_hook is not None:
|
|
351
|
-
self.refresh_api_key_hook(self)
|
|
351
|
+
return self.refresh_api_key_hook(self)
|
|
352
352
|
key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None)
|
|
353
353
|
if key:
|
|
354
354
|
prefix = self.api_key_prefix.get(identifier)
|
|
@@ -201,6 +201,8 @@ class RESTClientObject:
|
|
|
201
201
|
# Content-Type which generated by urllib3 will be
|
|
202
202
|
# overwritten.
|
|
203
203
|
del headers['Content-Type']
|
|
204
|
+
# Ensures that dict objects are serialized
|
|
205
|
+
post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
|
|
204
206
|
r = self.pool_manager.request(
|
|
205
207
|
method, url,
|
|
206
208
|
fields=post_params,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "affinidi_tdk_wallets_client"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.29.0"
|
|
4
4
|
description = "CloudWalletEssentials"
|
|
5
5
|
authors = ["Affinidi <info@affinidi.com>"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "CloudWalletEssentials"]
|
|
|
10
10
|
include = ["affinidi_tdk_wallets_client/py.typed"]
|
|
11
11
|
|
|
12
12
|
[tool.poetry.dependencies]
|
|
13
|
-
python = "^3.
|
|
13
|
+
python = "^3.8"
|
|
14
14
|
|
|
15
15
|
urllib3 = ">= 1.25.3"
|
|
16
16
|
python-dateutil = ">=2.8.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|