affinidi_tdk_wallets_client 1.58.0__tar.gz → 1.59.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.58.0 → affinidi_tdk_wallets_client-1.59.0}/PKG-INFO +11 -6
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/README.md +10 -5
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/__init__.py +9 -4
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/__init__.py +9 -4
- affinidi_tdk_wallets_client-1.59.0/affinidi_tdk_wallets_client/models/create_wallet_v2_input.py +110 -0
- affinidi_tdk_wallets_client-1.59.0/affinidi_tdk_wallets_client/models/create_wallet_v2_response.py +76 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/sign_credentials_dm1_ld_input_dto.py +15 -3
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/sign_credentials_dm2_sd_jwt_input_dto.py +15 -3
- affinidi_tdk_wallets_client-1.58.0/affinidi_tdk_wallets_client/models/sign_credentials_dm1_jwt_input_dto.py → affinidi_tdk_wallets_client-1.59.0/affinidi_tdk_wallets_client/models/sign_credentials_jwt_input_dto.py +22 -10
- affinidi_tdk_wallets_client-1.58.0/affinidi_tdk_wallets_client/models/sign_credentials_dm1_jwt_result_dto.py → affinidi_tdk_wallets_client-1.59.0/affinidi_tdk_wallets_client/models/sign_credentials_jwt_result_dto.py +7 -7
- affinidi_tdk_wallets_client-1.58.0/affinidi_tdk_wallets_client/models/sign_credentials_dm2_ld_input_dto.py → affinidi_tdk_wallets_client-1.59.0/affinidi_tdk_wallets_client/models/sign_credentials_ldp_input_dto.py +22 -10
- affinidi_tdk_wallets_client-1.58.0/affinidi_tdk_wallets_client/models/sign_credentials_dm2_ld_result_dto.py → affinidi_tdk_wallets_client-1.59.0/affinidi_tdk_wallets_client/models/sign_credentials_ldp_result_dto.py +7 -7
- affinidi_tdk_wallets_client-1.59.0/affinidi_tdk_wallets_client/models/sign_presentation_ldp_input_dto.py +88 -0
- affinidi_tdk_wallets_client-1.59.0/affinidi_tdk_wallets_client/models/sign_presentation_ldp_result_dto.py +72 -0
- affinidi_tdk_wallets_client-1.59.0/affinidi_tdk_wallets_client/models/wallet_v2_dto.py +98 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/pyproject.toml +1 -1
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/api/__init__.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/api/revocation_api.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/api/wallet_api.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/api_client.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/api_response.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/configuration.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/exceptions.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/create_wallet_input.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/create_wallet_response.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/entity_not_found_error.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/get_revocation_credential_status_ok.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/get_revocation_list_credential_result_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/invalid_did_parameter_error.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/invalid_parameter_error.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/key_not_found_error.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/not_found_error.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/operation_forbidden_error.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/revoke_credential_input.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/service_error_response.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/service_error_response_details_inner.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/sign_credential400_response.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/sign_credential_input_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/sign_credential_input_dto_unsigned_credential_params.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/sign_credential_result_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/sign_credentials_dm1_ld_result_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/sign_credentials_dm2_sd_jwt_result_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/sign_jwt_token.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/sign_jwt_token_ok.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/signing_failed_error.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/update_wallet_input.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/wallet_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/wallet_dto_keys_inner.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/models/wallets_list_dto.py +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/py.typed +0 -0
- {affinidi_tdk_wallets_client-1.58.0 → affinidi_tdk_wallets_client-1.59.0}/affinidi_tdk_wallets_client/rest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: affinidi_tdk_wallets_client
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.59.0
|
|
4
4
|
Summary: CloudWalletEssentials
|
|
5
5
|
Home-page: https://github.com/affinidi/affinidi-tdk
|
|
6
6
|
License: Apache-2.0
|
|
@@ -27,7 +27,7 @@ Description-Content-Type: text/markdown
|
|
|
27
27
|
|
|
28
28
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
29
29
|
|
|
30
|
-
For more information, please visit [
|
|
30
|
+
For more information, please visit [www.affinidi.com](www.affinidi.com)
|
|
31
31
|
|
|
32
32
|
Documentation is available at [https://docs.affinidi.com/dev-tools/affinidi-tdk/clients/wallets](https://docs.affinidi.com/dev-tools/affinidi-tdk/clients/wallets)
|
|
33
33
|
|
|
@@ -151,6 +151,8 @@ All URIs are relative to *https://apse1.api.affinidi.io/cwe*
|
|
|
151
151
|
|
|
152
152
|
- [CreateWalletInput](docs/CreateWalletInput.md)
|
|
153
153
|
- [CreateWalletResponse](docs/CreateWalletResponse.md)
|
|
154
|
+
- [CreateWalletV2Input](docs/CreateWalletV2Input.md)
|
|
155
|
+
- [CreateWalletV2Response](docs/CreateWalletV2Response.md)
|
|
154
156
|
- [EntityNotFoundError](docs/EntityNotFoundError.md)
|
|
155
157
|
- [GetRevocationCredentialStatusOK](docs/GetRevocationCredentialStatusOK.md)
|
|
156
158
|
- [GetRevocationListCredentialResultDto](docs/GetRevocationListCredentialResultDto.md)
|
|
@@ -166,20 +168,23 @@ All URIs are relative to *https://apse1.api.affinidi.io/cwe*
|
|
|
166
168
|
- [SignCredentialInputDto](docs/SignCredentialInputDto.md)
|
|
167
169
|
- [SignCredentialInputDtoUnsignedCredentialParams](docs/SignCredentialInputDtoUnsignedCredentialParams.md)
|
|
168
170
|
- [SignCredentialResultDto](docs/SignCredentialResultDto.md)
|
|
169
|
-
- [SignCredentialsDm1JwtInputDto](docs/SignCredentialsDm1JwtInputDto.md)
|
|
170
|
-
- [SignCredentialsDm1JwtResultDto](docs/SignCredentialsDm1JwtResultDto.md)
|
|
171
171
|
- [SignCredentialsDm1LdInputDto](docs/SignCredentialsDm1LdInputDto.md)
|
|
172
172
|
- [SignCredentialsDm1LdResultDto](docs/SignCredentialsDm1LdResultDto.md)
|
|
173
|
-
- [SignCredentialsDm2LdInputDto](docs/SignCredentialsDm2LdInputDto.md)
|
|
174
|
-
- [SignCredentialsDm2LdResultDto](docs/SignCredentialsDm2LdResultDto.md)
|
|
175
173
|
- [SignCredentialsDm2SdJwtInputDto](docs/SignCredentialsDm2SdJwtInputDto.md)
|
|
176
174
|
- [SignCredentialsDm2SdJwtResultDto](docs/SignCredentialsDm2SdJwtResultDto.md)
|
|
175
|
+
- [SignCredentialsJwtInputDto](docs/SignCredentialsJwtInputDto.md)
|
|
176
|
+
- [SignCredentialsJwtResultDto](docs/SignCredentialsJwtResultDto.md)
|
|
177
|
+
- [SignCredentialsLdpInputDto](docs/SignCredentialsLdpInputDto.md)
|
|
178
|
+
- [SignCredentialsLdpResultDto](docs/SignCredentialsLdpResultDto.md)
|
|
177
179
|
- [SignJwtToken](docs/SignJwtToken.md)
|
|
178
180
|
- [SignJwtTokenOK](docs/SignJwtTokenOK.md)
|
|
181
|
+
- [SignPresentationLdpInputDto](docs/SignPresentationLdpInputDto.md)
|
|
182
|
+
- [SignPresentationLdpResultDto](docs/SignPresentationLdpResultDto.md)
|
|
179
183
|
- [SigningFailedError](docs/SigningFailedError.md)
|
|
180
184
|
- [UpdateWalletInput](docs/UpdateWalletInput.md)
|
|
181
185
|
- [WalletDto](docs/WalletDto.md)
|
|
182
186
|
- [WalletDtoKeysInner](docs/WalletDtoKeysInner.md)
|
|
187
|
+
- [WalletV2Dto](docs/WalletV2Dto.md)
|
|
183
188
|
- [WalletsListDto](docs/WalletsListDto.md)
|
|
184
189
|
|
|
185
190
|
<a id="documentation-for-authorization"></a>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
|
|
5
|
-
For more information, please visit [
|
|
5
|
+
For more information, please visit [www.affinidi.com](www.affinidi.com)
|
|
6
6
|
|
|
7
7
|
Documentation is available at [https://docs.affinidi.com/dev-tools/affinidi-tdk/clients/wallets](https://docs.affinidi.com/dev-tools/affinidi-tdk/clients/wallets)
|
|
8
8
|
|
|
@@ -126,6 +126,8 @@ All URIs are relative to *https://apse1.api.affinidi.io/cwe*
|
|
|
126
126
|
|
|
127
127
|
- [CreateWalletInput](docs/CreateWalletInput.md)
|
|
128
128
|
- [CreateWalletResponse](docs/CreateWalletResponse.md)
|
|
129
|
+
- [CreateWalletV2Input](docs/CreateWalletV2Input.md)
|
|
130
|
+
- [CreateWalletV2Response](docs/CreateWalletV2Response.md)
|
|
129
131
|
- [EntityNotFoundError](docs/EntityNotFoundError.md)
|
|
130
132
|
- [GetRevocationCredentialStatusOK](docs/GetRevocationCredentialStatusOK.md)
|
|
131
133
|
- [GetRevocationListCredentialResultDto](docs/GetRevocationListCredentialResultDto.md)
|
|
@@ -141,20 +143,23 @@ All URIs are relative to *https://apse1.api.affinidi.io/cwe*
|
|
|
141
143
|
- [SignCredentialInputDto](docs/SignCredentialInputDto.md)
|
|
142
144
|
- [SignCredentialInputDtoUnsignedCredentialParams](docs/SignCredentialInputDtoUnsignedCredentialParams.md)
|
|
143
145
|
- [SignCredentialResultDto](docs/SignCredentialResultDto.md)
|
|
144
|
-
- [SignCredentialsDm1JwtInputDto](docs/SignCredentialsDm1JwtInputDto.md)
|
|
145
|
-
- [SignCredentialsDm1JwtResultDto](docs/SignCredentialsDm1JwtResultDto.md)
|
|
146
146
|
- [SignCredentialsDm1LdInputDto](docs/SignCredentialsDm1LdInputDto.md)
|
|
147
147
|
- [SignCredentialsDm1LdResultDto](docs/SignCredentialsDm1LdResultDto.md)
|
|
148
|
-
- [SignCredentialsDm2LdInputDto](docs/SignCredentialsDm2LdInputDto.md)
|
|
149
|
-
- [SignCredentialsDm2LdResultDto](docs/SignCredentialsDm2LdResultDto.md)
|
|
150
148
|
- [SignCredentialsDm2SdJwtInputDto](docs/SignCredentialsDm2SdJwtInputDto.md)
|
|
151
149
|
- [SignCredentialsDm2SdJwtResultDto](docs/SignCredentialsDm2SdJwtResultDto.md)
|
|
150
|
+
- [SignCredentialsJwtInputDto](docs/SignCredentialsJwtInputDto.md)
|
|
151
|
+
- [SignCredentialsJwtResultDto](docs/SignCredentialsJwtResultDto.md)
|
|
152
|
+
- [SignCredentialsLdpInputDto](docs/SignCredentialsLdpInputDto.md)
|
|
153
|
+
- [SignCredentialsLdpResultDto](docs/SignCredentialsLdpResultDto.md)
|
|
152
154
|
- [SignJwtToken](docs/SignJwtToken.md)
|
|
153
155
|
- [SignJwtTokenOK](docs/SignJwtTokenOK.md)
|
|
156
|
+
- [SignPresentationLdpInputDto](docs/SignPresentationLdpInputDto.md)
|
|
157
|
+
- [SignPresentationLdpResultDto](docs/SignPresentationLdpResultDto.md)
|
|
154
158
|
- [SigningFailedError](docs/SigningFailedError.md)
|
|
155
159
|
- [UpdateWalletInput](docs/UpdateWalletInput.md)
|
|
156
160
|
- [WalletDto](docs/WalletDto.md)
|
|
157
161
|
- [WalletDtoKeysInner](docs/WalletDtoKeysInner.md)
|
|
162
|
+
- [WalletV2Dto](docs/WalletV2Dto.md)
|
|
158
163
|
- [WalletsListDto](docs/WalletsListDto.md)
|
|
159
164
|
|
|
160
165
|
<a id="documentation-for-authorization"></a>
|
|
@@ -35,6 +35,8 @@ from affinidi_tdk_wallets_client.exceptions import ApiException
|
|
|
35
35
|
# import models into sdk package
|
|
36
36
|
from affinidi_tdk_wallets_client.models.create_wallet_input import CreateWalletInput
|
|
37
37
|
from affinidi_tdk_wallets_client.models.create_wallet_response import CreateWalletResponse
|
|
38
|
+
from affinidi_tdk_wallets_client.models.create_wallet_v2_input import CreateWalletV2Input
|
|
39
|
+
from affinidi_tdk_wallets_client.models.create_wallet_v2_response import CreateWalletV2Response
|
|
38
40
|
from affinidi_tdk_wallets_client.models.entity_not_found_error import EntityNotFoundError
|
|
39
41
|
from affinidi_tdk_wallets_client.models.get_revocation_credential_status_ok import GetRevocationCredentialStatusOK
|
|
40
42
|
from affinidi_tdk_wallets_client.models.get_revocation_list_credential_result_dto import GetRevocationListCredentialResultDto
|
|
@@ -50,18 +52,21 @@ from affinidi_tdk_wallets_client.models.sign_credential400_response import SignC
|
|
|
50
52
|
from affinidi_tdk_wallets_client.models.sign_credential_input_dto import SignCredentialInputDto
|
|
51
53
|
from affinidi_tdk_wallets_client.models.sign_credential_input_dto_unsigned_credential_params import SignCredentialInputDtoUnsignedCredentialParams
|
|
52
54
|
from affinidi_tdk_wallets_client.models.sign_credential_result_dto import SignCredentialResultDto
|
|
53
|
-
from affinidi_tdk_wallets_client.models.sign_credentials_dm1_jwt_input_dto import SignCredentialsDm1JwtInputDto
|
|
54
|
-
from affinidi_tdk_wallets_client.models.sign_credentials_dm1_jwt_result_dto import SignCredentialsDm1JwtResultDto
|
|
55
55
|
from affinidi_tdk_wallets_client.models.sign_credentials_dm1_ld_input_dto import SignCredentialsDm1LdInputDto
|
|
56
56
|
from affinidi_tdk_wallets_client.models.sign_credentials_dm1_ld_result_dto import SignCredentialsDm1LdResultDto
|
|
57
|
-
from affinidi_tdk_wallets_client.models.sign_credentials_dm2_ld_input_dto import SignCredentialsDm2LdInputDto
|
|
58
|
-
from affinidi_tdk_wallets_client.models.sign_credentials_dm2_ld_result_dto import SignCredentialsDm2LdResultDto
|
|
59
57
|
from affinidi_tdk_wallets_client.models.sign_credentials_dm2_sd_jwt_input_dto import SignCredentialsDm2SdJwtInputDto
|
|
60
58
|
from affinidi_tdk_wallets_client.models.sign_credentials_dm2_sd_jwt_result_dto import SignCredentialsDm2SdJwtResultDto
|
|
59
|
+
from affinidi_tdk_wallets_client.models.sign_credentials_jwt_input_dto import SignCredentialsJwtInputDto
|
|
60
|
+
from affinidi_tdk_wallets_client.models.sign_credentials_jwt_result_dto import SignCredentialsJwtResultDto
|
|
61
|
+
from affinidi_tdk_wallets_client.models.sign_credentials_ldp_input_dto import SignCredentialsLdpInputDto
|
|
62
|
+
from affinidi_tdk_wallets_client.models.sign_credentials_ldp_result_dto import SignCredentialsLdpResultDto
|
|
61
63
|
from affinidi_tdk_wallets_client.models.sign_jwt_token import SignJwtToken
|
|
62
64
|
from affinidi_tdk_wallets_client.models.sign_jwt_token_ok import SignJwtTokenOK
|
|
65
|
+
from affinidi_tdk_wallets_client.models.sign_presentation_ldp_input_dto import SignPresentationLdpInputDto
|
|
66
|
+
from affinidi_tdk_wallets_client.models.sign_presentation_ldp_result_dto import SignPresentationLdpResultDto
|
|
63
67
|
from affinidi_tdk_wallets_client.models.signing_failed_error import SigningFailedError
|
|
64
68
|
from affinidi_tdk_wallets_client.models.update_wallet_input import UpdateWalletInput
|
|
65
69
|
from affinidi_tdk_wallets_client.models.wallet_dto import WalletDto
|
|
66
70
|
from affinidi_tdk_wallets_client.models.wallet_dto_keys_inner import WalletDtoKeysInner
|
|
71
|
+
from affinidi_tdk_wallets_client.models.wallet_v2_dto import WalletV2Dto
|
|
67
72
|
from affinidi_tdk_wallets_client.models.wallets_list_dto import WalletsListDto
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
# import models into model package
|
|
18
18
|
from affinidi_tdk_wallets_client.models.create_wallet_input import CreateWalletInput
|
|
19
19
|
from affinidi_tdk_wallets_client.models.create_wallet_response import CreateWalletResponse
|
|
20
|
+
from affinidi_tdk_wallets_client.models.create_wallet_v2_input import CreateWalletV2Input
|
|
21
|
+
from affinidi_tdk_wallets_client.models.create_wallet_v2_response import CreateWalletV2Response
|
|
20
22
|
from affinidi_tdk_wallets_client.models.entity_not_found_error import EntityNotFoundError
|
|
21
23
|
from affinidi_tdk_wallets_client.models.get_revocation_credential_status_ok import GetRevocationCredentialStatusOK
|
|
22
24
|
from affinidi_tdk_wallets_client.models.get_revocation_list_credential_result_dto import GetRevocationListCredentialResultDto
|
|
@@ -32,18 +34,21 @@ from affinidi_tdk_wallets_client.models.sign_credential400_response import SignC
|
|
|
32
34
|
from affinidi_tdk_wallets_client.models.sign_credential_input_dto import SignCredentialInputDto
|
|
33
35
|
from affinidi_tdk_wallets_client.models.sign_credential_input_dto_unsigned_credential_params import SignCredentialInputDtoUnsignedCredentialParams
|
|
34
36
|
from affinidi_tdk_wallets_client.models.sign_credential_result_dto import SignCredentialResultDto
|
|
35
|
-
from affinidi_tdk_wallets_client.models.sign_credentials_dm1_jwt_input_dto import SignCredentialsDm1JwtInputDto
|
|
36
|
-
from affinidi_tdk_wallets_client.models.sign_credentials_dm1_jwt_result_dto import SignCredentialsDm1JwtResultDto
|
|
37
37
|
from affinidi_tdk_wallets_client.models.sign_credentials_dm1_ld_input_dto import SignCredentialsDm1LdInputDto
|
|
38
38
|
from affinidi_tdk_wallets_client.models.sign_credentials_dm1_ld_result_dto import SignCredentialsDm1LdResultDto
|
|
39
|
-
from affinidi_tdk_wallets_client.models.sign_credentials_dm2_ld_input_dto import SignCredentialsDm2LdInputDto
|
|
40
|
-
from affinidi_tdk_wallets_client.models.sign_credentials_dm2_ld_result_dto import SignCredentialsDm2LdResultDto
|
|
41
39
|
from affinidi_tdk_wallets_client.models.sign_credentials_dm2_sd_jwt_input_dto import SignCredentialsDm2SdJwtInputDto
|
|
42
40
|
from affinidi_tdk_wallets_client.models.sign_credentials_dm2_sd_jwt_result_dto import SignCredentialsDm2SdJwtResultDto
|
|
41
|
+
from affinidi_tdk_wallets_client.models.sign_credentials_jwt_input_dto import SignCredentialsJwtInputDto
|
|
42
|
+
from affinidi_tdk_wallets_client.models.sign_credentials_jwt_result_dto import SignCredentialsJwtResultDto
|
|
43
|
+
from affinidi_tdk_wallets_client.models.sign_credentials_ldp_input_dto import SignCredentialsLdpInputDto
|
|
44
|
+
from affinidi_tdk_wallets_client.models.sign_credentials_ldp_result_dto import SignCredentialsLdpResultDto
|
|
43
45
|
from affinidi_tdk_wallets_client.models.sign_jwt_token import SignJwtToken
|
|
44
46
|
from affinidi_tdk_wallets_client.models.sign_jwt_token_ok import SignJwtTokenOK
|
|
47
|
+
from affinidi_tdk_wallets_client.models.sign_presentation_ldp_input_dto import SignPresentationLdpInputDto
|
|
48
|
+
from affinidi_tdk_wallets_client.models.sign_presentation_ldp_result_dto import SignPresentationLdpResultDto
|
|
45
49
|
from affinidi_tdk_wallets_client.models.signing_failed_error import SigningFailedError
|
|
46
50
|
from affinidi_tdk_wallets_client.models.update_wallet_input import UpdateWalletInput
|
|
47
51
|
from affinidi_tdk_wallets_client.models.wallet_dto import WalletDto
|
|
48
52
|
from affinidi_tdk_wallets_client.models.wallet_dto_keys_inner import WalletDtoKeysInner
|
|
53
|
+
from affinidi_tdk_wallets_client.models.wallet_v2_dto import WalletV2Dto
|
|
49
54
|
from affinidi_tdk_wallets_client.models.wallets_list_dto import WalletsListDto
|
affinidi_tdk_wallets_client-1.59.0/affinidi_tdk_wallets_client/models/create_wallet_v2_input.py
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
CloudWalletEssentials
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
from typing import Optional
|
|
23
|
+
from pydantic import BaseModel, Field, StrictStr, constr, validator
|
|
24
|
+
|
|
25
|
+
class CreateWalletV2Input(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
CreateWalletV2Input
|
|
28
|
+
"""
|
|
29
|
+
name: Optional[StrictStr] = Field(default=None, description="The name of the wallet")
|
|
30
|
+
description: Optional[StrictStr] = Field(default=None, description="The description of the wallet")
|
|
31
|
+
did_method: Optional[StrictStr] = Field(default='key', alias="didMethod", description="Define how DID of your wallet is created and resolved")
|
|
32
|
+
did_web_url: Optional[constr(strict=True, max_length=300)] = Field(default=None, alias="didWebUrl", description="URL of the DID. Required if the did method is web")
|
|
33
|
+
algorithm: Optional[StrictStr] = Field(default='secp256k1', description="algorithm to generate key for the wallet")
|
|
34
|
+
__properties = ["name", "description", "didMethod", "didWebUrl", "algorithm"]
|
|
35
|
+
|
|
36
|
+
@validator('did_method')
|
|
37
|
+
def did_method_validate_enum(cls, value):
|
|
38
|
+
"""Validates the enum"""
|
|
39
|
+
if value is None:
|
|
40
|
+
return value
|
|
41
|
+
|
|
42
|
+
if value not in ('key', 'web', 'peer0',):
|
|
43
|
+
raise ValueError("must be one of enum values ('key', 'web', 'peer0')")
|
|
44
|
+
return value
|
|
45
|
+
|
|
46
|
+
@validator('did_web_url')
|
|
47
|
+
def did_web_url_validate_regular_expression(cls, value):
|
|
48
|
+
"""Validates the regular expression"""
|
|
49
|
+
if value is None:
|
|
50
|
+
return value
|
|
51
|
+
|
|
52
|
+
if not re.match(r"^(?!:\/\/)([a-zA-Z0-9\-\.]+)(:[0-9]+)?(\/[a-zA-Z0-9\-\/]*)?$", value):
|
|
53
|
+
raise ValueError(r"must validate the regular expression /^(?!:\/\/)([a-zA-Z0-9\-\.]+)(:[0-9]+)?(\/[a-zA-Z0-9\-\/]*)?$/")
|
|
54
|
+
return value
|
|
55
|
+
|
|
56
|
+
@validator('algorithm')
|
|
57
|
+
def algorithm_validate_enum(cls, value):
|
|
58
|
+
"""Validates the enum"""
|
|
59
|
+
if value is None:
|
|
60
|
+
return value
|
|
61
|
+
|
|
62
|
+
if value not in ('secp256k1', 'ed25519', 'p256',):
|
|
63
|
+
raise ValueError("must be one of enum values ('secp256k1', 'ed25519', 'p256')")
|
|
64
|
+
return value
|
|
65
|
+
|
|
66
|
+
class Config:
|
|
67
|
+
"""Pydantic configuration"""
|
|
68
|
+
allow_population_by_field_name = True
|
|
69
|
+
validate_assignment = True
|
|
70
|
+
|
|
71
|
+
def to_str(self) -> str:
|
|
72
|
+
"""Returns the string representation of the model using alias"""
|
|
73
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
74
|
+
|
|
75
|
+
def to_json(self) -> str:
|
|
76
|
+
"""Returns the JSON representation of the model using alias"""
|
|
77
|
+
return json.dumps(self.to_dict())
|
|
78
|
+
|
|
79
|
+
@classmethod
|
|
80
|
+
def from_json(cls, json_str: str) -> CreateWalletV2Input:
|
|
81
|
+
"""Create an instance of CreateWalletV2Input from a JSON string"""
|
|
82
|
+
return cls.from_dict(json.loads(json_str))
|
|
83
|
+
|
|
84
|
+
def to_dict(self):
|
|
85
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
86
|
+
_dict = self.dict(by_alias=True,
|
|
87
|
+
exclude={
|
|
88
|
+
},
|
|
89
|
+
exclude_none=True)
|
|
90
|
+
return _dict
|
|
91
|
+
|
|
92
|
+
@classmethod
|
|
93
|
+
def from_dict(cls, obj: dict) -> CreateWalletV2Input:
|
|
94
|
+
"""Create an instance of CreateWalletV2Input from a dict"""
|
|
95
|
+
if obj is None:
|
|
96
|
+
return None
|
|
97
|
+
|
|
98
|
+
if not isinstance(obj, dict):
|
|
99
|
+
return CreateWalletV2Input.parse_obj(obj)
|
|
100
|
+
|
|
101
|
+
_obj = CreateWalletV2Input.parse_obj({
|
|
102
|
+
"name": obj.get("name"),
|
|
103
|
+
"description": obj.get("description"),
|
|
104
|
+
"did_method": obj.get("didMethod") if obj.get("didMethod") is not None else 'key',
|
|
105
|
+
"did_web_url": obj.get("didWebUrl"),
|
|
106
|
+
"algorithm": obj.get("algorithm") if obj.get("algorithm") is not None else 'secp256k1'
|
|
107
|
+
})
|
|
108
|
+
return _obj
|
|
109
|
+
|
|
110
|
+
|
affinidi_tdk_wallets_client-1.59.0/affinidi_tdk_wallets_client/models/create_wallet_v2_response.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
CloudWalletEssentials
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
from typing import Optional
|
|
23
|
+
from pydantic import BaseModel
|
|
24
|
+
from affinidi_tdk_wallets_client.models.wallet_v2_dto import WalletV2Dto
|
|
25
|
+
|
|
26
|
+
class CreateWalletV2Response(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
wallet dto # noqa: E501
|
|
29
|
+
"""
|
|
30
|
+
wallet: Optional[WalletV2Dto] = None
|
|
31
|
+
__properties = ["wallet"]
|
|
32
|
+
|
|
33
|
+
class Config:
|
|
34
|
+
"""Pydantic configuration"""
|
|
35
|
+
allow_population_by_field_name = True
|
|
36
|
+
validate_assignment = True
|
|
37
|
+
|
|
38
|
+
def to_str(self) -> str:
|
|
39
|
+
"""Returns the string representation of the model using alias"""
|
|
40
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
41
|
+
|
|
42
|
+
def to_json(self) -> str:
|
|
43
|
+
"""Returns the JSON representation of the model using alias"""
|
|
44
|
+
return json.dumps(self.to_dict())
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_json(cls, json_str: str) -> CreateWalletV2Response:
|
|
48
|
+
"""Create an instance of CreateWalletV2Response from a JSON string"""
|
|
49
|
+
return cls.from_dict(json.loads(json_str))
|
|
50
|
+
|
|
51
|
+
def to_dict(self):
|
|
52
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
53
|
+
_dict = self.dict(by_alias=True,
|
|
54
|
+
exclude={
|
|
55
|
+
},
|
|
56
|
+
exclude_none=True)
|
|
57
|
+
# override the default output from pydantic by calling `to_dict()` of wallet
|
|
58
|
+
if self.wallet:
|
|
59
|
+
_dict['wallet'] = self.wallet.to_dict()
|
|
60
|
+
return _dict
|
|
61
|
+
|
|
62
|
+
@classmethod
|
|
63
|
+
def from_dict(cls, obj: dict) -> CreateWalletV2Response:
|
|
64
|
+
"""Create an instance of CreateWalletV2Response from a dict"""
|
|
65
|
+
if obj is None:
|
|
66
|
+
return None
|
|
67
|
+
|
|
68
|
+
if not isinstance(obj, dict):
|
|
69
|
+
return CreateWalletV2Response.parse_obj(obj)
|
|
70
|
+
|
|
71
|
+
_obj = CreateWalletV2Response.parse_obj({
|
|
72
|
+
"wallet": WalletV2Dto.from_dict(obj.get("wallet")) if obj.get("wallet") is not None else None
|
|
73
|
+
})
|
|
74
|
+
return _obj
|
|
75
|
+
|
|
76
|
+
|
|
@@ -20,7 +20,7 @@ import json
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
from typing import Any, Dict, Optional
|
|
23
|
-
from pydantic import BaseModel, Field, StrictBool
|
|
23
|
+
from pydantic import BaseModel, Field, StrictBool, StrictStr, validator
|
|
24
24
|
|
|
25
25
|
class SignCredentialsDm1LdInputDto(BaseModel):
|
|
26
26
|
"""
|
|
@@ -28,7 +28,18 @@ class SignCredentialsDm1LdInputDto(BaseModel):
|
|
|
28
28
|
"""
|
|
29
29
|
unsigned_credential: Dict[str, Any] = Field(default=..., alias="unsignedCredential", description="Unsigned Credential in Dm1 format")
|
|
30
30
|
revocable: Optional[StrictBool] = None
|
|
31
|
-
|
|
31
|
+
signature_scheme: Optional[StrictStr] = Field(default=None, alias="signatureScheme")
|
|
32
|
+
__properties = ["unsignedCredential", "revocable", "signatureScheme"]
|
|
33
|
+
|
|
34
|
+
@validator('signature_scheme')
|
|
35
|
+
def signature_scheme_validate_enum(cls, value):
|
|
36
|
+
"""Validates the enum"""
|
|
37
|
+
if value is None:
|
|
38
|
+
return value
|
|
39
|
+
|
|
40
|
+
if value not in ('ecdsa_secp256k1_sha256', 'ecdsa_p256_sha256', 'ed25519',):
|
|
41
|
+
raise ValueError("must be one of enum values ('ecdsa_secp256k1_sha256', 'ecdsa_p256_sha256', 'ed25519')")
|
|
42
|
+
return value
|
|
32
43
|
|
|
33
44
|
class Config:
|
|
34
45
|
"""Pydantic configuration"""
|
|
@@ -67,7 +78,8 @@ class SignCredentialsDm1LdInputDto(BaseModel):
|
|
|
67
78
|
|
|
68
79
|
_obj = SignCredentialsDm1LdInputDto.parse_obj({
|
|
69
80
|
"unsigned_credential": obj.get("unsignedCredential"),
|
|
70
|
-
"revocable": obj.get("revocable")
|
|
81
|
+
"revocable": obj.get("revocable"),
|
|
82
|
+
"signature_scheme": obj.get("signatureScheme")
|
|
71
83
|
})
|
|
72
84
|
return _obj
|
|
73
85
|
|
|
@@ -20,7 +20,7 @@ import json
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
from typing import Any, Dict, Optional
|
|
23
|
-
from pydantic import BaseModel, Field, StrictBool
|
|
23
|
+
from pydantic import BaseModel, Field, StrictBool, StrictStr, validator
|
|
24
24
|
|
|
25
25
|
class SignCredentialsDm2SdJwtInputDto(BaseModel):
|
|
26
26
|
"""
|
|
@@ -29,7 +29,18 @@ class SignCredentialsDm2SdJwtInputDto(BaseModel):
|
|
|
29
29
|
unsigned_credential: Dict[str, Any] = Field(default=..., alias="unsignedCredential", description="Unsigned Credential in Dm2 format")
|
|
30
30
|
revocable: Optional[StrictBool] = None
|
|
31
31
|
disclosure_frame: Dict[str, Any] = Field(default=..., alias="disclosureFrame")
|
|
32
|
-
|
|
32
|
+
signature_scheme: Optional[StrictStr] = Field(default=None, alias="signatureScheme")
|
|
33
|
+
__properties = ["unsignedCredential", "revocable", "disclosureFrame", "signatureScheme"]
|
|
34
|
+
|
|
35
|
+
@validator('signature_scheme')
|
|
36
|
+
def signature_scheme_validate_enum(cls, value):
|
|
37
|
+
"""Validates the enum"""
|
|
38
|
+
if value is None:
|
|
39
|
+
return value
|
|
40
|
+
|
|
41
|
+
if value not in ('ecdsa_secp256k1_sha256', 'ecdsa_p256_sha256', 'ed25519',):
|
|
42
|
+
raise ValueError("must be one of enum values ('ecdsa_secp256k1_sha256', 'ecdsa_p256_sha256', 'ed25519')")
|
|
43
|
+
return value
|
|
33
44
|
|
|
34
45
|
class Config:
|
|
35
46
|
"""Pydantic configuration"""
|
|
@@ -69,7 +80,8 @@ class SignCredentialsDm2SdJwtInputDto(BaseModel):
|
|
|
69
80
|
_obj = SignCredentialsDm2SdJwtInputDto.parse_obj({
|
|
70
81
|
"unsigned_credential": obj.get("unsignedCredential"),
|
|
71
82
|
"revocable": obj.get("revocable"),
|
|
72
|
-
"disclosure_frame": obj.get("disclosureFrame")
|
|
83
|
+
"disclosure_frame": obj.get("disclosureFrame"),
|
|
84
|
+
"signature_scheme": obj.get("signatureScheme")
|
|
73
85
|
})
|
|
74
86
|
return _obj
|
|
75
87
|
|
|
@@ -20,15 +20,26 @@ import json
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
from typing import Any, Dict, Optional
|
|
23
|
-
from pydantic import BaseModel, Field, StrictBool
|
|
23
|
+
from pydantic import BaseModel, Field, StrictBool, StrictStr, validator
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class SignCredentialsJwtInputDto(BaseModel):
|
|
26
26
|
"""
|
|
27
27
|
DTO contains params to sign credential # noqa: E501
|
|
28
28
|
"""
|
|
29
29
|
unsigned_credential: Dict[str, Any] = Field(default=..., alias="unsignedCredential", description="Unsigned Credential in Dm1 format")
|
|
30
30
|
revocable: Optional[StrictBool] = None
|
|
31
|
-
|
|
31
|
+
signature_scheme: Optional[StrictStr] = Field(default=None, alias="signatureScheme")
|
|
32
|
+
__properties = ["unsignedCredential", "revocable", "signatureScheme"]
|
|
33
|
+
|
|
34
|
+
@validator('signature_scheme')
|
|
35
|
+
def signature_scheme_validate_enum(cls, value):
|
|
36
|
+
"""Validates the enum"""
|
|
37
|
+
if value is None:
|
|
38
|
+
return value
|
|
39
|
+
|
|
40
|
+
if value not in ('ecdsa_secp256k1_sha256', 'ecdsa_p256_sha256', 'ed25519',):
|
|
41
|
+
raise ValueError("must be one of enum values ('ecdsa_secp256k1_sha256', 'ecdsa_p256_sha256', 'ed25519')")
|
|
42
|
+
return value
|
|
32
43
|
|
|
33
44
|
class Config:
|
|
34
45
|
"""Pydantic configuration"""
|
|
@@ -44,8 +55,8 @@ class SignCredentialsDm1JwtInputDto(BaseModel):
|
|
|
44
55
|
return json.dumps(self.to_dict())
|
|
45
56
|
|
|
46
57
|
@classmethod
|
|
47
|
-
def from_json(cls, json_str: str) ->
|
|
48
|
-
"""Create an instance of
|
|
58
|
+
def from_json(cls, json_str: str) -> SignCredentialsJwtInputDto:
|
|
59
|
+
"""Create an instance of SignCredentialsJwtInputDto from a JSON string"""
|
|
49
60
|
return cls.from_dict(json.loads(json_str))
|
|
50
61
|
|
|
51
62
|
def to_dict(self):
|
|
@@ -57,17 +68,18 @@ class SignCredentialsDm1JwtInputDto(BaseModel):
|
|
|
57
68
|
return _dict
|
|
58
69
|
|
|
59
70
|
@classmethod
|
|
60
|
-
def from_dict(cls, obj: dict) ->
|
|
61
|
-
"""Create an instance of
|
|
71
|
+
def from_dict(cls, obj: dict) -> SignCredentialsJwtInputDto:
|
|
72
|
+
"""Create an instance of SignCredentialsJwtInputDto from a dict"""
|
|
62
73
|
if obj is None:
|
|
63
74
|
return None
|
|
64
75
|
|
|
65
76
|
if not isinstance(obj, dict):
|
|
66
|
-
return
|
|
77
|
+
return SignCredentialsJwtInputDto.parse_obj(obj)
|
|
67
78
|
|
|
68
|
-
_obj =
|
|
79
|
+
_obj = SignCredentialsJwtInputDto.parse_obj({
|
|
69
80
|
"unsigned_credential": obj.get("unsignedCredential"),
|
|
70
|
-
"revocable": obj.get("revocable")
|
|
81
|
+
"revocable": obj.get("revocable"),
|
|
82
|
+
"signature_scheme": obj.get("signatureScheme")
|
|
71
83
|
})
|
|
72
84
|
return _obj
|
|
73
85
|
|
|
@@ -22,7 +22,7 @@ import json
|
|
|
22
22
|
|
|
23
23
|
from pydantic import BaseModel, Field, StrictStr
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class SignCredentialsJwtResultDto(BaseModel):
|
|
26
26
|
"""
|
|
27
27
|
DTO contains signed credential # noqa: E501
|
|
28
28
|
"""
|
|
@@ -43,8 +43,8 @@ class SignCredentialsDm1JwtResultDto(BaseModel):
|
|
|
43
43
|
return json.dumps(self.to_dict())
|
|
44
44
|
|
|
45
45
|
@classmethod
|
|
46
|
-
def from_json(cls, json_str: str) ->
|
|
47
|
-
"""Create an instance of
|
|
46
|
+
def from_json(cls, json_str: str) -> SignCredentialsJwtResultDto:
|
|
47
|
+
"""Create an instance of SignCredentialsJwtResultDto from a JSON string"""
|
|
48
48
|
return cls.from_dict(json.loads(json_str))
|
|
49
49
|
|
|
50
50
|
def to_dict(self):
|
|
@@ -56,15 +56,15 @@ class SignCredentialsDm1JwtResultDto(BaseModel):
|
|
|
56
56
|
return _dict
|
|
57
57
|
|
|
58
58
|
@classmethod
|
|
59
|
-
def from_dict(cls, obj: dict) ->
|
|
60
|
-
"""Create an instance of
|
|
59
|
+
def from_dict(cls, obj: dict) -> SignCredentialsJwtResultDto:
|
|
60
|
+
"""Create an instance of SignCredentialsJwtResultDto from a dict"""
|
|
61
61
|
if obj is None:
|
|
62
62
|
return None
|
|
63
63
|
|
|
64
64
|
if not isinstance(obj, dict):
|
|
65
|
-
return
|
|
65
|
+
return SignCredentialsJwtResultDto.parse_obj(obj)
|
|
66
66
|
|
|
67
|
-
_obj =
|
|
67
|
+
_obj = SignCredentialsJwtResultDto.parse_obj({
|
|
68
68
|
"credential": obj.get("credential")
|
|
69
69
|
})
|
|
70
70
|
return _obj
|
|
@@ -20,15 +20,26 @@ import json
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
from typing import Any, Dict, Optional
|
|
23
|
-
from pydantic import BaseModel, Field, StrictBool
|
|
23
|
+
from pydantic import BaseModel, Field, StrictBool, StrictStr, validator
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class SignCredentialsLdpInputDto(BaseModel):
|
|
26
26
|
"""
|
|
27
27
|
DTO contains params to sign credential # noqa: E501
|
|
28
28
|
"""
|
|
29
29
|
unsigned_credential: Dict[str, Any] = Field(default=..., alias="unsignedCredential", description="Unsigned Credential in Dm2 format ")
|
|
30
30
|
revocable: Optional[StrictBool] = None
|
|
31
|
-
|
|
31
|
+
signature_scheme: Optional[StrictStr] = Field(default=None, alias="signatureScheme")
|
|
32
|
+
__properties = ["unsignedCredential", "revocable", "signatureScheme"]
|
|
33
|
+
|
|
34
|
+
@validator('signature_scheme')
|
|
35
|
+
def signature_scheme_validate_enum(cls, value):
|
|
36
|
+
"""Validates the enum"""
|
|
37
|
+
if value is None:
|
|
38
|
+
return value
|
|
39
|
+
|
|
40
|
+
if value not in ('ecdsa_secp256k1_sha256', 'ecdsa_p256_sha256', 'ed25519',):
|
|
41
|
+
raise ValueError("must be one of enum values ('ecdsa_secp256k1_sha256', 'ecdsa_p256_sha256', 'ed25519')")
|
|
42
|
+
return value
|
|
32
43
|
|
|
33
44
|
class Config:
|
|
34
45
|
"""Pydantic configuration"""
|
|
@@ -44,8 +55,8 @@ class SignCredentialsDm2LdInputDto(BaseModel):
|
|
|
44
55
|
return json.dumps(self.to_dict())
|
|
45
56
|
|
|
46
57
|
@classmethod
|
|
47
|
-
def from_json(cls, json_str: str) ->
|
|
48
|
-
"""Create an instance of
|
|
58
|
+
def from_json(cls, json_str: str) -> SignCredentialsLdpInputDto:
|
|
59
|
+
"""Create an instance of SignCredentialsLdpInputDto from a JSON string"""
|
|
49
60
|
return cls.from_dict(json.loads(json_str))
|
|
50
61
|
|
|
51
62
|
def to_dict(self):
|
|
@@ -57,17 +68,18 @@ class SignCredentialsDm2LdInputDto(BaseModel):
|
|
|
57
68
|
return _dict
|
|
58
69
|
|
|
59
70
|
@classmethod
|
|
60
|
-
def from_dict(cls, obj: dict) ->
|
|
61
|
-
"""Create an instance of
|
|
71
|
+
def from_dict(cls, obj: dict) -> SignCredentialsLdpInputDto:
|
|
72
|
+
"""Create an instance of SignCredentialsLdpInputDto from a dict"""
|
|
62
73
|
if obj is None:
|
|
63
74
|
return None
|
|
64
75
|
|
|
65
76
|
if not isinstance(obj, dict):
|
|
66
|
-
return
|
|
77
|
+
return SignCredentialsLdpInputDto.parse_obj(obj)
|
|
67
78
|
|
|
68
|
-
_obj =
|
|
79
|
+
_obj = SignCredentialsLdpInputDto.parse_obj({
|
|
69
80
|
"unsigned_credential": obj.get("unsignedCredential"),
|
|
70
|
-
"revocable": obj.get("revocable")
|
|
81
|
+
"revocable": obj.get("revocable"),
|
|
82
|
+
"signature_scheme": obj.get("signatureScheme")
|
|
71
83
|
})
|
|
72
84
|
return _obj
|
|
73
85
|
|
|
@@ -22,7 +22,7 @@ import json
|
|
|
22
22
|
from typing import Any, Dict
|
|
23
23
|
from pydantic import BaseModel, Field
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class SignCredentialsLdpResultDto(BaseModel):
|
|
26
26
|
"""
|
|
27
27
|
DTO contains signed credential # noqa: E501
|
|
28
28
|
"""
|
|
@@ -43,8 +43,8 @@ class SignCredentialsDm2LdResultDto(BaseModel):
|
|
|
43
43
|
return json.dumps(self.to_dict())
|
|
44
44
|
|
|
45
45
|
@classmethod
|
|
46
|
-
def from_json(cls, json_str: str) ->
|
|
47
|
-
"""Create an instance of
|
|
46
|
+
def from_json(cls, json_str: str) -> SignCredentialsLdpResultDto:
|
|
47
|
+
"""Create an instance of SignCredentialsLdpResultDto from a JSON string"""
|
|
48
48
|
return cls.from_dict(json.loads(json_str))
|
|
49
49
|
|
|
50
50
|
def to_dict(self):
|
|
@@ -56,15 +56,15 @@ class SignCredentialsDm2LdResultDto(BaseModel):
|
|
|
56
56
|
return _dict
|
|
57
57
|
|
|
58
58
|
@classmethod
|
|
59
|
-
def from_dict(cls, obj: dict) ->
|
|
60
|
-
"""Create an instance of
|
|
59
|
+
def from_dict(cls, obj: dict) -> SignCredentialsLdpResultDto:
|
|
60
|
+
"""Create an instance of SignCredentialsLdpResultDto from a dict"""
|
|
61
61
|
if obj is None:
|
|
62
62
|
return None
|
|
63
63
|
|
|
64
64
|
if not isinstance(obj, dict):
|
|
65
|
-
return
|
|
65
|
+
return SignCredentialsLdpResultDto.parse_obj(obj)
|
|
66
66
|
|
|
67
|
-
_obj =
|
|
67
|
+
_obj = SignCredentialsLdpResultDto.parse_obj({
|
|
68
68
|
"credential": obj.get("credential")
|
|
69
69
|
})
|
|
70
70
|
return _obj
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
CloudWalletEssentials
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
from typing import Any, Dict, List, Optional
|
|
23
|
+
from pydantic import BaseModel, Field, StrictStr, conlist, validator
|
|
24
|
+
|
|
25
|
+
class SignPresentationLdpInputDto(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
DTO contains params to sign presentation # noqa: E501
|
|
28
|
+
"""
|
|
29
|
+
unsigned_presentation: Dict[str, Any] = Field(default=..., alias="unsignedPresentation", description="Unsigned presentation in Dm1 format")
|
|
30
|
+
signature_scheme: Optional[StrictStr] = Field(default=None, alias="signatureScheme")
|
|
31
|
+
domain: Optional[conlist(StrictStr)] = Field(default=None, description="Domain(s) for which the presentation is intended")
|
|
32
|
+
challenge: Optional[StrictStr] = Field(default=None, description="Challenge string")
|
|
33
|
+
__properties = ["unsignedPresentation", "signatureScheme", "domain", "challenge"]
|
|
34
|
+
|
|
35
|
+
@validator('signature_scheme')
|
|
36
|
+
def signature_scheme_validate_enum(cls, value):
|
|
37
|
+
"""Validates the enum"""
|
|
38
|
+
if value is None:
|
|
39
|
+
return value
|
|
40
|
+
|
|
41
|
+
if value not in ('ecdsa_secp256k1_sha256', 'ecdsa_p256_sha256', 'ed25519',):
|
|
42
|
+
raise ValueError("must be one of enum values ('ecdsa_secp256k1_sha256', 'ecdsa_p256_sha256', 'ed25519')")
|
|
43
|
+
return value
|
|
44
|
+
|
|
45
|
+
class Config:
|
|
46
|
+
"""Pydantic configuration"""
|
|
47
|
+
allow_population_by_field_name = True
|
|
48
|
+
validate_assignment = True
|
|
49
|
+
|
|
50
|
+
def to_str(self) -> str:
|
|
51
|
+
"""Returns the string representation of the model using alias"""
|
|
52
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
53
|
+
|
|
54
|
+
def to_json(self) -> str:
|
|
55
|
+
"""Returns the JSON representation of the model using alias"""
|
|
56
|
+
return json.dumps(self.to_dict())
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_json(cls, json_str: str) -> SignPresentationLdpInputDto:
|
|
60
|
+
"""Create an instance of SignPresentationLdpInputDto from a JSON string"""
|
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
|
62
|
+
|
|
63
|
+
def to_dict(self):
|
|
64
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
65
|
+
_dict = self.dict(by_alias=True,
|
|
66
|
+
exclude={
|
|
67
|
+
},
|
|
68
|
+
exclude_none=True)
|
|
69
|
+
return _dict
|
|
70
|
+
|
|
71
|
+
@classmethod
|
|
72
|
+
def from_dict(cls, obj: dict) -> SignPresentationLdpInputDto:
|
|
73
|
+
"""Create an instance of SignPresentationLdpInputDto from a dict"""
|
|
74
|
+
if obj is None:
|
|
75
|
+
return None
|
|
76
|
+
|
|
77
|
+
if not isinstance(obj, dict):
|
|
78
|
+
return SignPresentationLdpInputDto.parse_obj(obj)
|
|
79
|
+
|
|
80
|
+
_obj = SignPresentationLdpInputDto.parse_obj({
|
|
81
|
+
"unsigned_presentation": obj.get("unsignedPresentation"),
|
|
82
|
+
"signature_scheme": obj.get("signatureScheme"),
|
|
83
|
+
"domain": obj.get("domain"),
|
|
84
|
+
"challenge": obj.get("challenge")
|
|
85
|
+
})
|
|
86
|
+
return _obj
|
|
87
|
+
|
|
88
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
CloudWalletEssentials
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
from typing import Any, Dict
|
|
23
|
+
from pydantic import BaseModel, Field
|
|
24
|
+
|
|
25
|
+
class SignPresentationLdpResultDto(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
DTO contains signed presentation # noqa: E501
|
|
28
|
+
"""
|
|
29
|
+
presentation: Dict[str, Any] = Field(default=..., description="Signed presentation in Dm1Ld format")
|
|
30
|
+
__properties = ["presentation"]
|
|
31
|
+
|
|
32
|
+
class Config:
|
|
33
|
+
"""Pydantic configuration"""
|
|
34
|
+
allow_population_by_field_name = True
|
|
35
|
+
validate_assignment = True
|
|
36
|
+
|
|
37
|
+
def to_str(self) -> str:
|
|
38
|
+
"""Returns the string representation of the model using alias"""
|
|
39
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
40
|
+
|
|
41
|
+
def to_json(self) -> str:
|
|
42
|
+
"""Returns the JSON representation of the model using alias"""
|
|
43
|
+
return json.dumps(self.to_dict())
|
|
44
|
+
|
|
45
|
+
@classmethod
|
|
46
|
+
def from_json(cls, json_str: str) -> SignPresentationLdpResultDto:
|
|
47
|
+
"""Create an instance of SignPresentationLdpResultDto from a JSON string"""
|
|
48
|
+
return cls.from_dict(json.loads(json_str))
|
|
49
|
+
|
|
50
|
+
def to_dict(self):
|
|
51
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
52
|
+
_dict = self.dict(by_alias=True,
|
|
53
|
+
exclude={
|
|
54
|
+
},
|
|
55
|
+
exclude_none=True)
|
|
56
|
+
return _dict
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_dict(cls, obj: dict) -> SignPresentationLdpResultDto:
|
|
60
|
+
"""Create an instance of SignPresentationLdpResultDto from a dict"""
|
|
61
|
+
if obj is None:
|
|
62
|
+
return None
|
|
63
|
+
|
|
64
|
+
if not isinstance(obj, dict):
|
|
65
|
+
return SignPresentationLdpResultDto.parse_obj(obj)
|
|
66
|
+
|
|
67
|
+
_obj = SignPresentationLdpResultDto.parse_obj({
|
|
68
|
+
"presentation": obj.get("presentation")
|
|
69
|
+
})
|
|
70
|
+
return _obj
|
|
71
|
+
|
|
72
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
CloudWalletEssentials
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
from typing import Any, Dict, List, Optional
|
|
23
|
+
from pydantic import BaseModel, Field, StrictStr, conlist
|
|
24
|
+
from affinidi_tdk_wallets_client.models.wallet_dto_keys_inner import WalletDtoKeysInner
|
|
25
|
+
|
|
26
|
+
class WalletV2Dto(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
wallet v2 dto # noqa: E501
|
|
29
|
+
"""
|
|
30
|
+
id: Optional[StrictStr] = Field(default=None, description="id of the wallet in uuidV4 format")
|
|
31
|
+
did: Optional[StrictStr] = Field(default=None, description="did of the wallet")
|
|
32
|
+
name: Optional[StrictStr] = Field(default=None, description="The name of the wallet")
|
|
33
|
+
description: Optional[StrictStr] = Field(default=None, description="The description of the wallet")
|
|
34
|
+
did_document: Optional[Dict[str, Any]] = Field(default=None, alias="didDocument", description="did document of the wallet")
|
|
35
|
+
ari: Optional[StrictStr] = Field(default=None, description="ARI of the wallet")
|
|
36
|
+
algorithm: Optional[StrictStr] = Field(default=None, description="algorithm used to generate key for the wallet")
|
|
37
|
+
keys: Optional[conlist(WalletDtoKeysInner)] = None
|
|
38
|
+
created_at: Optional[StrictStr] = Field(default=None, alias="createdAt")
|
|
39
|
+
modified_at: Optional[StrictStr] = Field(default=None, alias="modifiedAt")
|
|
40
|
+
__properties = ["id", "did", "name", "description", "didDocument", "ari", "algorithm", "keys", "createdAt", "modifiedAt"]
|
|
41
|
+
|
|
42
|
+
class Config:
|
|
43
|
+
"""Pydantic configuration"""
|
|
44
|
+
allow_population_by_field_name = True
|
|
45
|
+
validate_assignment = True
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
return json.dumps(self.to_dict())
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_json(cls, json_str: str) -> WalletV2Dto:
|
|
57
|
+
"""Create an instance of WalletV2Dto from a JSON string"""
|
|
58
|
+
return cls.from_dict(json.loads(json_str))
|
|
59
|
+
|
|
60
|
+
def to_dict(self):
|
|
61
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
62
|
+
_dict = self.dict(by_alias=True,
|
|
63
|
+
exclude={
|
|
64
|
+
},
|
|
65
|
+
exclude_none=True)
|
|
66
|
+
# override the default output from pydantic by calling `to_dict()` of each item in keys (list)
|
|
67
|
+
_items = []
|
|
68
|
+
if self.keys:
|
|
69
|
+
for _item in self.keys:
|
|
70
|
+
if _item:
|
|
71
|
+
_items.append(_item.to_dict())
|
|
72
|
+
_dict['keys'] = _items
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: dict) -> WalletV2Dto:
|
|
77
|
+
"""Create an instance of WalletV2Dto from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return WalletV2Dto.parse_obj(obj)
|
|
83
|
+
|
|
84
|
+
_obj = WalletV2Dto.parse_obj({
|
|
85
|
+
"id": obj.get("id"),
|
|
86
|
+
"did": obj.get("did"),
|
|
87
|
+
"name": obj.get("name"),
|
|
88
|
+
"description": obj.get("description"),
|
|
89
|
+
"did_document": obj.get("didDocument"),
|
|
90
|
+
"ari": obj.get("ari"),
|
|
91
|
+
"algorithm": obj.get("algorithm"),
|
|
92
|
+
"keys": [WalletDtoKeysInner.from_dict(_item) for _item in obj.get("keys")] if obj.get("keys") is not None else None,
|
|
93
|
+
"created_at": obj.get("createdAt"),
|
|
94
|
+
"modified_at": obj.get("modifiedAt")
|
|
95
|
+
})
|
|
96
|
+
return _obj
|
|
97
|
+
|
|
98
|
+
|
|
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
|
|
File without changes
|