affinidi_tdk_wallets_client 1.53.0__py3-none-any.whl → 1.56.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. affinidi_tdk_wallets_client/__init__.py +8 -2
  2. affinidi_tdk_wallets_client/api_client.py +9 -2
  3. affinidi_tdk_wallets_client/models/__init__.py +8 -2
  4. affinidi_tdk_wallets_client/models/create_wallet_input.py +59 -103
  5. affinidi_tdk_wallets_client/models/entity_not_found_error.py +3 -3
  6. affinidi_tdk_wallets_client/models/invalid_did_parameter_error.py +3 -3
  7. affinidi_tdk_wallets_client/models/invalid_parameter_error.py +3 -3
  8. affinidi_tdk_wallets_client/models/key_not_found_error.py +3 -3
  9. affinidi_tdk_wallets_client/models/not_found_error.py +3 -3
  10. affinidi_tdk_wallets_client/models/operation_forbidden_error.py +3 -3
  11. affinidi_tdk_wallets_client/models/sign_credential_input_dto.py +1 -1
  12. affinidi_tdk_wallets_client/models/{did_key_input_params.py → sign_credentials_dm1_jwt_input_dto.py} +15 -27
  13. affinidi_tdk_wallets_client/models/sign_credentials_dm1_jwt_result_dto.py +72 -0
  14. affinidi_tdk_wallets_client/models/sign_credentials_dm1_ld_input_dto.py +74 -0
  15. affinidi_tdk_wallets_client/models/sign_credentials_dm1_ld_result_dto.py +72 -0
  16. affinidi_tdk_wallets_client/models/sign_credentials_dm2_ld_input_dto.py +74 -0
  17. affinidi_tdk_wallets_client/models/sign_credentials_dm2_ld_result_dto.py +72 -0
  18. affinidi_tdk_wallets_client/models/sign_credentials_dm2_sd_jwt_input_dto.py +76 -0
  19. affinidi_tdk_wallets_client/models/sign_credentials_dm2_sd_jwt_result_dto.py +72 -0
  20. affinidi_tdk_wallets_client/models/signing_failed_error.py +3 -3
  21. {affinidi_tdk_wallets_client-1.53.0.dist-info → affinidi_tdk_wallets_client-1.56.0.dist-info}/METADATA +9 -3
  22. {affinidi_tdk_wallets_client-1.53.0.dist-info → affinidi_tdk_wallets_client-1.56.0.dist-info}/RECORD +23 -17
  23. affinidi_tdk_wallets_client/models/did_web_input_params.py +0 -92
  24. {affinidi_tdk_wallets_client-1.53.0.dist-info → affinidi_tdk_wallets_client-1.56.0.dist-info}/WHEEL +0 -0
@@ -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
@@ -14,129 +14,85 @@
14
14
 
15
15
 
16
16
  from __future__ import annotations
17
- from inspect import getfullargspec
18
- import json
19
17
  import pprint
20
18
  import re # noqa: F401
19
+ import json
21
20
 
22
- from typing import Any, List, Optional
23
- from pydantic import BaseModel, Field, StrictStr, ValidationError, validator
24
- from affinidi_tdk_wallets_client.models.did_key_input_params import DidKeyInputParams
25
- from affinidi_tdk_wallets_client.models.did_web_input_params import DidWebInputParams
26
- from typing import Union, Any, List, TYPE_CHECKING
27
- from pydantic import StrictStr, Field
28
21
 
29
- CREATEWALLETINPUT_ONE_OF_SCHEMAS = ["DidKeyInputParams", "DidWebInputParams"]
22
+ from typing import Optional
23
+ from pydantic import BaseModel, Field, StrictStr, constr, validator
30
24
 
31
25
  class CreateWalletInput(BaseModel):
32
26
  """
33
27
  CreateWalletInput
34
28
  """
35
- # data type: DidWebInputParams
36
- oneof_schema_1_validator: Optional[DidWebInputParams] = None
37
- # data type: DidKeyInputParams
38
- oneof_schema_2_validator: Optional[DidKeyInputParams] = None
39
- if TYPE_CHECKING:
40
- actual_instance: Union[DidKeyInputParams, DidWebInputParams]
41
- else:
42
- actual_instance: Any
43
- one_of_schemas: List[str] = Field(CREATEWALLETINPUT_ONE_OF_SCHEMAS, const=True)
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=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
+ __properties = ["name", "description", "didMethod", "didWebUrl"]
34
+
35
+ @validator('did_method')
36
+ def did_method_validate_enum(cls, value):
37
+ """Validates the enum"""
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')")
43
+ return value
44
+
45
+ @validator('did_web_url')
46
+ def did_web_url_validate_regular_expression(cls, value):
47
+ """Validates the regular expression"""
48
+ if value is None:
49
+ return value
50
+
51
+ if not re.match(r"^(?!:\/\/)([a-zA-Z0-9\-\.]+)(:[0-9]+)?(\/[a-zA-Z0-9\-\/]*)?$", value):
52
+ raise ValueError(r"must validate the regular expression /^(?!:\/\/)([a-zA-Z0-9\-\.]+)(:[0-9]+)?(\/[a-zA-Z0-9\-\/]*)?$/")
53
+ return value
44
54
 
45
55
  class Config:
56
+ """Pydantic configuration"""
57
+ allow_population_by_field_name = True
46
58
  validate_assignment = True
47
59
 
48
- def __init__(self, *args, **kwargs) -> None:
49
- if args:
50
- if len(args) > 1:
51
- raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
52
- if kwargs:
53
- raise ValueError("If a position argument is used, keyword arguments cannot be used.")
54
- super().__init__(actual_instance=args[0])
55
- else:
56
- super().__init__(**kwargs)
57
-
58
- @validator('actual_instance')
59
- def actual_instance_must_validate_oneof(cls, v):
60
- instance = CreateWalletInput.construct()
61
- error_messages = []
62
- match = 0
63
- # validate data type: DidWebInputParams
64
- if not isinstance(v, DidWebInputParams):
65
- error_messages.append(f"Error! Input type `{type(v)}` is not `DidWebInputParams`")
66
- else:
67
- match += 1
68
- # validate data type: DidKeyInputParams
69
- if not isinstance(v, DidKeyInputParams):
70
- error_messages.append(f"Error! Input type `{type(v)}` is not `DidKeyInputParams`")
71
- else:
72
- match += 1
73
- if match > 1:
74
- # more than 1 match
75
- raise ValueError("Multiple matches found when setting `actual_instance` in CreateWalletInput with oneOf schemas: DidKeyInputParams, DidWebInputParams. Details: " + ", ".join(error_messages))
76
- elif match == 0:
77
- # no match
78
- raise ValueError("No match found when setting `actual_instance` in CreateWalletInput with oneOf schemas: DidKeyInputParams, DidWebInputParams. Details: " + ", ".join(error_messages))
79
- else:
80
- return v
60
+ def to_str(self) -> str:
61
+ """Returns the string representation of the model using alias"""
62
+ return pprint.pformat(self.dict(by_alias=True))
81
63
 
82
- @classmethod
83
- def from_dict(cls, obj: dict) -> CreateWalletInput:
84
- return cls.from_json(json.dumps(obj))
64
+ def to_json(self) -> str:
65
+ """Returns the JSON representation of the model using alias"""
66
+ return json.dumps(self.to_dict())
85
67
 
86
68
  @classmethod
87
69
  def from_json(cls, json_str: str) -> CreateWalletInput:
88
- """Returns the object represented by the json string"""
89
- instance = CreateWalletInput.construct()
90
- error_messages = []
91
- match = 0
92
-
93
- # deserialize data into DidWebInputParams
94
- try:
95
- instance.actual_instance = DidWebInputParams.from_json(json_str)
96
- match += 1
97
- except (ValidationError, ValueError) as e:
98
- error_messages.append(str(e))
99
- # deserialize data into DidKeyInputParams
100
- try:
101
- instance.actual_instance = DidKeyInputParams.from_json(json_str)
102
- match += 1
103
- except (ValidationError, ValueError) as e:
104
- error_messages.append(str(e))
105
-
106
- if match > 1:
107
- # more than 1 match
108
- raise ValueError("Multiple matches found when deserializing the JSON string into CreateWalletInput with oneOf schemas: DidKeyInputParams, DidWebInputParams. Details: " + ", ".join(error_messages))
109
- elif match == 0:
110
- # no match
111
- raise ValueError("No match found when deserializing the JSON string into CreateWalletInput with oneOf schemas: DidKeyInputParams, DidWebInputParams. Details: " + ", ".join(error_messages))
112
- else:
113
- return instance
70
+ """Create an instance of CreateWalletInput from a JSON string"""
71
+ return cls.from_dict(json.loads(json_str))
114
72
 
115
- def to_json(self) -> str:
116
- """Returns the JSON representation of the actual instance"""
117
- if self.actual_instance is None:
118
- return "null"
119
-
120
- to_json = getattr(self.actual_instance, "to_json", None)
121
- if callable(to_json):
122
- return self.actual_instance.to_json()
123
- else:
124
- return json.dumps(self.actual_instance)
125
-
126
- def to_dict(self) -> dict:
127
- """Returns the dict representation of the actual instance"""
128
- if self.actual_instance is None:
73
+ def to_dict(self):
74
+ """Returns the dictionary representation of the model using alias"""
75
+ _dict = self.dict(by_alias=True,
76
+ exclude={
77
+ },
78
+ exclude_none=True)
79
+ return _dict
80
+
81
+ @classmethod
82
+ def from_dict(cls, obj: dict) -> CreateWalletInput:
83
+ """Create an instance of CreateWalletInput from a dict"""
84
+ if obj is None:
129
85
  return None
130
86
 
131
- to_dict = getattr(self.actual_instance, "to_dict", None)
132
- if callable(to_dict):
133
- return self.actual_instance.to_dict()
134
- else:
135
- # primitive type
136
- return self.actual_instance
87
+ if not isinstance(obj, dict):
88
+ return CreateWalletInput.parse_obj(obj)
137
89
 
138
- def to_str(self) -> str:
139
- """Returns the string representation of the actual instance"""
140
- return pprint.pformat(self.dict())
90
+ _obj = CreateWalletInput.parse_obj({
91
+ "name": obj.get("name"),
92
+ "description": obj.get("description"),
93
+ "did_method": obj.get("didMethod"),
94
+ "did_web_url": obj.get("didWebUrl")
95
+ })
96
+ return _obj
141
97
 
142
98
 
@@ -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
 
@@ -19,27 +19,16 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
 
22
- from typing import Optional
23
- from pydantic import BaseModel, Field, StrictStr, validator
22
+ from typing import Any, Dict, Optional
23
+ from pydantic import BaseModel, Field, StrictBool
24
24
 
25
- class DidKeyInputParams(BaseModel):
25
+ class SignCredentialsDm1JwtInputDto(BaseModel):
26
26
  """
27
- Did key input params # noqa: E501
27
+ DTO contains params to sign credential # noqa: E501
28
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=None, alias="didMethod")
32
- __properties = ["name", "description", "didMethod"]
33
-
34
- @validator('did_method')
35
- def did_method_validate_enum(cls, value):
36
- """Validates the enum"""
37
- if value is None:
38
- return value
39
-
40
- if value not in ('key'):
41
- raise ValueError("must be one of enum values ('key')")
42
- return value
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"]
43
32
 
44
33
  class Config:
45
34
  """Pydantic configuration"""
@@ -55,8 +44,8 @@ class DidKeyInputParams(BaseModel):
55
44
  return json.dumps(self.to_dict())
56
45
 
57
46
  @classmethod
58
- def from_json(cls, json_str: str) -> DidKeyInputParams:
59
- """Create an instance of DidKeyInputParams from a JSON string"""
47
+ def from_json(cls, json_str: str) -> SignCredentialsDm1JwtInputDto:
48
+ """Create an instance of SignCredentialsDm1JwtInputDto from a JSON string"""
60
49
  return cls.from_dict(json.loads(json_str))
61
50
 
62
51
  def to_dict(self):
@@ -68,18 +57,17 @@ class DidKeyInputParams(BaseModel):
68
57
  return _dict
69
58
 
70
59
  @classmethod
71
- def from_dict(cls, obj: dict) -> DidKeyInputParams:
72
- """Create an instance of DidKeyInputParams from a dict"""
60
+ def from_dict(cls, obj: dict) -> SignCredentialsDm1JwtInputDto:
61
+ """Create an instance of SignCredentialsDm1JwtInputDto from a dict"""
73
62
  if obj is None:
74
63
  return None
75
64
 
76
65
  if not isinstance(obj, dict):
77
- return DidKeyInputParams.parse_obj(obj)
66
+ return SignCredentialsDm1JwtInputDto.parse_obj(obj)
78
67
 
79
- _obj = DidKeyInputParams.parse_obj({
80
- "name": obj.get("name"),
81
- "description": obj.get("description"),
82
- "did_method": obj.get("didMethod")
68
+ _obj = SignCredentialsDm1JwtInputDto.parse_obj({
69
+ "unsigned_credential": obj.get("unsignedCredential"),
70
+ "revocable": obj.get("revocable")
83
71
  })
84
72
  return _obj
85
73
 
@@ -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
+
@@ -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 SignCredentialsDm1LdResultDto(BaseModel):
26
+ """
27
+ DTO contains signed credential # noqa: E501
28
+ """
29
+ credential: Dict[str, Any] = Field(default=..., description="Signed credential can be in Dm1Ld 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) -> SignCredentialsDm1LdResultDto:
47
+ """Create an instance of SignCredentialsDm1LdResultDto 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) -> SignCredentialsDm1LdResultDto:
60
+ """Create an instance of SignCredentialsDm1LdResultDto from a dict"""
61
+ if obj is None:
62
+ return None
63
+
64
+ if not isinstance(obj, dict):
65
+ return SignCredentialsDm1LdResultDto.parse_obj(obj)
66
+
67
+ _obj = SignCredentialsDm1LdResultDto.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 SignCredentialsDm2LdInputDto(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 Dm2 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) -> SignCredentialsDm2LdInputDto:
48
+ """Create an instance of SignCredentialsDm2LdInputDto 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) -> SignCredentialsDm2LdInputDto:
61
+ """Create an instance of SignCredentialsDm2LdInputDto from a dict"""
62
+ if obj is None:
63
+ return None
64
+
65
+ if not isinstance(obj, dict):
66
+ return SignCredentialsDm2LdInputDto.parse_obj(obj)
67
+
68
+ _obj = SignCredentialsDm2LdInputDto.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
+ from typing import Any, Dict
23
+ from pydantic import BaseModel, Field
24
+
25
+ class SignCredentialsDm2LdResultDto(BaseModel):
26
+ """
27
+ DTO contains signed credential # noqa: E501
28
+ """
29
+ credential: Dict[str, Any] = Field(default=..., description="Signed credential can be in Dm2Ld 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) -> SignCredentialsDm2LdResultDto:
47
+ """Create an instance of SignCredentialsDm2LdResultDto 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) -> SignCredentialsDm2LdResultDto:
60
+ """Create an instance of SignCredentialsDm2LdResultDto from a dict"""
61
+ if obj is None:
62
+ return None
63
+
64
+ if not isinstance(obj, dict):
65
+ return SignCredentialsDm2LdResultDto.parse_obj(obj)
66
+
67
+ _obj = SignCredentialsDm2LdResultDto.parse_obj({
68
+ "credential": obj.get("credential")
69
+ })
70
+ return _obj
71
+
72
+
@@ -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 Any, Dict, Optional
23
+ from pydantic import BaseModel, Field, StrictBool
24
+
25
+ class SignCredentialsDm2SdJwtInputDto(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 Dm2 format")
30
+ revocable: Optional[StrictBool] = None
31
+ disclosure_frame: Dict[str, Any] = Field(default=..., alias="disclosureFrame")
32
+ __properties = ["unsignedCredential", "revocable", "disclosureFrame"]
33
+
34
+ class Config:
35
+ """Pydantic configuration"""
36
+ allow_population_by_field_name = True
37
+ validate_assignment = True
38
+
39
+ def to_str(self) -> str:
40
+ """Returns the string representation of the model using alias"""
41
+ return pprint.pformat(self.dict(by_alias=True))
42
+
43
+ def to_json(self) -> str:
44
+ """Returns the JSON representation of the model using alias"""
45
+ return json.dumps(self.to_dict())
46
+
47
+ @classmethod
48
+ def from_json(cls, json_str: str) -> SignCredentialsDm2SdJwtInputDto:
49
+ """Create an instance of SignCredentialsDm2SdJwtInputDto from a JSON string"""
50
+ return cls.from_dict(json.loads(json_str))
51
+
52
+ def to_dict(self):
53
+ """Returns the dictionary representation of the model using alias"""
54
+ _dict = self.dict(by_alias=True,
55
+ exclude={
56
+ },
57
+ exclude_none=True)
58
+ return _dict
59
+
60
+ @classmethod
61
+ def from_dict(cls, obj: dict) -> SignCredentialsDm2SdJwtInputDto:
62
+ """Create an instance of SignCredentialsDm2SdJwtInputDto from a dict"""
63
+ if obj is None:
64
+ return None
65
+
66
+ if not isinstance(obj, dict):
67
+ return SignCredentialsDm2SdJwtInputDto.parse_obj(obj)
68
+
69
+ _obj = SignCredentialsDm2SdJwtInputDto.parse_obj({
70
+ "unsigned_credential": obj.get("unsignedCredential"),
71
+ "revocable": obj.get("revocable"),
72
+ "disclosure_frame": obj.get("disclosureFrame")
73
+ })
74
+ return _obj
75
+
76
+
@@ -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 SignCredentialsDm2SdJwtResultDto(BaseModel):
26
+ """
27
+ DTO contains signed credential # noqa: E501
28
+ """
29
+ credential: StrictStr = Field(default=..., description="Issued selective disclosure SD in 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) -> SignCredentialsDm2SdJwtResultDto:
47
+ """Create an instance of SignCredentialsDm2SdJwtResultDto 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) -> SignCredentialsDm2SdJwtResultDto:
60
+ """Create an instance of SignCredentialsDm2SdJwtResultDto from a dict"""
61
+ if obj is None:
62
+ return None
63
+
64
+ if not isinstance(obj, dict):
65
+ return SignCredentialsDm2SdJwtResultDto.parse_obj(obj)
66
+
67
+ _obj = SignCredentialsDm2SdJwtResultDto.parse_obj({
68
+ "credential": obj.get("credential")
69
+ })
70
+ return _obj
71
+
72
+
@@ -37,21 +37,21 @@ class SigningFailedError(BaseModel):
37
37
  @validator('name')
38
38
  def name_validate_enum(cls, value):
39
39
  """Validates the enum"""
40
- if value not in ('SigningFailedError'):
40
+ if value not in ('SigningFailedError',):
41
41
  raise ValueError("must be one of enum values ('SigningFailedError')")
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 ('Signing failed.'):
47
+ if value not in ('Signing failed.',):
48
48
  raise ValueError("must be one of enum values ('Signing failed.')")
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: affinidi_tdk_wallets_client
3
- Version: 1.53.0
3
+ Version: 1.56.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)
@@ -1,40 +1,46 @@
1
- affinidi_tdk_wallets_client/__init__.py,sha256=x3dCrINJ4XOdDvLohZTFfHZJ-4Zbfoapeu-l_NWHRCU,3647
1
+ affinidi_tdk_wallets_client/__init__.py,sha256=3Wq5lOwcJkrk9E_nloG0JHrRTR13x1jUZKqlZUUsZk0,4381
2
2
  affinidi_tdk_wallets_client/api/__init__.py,sha256=NL6jeFJGXehRJgB6xh1xVXYh0Q8mnlBFwPRkD7oQeXc,186
3
3
  affinidi_tdk_wallets_client/api/revocation_api.py,sha256=SmgoJFCeNji8kP5SZBGytZ9JHQQkdyL7xDHqbtbrehM,22730
4
4
  affinidi_tdk_wallets_client/api/wallet_api.py,sha256=xhssqZq1fOUyr4pcHoK269fn_HrxDWEGEUMDCUSRC7k,47132
5
- affinidi_tdk_wallets_client/api_client.py,sha256=lyYuB3Gv5PM44HZL-TWFLR8_bmi_hbrc7c4-8Tq6KRI,29644
5
+ affinidi_tdk_wallets_client/api_client.py,sha256=jcJBDNIz85k1E7POPF9wVoqYdJEcqMuuf8t7F3hXUzI,29964
6
6
  affinidi_tdk_wallets_client/api_response.py,sha256=uCehWdXXDnAO2HAHGKe0SgpQ_mJiGDbcu-BHDF3n_IM,852
7
7
  affinidi_tdk_wallets_client/configuration.py,sha256=Izm7JnraXZibNroBy-hcxWGA6Ig8LHFMhV9XoNVXo5I,15399
8
8
  affinidi_tdk_wallets_client/exceptions.py,sha256=FDQp4evUNGVo6Tg4Sn1Q13VDalhEsMHp5a5bz1dWgOM,5470
9
- affinidi_tdk_wallets_client/models/__init__.py,sha256=A1KEcqPLmeeGTgkSwiLSGX_Jb8ok4yOitQjcQ9gPAkM,2848
10
- affinidi_tdk_wallets_client/models/create_wallet_input.py,sha256=-1Jgaxt4n_jyNuvCK7a8RDYk85qR0oefr8zNxvMG7NQ,5444
9
+ affinidi_tdk_wallets_client/models/__init__.py,sha256=HD4tstEc9Z851jxL2Gjz9rNB4BW8YnzFdthwyHoju70,3582
10
+ affinidi_tdk_wallets_client/models/create_wallet_input.py,sha256=AeMhKp-TLIYgtJ1O2zHyLSs-fmw1x3Nj9mYNEbYoOSc,3395
11
11
  affinidi_tdk_wallets_client/models/create_wallet_response.py,sha256=rTRsCUSoBg2RfwtQxBIgqTcZlQ0h_Boc5YrtoxkczbY,2287
12
- affinidi_tdk_wallets_client/models/did_key_input_params.py,sha256=k4LLo8_QQVDoJzr5Ken-CXknpwBLCtb48xN6hZ7inHk,2647
13
- affinidi_tdk_wallets_client/models/did_web_input_params.py,sha256=HAPs-6CC69RfvHFRoqd2k97JUCQ89ZzDYxgGSdc2C70,3221
14
- affinidi_tdk_wallets_client/models/entity_not_found_error.py,sha256=69ZqsS_p__0s8_FGtaS6qJrw49EM5c7Rsq5bW8xvsyU,3821
12
+ affinidi_tdk_wallets_client/models/entity_not_found_error.py,sha256=hf4TY7JBGSwlAfd9vezWAWiaU0rK3279FaIMZb_gOuM,3824
15
13
  affinidi_tdk_wallets_client/models/get_revocation_credential_status_ok.py,sha256=pR0XQ3w0xPz1Bb-tvd1QS7v4x9NTHXSU4SDPjaEAZkw,2227
16
14
  affinidi_tdk_wallets_client/models/get_revocation_list_credential_result_dto.py,sha256=d5Pd_inpICQuAbm8zqk_ScasBof_xqYlnY4ZFnM3l_M,2262
17
- affinidi_tdk_wallets_client/models/invalid_did_parameter_error.py,sha256=DAZ4TC-HPk6OV0vDNJPpmY7SH0JA0J0E4jfHLxjN3wU,3977
18
- affinidi_tdk_wallets_client/models/invalid_parameter_error.py,sha256=FtvqzQ1eORYZqmrGYs84P16VagGFarUHUJ3PPjPxXEU,3865
19
- affinidi_tdk_wallets_client/models/key_not_found_error.py,sha256=t-JI-tAdLLEc6teOiUB0HLk3xyhNFMxcTxAO3acgq9M,3785
20
- affinidi_tdk_wallets_client/models/not_found_error.py,sha256=q7zABiyS_paW30IAPTGuyChnkWlVsMZJOaNJ2zA7h0g,3769
21
- affinidi_tdk_wallets_client/models/operation_forbidden_error.py,sha256=IxQU4I2Sp8NtZDB2N2orT-P4TU1KJQyAMVQ0qDtMUlQ,3889
15
+ affinidi_tdk_wallets_client/models/invalid_did_parameter_error.py,sha256=Vgviiz3n5iRahU_7edHglx8LJP6I5X-FnSzQHrWwzQg,3980
16
+ affinidi_tdk_wallets_client/models/invalid_parameter_error.py,sha256=1i__EdcJu9lEbiV90D_9xTfIQp4w45p3mNd-3xAwxFA,3868
17
+ affinidi_tdk_wallets_client/models/key_not_found_error.py,sha256=X8ulu-BPiksF-biTMt2PXy86jXOOz6mqD-ZzlSVSn1I,3788
18
+ affinidi_tdk_wallets_client/models/not_found_error.py,sha256=TrUwFsi-moHCdYq8kx1jHgUPv_v3fnyjsAA0AZffzUY,3772
19
+ affinidi_tdk_wallets_client/models/operation_forbidden_error.py,sha256=QU5VUeOalEs9IDx5_zOQMK4R2frHIf3DTdL_Td5aIxo,3892
22
20
  affinidi_tdk_wallets_client/models/revoke_credential_input.py,sha256=UZnD473fp3YdxCASWldQcQuenVc_BYGy2Q3A24ETtcI,2498
23
21
  affinidi_tdk_wallets_client/models/service_error_response.py,sha256=l6KL0c5yW_oMRY6i80-myiPgAtHieHPcOiMG_Ly6cco,3037
24
22
  affinidi_tdk_wallets_client/models/service_error_response_details_inner.py,sha256=EqY8DupY2tJVdenwscq-AcDMHqaa-4b72eRrBD3chFI,2366
25
23
  affinidi_tdk_wallets_client/models/sign_credential400_response.py,sha256=zk_fjtydwkexZZnij_h60VBAvbcbneHlDhiQPmaovGA,5613
26
- affinidi_tdk_wallets_client/models/sign_credential_input_dto.py,sha256=jkkCEDZS6wpX7t3OBdWyLHLEtBs7TPAmXa7bJqink9k,3692
24
+ affinidi_tdk_wallets_client/models/sign_credential_input_dto.py,sha256=7g2XrYlTji9Uddj-9cwlP95zxCRT7AKsBItSEZD9yYY,3693
27
25
  affinidi_tdk_wallets_client/models/sign_credential_input_dto_unsigned_credential_params.py,sha256=YSQskXpln4U3nFF1uAxa7nq9EOicp3hok3Va8gxcyKg,3417
28
26
  affinidi_tdk_wallets_client/models/sign_credential_result_dto.py,sha256=lQs9tXLE-wf_l2zDRt_iHVVwDi4659wKEiyAfI0imOs,2120
27
+ affinidi_tdk_wallets_client/models/sign_credentials_dm1_jwt_input_dto.py,sha256=qqsFZ75-_XQhdduRNKFd0yr1JSTX96vzme4k2O7LRj4,2354
28
+ affinidi_tdk_wallets_client/models/sign_credentials_dm1_jwt_result_dto.py,sha256=OMKYr3sQwyEpjvhwphMyk2oY88uhpPHGmY_sJnJSeeg,2146
29
+ affinidi_tdk_wallets_client/models/sign_credentials_dm1_ld_input_dto.py,sha256=bRFO7zW2BtBfSECZkmZ33YAmGyLMrt5ljZdcWpCXSOc,2347
30
+ affinidi_tdk_wallets_client/models/sign_credentials_dm1_ld_result_dto.py,sha256=AHg5DJCRmpi6I-A84k_9HyuUL8aC6CZPBXxjQy2pS7M,2166
31
+ affinidi_tdk_wallets_client/models/sign_credentials_dm2_ld_input_dto.py,sha256=_4TJZmPmJzgGhh4yb5c2gc3RPLUJai_IwmnbWQlPQ08,2348
32
+ affinidi_tdk_wallets_client/models/sign_credentials_dm2_ld_result_dto.py,sha256=FoDOcxpESn0InU2q8e6YX0K-dsGaHPD-AnMrTNEShsM,2166
33
+ affinidi_tdk_wallets_client/models/sign_credentials_dm2_sd_jwt_input_dto.py,sha256=6FxwyNsukksjtATKanGp0wxik8hc9jIknA3AVTpJl2Q,2530
34
+ affinidi_tdk_wallets_client/models/sign_credentials_dm2_sd_jwt_result_dto.py,sha256=BWOHkQFPb6z7-FkrbQq0wW0wFRhQob42Qz-MYItuR1g,2169
29
35
  affinidi_tdk_wallets_client/models/sign_jwt_token.py,sha256=u_A1JCI8Y_T48XXrQOMIHMy3LQHZhYmGivgPZ39gHZk,2070
30
36
  affinidi_tdk_wallets_client/models/sign_jwt_token_ok.py,sha256=v-wgr9Qq5LX9enKVkQxotbl7NK7vqU4bNuhoQZsoneI,2008
31
- affinidi_tdk_wallets_client/models/signing_failed_error.py,sha256=sUo8xlPDz7fmh_zkeOGXvqaYAHkNEJok78quhRmOa40,3809
37
+ affinidi_tdk_wallets_client/models/signing_failed_error.py,sha256=TqduloFqgCSG7eAjlgjfjLiCcyra8BCgHTuGnRUyup0,3812
32
38
  affinidi_tdk_wallets_client/models/update_wallet_input.py,sha256=F0QUyYsqchQkH-TBySnWFpGP3N70idFTwRGHNPn96-8,2222
33
39
  affinidi_tdk_wallets_client/models/wallet_dto.py,sha256=Kxx0F-Oz8Zsa8Ik_eDphbDfLgqplzBc6vyB5qL1IOaI,3615
34
40
  affinidi_tdk_wallets_client/models/wallet_dto_keys_inner.py,sha256=RoUZdZBbKbXSq_eFx8-qAbp_DSJ6JGIQbYhTv3ceMmg,2149
35
41
  affinidi_tdk_wallets_client/models/wallets_list_dto.py,sha256=L4B0y7Ts1ozA2td6FJw81V25O535cCA2gKyEgVOeYvk,2444
36
42
  affinidi_tdk_wallets_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
43
  affinidi_tdk_wallets_client/rest.py,sha256=wd2Ze-oKd0Di0D_sbPubYWuT2_Rg31uImCk5n996oM4,14110
38
- affinidi_tdk_wallets_client-1.53.0.dist-info/METADATA,sha256=IslbClAJverSLF6xKUxxRwen5f3OOrzWiForpPAg1jI,8641
39
- affinidi_tdk_wallets_client-1.53.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
40
- affinidi_tdk_wallets_client-1.53.0.dist-info/RECORD,,
44
+ affinidi_tdk_wallets_client-1.56.0.dist-info/METADATA,sha256=4qR8biXO7Q6U_wunBHmJnIHYdy02q6zKPQ91KE1lFeU,9135
45
+ affinidi_tdk_wallets_client-1.56.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
46
+ affinidi_tdk_wallets_client-1.56.0.dist-info/RECORD,,
@@ -1,92 +0,0 @@
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 DidWebInputParams(BaseModel):
26
- """
27
- Additional params for did method web # noqa: E501
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: 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")
33
- __properties = ["name", "description", "didMethod", "didWebUrl"]
34
-
35
- @validator('did_method')
36
- def did_method_validate_enum(cls, value):
37
- """Validates the enum"""
38
- if value not in ('web'):
39
- raise ValueError("must be one of enum values ('web')")
40
- return value
41
-
42
- @validator('did_web_url')
43
- def did_web_url_validate_regular_expression(cls, value):
44
- """Validates the regular expression"""
45
- if not re.match(r"^(?!:\/\/)([a-zA-Z0-9\-\.]+)(:[0-9]+)?(\/[a-zA-Z0-9\-\/]*)?$", value):
46
- raise ValueError(r"must validate the regular expression /^(?!:\/\/)([a-zA-Z0-9\-\.]+)(:[0-9]+)?(\/[a-zA-Z0-9\-\/]*)?$/")
47
- return value
48
-
49
- class Config:
50
- """Pydantic configuration"""
51
- allow_population_by_field_name = True
52
- validate_assignment = True
53
-
54
- def to_str(self) -> str:
55
- """Returns the string representation of the model using alias"""
56
- return pprint.pformat(self.dict(by_alias=True))
57
-
58
- def to_json(self) -> str:
59
- """Returns the JSON representation of the model using alias"""
60
- return json.dumps(self.to_dict())
61
-
62
- @classmethod
63
- def from_json(cls, json_str: str) -> DidWebInputParams:
64
- """Create an instance of DidWebInputParams from a JSON string"""
65
- return cls.from_dict(json.loads(json_str))
66
-
67
- def to_dict(self):
68
- """Returns the dictionary representation of the model using alias"""
69
- _dict = self.dict(by_alias=True,
70
- exclude={
71
- },
72
- exclude_none=True)
73
- return _dict
74
-
75
- @classmethod
76
- def from_dict(cls, obj: dict) -> DidWebInputParams:
77
- """Create an instance of DidWebInputParams from a dict"""
78
- if obj is None:
79
- return None
80
-
81
- if not isinstance(obj, dict):
82
- return DidWebInputParams.parse_obj(obj)
83
-
84
- _obj = DidWebInputParams.parse_obj({
85
- "name": obj.get("name"),
86
- "description": obj.get("description"),
87
- "did_method": obj.get("didMethod"),
88
- "did_web_url": obj.get("didWebUrl")
89
- })
90
- return _obj
91
-
92
-