affinidi_tdk_wallets_client 1.54.0__tar.gz → 1.57.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (48) hide show
  1. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/PKG-INFO +9 -3
  2. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/README.md +8 -2
  3. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/__init__.py +8 -2
  4. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/api_client.py +9 -2
  5. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/__init__.py +8 -2
  6. affinidi_tdk_wallets_client-1.54.0/affinidi_tdk_wallets_client/models/did_web_input_params.py → affinidi_tdk_wallets_client-1.57.0/affinidi_tdk_wallets_client/models/create_wallet_input.py +18 -12
  7. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/entity_not_found_error.py +3 -3
  8. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/invalid_did_parameter_error.py +3 -3
  9. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/invalid_parameter_error.py +3 -3
  10. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/key_not_found_error.py +3 -3
  11. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/not_found_error.py +3 -3
  12. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/operation_forbidden_error.py +3 -3
  13. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/sign_credential_input_dto.py +1 -1
  14. affinidi_tdk_wallets_client-1.57.0/affinidi_tdk_wallets_client/models/sign_credentials_dm1_jwt_input_dto.py +74 -0
  15. affinidi_tdk_wallets_client-1.57.0/affinidi_tdk_wallets_client/models/sign_credentials_dm1_jwt_result_dto.py +72 -0
  16. affinidi_tdk_wallets_client-1.57.0/affinidi_tdk_wallets_client/models/sign_credentials_dm1_ld_input_dto.py +74 -0
  17. affinidi_tdk_wallets_client-1.57.0/affinidi_tdk_wallets_client/models/sign_credentials_dm1_ld_result_dto.py +72 -0
  18. affinidi_tdk_wallets_client-1.57.0/affinidi_tdk_wallets_client/models/sign_credentials_dm2_ld_input_dto.py +74 -0
  19. affinidi_tdk_wallets_client-1.57.0/affinidi_tdk_wallets_client/models/sign_credentials_dm2_ld_result_dto.py +72 -0
  20. affinidi_tdk_wallets_client-1.57.0/affinidi_tdk_wallets_client/models/sign_credentials_dm2_sd_jwt_input_dto.py +76 -0
  21. affinidi_tdk_wallets_client-1.57.0/affinidi_tdk_wallets_client/models/sign_credentials_dm2_sd_jwt_result_dto.py +72 -0
  22. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/signing_failed_error.py +3 -3
  23. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/pyproject.toml +1 -1
  24. affinidi_tdk_wallets_client-1.54.0/affinidi_tdk_wallets_client/models/create_wallet_input.py +0 -142
  25. affinidi_tdk_wallets_client-1.54.0/affinidi_tdk_wallets_client/models/did_key_input_params.py +0 -86
  26. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/api/__init__.py +0 -0
  27. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/api/revocation_api.py +0 -0
  28. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/api/wallet_api.py +0 -0
  29. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/api_response.py +0 -0
  30. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/configuration.py +0 -0
  31. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/exceptions.py +0 -0
  32. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/create_wallet_response.py +0 -0
  33. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/get_revocation_credential_status_ok.py +0 -0
  34. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/get_revocation_list_credential_result_dto.py +0 -0
  35. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/revoke_credential_input.py +0 -0
  36. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/service_error_response.py +0 -0
  37. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/service_error_response_details_inner.py +0 -0
  38. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/sign_credential400_response.py +0 -0
  39. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/sign_credential_input_dto_unsigned_credential_params.py +0 -0
  40. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/sign_credential_result_dto.py +0 -0
  41. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/sign_jwt_token.py +0 -0
  42. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/sign_jwt_token_ok.py +0 -0
  43. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/update_wallet_input.py +0 -0
  44. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/wallet_dto.py +0 -0
  45. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/wallet_dto_keys_inner.py +0 -0
  46. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/models/wallets_list_dto.py +0 -0
  47. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.0}/affinidi_tdk_wallets_client/py.typed +0 -0
  48. {affinidi_tdk_wallets_client-1.54.0 → affinidi_tdk_wallets_client-1.57.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.54.0
3
+ Version: 1.57.0
4
4
  Summary: CloudWalletEssentials
5
5
  Home-page: https://github.com/affinidi/affinidi-tdk
6
6
  License: Apache-2.0
@@ -151,8 +151,6 @@ 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
- - [DidKeyInputParams](docs/DidKeyInputParams.md)
155
- - [DidWebInputParams](docs/DidWebInputParams.md)
156
154
  - [EntityNotFoundError](docs/EntityNotFoundError.md)
157
155
  - [GetRevocationCredentialStatusOK](docs/GetRevocationCredentialStatusOK.md)
158
156
  - [GetRevocationListCredentialResultDto](docs/GetRevocationListCredentialResultDto.md)
@@ -168,6 +166,14 @@ All URIs are relative to *https://apse1.api.affinidi.io/cwe*
168
166
  - [SignCredentialInputDto](docs/SignCredentialInputDto.md)
169
167
  - [SignCredentialInputDtoUnsignedCredentialParams](docs/SignCredentialInputDtoUnsignedCredentialParams.md)
170
168
  - [SignCredentialResultDto](docs/SignCredentialResultDto.md)
169
+ - [SignCredentialsDm1JwtInputDto](docs/SignCredentialsDm1JwtInputDto.md)
170
+ - [SignCredentialsDm1JwtResultDto](docs/SignCredentialsDm1JwtResultDto.md)
171
+ - [SignCredentialsDm1LdInputDto](docs/SignCredentialsDm1LdInputDto.md)
172
+ - [SignCredentialsDm1LdResultDto](docs/SignCredentialsDm1LdResultDto.md)
173
+ - [SignCredentialsDm2LdInputDto](docs/SignCredentialsDm2LdInputDto.md)
174
+ - [SignCredentialsDm2LdResultDto](docs/SignCredentialsDm2LdResultDto.md)
175
+ - [SignCredentialsDm2SdJwtInputDto](docs/SignCredentialsDm2SdJwtInputDto.md)
176
+ - [SignCredentialsDm2SdJwtResultDto](docs/SignCredentialsDm2SdJwtResultDto.md)
171
177
  - [SignJwtToken](docs/SignJwtToken.md)
172
178
  - [SignJwtTokenOK](docs/SignJwtTokenOK.md)
173
179
  - [SigningFailedError](docs/SigningFailedError.md)
@@ -126,8 +126,6 @@ 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
- - [DidKeyInputParams](docs/DidKeyInputParams.md)
130
- - [DidWebInputParams](docs/DidWebInputParams.md)
131
129
  - [EntityNotFoundError](docs/EntityNotFoundError.md)
132
130
  - [GetRevocationCredentialStatusOK](docs/GetRevocationCredentialStatusOK.md)
133
131
  - [GetRevocationListCredentialResultDto](docs/GetRevocationListCredentialResultDto.md)
@@ -143,6 +141,14 @@ All URIs are relative to *https://apse1.api.affinidi.io/cwe*
143
141
  - [SignCredentialInputDto](docs/SignCredentialInputDto.md)
144
142
  - [SignCredentialInputDtoUnsignedCredentialParams](docs/SignCredentialInputDtoUnsignedCredentialParams.md)
145
143
  - [SignCredentialResultDto](docs/SignCredentialResultDto.md)
144
+ - [SignCredentialsDm1JwtInputDto](docs/SignCredentialsDm1JwtInputDto.md)
145
+ - [SignCredentialsDm1JwtResultDto](docs/SignCredentialsDm1JwtResultDto.md)
146
+ - [SignCredentialsDm1LdInputDto](docs/SignCredentialsDm1LdInputDto.md)
147
+ - [SignCredentialsDm1LdResultDto](docs/SignCredentialsDm1LdResultDto.md)
148
+ - [SignCredentialsDm2LdInputDto](docs/SignCredentialsDm2LdInputDto.md)
149
+ - [SignCredentialsDm2LdResultDto](docs/SignCredentialsDm2LdResultDto.md)
150
+ - [SignCredentialsDm2SdJwtInputDto](docs/SignCredentialsDm2SdJwtInputDto.md)
151
+ - [SignCredentialsDm2SdJwtResultDto](docs/SignCredentialsDm2SdJwtResultDto.md)
146
152
  - [SignJwtToken](docs/SignJwtToken.md)
147
153
  - [SignJwtTokenOK](docs/SignJwtTokenOK.md)
148
154
  - [SigningFailedError](docs/SigningFailedError.md)
@@ -35,8 +35,6 @@ 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.did_key_input_params import DidKeyInputParams
39
- from affinidi_tdk_wallets_client.models.did_web_input_params import DidWebInputParams
40
38
  from affinidi_tdk_wallets_client.models.entity_not_found_error import EntityNotFoundError
41
39
  from affinidi_tdk_wallets_client.models.get_revocation_credential_status_ok import GetRevocationCredentialStatusOK
42
40
  from affinidi_tdk_wallets_client.models.get_revocation_list_credential_result_dto import GetRevocationListCredentialResultDto
@@ -52,6 +50,14 @@ from affinidi_tdk_wallets_client.models.sign_credential400_response import SignC
52
50
  from affinidi_tdk_wallets_client.models.sign_credential_input_dto import SignCredentialInputDto
53
51
  from affinidi_tdk_wallets_client.models.sign_credential_input_dto_unsigned_credential_params import SignCredentialInputDtoUnsignedCredentialParams
54
52
  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
+ from affinidi_tdk_wallets_client.models.sign_credentials_dm1_ld_input_dto import SignCredentialsDm1LdInputDto
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
+ from affinidi_tdk_wallets_client.models.sign_credentials_dm2_sd_jwt_input_dto import SignCredentialsDm2SdJwtInputDto
60
+ from affinidi_tdk_wallets_client.models.sign_credentials_dm2_sd_jwt_result_dto import SignCredentialsDm2SdJwtResultDto
55
61
  from affinidi_tdk_wallets_client.models.sign_jwt_token import SignJwtToken
56
62
  from affinidi_tdk_wallets_client.models.sign_jwt_token_ok import SignJwtTokenOK
57
63
  from affinidi_tdk_wallets_client.models.signing_failed_error import SigningFailedError
@@ -24,6 +24,7 @@ import re
24
24
  import tempfile
25
25
 
26
26
  from urllib.parse import quote
27
+ from pydantic import SecretStr
27
28
 
28
29
  from affinidi_tdk_wallets_client.configuration import Configuration
29
30
  from affinidi_tdk_wallets_client.api_response import ApiResponse
@@ -261,6 +262,7 @@ class ApiClient:
261
262
  """Builds a JSON POST object.
262
263
 
263
264
  If obj is None, return None.
265
+ If obj is SecretStr, return obj.get_secret_value()
264
266
  If obj is str, int, long, float, bool, return directly.
265
267
  If obj is datetime.datetime, datetime.date
266
268
  convert to string in iso8601 format.
@@ -273,6 +275,8 @@ class ApiClient:
273
275
  """
274
276
  if obj is None:
275
277
  return None
278
+ elif isinstance(obj, SecretStr):
279
+ return obj.get_secret_value()
276
280
  elif isinstance(obj, self.PRIMITIVE_TYPES):
277
281
  return obj
278
282
  elif isinstance(obj, list):
@@ -292,7 +296,10 @@ class ApiClient:
292
296
  # and attributes which value is not None.
293
297
  # Convert attribute name to json key in
294
298
  # model definition for request.
295
- obj_dict = obj.to_dict()
299
+ if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')):
300
+ obj_dict = obj.to_dict()
301
+ else:
302
+ obj_dict = obj.__dict__
296
303
 
297
304
  return {key: self.sanitize_for_serialization(val)
298
305
  for key, val in obj_dict.items()}
@@ -539,7 +546,7 @@ class ApiClient:
539
546
  if k in collection_formats:
540
547
  collection_format = collection_formats[k]
541
548
  if collection_format == 'multi':
542
- new_params.extend((k, str(value)) for value in v)
549
+ new_params.extend((k, quote(str(value))) for value in v)
543
550
  else:
544
551
  if collection_format == 'ssv':
545
552
  delimiter = ' '
@@ -17,8 +17,6 @@
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.did_key_input_params import DidKeyInputParams
21
- from affinidi_tdk_wallets_client.models.did_web_input_params import DidWebInputParams
22
20
  from affinidi_tdk_wallets_client.models.entity_not_found_error import EntityNotFoundError
23
21
  from affinidi_tdk_wallets_client.models.get_revocation_credential_status_ok import GetRevocationCredentialStatusOK
24
22
  from affinidi_tdk_wallets_client.models.get_revocation_list_credential_result_dto import GetRevocationListCredentialResultDto
@@ -34,6 +32,14 @@ from affinidi_tdk_wallets_client.models.sign_credential400_response import SignC
34
32
  from affinidi_tdk_wallets_client.models.sign_credential_input_dto import SignCredentialInputDto
35
33
  from affinidi_tdk_wallets_client.models.sign_credential_input_dto_unsigned_credential_params import SignCredentialInputDtoUnsignedCredentialParams
36
34
  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
+ from affinidi_tdk_wallets_client.models.sign_credentials_dm1_ld_input_dto import SignCredentialsDm1LdInputDto
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
+ from affinidi_tdk_wallets_client.models.sign_credentials_dm2_sd_jwt_input_dto import SignCredentialsDm2SdJwtInputDto
42
+ from affinidi_tdk_wallets_client.models.sign_credentials_dm2_sd_jwt_result_dto import SignCredentialsDm2SdJwtResultDto
37
43
  from affinidi_tdk_wallets_client.models.sign_jwt_token import SignJwtToken
38
44
  from affinidi_tdk_wallets_client.models.sign_jwt_token_ok import SignJwtTokenOK
39
45
  from affinidi_tdk_wallets_client.models.signing_failed_error import SigningFailedError
@@ -22,26 +22,32 @@ import json
22
22
  from typing import Optional
23
23
  from pydantic import BaseModel, Field, StrictStr, constr, validator
24
24
 
25
- class DidWebInputParams(BaseModel):
25
+ class CreateWalletInput(BaseModel):
26
26
  """
27
- Additional params for did method web # noqa: E501
27
+ CreateWalletInput
28
28
  """
29
29
  name: Optional[StrictStr] = Field(default=None, description="The name of the wallet")
30
30
  description: Optional[StrictStr] = Field(default=None, description="The description of the wallet")
31
- did_method: StrictStr = Field(default=..., alias="didMethod")
32
- did_web_url: constr(strict=True, max_length=300) = Field(default=..., alias="didWebUrl", description="If the did method is web, this is the URL of the did")
31
+ did_method: Optional[StrictStr] = Field(default=None, 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
33
  __properties = ["name", "description", "didMethod", "didWebUrl"]
34
34
 
35
35
  @validator('did_method')
36
36
  def did_method_validate_enum(cls, value):
37
37
  """Validates the enum"""
38
- if value not in ('web'):
39
- raise ValueError("must be one of enum values ('web')")
38
+ if value is None:
39
+ return value
40
+
41
+ if value not in ('key', 'web',):
42
+ raise ValueError("must be one of enum values ('key', 'web')")
40
43
  return value
41
44
 
42
45
  @validator('did_web_url')
43
46
  def did_web_url_validate_regular_expression(cls, value):
44
47
  """Validates the regular expression"""
48
+ if value is None:
49
+ return value
50
+
45
51
  if not re.match(r"^(?!:\/\/)([a-zA-Z0-9\-\.]+)(:[0-9]+)?(\/[a-zA-Z0-9\-\/]*)?$", value):
46
52
  raise ValueError(r"must validate the regular expression /^(?!:\/\/)([a-zA-Z0-9\-\.]+)(:[0-9]+)?(\/[a-zA-Z0-9\-\/]*)?$/")
47
53
  return value
@@ -60,8 +66,8 @@ class DidWebInputParams(BaseModel):
60
66
  return json.dumps(self.to_dict())
61
67
 
62
68
  @classmethod
63
- def from_json(cls, json_str: str) -> DidWebInputParams:
64
- """Create an instance of DidWebInputParams from a JSON string"""
69
+ def from_json(cls, json_str: str) -> CreateWalletInput:
70
+ """Create an instance of CreateWalletInput from a JSON string"""
65
71
  return cls.from_dict(json.loads(json_str))
66
72
 
67
73
  def to_dict(self):
@@ -73,15 +79,15 @@ class DidWebInputParams(BaseModel):
73
79
  return _dict
74
80
 
75
81
  @classmethod
76
- def from_dict(cls, obj: dict) -> DidWebInputParams:
77
- """Create an instance of DidWebInputParams from a dict"""
82
+ def from_dict(cls, obj: dict) -> CreateWalletInput:
83
+ """Create an instance of CreateWalletInput from a dict"""
78
84
  if obj is None:
79
85
  return None
80
86
 
81
87
  if not isinstance(obj, dict):
82
- return DidWebInputParams.parse_obj(obj)
88
+ return CreateWalletInput.parse_obj(obj)
83
89
 
84
- _obj = DidWebInputParams.parse_obj({
90
+ _obj = CreateWalletInput.parse_obj({
85
91
  "name": obj.get("name"),
86
92
  "description": obj.get("description"),
87
93
  "did_method": obj.get("didMethod"),
@@ -37,21 +37,21 @@ class EntityNotFoundError(BaseModel):
37
37
  @validator('name')
38
38
  def name_validate_enum(cls, value):
39
39
  """Validates the enum"""
40
- if value not in ('EntityNotFoundError'):
40
+ if value not in ('EntityNotFoundError',):
41
41
  raise ValueError("must be one of enum values ('EntityNotFoundError')")
42
42
  return value
43
43
 
44
44
  @validator('message')
45
45
  def message_validate_enum(cls, value):
46
46
  """Validates the enum"""
47
- if value not in ('Entity not found'):
47
+ if value not in ('Entity not found',):
48
48
  raise ValueError("must be one of enum values ('Entity not found')")
49
49
  return value
50
50
 
51
51
  @validator('http_status_code')
52
52
  def http_status_code_validate_enum(cls, value):
53
53
  """Validates the enum"""
54
- if value not in (404):
54
+ if value not in (404,):
55
55
  raise ValueError("must be one of enum values (404)")
56
56
  return value
57
57
 
@@ -37,21 +37,21 @@ class InvalidDidParameterError(BaseModel):
37
37
  @validator('name')
38
38
  def name_validate_enum(cls, value):
39
39
  """Validates the enum"""
40
- if value not in ('InvalidDidParameterError'):
40
+ if value not in ('InvalidDidParameterError',):
41
41
  raise ValueError("must be one of enum values ('InvalidDidParameterError')")
42
42
  return value
43
43
 
44
44
  @validator('message')
45
45
  def message_validate_enum(cls, value):
46
46
  """Validates the enum"""
47
- if value not in ('Given did in field toDid is invalid. Use only resolvable form of did.'):
47
+ if value not in ('Given did in field toDid is invalid. Use only resolvable form of did.',):
48
48
  raise ValueError("must be one of enum values ('Given did in field toDid is invalid. Use only resolvable form of did.')")
49
49
  return value
50
50
 
51
51
  @validator('http_status_code')
52
52
  def http_status_code_validate_enum(cls, value):
53
53
  """Validates the enum"""
54
- if value not in (400):
54
+ if value not in (400,):
55
55
  raise ValueError("must be one of enum values (400)")
56
56
  return value
57
57
 
@@ -37,21 +37,21 @@ class InvalidParameterError(BaseModel):
37
37
  @validator('name')
38
38
  def name_validate_enum(cls, value):
39
39
  """Validates the enum"""
40
- if value not in ('InvalidParameterError'):
40
+ if value not in ('InvalidParameterError',):
41
41
  raise ValueError("must be one of enum values ('InvalidParameterError')")
42
42
  return value
43
43
 
44
44
  @validator('message')
45
45
  def message_validate_enum(cls, value):
46
46
  """Validates the enum"""
47
- if value not in ('Invalid parameter: ${param}.'):
47
+ if value not in ('Invalid parameter: ${param}.',):
48
48
  raise ValueError("must be one of enum values ('Invalid parameter: ${param}.')")
49
49
  return value
50
50
 
51
51
  @validator('http_status_code')
52
52
  def http_status_code_validate_enum(cls, value):
53
53
  """Validates the enum"""
54
- if value not in (400):
54
+ if value not in (400,):
55
55
  raise ValueError("must be one of enum values (400)")
56
56
  return value
57
57
 
@@ -37,21 +37,21 @@ class KeyNotFoundError(BaseModel):
37
37
  @validator('name')
38
38
  def name_validate_enum(cls, value):
39
39
  """Validates the enum"""
40
- if value not in ('KeyNotFoundError'):
40
+ if value not in ('KeyNotFoundError',):
41
41
  raise ValueError("must be one of enum values ('KeyNotFoundError')")
42
42
  return value
43
43
 
44
44
  @validator('message')
45
45
  def message_validate_enum(cls, value):
46
46
  """Validates the enum"""
47
- if value not in ('Key not found'):
47
+ if value not in ('Key not found',):
48
48
  raise ValueError("must be one of enum values ('Key not found')")
49
49
  return value
50
50
 
51
51
  @validator('http_status_code')
52
52
  def http_status_code_validate_enum(cls, value):
53
53
  """Validates the enum"""
54
- if value not in (500):
54
+ if value not in (500,):
55
55
  raise ValueError("must be one of enum values (500)")
56
56
  return value
57
57
 
@@ -37,21 +37,21 @@ class NotFoundError(BaseModel):
37
37
  @validator('name')
38
38
  def name_validate_enum(cls, value):
39
39
  """Validates the enum"""
40
- if value not in ('NotFoundError'):
40
+ if value not in ('NotFoundError',):
41
41
  raise ValueError("must be one of enum values ('NotFoundError')")
42
42
  return value
43
43
 
44
44
  @validator('message')
45
45
  def message_validate_enum(cls, value):
46
46
  """Validates the enum"""
47
- if value not in ('Not found: ${param}.'):
47
+ if value not in ('Not found: ${param}.',):
48
48
  raise ValueError("must be one of enum values ('Not found: ${param}.')")
49
49
  return value
50
50
 
51
51
  @validator('http_status_code')
52
52
  def http_status_code_validate_enum(cls, value):
53
53
  """Validates the enum"""
54
- if value not in (404):
54
+ if value not in (404,):
55
55
  raise ValueError("must be one of enum values (404)")
56
56
  return value
57
57
 
@@ -37,21 +37,21 @@ class OperationForbiddenError(BaseModel):
37
37
  @validator('name')
38
38
  def name_validate_enum(cls, value):
39
39
  """Validates the enum"""
40
- if value not in ('OperationForbiddenError'):
40
+ if value not in ('OperationForbiddenError',):
41
41
  raise ValueError("must be one of enum values ('OperationForbiddenError')")
42
42
  return value
43
43
 
44
44
  @validator('message')
45
45
  def message_validate_enum(cls, value):
46
46
  """Validates the enum"""
47
- if value not in ('Operation forbidden: ${param}.'):
47
+ if value not in ('Operation forbidden: ${param}.',):
48
48
  raise ValueError("must be one of enum values ('Operation forbidden: ${param}.')")
49
49
  return value
50
50
 
51
51
  @validator('http_status_code')
52
52
  def http_status_code_validate_enum(cls, value):
53
53
  """Validates the enum"""
54
- if value not in (403):
54
+ if value not in (403,):
55
55
  raise ValueError("must be one of enum values (403)")
56
56
  return value
57
57
 
@@ -39,7 +39,7 @@ class SignCredentialInputDto(BaseModel):
39
39
  if value is None:
40
40
  return value
41
41
 
42
- if value not in ('ldp_vc', 'jwt_vc_json-ld', 'sd_jwt_vc_json-ld'):
42
+ if value not in ('ldp_vc', 'jwt_vc_json-ld', 'sd_jwt_vc_json-ld',):
43
43
  raise ValueError("must be one of enum values ('ldp_vc', 'jwt_vc_json-ld', 'sd_jwt_vc_json-ld')")
44
44
  return value
45
45
 
@@ -0,0 +1,74 @@
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, Optional
23
+ from pydantic import BaseModel, Field, StrictBool
24
+
25
+ class SignCredentialsDm1JwtInputDto(BaseModel):
26
+ """
27
+ DTO contains params to sign credential # noqa: E501
28
+ """
29
+ unsigned_credential: Dict[str, Any] = Field(default=..., alias="unsignedCredential", description="Unsigned Credential in Dm1 format")
30
+ revocable: Optional[StrictBool] = None
31
+ __properties = ["unsignedCredential", "revocable"]
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) -> SignCredentialsDm1JwtInputDto:
48
+ """Create an instance of SignCredentialsDm1JwtInputDto 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
+ return _dict
58
+
59
+ @classmethod
60
+ def from_dict(cls, obj: dict) -> SignCredentialsDm1JwtInputDto:
61
+ """Create an instance of SignCredentialsDm1JwtInputDto from a dict"""
62
+ if obj is None:
63
+ return None
64
+
65
+ if not isinstance(obj, dict):
66
+ return SignCredentialsDm1JwtInputDto.parse_obj(obj)
67
+
68
+ _obj = SignCredentialsDm1JwtInputDto.parse_obj({
69
+ "unsigned_credential": obj.get("unsignedCredential"),
70
+ "revocable": obj.get("revocable")
71
+ })
72
+ return _obj
73
+
74
+
@@ -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
+
23
+ from pydantic import BaseModel, Field, StrictStr
24
+
25
+ class SignCredentialsDm1JwtResultDto(BaseModel):
26
+ """
27
+ DTO contains signed credential # noqa: E501
28
+ """
29
+ credential: StrictStr = Field(default=..., description="Signed credential in DM2 jwt format")
30
+ __properties = ["credential"]
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) -> SignCredentialsDm1JwtResultDto:
47
+ """Create an instance of SignCredentialsDm1JwtResultDto 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) -> SignCredentialsDm1JwtResultDto:
60
+ """Create an instance of SignCredentialsDm1JwtResultDto from a dict"""
61
+ if obj is None:
62
+ return None
63
+
64
+ if not isinstance(obj, dict):
65
+ return SignCredentialsDm1JwtResultDto.parse_obj(obj)
66
+
67
+ _obj = SignCredentialsDm1JwtResultDto.parse_obj({
68
+ "credential": obj.get("credential")
69
+ })
70
+ return _obj
71
+
72
+
@@ -0,0 +1,74 @@
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, Optional
23
+ from pydantic import BaseModel, Field, StrictBool
24
+
25
+ class SignCredentialsDm1LdInputDto(BaseModel):
26
+ """
27
+ DTO contains params to sign credential # noqa: E501
28
+ """
29
+ unsigned_credential: Dict[str, Any] = Field(default=..., alias="unsignedCredential", description="Unsigned Credential in Dm1 format")
30
+ revocable: Optional[StrictBool] = None
31
+ __properties = ["unsignedCredential", "revocable"]
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) -> SignCredentialsDm1LdInputDto:
48
+ """Create an instance of SignCredentialsDm1LdInputDto 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
+ return _dict
58
+
59
+ @classmethod
60
+ def from_dict(cls, obj: dict) -> SignCredentialsDm1LdInputDto:
61
+ """Create an instance of SignCredentialsDm1LdInputDto from a dict"""
62
+ if obj is None:
63
+ return None
64
+
65
+ if not isinstance(obj, dict):
66
+ return SignCredentialsDm1LdInputDto.parse_obj(obj)
67
+
68
+ _obj = SignCredentialsDm1LdInputDto.parse_obj({
69
+ "unsigned_credential": obj.get("unsignedCredential"),
70
+ "revocable": obj.get("revocable")
71
+ })
72
+ return _obj
73
+
74
+