affinidi_tdk_wallets_client 1.19.0__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (42) hide show
  1. affinidi_tdk_wallets_client/__init__.py +63 -0
  2. affinidi_tdk_wallets_client/api/__init__.py +7 -0
  3. affinidi_tdk_wallets_client/api/default_api.py +202 -0
  4. affinidi_tdk_wallets_client/api/revocation_api.py +351 -0
  5. affinidi_tdk_wallets_client/api/wallet_api.py +1094 -0
  6. affinidi_tdk_wallets_client/api_client.py +760 -0
  7. affinidi_tdk_wallets_client/api_response.py +25 -0
  8. affinidi_tdk_wallets_client/configuration.py +464 -0
  9. affinidi_tdk_wallets_client/exceptions.py +167 -0
  10. affinidi_tdk_wallets_client/models/__init__.py +44 -0
  11. affinidi_tdk_wallets_client/models/create_wallet_input.py +142 -0
  12. affinidi_tdk_wallets_client/models/create_wallet_response.py +76 -0
  13. affinidi_tdk_wallets_client/models/did_key_input_params.py +86 -0
  14. affinidi_tdk_wallets_client/models/did_web_input_params.py +92 -0
  15. affinidi_tdk_wallets_client/models/entity_not_found_error.py +109 -0
  16. affinidi_tdk_wallets_client/models/get_revocation_credential_status_ok.py +72 -0
  17. affinidi_tdk_wallets_client/models/get_revocation_list_credential_result_dto.py +72 -0
  18. affinidi_tdk_wallets_client/models/invalid_did_parameter_error.py +109 -0
  19. affinidi_tdk_wallets_client/models/invalid_parameter_error.py +109 -0
  20. affinidi_tdk_wallets_client/models/key_not_found_error.py +109 -0
  21. affinidi_tdk_wallets_client/models/not_found_error.py +109 -0
  22. affinidi_tdk_wallets_client/models/operation_forbidden_error.py +109 -0
  23. affinidi_tdk_wallets_client/models/revoke_credential_input.py +79 -0
  24. affinidi_tdk_wallets_client/models/service_error_response.py +86 -0
  25. affinidi_tdk_wallets_client/models/service_error_response_details_inner.py +78 -0
  26. affinidi_tdk_wallets_client/models/sign_credential400_response.py +142 -0
  27. affinidi_tdk_wallets_client/models/sign_credential_input_dto.py +92 -0
  28. affinidi_tdk_wallets_client/models/sign_credential_input_dto_unsigned_credential_params.py +89 -0
  29. affinidi_tdk_wallets_client/models/sign_credential_result_dto.py +76 -0
  30. affinidi_tdk_wallets_client/models/sign_credential_result_dto_signed_credential.py +148 -0
  31. affinidi_tdk_wallets_client/models/sign_jwt_token.py +74 -0
  32. affinidi_tdk_wallets_client/models/sign_jwt_token_ok.py +72 -0
  33. affinidi_tdk_wallets_client/models/signing_failed_error.py +109 -0
  34. affinidi_tdk_wallets_client/models/update_wallet_input.py +74 -0
  35. affinidi_tdk_wallets_client/models/wallet_dto.py +96 -0
  36. affinidi_tdk_wallets_client/models/wallet_dto_keys_inner.py +74 -0
  37. affinidi_tdk_wallets_client/models/wallets_list_dto.py +80 -0
  38. affinidi_tdk_wallets_client/py.typed +0 -0
  39. affinidi_tdk_wallets_client/rest.py +328 -0
  40. affinidi_tdk_wallets_client-1.19.0.dist-info/METADATA +188 -0
  41. affinidi_tdk_wallets_client-1.19.0.dist-info/RECORD +42 -0
  42. affinidi_tdk_wallets_client-1.19.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,25 @@
1
+ """API response object."""
2
+
3
+ from __future__ import annotations
4
+ from typing import Any, Dict, Optional
5
+ from pydantic import Field, StrictInt, StrictStr
6
+
7
+ class ApiResponse:
8
+ """
9
+ API response object
10
+ """
11
+
12
+ status_code: Optional[StrictInt] = Field(None, description="HTTP status code")
13
+ headers: Optional[Dict[StrictStr, StrictStr]] = Field(None, description="HTTP headers")
14
+ data: Optional[Any] = Field(None, description="Deserialized data given the data type")
15
+ raw_data: Optional[Any] = Field(None, description="Raw data (HTTP response body)")
16
+
17
+ def __init__(self,
18
+ status_code=None,
19
+ headers=None,
20
+ data=None,
21
+ raw_data=None) -> None:
22
+ self.status_code = status_code
23
+ self.headers = headers
24
+ self.data = data
25
+ self.raw_data = raw_data
@@ -0,0 +1,464 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ CloudWalletEssentials
5
+
6
+ Cloud Wallet For Enterprise Structure
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: info@affinidi.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ import copy
17
+ import logging
18
+ import multiprocessing
19
+ import sys
20
+ import urllib3
21
+
22
+ import http.client as httplib
23
+
24
+ JSON_SCHEMA_VALIDATION_KEYWORDS = {
25
+ 'multipleOf', 'maximum', 'exclusiveMaximum',
26
+ 'minimum', 'exclusiveMinimum', 'maxLength',
27
+ 'minLength', 'pattern', 'maxItems', 'minItems'
28
+ }
29
+
30
+ class Configuration:
31
+ """This class contains various settings of the API client.
32
+
33
+ :param host: Base url.
34
+ :param api_key: Dict to store API key(s).
35
+ Each entry in the dict specifies an API key.
36
+ The dict key is the name of the security scheme in the OAS specification.
37
+ The dict value is the API key secret.
38
+ :param api_key_prefix: Dict to store API prefix (e.g. Bearer).
39
+ The dict key is the name of the security scheme in the OAS specification.
40
+ The dict value is an API key prefix when generating the auth data.
41
+ :param username: Username for HTTP basic authentication.
42
+ :param password: Password for HTTP basic authentication.
43
+ :param access_token: Access token.
44
+ :param server_index: Index to servers configuration.
45
+ :param server_variables: Mapping with string values to replace variables in
46
+ templated server configuration. The validation of enums is performed for
47
+ variables with defined enum values before.
48
+ :param server_operation_index: Mapping from operation ID to an index to server
49
+ configuration.
50
+ :param server_operation_variables: Mapping from operation ID to a mapping with
51
+ string values to replace variables in templated server configuration.
52
+ The validation of enums is performed for variables with defined enum
53
+ values before.
54
+ :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
55
+ in PEM format.
56
+
57
+ :Example:
58
+
59
+ API Key Authentication Example.
60
+ Given the following security scheme in the OpenAPI specification:
61
+ components:
62
+ securitySchemes:
63
+ cookieAuth: # name for the security scheme
64
+ type: apiKey
65
+ in: cookie
66
+ name: JSESSIONID # cookie name
67
+
68
+ You can programmatically set the cookie:
69
+
70
+ conf = affinidi_tdk_wallets_client.Configuration(
71
+ api_key={'cookieAuth': 'abc123'}
72
+ api_key_prefix={'cookieAuth': 'JSESSIONID'}
73
+ )
74
+
75
+ The following cookie will be added to the HTTP request:
76
+ Cookie: JSESSIONID abc123
77
+ """
78
+
79
+ _default = None
80
+
81
+ def __init__(self, host=None,
82
+ api_key=None, api_key_prefix=None,
83
+ username=None, password=None,
84
+ access_token=None,
85
+ server_index=None, server_variables=None,
86
+ server_operation_index=None, server_operation_variables=None,
87
+ ssl_ca_cert=None,
88
+ ) -> None:
89
+ """Constructor
90
+ """
91
+ self._base_path = "https://apse1.api.affinidi.io/cwe" if host is None else host
92
+ """Default Base url
93
+ """
94
+ self.server_index = 0 if server_index is None and host is None else server_index
95
+ self.server_operation_index = server_operation_index or {}
96
+ """Default server index
97
+ """
98
+ self.server_variables = server_variables or {}
99
+ self.server_operation_variables = server_operation_variables or {}
100
+ """Default server variables
101
+ """
102
+ self.temp_folder_path = None
103
+ """Temp file folder for downloading files
104
+ """
105
+ # Authentication Settings
106
+ self.api_key = {}
107
+ if api_key:
108
+ self.api_key = api_key
109
+ """dict to store API key(s)
110
+ """
111
+ self.api_key_prefix = {}
112
+ if api_key_prefix:
113
+ self.api_key_prefix = api_key_prefix
114
+ """dict to store API prefix (e.g. Bearer)
115
+ """
116
+ self.refresh_api_key_hook = None
117
+ """function hook to refresh API key if expired
118
+ """
119
+ self.username = username
120
+ """Username for HTTP basic authentication
121
+ """
122
+ self.password = password
123
+ """Password for HTTP basic authentication
124
+ """
125
+ self.access_token = access_token
126
+ """Access token
127
+ """
128
+ self.logger = {}
129
+ """Logging Settings
130
+ """
131
+ self.logger["package_logger"] = logging.getLogger("affinidi_tdk_wallets_client")
132
+ self.logger["urllib3_logger"] = logging.getLogger("urllib3")
133
+ self.logger_format = '%(asctime)s %(levelname)s %(message)s'
134
+ """Log format
135
+ """
136
+ self.logger_stream_handler = None
137
+ """Log stream handler
138
+ """
139
+ self.logger_file_handler = None
140
+ """Log file handler
141
+ """
142
+ self.logger_file = None
143
+ """Debug file location
144
+ """
145
+ self.debug = False
146
+ """Debug switch
147
+ """
148
+
149
+ self.verify_ssl = True
150
+ """SSL/TLS verification
151
+ Set this to false to skip verifying SSL certificate when calling API
152
+ from https server.
153
+ """
154
+ self.ssl_ca_cert = ssl_ca_cert
155
+ """Set this to customize the certificate file to verify the peer.
156
+ """
157
+ self.cert_file = None
158
+ """client certificate file
159
+ """
160
+ self.key_file = None
161
+ """client key file
162
+ """
163
+ self.assert_hostname = None
164
+ """Set this to True/False to enable/disable SSL hostname verification.
165
+ """
166
+ self.tls_server_name = None
167
+ """SSL/TLS Server Name Indication (SNI)
168
+ Set this to the SNI value expected by the server.
169
+ """
170
+
171
+ self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
172
+ """urllib3 connection pool's maximum number of connections saved
173
+ per pool. urllib3 uses 1 connection as default value, but this is
174
+ not the best value when you are making a lot of possibly parallel
175
+ requests to the same host, which is often the case here.
176
+ cpu_count * 5 is used as default value to increase performance.
177
+ """
178
+
179
+ self.proxy = None
180
+ """Proxy URL
181
+ """
182
+ self.proxy_headers = None
183
+ """Proxy headers
184
+ """
185
+ self.safe_chars_for_path_param = ''
186
+ """Safe chars for path_param
187
+ """
188
+ self.retries = None
189
+ """Adding retries to override urllib3 default value 3
190
+ """
191
+ # Enable client side validation
192
+ self.client_side_validation = True
193
+
194
+ self.socket_options = None
195
+ """Options to pass down to the underlying urllib3 socket
196
+ """
197
+
198
+ self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z"
199
+ """datetime format
200
+ """
201
+
202
+ self.date_format = "%Y-%m-%d"
203
+ """date format
204
+ """
205
+
206
+ def __deepcopy__(self, memo):
207
+ cls = self.__class__
208
+ result = cls.__new__(cls)
209
+ memo[id(self)] = result
210
+ for k, v in self.__dict__.items():
211
+ if k not in ('logger', 'logger_file_handler'):
212
+ setattr(result, k, copy.deepcopy(v, memo))
213
+ # shallow copy of loggers
214
+ result.logger = copy.copy(self.logger)
215
+ # use setters to configure loggers
216
+ result.logger_file = self.logger_file
217
+ result.debug = self.debug
218
+ return result
219
+
220
+ def __setattr__(self, name, value):
221
+ object.__setattr__(self, name, value)
222
+
223
+ @classmethod
224
+ def set_default(cls, default):
225
+ """Set default instance of configuration.
226
+
227
+ It stores default configuration, which can be
228
+ returned by get_default_copy method.
229
+
230
+ :param default: object of Configuration
231
+ """
232
+ cls._default = default
233
+
234
+ @classmethod
235
+ def get_default_copy(cls):
236
+ """Deprecated. Please use `get_default` instead.
237
+
238
+ Deprecated. Please use `get_default` instead.
239
+
240
+ :return: The configuration object.
241
+ """
242
+ return cls.get_default()
243
+
244
+ @classmethod
245
+ def get_default(cls):
246
+ """Return the default configuration.
247
+
248
+ This method returns newly created, based on default constructor,
249
+ object of Configuration class or returns a copy of default
250
+ configuration.
251
+
252
+ :return: The configuration object.
253
+ """
254
+ if cls._default is None:
255
+ cls._default = Configuration()
256
+ return cls._default
257
+
258
+ @property
259
+ def logger_file(self):
260
+ """The logger file.
261
+
262
+ If the logger_file is None, then add stream handler and remove file
263
+ handler. Otherwise, add file handler and remove stream handler.
264
+
265
+ :param value: The logger_file path.
266
+ :type: str
267
+ """
268
+ return self.__logger_file
269
+
270
+ @logger_file.setter
271
+ def logger_file(self, value):
272
+ """The logger file.
273
+
274
+ If the logger_file is None, then add stream handler and remove file
275
+ handler. Otherwise, add file handler and remove stream handler.
276
+
277
+ :param value: The logger_file path.
278
+ :type: str
279
+ """
280
+ self.__logger_file = value
281
+ if self.__logger_file:
282
+ # If set logging file,
283
+ # then add file handler and remove stream handler.
284
+ self.logger_file_handler = logging.FileHandler(self.__logger_file)
285
+ self.logger_file_handler.setFormatter(self.logger_formatter)
286
+ for _, logger in self.logger.items():
287
+ logger.addHandler(self.logger_file_handler)
288
+
289
+ @property
290
+ def debug(self):
291
+ """Debug status
292
+
293
+ :param value: The debug status, True or False.
294
+ :type: bool
295
+ """
296
+ return self.__debug
297
+
298
+ @debug.setter
299
+ def debug(self, value):
300
+ """Debug status
301
+
302
+ :param value: The debug status, True or False.
303
+ :type: bool
304
+ """
305
+ self.__debug = value
306
+ if self.__debug:
307
+ # if debug status is True, turn on debug logging
308
+ for _, logger in self.logger.items():
309
+ logger.setLevel(logging.DEBUG)
310
+ # turn on httplib debug
311
+ httplib.HTTPConnection.debuglevel = 1
312
+ else:
313
+ # if debug status is False, turn off debug logging,
314
+ # setting log level to default `logging.WARNING`
315
+ for _, logger in self.logger.items():
316
+ logger.setLevel(logging.WARNING)
317
+ # turn off httplib debug
318
+ httplib.HTTPConnection.debuglevel = 0
319
+
320
+ @property
321
+ def logger_format(self):
322
+ """The logger format.
323
+
324
+ The logger_formatter will be updated when sets logger_format.
325
+
326
+ :param value: The format string.
327
+ :type: str
328
+ """
329
+ return self.__logger_format
330
+
331
+ @logger_format.setter
332
+ def logger_format(self, value):
333
+ """The logger format.
334
+
335
+ The logger_formatter will be updated when sets logger_format.
336
+
337
+ :param value: The format string.
338
+ :type: str
339
+ """
340
+ self.__logger_format = value
341
+ self.logger_formatter = logging.Formatter(self.__logger_format)
342
+
343
+ def get_api_key_with_prefix(self, identifier, alias=None):
344
+ """Gets API key (with prefix if set).
345
+
346
+ :param identifier: The identifier of apiKey.
347
+ :param alias: The alternative identifier of apiKey.
348
+ :return: The token for api key authentication.
349
+ """
350
+ if self.refresh_api_key_hook is not None:
351
+ self.refresh_api_key_hook(self)
352
+ key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None)
353
+ if key:
354
+ prefix = self.api_key_prefix.get(identifier)
355
+ if prefix:
356
+ return "%s %s" % (prefix, key)
357
+ else:
358
+ return key
359
+
360
+ def get_basic_auth_token(self):
361
+ """Gets HTTP basic authentication header (string).
362
+
363
+ :return: The token for basic HTTP authentication.
364
+ """
365
+ username = ""
366
+ if self.username is not None:
367
+ username = self.username
368
+ password = ""
369
+ if self.password is not None:
370
+ password = self.password
371
+ return urllib3.util.make_headers(
372
+ basic_auth=username + ':' + password
373
+ ).get('authorization')
374
+
375
+ def auth_settings(self):
376
+ """Gets Auth Settings dict for api client.
377
+
378
+ :return: The Auth Settings information dict.
379
+ """
380
+ auth = {}
381
+ if 'ProjectTokenAuth' in self.api_key:
382
+ auth['ProjectTokenAuth'] = {
383
+ 'type': 'api_key',
384
+ 'in': 'header',
385
+ 'key': 'authorization',
386
+ 'value': self.get_api_key_with_prefix(
387
+ 'ProjectTokenAuth',
388
+ ),
389
+ }
390
+ return auth
391
+
392
+ def to_debug_report(self):
393
+ """Gets the essential information for debugging.
394
+
395
+ :return: The report for debugging.
396
+ """
397
+ return "Python SDK Debug Report:\n"\
398
+ "OS: {env}\n"\
399
+ "Python Version: {pyversion}\n"\
400
+ "Version of the API: 1.0.0\n"\
401
+ "SDK Package Version: 1.0.0".\
402
+ format(env=sys.platform, pyversion=sys.version)
403
+
404
+ def get_host_settings(self):
405
+ """Gets an array of host settings
406
+
407
+ :return: An array of host settings
408
+ """
409
+ return [
410
+ {
411
+ 'url': "https://apse1.api.affinidi.io/cwe",
412
+ 'description': "No description provided",
413
+ }
414
+ ]
415
+
416
+ def get_host_from_settings(self, index, variables=None, servers=None):
417
+ """Gets host URL based on the index and variables
418
+ :param index: array index of the host settings
419
+ :param variables: hash of variable and the corresponding value
420
+ :param servers: an array of host settings or None
421
+ :return: URL based on host settings
422
+ """
423
+ if index is None:
424
+ return self._base_path
425
+
426
+ variables = {} if variables is None else variables
427
+ servers = self.get_host_settings() if servers is None else servers
428
+
429
+ try:
430
+ server = servers[index]
431
+ except IndexError:
432
+ raise ValueError(
433
+ "Invalid index {0} when selecting the host settings. "
434
+ "Must be less than {1}".format(index, len(servers)))
435
+
436
+ url = server['url']
437
+
438
+ # go through variables and replace placeholders
439
+ for variable_name, variable in server.get('variables', {}).items():
440
+ used_value = variables.get(
441
+ variable_name, variable['default_value'])
442
+
443
+ if 'enum_values' in variable \
444
+ and used_value not in variable['enum_values']:
445
+ raise ValueError(
446
+ "The variable `{0}` in the host URL has invalid value "
447
+ "{1}. Must be {2}.".format(
448
+ variable_name, variables[variable_name],
449
+ variable['enum_values']))
450
+
451
+ url = url.replace("{" + variable_name + "}", used_value)
452
+
453
+ return url
454
+
455
+ @property
456
+ def host(self):
457
+ """Return generated host."""
458
+ return self.get_host_from_settings(self.server_index, variables=self.server_variables)
459
+
460
+ @host.setter
461
+ def host(self, value):
462
+ """Fix base path."""
463
+ self._base_path = value
464
+ self.server_index = None
@@ -0,0 +1,167 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ CloudWalletEssentials
5
+
6
+ Cloud Wallet For Enterprise Structure
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: info@affinidi.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ class OpenApiException(Exception):
17
+ """The base exception class for all OpenAPIExceptions"""
18
+
19
+
20
+ class ApiTypeError(OpenApiException, TypeError):
21
+ def __init__(self, msg, path_to_item=None, valid_classes=None,
22
+ key_type=None) -> None:
23
+ """ Raises an exception for TypeErrors
24
+
25
+ Args:
26
+ msg (str): the exception message
27
+
28
+ Keyword Args:
29
+ path_to_item (list): a list of keys an indices to get to the
30
+ current_item
31
+ None if unset
32
+ valid_classes (tuple): the primitive classes that current item
33
+ should be an instance of
34
+ None if unset
35
+ key_type (bool): False if our value is a value in a dict
36
+ True if it is a key in a dict
37
+ False if our item is an item in a list
38
+ None if unset
39
+ """
40
+ self.path_to_item = path_to_item
41
+ self.valid_classes = valid_classes
42
+ self.key_type = key_type
43
+ full_msg = msg
44
+ if path_to_item:
45
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
46
+ super(ApiTypeError, self).__init__(full_msg)
47
+
48
+
49
+ class ApiValueError(OpenApiException, ValueError):
50
+ def __init__(self, msg, path_to_item=None) -> None:
51
+ """
52
+ Args:
53
+ msg (str): the exception message
54
+
55
+ Keyword Args:
56
+ path_to_item (list) the path to the exception in the
57
+ received_data dict. None if unset
58
+ """
59
+
60
+ self.path_to_item = path_to_item
61
+ full_msg = msg
62
+ if path_to_item:
63
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
64
+ super(ApiValueError, self).__init__(full_msg)
65
+
66
+
67
+ class ApiAttributeError(OpenApiException, AttributeError):
68
+ def __init__(self, msg, path_to_item=None) -> None:
69
+ """
70
+ Raised when an attribute reference or assignment fails.
71
+
72
+ Args:
73
+ msg (str): the exception message
74
+
75
+ Keyword Args:
76
+ path_to_item (None/list) the path to the exception in the
77
+ received_data dict
78
+ """
79
+ self.path_to_item = path_to_item
80
+ full_msg = msg
81
+ if path_to_item:
82
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
83
+ super(ApiAttributeError, self).__init__(full_msg)
84
+
85
+
86
+ class ApiKeyError(OpenApiException, KeyError):
87
+ def __init__(self, msg, path_to_item=None) -> None:
88
+ """
89
+ Args:
90
+ msg (str): the exception message
91
+
92
+ Keyword Args:
93
+ path_to_item (None/list) the path to the exception in the
94
+ received_data dict
95
+ """
96
+ self.path_to_item = path_to_item
97
+ full_msg = msg
98
+ if path_to_item:
99
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
100
+ super(ApiKeyError, self).__init__(full_msg)
101
+
102
+
103
+ class ApiException(OpenApiException):
104
+
105
+ def __init__(self, status=None, reason=None, http_resp=None) -> None:
106
+ if http_resp:
107
+ self.status = http_resp.status
108
+ self.reason = http_resp.reason
109
+ self.body = http_resp.data
110
+ self.headers = http_resp.getheaders()
111
+ else:
112
+ self.status = status
113
+ self.reason = reason
114
+ self.body = None
115
+ self.headers = None
116
+
117
+ def __str__(self):
118
+ """Custom error messages for exception"""
119
+ error_message = "({0})\n"\
120
+ "Reason: {1}\n".format(self.status, self.reason)
121
+ if self.headers:
122
+ error_message += "HTTP response headers: {0}\n".format(
123
+ self.headers)
124
+
125
+ if self.body:
126
+ error_message += "HTTP response body: {0}\n".format(self.body)
127
+
128
+ return error_message
129
+
130
+ class BadRequestException(ApiException):
131
+
132
+ def __init__(self, status=None, reason=None, http_resp=None) -> None:
133
+ super(BadRequestException, self).__init__(status, reason, http_resp)
134
+
135
+ class NotFoundException(ApiException):
136
+
137
+ def __init__(self, status=None, reason=None, http_resp=None) -> None:
138
+ super(NotFoundException, self).__init__(status, reason, http_resp)
139
+
140
+
141
+ class UnauthorizedException(ApiException):
142
+
143
+ def __init__(self, status=None, reason=None, http_resp=None) -> None:
144
+ super(UnauthorizedException, self).__init__(status, reason, http_resp)
145
+
146
+
147
+ class ForbiddenException(ApiException):
148
+
149
+ def __init__(self, status=None, reason=None, http_resp=None) -> None:
150
+ super(ForbiddenException, self).__init__(status, reason, http_resp)
151
+
152
+
153
+ class ServiceException(ApiException):
154
+
155
+ def __init__(self, status=None, reason=None, http_resp=None) -> None:
156
+ super(ServiceException, self).__init__(status, reason, http_resp)
157
+
158
+
159
+ def render_path(path_to_item):
160
+ """Returns a string representation of a path"""
161
+ result = ""
162
+ for pth in path_to_item:
163
+ if isinstance(pth, int):
164
+ result += "[{0}]".format(pth)
165
+ else:
166
+ result += "['{0}']".format(pth)
167
+ return result
@@ -0,0 +1,44 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+ """
5
+ CloudWalletEssentials
6
+
7
+ Cloud Wallet For Enterprise Structure
8
+
9
+ The version of the OpenAPI document: 1.0.0
10
+ Contact: info@affinidi.com
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
+
13
+ Do not edit the class manually.
14
+ """ # noqa: E501
15
+
16
+
17
+ # import models into model package
18
+ from affinidi_tdk_wallets_client.models.create_wallet_input import CreateWalletInput
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
+ from affinidi_tdk_wallets_client.models.entity_not_found_error import EntityNotFoundError
23
+ from affinidi_tdk_wallets_client.models.get_revocation_credential_status_ok import GetRevocationCredentialStatusOK
24
+ from affinidi_tdk_wallets_client.models.get_revocation_list_credential_result_dto import GetRevocationListCredentialResultDto
25
+ from affinidi_tdk_wallets_client.models.invalid_did_parameter_error import InvalidDidParameterError
26
+ from affinidi_tdk_wallets_client.models.invalid_parameter_error import InvalidParameterError
27
+ from affinidi_tdk_wallets_client.models.key_not_found_error import KeyNotFoundError
28
+ from affinidi_tdk_wallets_client.models.not_found_error import NotFoundError
29
+ from affinidi_tdk_wallets_client.models.operation_forbidden_error import OperationForbiddenError
30
+ from affinidi_tdk_wallets_client.models.revoke_credential_input import RevokeCredentialInput
31
+ from affinidi_tdk_wallets_client.models.service_error_response import ServiceErrorResponse
32
+ from affinidi_tdk_wallets_client.models.service_error_response_details_inner import ServiceErrorResponseDetailsInner
33
+ from affinidi_tdk_wallets_client.models.sign_credential400_response import SignCredential400Response
34
+ from affinidi_tdk_wallets_client.models.sign_credential_input_dto import SignCredentialInputDto
35
+ from affinidi_tdk_wallets_client.models.sign_credential_input_dto_unsigned_credential_params import SignCredentialInputDtoUnsignedCredentialParams
36
+ from affinidi_tdk_wallets_client.models.sign_credential_result_dto import SignCredentialResultDto
37
+ from affinidi_tdk_wallets_client.models.sign_credential_result_dto_signed_credential import SignCredentialResultDtoSignedCredential
38
+ from affinidi_tdk_wallets_client.models.sign_jwt_token import SignJwtToken
39
+ from affinidi_tdk_wallets_client.models.sign_jwt_token_ok import SignJwtTokenOK
40
+ from affinidi_tdk_wallets_client.models.signing_failed_error import SigningFailedError
41
+ from affinidi_tdk_wallets_client.models.update_wallet_input import UpdateWalletInput
42
+ from affinidi_tdk_wallets_client.models.wallet_dto import WalletDto
43
+ from affinidi_tdk_wallets_client.models.wallet_dto_keys_inner import WalletDtoKeysInner
44
+ from affinidi_tdk_wallets_client.models.wallets_list_dto import WalletsListDto