-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ Upgrade to latest ACA-Py nightly build (#178)
* ⬆️ Upgrade anyio * 0.12.2b0 * ✨ new field: additional_properties * ✨ new cred filter: vc_di * ✨ new api: AnoncredsWalletUpgradeApi *⚠️ "indy" wallet type no longer supported * 🎨 modifies handling when `non_revoked is Null` in to_dict output * 🎨 `domain` field isd no longer regex validated * ✨ adds limit and offset for listing wallets * ✨ adds limit and offset for listing wallets with group_id * 🎨 remove duplicate get_wallets method, keeping only the one supporting group_id
- Loading branch information
Showing
28 changed files
with
632 additions
and
14,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131 changes: 131 additions & 0 deletions
131
aries_cloudcontroller/api/anoncreds_wallet_upgrade_api.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
Aries Cloud Agent | ||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
The version of the OpenAPI document: v0.12.1 | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
from typing import Any, Dict, List, Optional, Tuple, Union | ||
|
||
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call | ||
from typing_extensions import Annotated | ||
|
||
from aries_cloudcontroller.api_client import ApiClient, RequestSerialized | ||
|
||
|
||
class AnoncredsWalletUpgradeApi: | ||
"""NOTE: This class is auto generated by OpenAPI Generator | ||
Ref: https://openapi-generator.tech | ||
Do not edit the class manually. | ||
""" | ||
|
||
def __init__(self, api_client=None) -> None: | ||
if api_client is None: | ||
api_client = ApiClient.get_default() | ||
self.api_client = api_client | ||
|
||
@validate_call | ||
async def anoncreds_wallet_upgrade_post( | ||
self, | ||
wallet_name: Annotated[ | ||
StrictStr, Field(description="Name of wallet to upgrade to anoncreds") | ||
], | ||
_request_timeout: Union[ | ||
None, | ||
Annotated[StrictFloat, Field(gt=0)], | ||
Tuple[ | ||
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] | ||
], | ||
] = None, | ||
_request_auth: Optional[Dict[StrictStr, Any]] = None, | ||
_content_type: Optional[StrictStr] = None, | ||
_headers: Optional[Dict[StrictStr, Any]] = None, | ||
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, | ||
) -> object: | ||
"""Upgrade the wallet from askar to anoncreds - Be very careful with this! You cannot go back! See migration guide for more information. | ||
:param wallet_name: Name of wallet to upgrade to anoncreds (required) | ||
:type wallet_name: str | ||
... | ||
""" # noqa: E501 | ||
|
||
_param = self._anoncreds_wallet_upgrade_post_serialize( | ||
wallet_name=wallet_name, | ||
_request_auth=_request_auth, | ||
_content_type=_content_type, | ||
_headers=_headers, | ||
_host_index=_host_index, | ||
) | ||
|
||
_response_types_map: Dict[str, Optional[str]] = { | ||
"200": "object", | ||
} | ||
response_data = await self.api_client.call_api( | ||
*_param, _request_timeout=_request_timeout | ||
) | ||
await response_data.read() | ||
return self.api_client.response_deserialize( | ||
response_data=response_data, | ||
response_types_map=_response_types_map, | ||
).data | ||
|
||
def _anoncreds_wallet_upgrade_post_serialize( | ||
self, | ||
wallet_name, | ||
_request_auth, | ||
_content_type, | ||
_headers, | ||
_host_index, | ||
) -> RequestSerialized: | ||
|
||
_host = None | ||
|
||
_collection_formats: Dict[str, str] = {} | ||
|
||
_path_params: Dict[str, str] = {} | ||
_query_params: List[Tuple[str, str]] = [] | ||
_header_params: Dict[str, Optional[str]] = _headers or {} | ||
_form_params: List[Tuple[str, str]] = [] | ||
_files: Dict[str, Union[str, bytes]] = {} | ||
_body_params: Optional[bytes] = None | ||
|
||
# process the path parameters | ||
# process the query parameters | ||
if wallet_name is not None: | ||
|
||
_query_params.append(("wallet_name", wallet_name)) | ||
|
||
# process the header parameters | ||
# process the form parameters | ||
# process the body parameter | ||
|
||
# set the HTTP header `Accept` | ||
_header_params["Accept"] = self.api_client.select_header_accept( | ||
["application/json"] | ||
) | ||
|
||
# authentication setting | ||
_auth_settings: List[str] = ["AuthorizationHeader"] | ||
|
||
return self.api_client.param_serialize( | ||
method="POST", | ||
resource_path="/anoncreds/wallet/upgrade", | ||
path_params=_path_params, | ||
query_params=_query_params, | ||
header_params=_header_params, | ||
body=_body_params, | ||
post_params=_form_params, | ||
files=_files, | ||
auth_settings=_auth_settings, | ||
collection_formats=_collection_formats, | ||
_host=_host, | ||
_request_auth=_request_auth, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.