From aea6633b10ede3b36e5e992f5d35d94902cada1b Mon Sep 17 00:00:00 2001 From: Mourits de Beer <31511766+ff137@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:07:57 +0200 Subject: [PATCH] :arrow_up: Upgrade dependencies (#161) * :arrow_up: Upgrade `black` to latest * :arrow_up: Upgrade `pytest` to latest * :arrow_up: Upgrade `autoflake` to latest * :arrow_up: Upgrade `pydantic` to latest * :arrow_up: Upgrade `urllib3` to latest * :arrow_up: Upgrade `typing-extensions` to latest * :art: apply newest `black` formatting * :art: fix missing import * :art: fix typos * version bump * :see_no_evil: un-ignore vscode settings * :wrench: Add vscode/settings.json, with cSpell acceptable word dictionary * :arrow_up: Upgrade `anyio` to latest * :construction_worker: Loosen requirement restrictions * :art: fix markdown warnings * :construction_worker: add `--upgrade` flag to pip install * :pushpin: pin aiohttp to >=3.9.2 for vulnerability fix * :construction_worker: add `--skip-existing` flag to twine upload --- .github/workflows/python-publish.yml | 4 +- .github/workflows/python-test-publish.yml | 6 +- .gitignore | 3 +- .vscode/settings.json | 48 ++++++++++++++++ .../models/action_menu_fetch_result.py | 8 ++- .../models/attach_decorator.py | 8 ++- .../models/attach_decorator_data.py | 8 ++- .../models/attach_decorator_data1_jws.py | 8 ++- .../models/attach_decorator_data_jws.py | 22 +++++--- .../models/connection_list.py | 8 ++- .../models/connection_static_result.py | 8 ++- aries_cloudcontroller/models/constraints.py | 18 +++--- .../models/create_wallet_token_request.py | 2 +- .../models/cred_def_value.py | 16 ++++-- .../models/cred_def_value_primary.py | 8 ++- .../models/cred_info_list.py | 10 ++-- .../models/cred_rev_record_details_result.py | 13 +++-- .../models/cred_rev_record_result.py | 8 ++- aries_cloudcontroller/models/credential.py | 8 ++- .../models/credential_definition.py | 8 ++- .../credential_definition_get_result.py | 8 +-- .../models/credential_offer.py | 24 ++++---- .../models/credential_preview.py | 10 ++-- .../models/credential_proposal.py | 10 ++-- aries_cloudcontroller/models/did_create.py | 10 ++-- aries_cloudcontroller/models/did_list.py | 8 ++- aries_cloudcontroller/models/did_result.py | 8 ++- aries_cloudcontroller/models/didx_request.py | 8 ++- aries_cloudcontroller/models/dif_field.py | 8 ++- aries_cloudcontroller/models/dif_pres_spec.py | 10 ++-- .../models/dif_proof_proposal.py | 22 +++++--- .../models/dif_proof_request.py | 18 +++--- aries_cloudcontroller/models/disclose.py | 14 +++-- aries_cloudcontroller/models/doc.py | 8 ++- .../models/indy_cred_abstract.py | 10 ++-- .../models/indy_cred_precis.py | 16 ++++-- .../models/indy_credential.py | 14 +++-- aries_cloudcontroller/models/indy_ge_proof.py | 8 ++- .../models/indy_non_revocation_interval.py | 9 +-- .../models/indy_pres_preview.py | 26 +++++---- .../models/indy_pres_spec.py | 28 ++++++---- .../models/indy_primary_proof.py | 18 +++--- aries_cloudcontroller/models/indy_proof.py | 32 ++++++----- .../models/indy_proof_proof.py | 24 ++++---- .../models/indy_proof_proof_proofs_proof.py | 20 ++++--- .../models/indy_proof_req_attr_spec.py | 10 ++-- .../indy_proof_req_attr_spec_non_revoked.py | 9 +-- .../models/indy_proof_req_pred_spec.py | 10 ++-- .../indy_proof_req_pred_spec_non_revoked.py | 9 +-- .../models/indy_proof_request.py | 38 +++++++------ .../models/indy_proof_request_non_revoked.py | 9 +-- .../models/indy_proof_requested_proof.py | 42 ++++++++------ ...oof_requested_proof_revealed_attr_group.py | 14 +++-- .../models/indy_rev_reg_def.py | 8 ++- .../models/indy_rev_reg_def_value.py | 10 ++-- .../indy_rev_reg_def_value_public_keys.py | 8 +-- .../models/indy_rev_reg_entry.py | 8 ++- .../models/input_descriptors.py | 16 ++++-- .../models/invitation_create_request.py | 10 ++-- .../models/invitation_message.py | 14 +++-- .../models/invitation_record.py | 8 ++- .../models/invitation_result.py | 8 ++- .../models/issuer_rev_reg_record.py | 16 ++++-- aries_cloudcontroller/models/keylist.py | 10 ++-- aries_cloudcontroller/models/keylist_query.py | 8 ++- .../models/keylist_update.py | 10 ++-- .../models/keylist_update_request.py | 10 ++-- .../models/ld_proof_vc_detail.py | 16 ++++-- .../models/ld_proof_vc_detail_options.py | 10 ++-- .../models/ledger_config_list.py | 14 +++-- .../models/mediation_list.py | 10 ++-- aries_cloudcontroller/models/menu.py | 8 ++- aries_cloudcontroller/models/menu_form.py | 10 ++-- aries_cloudcontroller/models/menu_json.py | 8 ++- aries_cloudcontroller/models/menu_option.py | 8 ++- aries_cloudcontroller/models/oob_record.py | 16 ++++-- .../models/presentation_definition.py | 36 +++++++----- .../models/presentation_proposal.py | 10 ++-- .../models/presentation_request.py | 14 +++-- aries_cloudcontroller/models/queries.py | 8 ++- .../models/rev_reg_result.py | 8 ++- .../models/schema_get_result.py | 8 ++- .../models/schema_send_result.py | 8 ++- .../models/schemas_input_descriptor_filter.py | 16 +++--- aries_cloudcontroller/models/send_menu.py | 8 ++- aries_cloudcontroller/models/sign_request.py | 8 ++- aries_cloudcontroller/models/signed_doc.py | 8 ++- .../models/submission_requirements.py | 14 +++-- aries_cloudcontroller/models/taa_info.py | 24 +++++--- aries_cloudcontroller/models/taa_result.py | 8 ++- .../models/transaction_list.py | 10 ++-- .../models/transaction_record.py | 2 +- ...xn_or_credential_definition_send_result.py | 16 ++++-- .../txn_or_publish_revocations_result.py | 16 ++++-- .../txn_or_register_ledger_nym_response.py | 8 ++- .../models/txn_or_rev_reg_result.py | 16 ++++-- .../models/txn_or_schema_send_result.py | 16 ++++-- .../v10_credential_bound_offer_request.py | 8 +-- .../v10_credential_conn_free_offer_request.py | 10 ++-- .../models/v10_credential_create.py | 10 ++-- .../models/v10_credential_exchange.py | 56 ++++++++++--------- .../v10_credential_exchange_list_result.py | 14 +++-- .../v10_credential_free_offer_request.py | 10 ++-- .../v10_credential_proposal_request_mand.py | 10 ++-- .../v10_credential_proposal_request_opt.py | 10 ++-- .../v10_discovery_exchange_list_result.py | 13 +++-- .../models/v10_discovery_record.py | 16 ++++-- ...v10_presentation_create_request_request.py | 8 ++- .../models/v10_presentation_exchange.py | 52 +++++++++-------- .../models/v10_presentation_exchange_list.py | 14 +++-- .../v10_presentation_proposal_request.py | 10 ++-- .../models/v10_presentation_send_request.py | 28 ++++++---- .../v10_presentation_send_request_request.py | 8 ++- .../models/v20_cred_bound_offer_request.py | 16 ++++-- .../models/v20_cred_ex_free.py | 18 +++--- .../models/v20_cred_ex_record.py | 48 ++++++++++------ .../models/v20_cred_ex_record_detail.py | 24 +++++--- .../models/v20_cred_ex_record_list_result.py | 14 +++-- .../models/v20_cred_filter.py | 16 ++++-- .../models/v20_cred_filter_ld_proof.py | 8 ++- .../models/v20_cred_issue.py | 24 ++++---- .../models/v20_cred_offer.py | 34 +++++------ .../v20_cred_offer_conn_free_request.py | 18 +++--- .../models/v20_cred_offer_request.py | 18 +++--- .../models/v20_cred_preview.py | 13 +++-- .../models/v20_cred_proposal.py | 34 +++++------ .../models/v20_cred_request.py | 24 ++++---- .../models/v20_cred_request_free.py | 8 ++- .../v20_discovery_exchange_list_result.py | 13 +++-- .../models/v20_discovery_exchange_result.py | 8 ++- .../models/v20_discovery_record.py | 16 ++++-- .../models/v20_issue_cred_schema_core.py | 18 +++--- aries_cloudcontroller/models/v20_pres.py | 24 ++++---- .../models/v20_pres_create_request_request.py | 10 ++-- .../models/v20_pres_ex_record.py | 32 +++++++---- .../models/v20_pres_ex_record_list.py | 10 ++-- .../models/v20_pres_proposal.py | 24 ++++---- .../models/v20_pres_proposal_by_format.py | 16 ++++-- .../models/v20_pres_proposal_request.py | 10 ++-- .../models/v20_pres_request.py | 24 ++++---- .../models/v20_pres_request_by_format.py | 16 ++++-- .../models/v20_pres_send_request_request.py | 10 ++-- .../models/v20_pres_spec_by_format_request.py | 16 ++++-- .../models/vc_record_list.py | 8 ++- .../models/verify_request.py | 8 ++- aries_cloudcontroller/models/wallet_list.py | 10 ++-- .../models/wallet_list_with_groups.py | 16 +++--- .../models/wallet_record_with_groups.py | 2 +- generator/README.md | 4 +- requirements.dev.txt | 8 +-- requirements.txt | 10 ++-- setup.py | 2 +- tests/README.md | 6 +- 153 files changed, 1256 insertions(+), 899 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 6ab9607b9..b6e48119d 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -19,7 +19,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt -r requirements.dev.txt + pip install -r requirements.txt -r requirements.dev.txt --upgrade - name: Run tests with pytest run: pytest @@ -37,7 +37,7 @@ jobs: python -m pip install --upgrade pip pip install \ isort~=5.13.2 \ - black~=23.12.1 + black~=24.3.0 - name: Check import style with isort run: | isort . --check --profile black --diff diff --git a/.github/workflows/python-test-publish.yml b/.github/workflows/python-test-publish.yml index 2ac8fa38e..05195c38c 100644 --- a/.github/workflows/python-test-publish.yml +++ b/.github/workflows/python-test-publish.yml @@ -21,7 +21,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt -r requirements.dev.txt + pip install -r requirements.txt -r requirements.dev.txt --upgrade - name: Run tests with pytest run: pytest @@ -39,7 +39,7 @@ jobs: python -m pip install --upgrade pip pip install \ isort~=5.13.2 \ - black~=23.12.1 + black~=24.3.0 - name: Check import style with isort run: | isort . --check --profile black --diff @@ -75,4 +75,4 @@ jobs: TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} run: | python setup.py sdist bdist_wheel - twine upload --repository testpypi dist/* + twine upload --repository testpypi dist/* --skip-existing diff --git a/.gitignore b/.gitignore index bb29115c7..688589f32 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ build .venv .pytest_cache/* __pycache__/ -.vscode/ .coverage env -generated \ No newline at end of file +generated diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..c137bec13 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,48 @@ +{ + "cSpell.words": [ + "acapy", + "Accum", + "aiohttp", + "askar", + "Basicmessage", + "cafile", + "Camenisch", + "canonicalized", + "cloudcontroller", + "credentialsattach", + "Creds", + "crid", + "dateutil", + "didexchange", + "DIDX", + "docattach", + "errormsg", + "filtersattach", + "htilde", + "invi", + "JSESSIONID", + "Jsonld", + "Keylist", + "keypair", + "klass", + "levelname", + "Lysyanskaya", + "Mand", + "Multitenancy", + "offersattach", + "oneof", + "presentationsattach", + "proposalsattach", + "pydantic", + "pyversion", + "rctxt", + "Regs", + "requestsattach", + "Revoc", + "rrid", + "SDJWS", + "subwallet", + "Trustping", + "Verkey" + ] +} \ No newline at end of file diff --git a/aries_cloudcontroller/models/action_menu_fetch_result.py b/aries_cloudcontroller/models/action_menu_fetch_result.py index 88b4d923c..1df92d94e 100644 --- a/aries_cloudcontroller/models/action_menu_fetch_result.py +++ b/aries_cloudcontroller/models/action_menu_fetch_result.py @@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "result": Menu.from_dict(obj.get("result")) - if obj.get("result") is not None - else None + "result": ( + Menu.from_dict(obj.get("result")) + if obj.get("result") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/attach_decorator.py b/aries_cloudcontroller/models/attach_decorator.py index f043cdde4..68e4f74d6 100644 --- a/aries_cloudcontroller/models/attach_decorator.py +++ b/aries_cloudcontroller/models/attach_decorator.py @@ -127,9 +127,11 @@ def from_dict(cls, obj: Dict) -> Self: { "@id": obj.get("@id"), "byte_count": obj.get("byte_count"), - "data": AttachDecoratorData.from_dict(obj.get("data")) - if obj.get("data") is not None - else None, + "data": ( + AttachDecoratorData.from_dict(obj.get("data")) + if obj.get("data") is not None + else None + ), "description": obj.get("description"), "filename": obj.get("filename"), "lastmod_time": obj.get("lastmod_time"), diff --git a/aries_cloudcontroller/models/attach_decorator_data.py b/aries_cloudcontroller/models/attach_decorator_data.py index 69ecaa3e9..f51d781a6 100644 --- a/aries_cloudcontroller/models/attach_decorator_data.py +++ b/aries_cloudcontroller/models/attach_decorator_data.py @@ -125,9 +125,11 @@ def from_dict(cls, obj: Dict) -> Self: { "base64": obj.get("base64"), "json": obj.get("json"), - "jws": AttachDecoratorDataJWS.from_dict(obj.get("jws")) - if obj.get("jws") is not None - else None, + "jws": ( + AttachDecoratorDataJWS.from_dict(obj.get("jws")) + if obj.get("jws") is not None + else None + ), "links": obj.get("links"), "sha256": obj.get("sha256"), } diff --git a/aries_cloudcontroller/models/attach_decorator_data1_jws.py b/aries_cloudcontroller/models/attach_decorator_data1_jws.py index 502b47b30..1b52e814e 100644 --- a/aries_cloudcontroller/models/attach_decorator_data1_jws.py +++ b/aries_cloudcontroller/models/attach_decorator_data1_jws.py @@ -108,9 +108,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "header": AttachDecoratorDataJWSHeader.from_dict(obj.get("header")) - if obj.get("header") is not None - else None, + "header": ( + AttachDecoratorDataJWSHeader.from_dict(obj.get("header")) + if obj.get("header") is not None + else None + ), "protected": obj.get("protected"), "signature": obj.get("signature"), } diff --git a/aries_cloudcontroller/models/attach_decorator_data_jws.py b/aries_cloudcontroller/models/attach_decorator_data_jws.py index a75b497b5..a6a3055c3 100644 --- a/aries_cloudcontroller/models/attach_decorator_data_jws.py +++ b/aries_cloudcontroller/models/attach_decorator_data_jws.py @@ -131,17 +131,21 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "header": AttachDecoratorDataJWSHeader.from_dict(obj.get("header")) - if obj.get("header") is not None - else None, + "header": ( + AttachDecoratorDataJWSHeader.from_dict(obj.get("header")) + if obj.get("header") is not None + else None + ), "protected": obj.get("protected"), "signature": obj.get("signature"), - "signatures": [ - AttachDecoratorData1JWS.from_dict(_item) - for _item in obj.get("signatures") - ] - if obj.get("signatures") is not None - else None, + "signatures": ( + [ + AttachDecoratorData1JWS.from_dict(_item) + for _item in obj.get("signatures") + ] + if obj.get("signatures") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/connection_list.py b/aries_cloudcontroller/models/connection_list.py index 020bc3f03..6235f69e6 100644 --- a/aries_cloudcontroller/models/connection_list.py +++ b/aries_cloudcontroller/models/connection_list.py @@ -89,9 +89,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ConnRecord.from_dict(_item) for _item in obj.get("results")] - if obj.get("results") is not None - else None + "results": ( + [ConnRecord.from_dict(_item) for _item in obj.get("results")] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/connection_static_result.py b/aries_cloudcontroller/models/connection_static_result.py index 726a2a282..23cf1a399 100644 --- a/aries_cloudcontroller/models/connection_static_result.py +++ b/aries_cloudcontroller/models/connection_static_result.py @@ -166,9 +166,11 @@ def from_dict(cls, obj: Dict) -> Self: "my_did": obj.get("my_did"), "my_endpoint": obj.get("my_endpoint"), "my_verkey": obj.get("my_verkey"), - "record": ConnRecord.from_dict(obj.get("record")) - if obj.get("record") is not None - else None, + "record": ( + ConnRecord.from_dict(obj.get("record")) + if obj.get("record") is not None + else None + ), "their_did": obj.get("their_did"), "their_verkey": obj.get("their_verkey"), } diff --git a/aries_cloudcontroller/models/constraints.py b/aries_cloudcontroller/models/constraints.py index 4e2f51777..85ed8b478 100644 --- a/aries_cloudcontroller/models/constraints.py +++ b/aries_cloudcontroller/models/constraints.py @@ -159,14 +159,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "fields": [DIFField.from_dict(_item) for _item in obj.get("fields")] - if obj.get("fields") is not None - else None, - "is_holder": [ - DIFHolder.from_dict(_item) for _item in obj.get("is_holder") - ] - if obj.get("is_holder") is not None - else None, + "fields": ( + [DIFField.from_dict(_item) for _item in obj.get("fields")] + if obj.get("fields") is not None + else None + ), + "is_holder": ( + [DIFHolder.from_dict(_item) for _item in obj.get("is_holder")] + if obj.get("is_holder") is not None + else None + ), "limit_disclosure": obj.get("limit_disclosure"), "status_active": obj.get("status_active"), "status_revoked": obj.get("status_revoked"), diff --git a/aries_cloudcontroller/models/create_wallet_token_request.py b/aries_cloudcontroller/models/create_wallet_token_request.py index d3585067e..0c7231bd6 100644 --- a/aries_cloudcontroller/models/create_wallet_token_request.py +++ b/aries_cloudcontroller/models/create_wallet_token_request.py @@ -35,7 +35,7 @@ class CreateWalletTokenRequest(BaseModel): wallet_key: Optional[StrictStr] = Field( default=None, - description="Master key used for key derivation. Only required for unamanged wallets.", + description="Master key used for key derivation. Only required for unmanaged wallets.", ) __properties: ClassVar[List[str]] = ["wallet_key"] diff --git a/aries_cloudcontroller/models/cred_def_value.py b/aries_cloudcontroller/models/cred_def_value.py index a6ebcb277..1ce863c39 100644 --- a/aries_cloudcontroller/models/cred_def_value.py +++ b/aries_cloudcontroller/models/cred_def_value.py @@ -90,12 +90,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "primary": CredDefValuePrimary.from_dict(obj.get("primary")) - if obj.get("primary") is not None - else None, - "revocation": CredDefValueRevocation.from_dict(obj.get("revocation")) - if obj.get("revocation") is not None - else None, + "primary": ( + CredDefValuePrimary.from_dict(obj.get("primary")) + if obj.get("primary") is not None + else None + ), + "revocation": ( + CredDefValueRevocation.from_dict(obj.get("revocation")) + if obj.get("revocation") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/cred_def_value_primary.py b/aries_cloudcontroller/models/cred_def_value_primary.py index 8d9e474f6..324964480 100644 --- a/aries_cloudcontroller/models/cred_def_value_primary.py +++ b/aries_cloudcontroller/models/cred_def_value_primary.py @@ -130,9 +130,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "n": obj.get("n"), - "r": Generated.from_dict(obj.get("r")) - if obj.get("r") is not None - else None, + "r": ( + Generated.from_dict(obj.get("r")) + if obj.get("r") is not None + else None + ), "rctxt": obj.get("rctxt"), "s": obj.get("s"), "z": obj.get("z"), diff --git a/aries_cloudcontroller/models/cred_info_list.py b/aries_cloudcontroller/models/cred_info_list.py index d8ec99caa..04c1fd1a9 100644 --- a/aries_cloudcontroller/models/cred_info_list.py +++ b/aries_cloudcontroller/models/cred_info_list.py @@ -87,11 +87,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - IndyCredInfo.from_dict(_item) for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [IndyCredInfo.from_dict(_item) for _item in obj.get("results")] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/cred_rev_record_details_result.py b/aries_cloudcontroller/models/cred_rev_record_details_result.py index 4b49af544..1262ac9f4 100644 --- a/aries_cloudcontroller/models/cred_rev_record_details_result.py +++ b/aries_cloudcontroller/models/cred_rev_record_details_result.py @@ -87,11 +87,14 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - IssuerCredRevRecord.from_dict(_item) for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [ + IssuerCredRevRecord.from_dict(_item) + for _item in obj.get("results") + ] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/cred_rev_record_result.py b/aries_cloudcontroller/models/cred_rev_record_result.py index 6ddcd2cd6..fb382a3a0 100644 --- a/aries_cloudcontroller/models/cred_rev_record_result.py +++ b/aries_cloudcontroller/models/cred_rev_record_result.py @@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "result": IssuerCredRevRecord.from_dict(obj.get("result")) - if obj.get("result") is not None - else None + "result": ( + IssuerCredRevRecord.from_dict(obj.get("result")) + if obj.get("result") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/credential.py b/aries_cloudcontroller/models/credential.py index 1e0bec674..caf3fb07d 100644 --- a/aries_cloudcontroller/models/credential.py +++ b/aries_cloudcontroller/models/credential.py @@ -154,9 +154,11 @@ def from_dict(cls, obj: Dict) -> Self: "id": obj.get("id"), "issuanceDate": obj.get("issuanceDate"), "issuer": obj.get("issuer"), - "proof": LinkedDataProof.from_dict(obj.get("proof")) - if obj.get("proof") is not None - else None, + "proof": ( + LinkedDataProof.from_dict(obj.get("proof")) + if obj.get("proof") is not None + else None + ), "type": obj.get("type"), } ) diff --git a/aries_cloudcontroller/models/credential_definition.py b/aries_cloudcontroller/models/credential_definition.py index 481dc0ae3..8e3b4e271 100644 --- a/aries_cloudcontroller/models/credential_definition.py +++ b/aries_cloudcontroller/models/credential_definition.py @@ -138,9 +138,11 @@ def from_dict(cls, obj: Dict) -> Self: "schemaId": obj.get("schemaId"), "tag": obj.get("tag"), "type": obj.get("type"), - "value": CredDefValue.from_dict(obj.get("value")) - if obj.get("value") is not None - else None, + "value": ( + CredDefValue.from_dict(obj.get("value")) + if obj.get("value") is not None + else None + ), "ver": obj.get("ver"), } ) diff --git a/aries_cloudcontroller/models/credential_definition_get_result.py b/aries_cloudcontroller/models/credential_definition_get_result.py index 65ab82d79..8f7668673 100644 --- a/aries_cloudcontroller/models/credential_definition_get_result.py +++ b/aries_cloudcontroller/models/credential_definition_get_result.py @@ -83,11 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "credential_definition": CredentialDefinition.from_dict( - obj.get("credential_definition") + "credential_definition": ( + CredentialDefinition.from_dict(obj.get("credential_definition")) + if obj.get("credential_definition") is not None + else None ) - if obj.get("credential_definition") is not None - else None } ) return _obj diff --git a/aries_cloudcontroller/models/credential_offer.py b/aries_cloudcontroller/models/credential_offer.py index e7caa55e8..1d2f03686 100644 --- a/aries_cloudcontroller/models/credential_offer.py +++ b/aries_cloudcontroller/models/credential_offer.py @@ -118,17 +118,19 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "comment": obj.get("comment"), - "credential_preview": CredentialPreview.from_dict( - obj.get("credential_preview") - ) - if obj.get("credential_preview") is not None - else None, - "offers~attach": [ - AttachDecorator.from_dict(_item) - for _item in obj.get("offers~attach") - ] - if obj.get("offers~attach") is not None - else None, + "credential_preview": ( + CredentialPreview.from_dict(obj.get("credential_preview")) + if obj.get("credential_preview") is not None + else None + ), + "offers~attach": ( + [ + AttachDecorator.from_dict(_item) + for _item in obj.get("offers~attach") + ] + if obj.get("offers~attach") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/credential_preview.py b/aries_cloudcontroller/models/credential_preview.py index 4cff93082..37c0e4940 100644 --- a/aries_cloudcontroller/models/credential_preview.py +++ b/aries_cloudcontroller/models/credential_preview.py @@ -91,11 +91,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "@type": obj.get("@type"), - "attributes": [ - CredAttrSpec.from_dict(_item) for _item in obj.get("attributes") - ] - if obj.get("attributes") is not None - else None, + "attributes": ( + [CredAttrSpec.from_dict(_item) for _item in obj.get("attributes")] + if obj.get("attributes") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/credential_proposal.py b/aries_cloudcontroller/models/credential_proposal.py index 3b6b6e625..820a8635e 100644 --- a/aries_cloudcontroller/models/credential_proposal.py +++ b/aries_cloudcontroller/models/credential_proposal.py @@ -193,11 +193,11 @@ def from_dict(cls, obj: Dict) -> Self: "@type": obj.get("@type"), "comment": obj.get("comment"), "cred_def_id": obj.get("cred_def_id"), - "credential_proposal": CredentialPreview.from_dict( - obj.get("credential_proposal") - ) - if obj.get("credential_proposal") is not None - else None, + "credential_proposal": ( + CredentialPreview.from_dict(obj.get("credential_proposal")) + if obj.get("credential_proposal") is not None + else None + ), "issuer_did": obj.get("issuer_did"), "schema_id": obj.get("schema_id"), "schema_issuer_did": obj.get("schema_issuer_did"), diff --git a/aries_cloudcontroller/models/did_create.py b/aries_cloudcontroller/models/did_create.py index 8d83b2582..54236e3d9 100644 --- a/aries_cloudcontroller/models/did_create.py +++ b/aries_cloudcontroller/models/did_create.py @@ -41,7 +41,7 @@ class DIDCreate(BaseModel): options: Optional[DIDCreateOptions] = None seed: Optional[StrictStr] = Field( default=None, - description="Optional seed to use for DID, Must beenabled in configuration before use.", + description="Optional seed to use for DID, Must be enabled in configuration before use.", ) __properties: ClassVar[List[str]] = ["method", "options", "seed"] @@ -92,9 +92,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "method": obj.get("method"), - "options": DIDCreateOptions.from_dict(obj.get("options")) - if obj.get("options") is not None - else None, + "options": ( + DIDCreateOptions.from_dict(obj.get("options")) + if obj.get("options") is not None + else None + ), "seed": obj.get("seed"), } ) diff --git a/aries_cloudcontroller/models/did_list.py b/aries_cloudcontroller/models/did_list.py index 6bd38e5ff..385dbc11d 100644 --- a/aries_cloudcontroller/models/did_list.py +++ b/aries_cloudcontroller/models/did_list.py @@ -87,9 +87,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [DID.from_dict(_item) for _item in obj.get("results")] - if obj.get("results") is not None - else None + "results": ( + [DID.from_dict(_item) for _item in obj.get("results")] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/did_result.py b/aries_cloudcontroller/models/did_result.py index 785c2a5dc..439a7edc7 100644 --- a/aries_cloudcontroller/models/did_result.py +++ b/aries_cloudcontroller/models/did_result.py @@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "result": DID.from_dict(obj.get("result")) - if obj.get("result") is not None - else None + "result": ( + DID.from_dict(obj.get("result")) + if obj.get("result") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/didx_request.py b/aries_cloudcontroller/models/didx_request.py index fd2de79cb..eb1057f76 100644 --- a/aries_cloudcontroller/models/didx_request.py +++ b/aries_cloudcontroller/models/didx_request.py @@ -134,9 +134,11 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "did": obj.get("did"), - "did_doc~attach": AttachDecorator.from_dict(obj.get("did_doc~attach")) - if obj.get("did_doc~attach") is not None - else None, + "did_doc~attach": ( + AttachDecorator.from_dict(obj.get("did_doc~attach")) + if obj.get("did_doc~attach") is not None + else None + ), "goal": obj.get("goal"), "goal_code": obj.get("goal_code"), "label": obj.get("label"), diff --git a/aries_cloudcontroller/models/dif_field.py b/aries_cloudcontroller/models/dif_field.py index 68320c772..ee701c83b 100644 --- a/aries_cloudcontroller/models/dif_field.py +++ b/aries_cloudcontroller/models/dif_field.py @@ -97,9 +97,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "filter": Filter.from_dict(obj.get("filter")) - if obj.get("filter") is not None - else None, + "filter": ( + Filter.from_dict(obj.get("filter")) + if obj.get("filter") is not None + else None + ), "id": obj.get("id"), "path": obj.get("path"), "predicate": obj.get("predicate"), diff --git a/aries_cloudcontroller/models/dif_pres_spec.py b/aries_cloudcontroller/models/dif_pres_spec.py index 7cd29ffac..44d8416e5 100644 --- a/aries_cloudcontroller/models/dif_pres_spec.py +++ b/aries_cloudcontroller/models/dif_pres_spec.py @@ -101,11 +101,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "issuer_id": obj.get("issuer_id"), - "presentation_definition": PresentationDefinition.from_dict( - obj.get("presentation_definition") - ) - if obj.get("presentation_definition") is not None - else None, + "presentation_definition": ( + PresentationDefinition.from_dict(obj.get("presentation_definition")) + if obj.get("presentation_definition") is not None + else None + ), "record_ids": obj.get("record_ids"), "reveal_doc": obj.get("reveal_doc"), } diff --git a/aries_cloudcontroller/models/dif_proof_proposal.py b/aries_cloudcontroller/models/dif_proof_proposal.py index 55895d9fc..c1055a988 100644 --- a/aries_cloudcontroller/models/dif_proof_proposal.py +++ b/aries_cloudcontroller/models/dif_proof_proposal.py @@ -92,15 +92,19 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "input_descriptors": [ - InputDescriptors.from_dict(_item) - for _item in obj.get("input_descriptors") - ] - if obj.get("input_descriptors") is not None - else None, - "options": DIFOptions.from_dict(obj.get("options")) - if obj.get("options") is not None - else None, + "input_descriptors": ( + [ + InputDescriptors.from_dict(_item) + for _item in obj.get("input_descriptors") + ] + if obj.get("input_descriptors") is not None + else None + ), + "options": ( + DIFOptions.from_dict(obj.get("options")) + if obj.get("options") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/dif_proof_request.py b/aries_cloudcontroller/models/dif_proof_request.py index cb621a1df..f8916051a 100644 --- a/aries_cloudcontroller/models/dif_proof_request.py +++ b/aries_cloudcontroller/models/dif_proof_request.py @@ -88,14 +88,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "options": DIFOptions.from_dict(obj.get("options")) - if obj.get("options") is not None - else None, - "presentation_definition": PresentationDefinition.from_dict( - obj.get("presentation_definition") - ) - if obj.get("presentation_definition") is not None - else None, + "options": ( + DIFOptions.from_dict(obj.get("options")) + if obj.get("options") is not None + else None + ), + "presentation_definition": ( + PresentationDefinition.from_dict(obj.get("presentation_definition")) + if obj.get("presentation_definition") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/disclose.py b/aries_cloudcontroller/models/disclose.py index d78ab0c34..a29145ef2 100644 --- a/aries_cloudcontroller/models/disclose.py +++ b/aries_cloudcontroller/models/disclose.py @@ -100,12 +100,14 @@ def from_dict(cls, obj: Dict) -> Self: { "@id": obj.get("@id"), "@type": obj.get("@type"), - "protocols": [ - ProtocolDescriptor.from_dict(_item) - for _item in obj.get("protocols") - ] - if obj.get("protocols") is not None - else None, + "protocols": ( + [ + ProtocolDescriptor.from_dict(_item) + for _item in obj.get("protocols") + ] + if obj.get("protocols") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/doc.py b/aries_cloudcontroller/models/doc.py index e7e5162eb..05078dbab 100644 --- a/aries_cloudcontroller/models/doc.py +++ b/aries_cloudcontroller/models/doc.py @@ -85,9 +85,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "credential": obj.get("credential"), - "options": SignatureOptions.from_dict(obj.get("options")) - if obj.get("options") is not None - else None, + "options": ( + SignatureOptions.from_dict(obj.get("options")) + if obj.get("options") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/indy_cred_abstract.py b/aries_cloudcontroller/models/indy_cred_abstract.py index 7dcb2c34e..7a0c7f9f4 100644 --- a/aries_cloudcontroller/models/indy_cred_abstract.py +++ b/aries_cloudcontroller/models/indy_cred_abstract.py @@ -133,11 +133,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "cred_def_id": obj.get("cred_def_id"), - "key_correctness_proof": IndyKeyCorrectnessProof.from_dict( - obj.get("key_correctness_proof") - ) - if obj.get("key_correctness_proof") is not None - else None, + "key_correctness_proof": ( + IndyKeyCorrectnessProof.from_dict(obj.get("key_correctness_proof")) + if obj.get("key_correctness_proof") is not None + else None + ), "nonce": obj.get("nonce"), "schema_id": obj.get("schema_id"), } diff --git a/aries_cloudcontroller/models/indy_cred_precis.py b/aries_cloudcontroller/models/indy_cred_precis.py index 9bde00f0a..617e78450 100644 --- a/aries_cloudcontroller/models/indy_cred_precis.py +++ b/aries_cloudcontroller/models/indy_cred_precis.py @@ -95,12 +95,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "cred_info": IndyCredInfo.from_dict(obj.get("cred_info")) - if obj.get("cred_info") is not None - else None, - "interval": IndyNonRevocationInterval.from_dict(obj.get("interval")) - if obj.get("interval") is not None - else None, + "cred_info": ( + IndyCredInfo.from_dict(obj.get("cred_info")) + if obj.get("cred_info") is not None + else None + ), + "interval": ( + IndyNonRevocationInterval.from_dict(obj.get("interval")) + if obj.get("interval") is not None + else None + ), "presentation_referents": obj.get("presentation_referents"), } ) diff --git a/aries_cloudcontroller/models/indy_credential.py b/aries_cloudcontroller/models/indy_credential.py index 8c9ca51c5..60b2a15f8 100644 --- a/aries_cloudcontroller/models/indy_credential.py +++ b/aries_cloudcontroller/models/indy_credential.py @@ -177,12 +177,14 @@ def from_dict(cls, obj: Dict) -> Self: "schema_id": obj.get("schema_id"), "signature": obj.get("signature"), "signature_correctness_proof": obj.get("signature_correctness_proof"), - "values": dict( - (_k, IndyAttrValue.from_dict(_v)) - for _k, _v in obj.get("values").items() - ) - if obj.get("values") is not None - else None, + "values": ( + dict( + (_k, IndyAttrValue.from_dict(_v)) + for _k, _v in obj.get("values").items() + ) + if obj.get("values") is not None + else None + ), "witness": obj.get("witness"), } ) diff --git a/aries_cloudcontroller/models/indy_ge_proof.py b/aries_cloudcontroller/models/indy_ge_proof.py index df3b78aed..925dba704 100644 --- a/aries_cloudcontroller/models/indy_ge_proof.py +++ b/aries_cloudcontroller/models/indy_ge_proof.py @@ -112,9 +112,11 @@ def from_dict(cls, obj: Dict) -> Self: { "alpha": obj.get("alpha"), "mj": obj.get("mj"), - "predicate": IndyGEProofPred.from_dict(obj.get("predicate")) - if obj.get("predicate") is not None - else None, + "predicate": ( + IndyGEProofPred.from_dict(obj.get("predicate")) + if obj.get("predicate") is not None + else None + ), "r": obj.get("r"), "t": obj.get("t"), "u": obj.get("u"), diff --git a/aries_cloudcontroller/models/indy_non_revocation_interval.py b/aries_cloudcontroller/models/indy_non_revocation_interval.py index 44533a123..887d7051e 100644 --- a/aries_cloudcontroller/models/indy_non_revocation_interval.py +++ b/aries_cloudcontroller/models/indy_non_revocation_interval.py @@ -41,10 +41,11 @@ class IndyNonRevocationInterval(BaseModel): description="Earliest time of interest in non-revocation interval", alias="from", ) - to: Optional[ - Annotated[int, Field(le=18446744073709551615, strict=True, ge=0)] - ] = Field( - default=None, description="Latest time of interest in non-revocation interval" + to: Optional[Annotated[int, Field(le=18446744073709551615, strict=True, ge=0)]] = ( + Field( + default=None, + description="Latest time of interest in non-revocation interval", + ) ) __properties: ClassVar[List[str]] = ["from", "to"] diff --git a/aries_cloudcontroller/models/indy_pres_preview.py b/aries_cloudcontroller/models/indy_pres_preview.py index ef8949fea..7a6b0d1e8 100644 --- a/aries_cloudcontroller/models/indy_pres_preview.py +++ b/aries_cloudcontroller/models/indy_pres_preview.py @@ -100,16 +100,22 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "@type": obj.get("@type"), - "attributes": [ - IndyPresAttrSpec.from_dict(_item) for _item in obj.get("attributes") - ] - if obj.get("attributes") is not None - else None, - "predicates": [ - IndyPresPredSpec.from_dict(_item) for _item in obj.get("predicates") - ] - if obj.get("predicates") is not None - else None, + "attributes": ( + [ + IndyPresAttrSpec.from_dict(_item) + for _item in obj.get("attributes") + ] + if obj.get("attributes") is not None + else None + ), + "predicates": ( + [ + IndyPresPredSpec.from_dict(_item) + for _item in obj.get("predicates") + ] + if obj.get("predicates") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/indy_pres_spec.py b/aries_cloudcontroller/models/indy_pres_spec.py index 17066d8f4..276869cfa 100644 --- a/aries_cloudcontroller/models/indy_pres_spec.py +++ b/aries_cloudcontroller/models/indy_pres_spec.py @@ -115,18 +115,22 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "requested_attributes": dict( - (_k, IndyRequestedCredsRequestedAttr.from_dict(_v)) - for _k, _v in obj.get("requested_attributes").items() - ) - if obj.get("requested_attributes") is not None - else None, - "requested_predicates": dict( - (_k, IndyRequestedCredsRequestedPred.from_dict(_v)) - for _k, _v in obj.get("requested_predicates").items() - ) - if obj.get("requested_predicates") is not None - else None, + "requested_attributes": ( + dict( + (_k, IndyRequestedCredsRequestedAttr.from_dict(_v)) + for _k, _v in obj.get("requested_attributes").items() + ) + if obj.get("requested_attributes") is not None + else None + ), + "requested_predicates": ( + dict( + (_k, IndyRequestedCredsRequestedPred.from_dict(_v)) + for _k, _v in obj.get("requested_predicates").items() + ) + if obj.get("requested_predicates") is not None + else None + ), "self_attested_attributes": obj.get("self_attested_attributes"), "trace": obj.get("trace"), } diff --git a/aries_cloudcontroller/models/indy_primary_proof.py b/aries_cloudcontroller/models/indy_primary_proof.py index 07c8d6560..002ca0502 100644 --- a/aries_cloudcontroller/models/indy_primary_proof.py +++ b/aries_cloudcontroller/models/indy_primary_proof.py @@ -106,14 +106,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "eq_proof": IndyPrimaryProofEqProof.from_dict(obj.get("eq_proof")) - if obj.get("eq_proof") is not None - else None, - "ge_proofs": [ - IndyGEProof.from_dict(_item) for _item in obj.get("ge_proofs") - ] - if obj.get("ge_proofs") is not None - else None, + "eq_proof": ( + IndyPrimaryProofEqProof.from_dict(obj.get("eq_proof")) + if obj.get("eq_proof") is not None + else None + ), + "ge_proofs": ( + [IndyGEProof.from_dict(_item) for _item in obj.get("ge_proofs")] + if obj.get("ge_proofs") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/indy_proof.py b/aries_cloudcontroller/models/indy_proof.py index 9df305b7a..b39cbaec9 100644 --- a/aries_cloudcontroller/models/indy_proof.py +++ b/aries_cloudcontroller/models/indy_proof.py @@ -101,20 +101,24 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "identifiers": [ - IndyProofIdentifier.from_dict(_item) - for _item in obj.get("identifiers") - ] - if obj.get("identifiers") is not None - else None, - "proof": IndyProofProof.from_dict(obj.get("proof")) - if obj.get("proof") is not None - else None, - "requested_proof": IndyProofRequestedProof.from_dict( - obj.get("requested_proof") - ) - if obj.get("requested_proof") is not None - else None, + "identifiers": ( + [ + IndyProofIdentifier.from_dict(_item) + for _item in obj.get("identifiers") + ] + if obj.get("identifiers") is not None + else None + ), + "proof": ( + IndyProofProof.from_dict(obj.get("proof")) + if obj.get("proof") is not None + else None + ), + "requested_proof": ( + IndyProofRequestedProof.from_dict(obj.get("requested_proof")) + if obj.get("requested_proof") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/indy_proof_proof.py b/aries_cloudcontroller/models/indy_proof_proof.py index e1d5dafb2..c9059d9b6 100644 --- a/aries_cloudcontroller/models/indy_proof_proof.py +++ b/aries_cloudcontroller/models/indy_proof_proof.py @@ -98,17 +98,19 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "aggregated_proof": IndyProofProofAggregatedProof.from_dict( - obj.get("aggregated_proof") - ) - if obj.get("aggregated_proof") is not None - else None, - "proofs": [ - IndyProofProofProofsProof.from_dict(_item) - for _item in obj.get("proofs") - ] - if obj.get("proofs") is not None - else None, + "aggregated_proof": ( + IndyProofProofAggregatedProof.from_dict(obj.get("aggregated_proof")) + if obj.get("aggregated_proof") is not None + else None + ), + "proofs": ( + [ + IndyProofProofProofsProof.from_dict(_item) + for _item in obj.get("proofs") + ] + if obj.get("proofs") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/indy_proof_proof_proofs_proof.py b/aries_cloudcontroller/models/indy_proof_proof_proofs_proof.py index b2195ebef..8fb3a0db4 100644 --- a/aries_cloudcontroller/models/indy_proof_proof_proofs_proof.py +++ b/aries_cloudcontroller/models/indy_proof_proof_proofs_proof.py @@ -95,14 +95,18 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "non_revoc_proof": IndyProofProofProofsProofNonRevocProof.from_dict( - obj.get("non_revoc_proof") - ) - if obj.get("non_revoc_proof") is not None - else None, - "primary_proof": IndyPrimaryProof.from_dict(obj.get("primary_proof")) - if obj.get("primary_proof") is not None - else None, + "non_revoc_proof": ( + IndyProofProofProofsProofNonRevocProof.from_dict( + obj.get("non_revoc_proof") + ) + if obj.get("non_revoc_proof") is not None + else None + ), + "primary_proof": ( + IndyPrimaryProof.from_dict(obj.get("primary_proof")) + if obj.get("primary_proof") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/indy_proof_req_attr_spec.py b/aries_cloudcontroller/models/indy_proof_req_attr_spec.py index b58819334..049d93fff 100644 --- a/aries_cloudcontroller/models/indy_proof_req_attr_spec.py +++ b/aries_cloudcontroller/models/indy_proof_req_attr_spec.py @@ -100,11 +100,11 @@ def from_dict(cls, obj: Dict) -> Self: { "name": obj.get("name"), "names": obj.get("names"), - "non_revoked": IndyProofReqAttrSpecNonRevoked.from_dict( - obj.get("non_revoked") - ) - if obj.get("non_revoked") is not None - else None, + "non_revoked": ( + IndyProofReqAttrSpecNonRevoked.from_dict(obj.get("non_revoked")) + if obj.get("non_revoked") is not None + else None + ), "restrictions": obj.get("restrictions"), } ) diff --git a/aries_cloudcontroller/models/indy_proof_req_attr_spec_non_revoked.py b/aries_cloudcontroller/models/indy_proof_req_attr_spec_non_revoked.py index 6c77693d7..e8579acb8 100644 --- a/aries_cloudcontroller/models/indy_proof_req_attr_spec_non_revoked.py +++ b/aries_cloudcontroller/models/indy_proof_req_attr_spec_non_revoked.py @@ -41,10 +41,11 @@ class IndyProofReqAttrSpecNonRevoked(BaseModel): description="Earliest time of interest in non-revocation interval", alias="from", ) - to: Optional[ - Annotated[int, Field(le=18446744073709551615, strict=True, ge=0)] - ] = Field( - default=None, description="Latest time of interest in non-revocation interval" + to: Optional[Annotated[int, Field(le=18446744073709551615, strict=True, ge=0)]] = ( + Field( + default=None, + description="Latest time of interest in non-revocation interval", + ) ) __properties: ClassVar[List[str]] = ["from", "to"] diff --git a/aries_cloudcontroller/models/indy_proof_req_pred_spec.py b/aries_cloudcontroller/models/indy_proof_req_pred_spec.py index 3775983f7..f51e8c44b 100644 --- a/aries_cloudcontroller/models/indy_proof_req_pred_spec.py +++ b/aries_cloudcontroller/models/indy_proof_req_pred_spec.py @@ -111,11 +111,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "name": obj.get("name"), - "non_revoked": IndyProofReqPredSpecNonRevoked.from_dict( - obj.get("non_revoked") - ) - if obj.get("non_revoked") is not None - else None, + "non_revoked": ( + IndyProofReqPredSpecNonRevoked.from_dict(obj.get("non_revoked")) + if obj.get("non_revoked") is not None + else None + ), "p_type": obj.get("p_type"), "p_value": obj.get("p_value"), "restrictions": obj.get("restrictions"), diff --git a/aries_cloudcontroller/models/indy_proof_req_pred_spec_non_revoked.py b/aries_cloudcontroller/models/indy_proof_req_pred_spec_non_revoked.py index 6a49fb51d..e4fb99562 100644 --- a/aries_cloudcontroller/models/indy_proof_req_pred_spec_non_revoked.py +++ b/aries_cloudcontroller/models/indy_proof_req_pred_spec_non_revoked.py @@ -41,10 +41,11 @@ class IndyProofReqPredSpecNonRevoked(BaseModel): description="Earliest time of interest in non-revocation interval", alias="from", ) - to: Optional[ - Annotated[int, Field(le=18446744073709551615, strict=True, ge=0)] - ] = Field( - default=None, description="Latest time of interest in non-revocation interval" + to: Optional[Annotated[int, Field(le=18446744073709551615, strict=True, ge=0)]] = ( + Field( + default=None, + description="Latest time of interest in non-revocation interval", + ) ) __properties: ClassVar[List[str]] = ["from", "to"] diff --git a/aries_cloudcontroller/models/indy_proof_request.py b/aries_cloudcontroller/models/indy_proof_request.py index e6369472c..fbf8183b6 100644 --- a/aries_cloudcontroller/models/indy_proof_request.py +++ b/aries_cloudcontroller/models/indy_proof_request.py @@ -149,24 +149,28 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "name": obj.get("name"), - "non_revoked": IndyProofRequestNonRevoked.from_dict( - obj.get("non_revoked") - ) - if obj.get("non_revoked") is not None - else None, + "non_revoked": ( + IndyProofRequestNonRevoked.from_dict(obj.get("non_revoked")) + if obj.get("non_revoked") is not None + else None + ), "nonce": obj.get("nonce"), - "requested_attributes": dict( - (_k, IndyProofReqAttrSpec.from_dict(_v)) - for _k, _v in obj.get("requested_attributes").items() - ) - if obj.get("requested_attributes") is not None - else None, - "requested_predicates": dict( - (_k, IndyProofReqPredSpec.from_dict(_v)) - for _k, _v in obj.get("requested_predicates").items() - ) - if obj.get("requested_predicates") is not None - else None, + "requested_attributes": ( + dict( + (_k, IndyProofReqAttrSpec.from_dict(_v)) + for _k, _v in obj.get("requested_attributes").items() + ) + if obj.get("requested_attributes") is not None + else None + ), + "requested_predicates": ( + dict( + (_k, IndyProofReqPredSpec.from_dict(_v)) + for _k, _v in obj.get("requested_predicates").items() + ) + if obj.get("requested_predicates") is not None + else None + ), "version": obj.get("version"), } ) diff --git a/aries_cloudcontroller/models/indy_proof_request_non_revoked.py b/aries_cloudcontroller/models/indy_proof_request_non_revoked.py index c47e7d537..ea3d3f62a 100644 --- a/aries_cloudcontroller/models/indy_proof_request_non_revoked.py +++ b/aries_cloudcontroller/models/indy_proof_request_non_revoked.py @@ -41,10 +41,11 @@ class IndyProofRequestNonRevoked(BaseModel): description="Earliest time of interest in non-revocation interval", alias="from", ) - to: Optional[ - Annotated[int, Field(le=18446744073709551615, strict=True, ge=0)] - ] = Field( - default=None, description="Latest time of interest in non-revocation interval" + to: Optional[Annotated[int, Field(le=18446744073709551615, strict=True, ge=0)]] = ( + Field( + default=None, + description="Latest time of interest in non-revocation interval", + ) ) __properties: ClassVar[List[str]] = ["from", "to"] diff --git a/aries_cloudcontroller/models/indy_proof_requested_proof.py b/aries_cloudcontroller/models/indy_proof_requested_proof.py index 102efa978..b4c682335 100644 --- a/aries_cloudcontroller/models/indy_proof_requested_proof.py +++ b/aries_cloudcontroller/models/indy_proof_requested_proof.py @@ -144,24 +144,30 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "predicates": dict( - (_k, IndyProofRequestedProofPredicate.from_dict(_v)) - for _k, _v in obj.get("predicates").items() - ) - if obj.get("predicates") is not None - else None, - "revealed_attr_groups": dict( - (_k, IndyProofRequestedProofRevealedAttrGroup.from_dict(_v)) - for _k, _v in obj.get("revealed_attr_groups").items() - ) - if obj.get("revealed_attr_groups") is not None - else None, - "revealed_attrs": dict( - (_k, IndyProofRequestedProofRevealedAttr.from_dict(_v)) - for _k, _v in obj.get("revealed_attrs").items() - ) - if obj.get("revealed_attrs") is not None - else None, + "predicates": ( + dict( + (_k, IndyProofRequestedProofPredicate.from_dict(_v)) + for _k, _v in obj.get("predicates").items() + ) + if obj.get("predicates") is not None + else None + ), + "revealed_attr_groups": ( + dict( + (_k, IndyProofRequestedProofRevealedAttrGroup.from_dict(_v)) + for _k, _v in obj.get("revealed_attr_groups").items() + ) + if obj.get("revealed_attr_groups") is not None + else None + ), + "revealed_attrs": ( + dict( + (_k, IndyProofRequestedProofRevealedAttr.from_dict(_v)) + for _k, _v in obj.get("revealed_attrs").items() + ) + if obj.get("revealed_attrs") is not None + else None + ), "self_attested_attrs": obj.get("self_attested_attrs"), "unrevealed_attrs": obj.get("unrevealed_attrs"), } diff --git a/aries_cloudcontroller/models/indy_proof_requested_proof_revealed_attr_group.py b/aries_cloudcontroller/models/indy_proof_requested_proof_revealed_attr_group.py index 9973b89a6..0fdd5d8ed 100644 --- a/aries_cloudcontroller/models/indy_proof_requested_proof_revealed_attr_group.py +++ b/aries_cloudcontroller/models/indy_proof_requested_proof_revealed_attr_group.py @@ -94,12 +94,14 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "sub_proof_index": obj.get("sub_proof_index"), - "values": dict( - (_k, RawEncoded.from_dict(_v)) - for _k, _v in obj.get("values").items() - ) - if obj.get("values") is not None - else None, + "values": ( + dict( + (_k, RawEncoded.from_dict(_v)) + for _k, _v in obj.get("values").items() + ) + if obj.get("values") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/indy_rev_reg_def.py b/aries_cloudcontroller/models/indy_rev_reg_def.py index 933d34c29..f69b1a01c 100644 --- a/aries_cloudcontroller/models/indy_rev_reg_def.py +++ b/aries_cloudcontroller/models/indy_rev_reg_def.py @@ -163,9 +163,11 @@ def from_dict(cls, obj: Dict) -> Self: "id": obj.get("id"), "revocDefType": obj.get("revocDefType"), "tag": obj.get("tag"), - "value": IndyRevRegDefValue.from_dict(obj.get("value")) - if obj.get("value") is not None - else None, + "value": ( + IndyRevRegDefValue.from_dict(obj.get("value")) + if obj.get("value") is not None + else None + ), "ver": obj.get("ver"), } ) diff --git a/aries_cloudcontroller/models/indy_rev_reg_def_value.py b/aries_cloudcontroller/models/indy_rev_reg_def_value.py index 11840e336..936bf219b 100644 --- a/aries_cloudcontroller/models/indy_rev_reg_def_value.py +++ b/aries_cloudcontroller/models/indy_rev_reg_def_value.py @@ -138,11 +138,11 @@ def from_dict(cls, obj: Dict) -> Self: { "issuanceType": obj.get("issuanceType"), "maxCredNum": obj.get("maxCredNum"), - "publicKeys": IndyRevRegDefValuePublicKeys.from_dict( - obj.get("publicKeys") - ) - if obj.get("publicKeys") is not None - else None, + "publicKeys": ( + IndyRevRegDefValuePublicKeys.from_dict(obj.get("publicKeys")) + if obj.get("publicKeys") is not None + else None + ), "tailsHash": obj.get("tailsHash"), "tailsLocation": obj.get("tailsLocation"), } diff --git a/aries_cloudcontroller/models/indy_rev_reg_def_value_public_keys.py b/aries_cloudcontroller/models/indy_rev_reg_def_value_public_keys.py index 126713eb0..4c1d332a4 100644 --- a/aries_cloudcontroller/models/indy_rev_reg_def_value_public_keys.py +++ b/aries_cloudcontroller/models/indy_rev_reg_def_value_public_keys.py @@ -87,11 +87,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "accumKey": IndyRevRegDefValuePublicKeysAccumKey.from_dict( - obj.get("accumKey") + "accumKey": ( + IndyRevRegDefValuePublicKeysAccumKey.from_dict(obj.get("accumKey")) + if obj.get("accumKey") is not None + else None ) - if obj.get("accumKey") is not None - else None } ) return _obj diff --git a/aries_cloudcontroller/models/indy_rev_reg_entry.py b/aries_cloudcontroller/models/indy_rev_reg_entry.py index 1f0bb2d7e..3411bd127 100644 --- a/aries_cloudcontroller/models/indy_rev_reg_entry.py +++ b/aries_cloudcontroller/models/indy_rev_reg_entry.py @@ -98,9 +98,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "value": IndyRevRegEntryValue.from_dict(obj.get("value")) - if obj.get("value") is not None - else None, + "value": ( + IndyRevRegEntryValue.from_dict(obj.get("value")) + if obj.get("value") is not None + else None + ), "ver": obj.get("ver"), } ) diff --git a/aries_cloudcontroller/models/input_descriptors.py b/aries_cloudcontroller/models/input_descriptors.py index eace45553..0c2859ffe 100644 --- a/aries_cloudcontroller/models/input_descriptors.py +++ b/aries_cloudcontroller/models/input_descriptors.py @@ -107,17 +107,21 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "constraints": Constraints.from_dict(obj.get("constraints")) - if obj.get("constraints") is not None - else None, + "constraints": ( + Constraints.from_dict(obj.get("constraints")) + if obj.get("constraints") is not None + else None + ), "group": obj.get("group"), "id": obj.get("id"), "metadata": obj.get("metadata"), "name": obj.get("name"), "purpose": obj.get("purpose"), - "schema": SchemasInputDescriptorFilter.from_dict(obj.get("schema")) - if obj.get("schema") is not None - else None, + "schema": ( + SchemasInputDescriptorFilter.from_dict(obj.get("schema")) + if obj.get("schema") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/invitation_create_request.py b/aries_cloudcontroller/models/invitation_create_request.py index 29eeaec6d..7c74f1bb8 100644 --- a/aries_cloudcontroller/models/invitation_create_request.py +++ b/aries_cloudcontroller/models/invitation_create_request.py @@ -150,11 +150,11 @@ def from_dict(cls, obj: Dict) -> Self: { "accept": obj.get("accept"), "alias": obj.get("alias"), - "attachments": [ - AttachmentDef.from_dict(_item) for _item in obj.get("attachments") - ] - if obj.get("attachments") is not None - else None, + "attachments": ( + [AttachmentDef.from_dict(_item) for _item in obj.get("attachments")] + if obj.get("attachments") is not None + else None + ), "goal": obj.get("goal"), "goal_code": obj.get("goal_code"), "handshake_protocols": obj.get("handshake_protocols"), diff --git a/aries_cloudcontroller/models/invitation_message.py b/aries_cloudcontroller/models/invitation_message.py index fcc2abba3..7480ddb98 100644 --- a/aries_cloudcontroller/models/invitation_message.py +++ b/aries_cloudcontroller/models/invitation_message.py @@ -138,12 +138,14 @@ def from_dict(cls, obj: Dict) -> Self: "handshake_protocols": obj.get("handshake_protocols"), "imageUrl": obj.get("imageUrl"), "label": obj.get("label"), - "requests~attach": [ - AttachDecorator.from_dict(_item) - for _item in obj.get("requests~attach") - ] - if obj.get("requests~attach") is not None - else None, + "requests~attach": ( + [ + AttachDecorator.from_dict(_item) + for _item in obj.get("requests~attach") + ] + if obj.get("requests~attach") is not None + else None + ), "services": obj.get("services"), } ) diff --git a/aries_cloudcontroller/models/invitation_record.py b/aries_cloudcontroller/models/invitation_record.py index ca2eae585..9ebcf5336 100644 --- a/aries_cloudcontroller/models/invitation_record.py +++ b/aries_cloudcontroller/models/invitation_record.py @@ -152,9 +152,11 @@ def from_dict(cls, obj: Dict) -> Self: { "created_at": obj.get("created_at"), "invi_msg_id": obj.get("invi_msg_id"), - "invitation": InvitationMessage.from_dict(obj.get("invitation")) - if obj.get("invitation") is not None - else None, + "invitation": ( + InvitationMessage.from_dict(obj.get("invitation")) + if obj.get("invitation") is not None + else None + ), "invitation_id": obj.get("invitation_id"), "invitation_url": obj.get("invitation_url"), "oob_id": obj.get("oob_id"), diff --git a/aries_cloudcontroller/models/invitation_result.py b/aries_cloudcontroller/models/invitation_result.py index 3eadec0af..851196dcc 100644 --- a/aries_cloudcontroller/models/invitation_result.py +++ b/aries_cloudcontroller/models/invitation_result.py @@ -94,9 +94,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "connection_id": obj.get("connection_id"), - "invitation": ConnectionInvitation.from_dict(obj.get("invitation")) - if obj.get("invitation") is not None - else None, + "invitation": ( + ConnectionInvitation.from_dict(obj.get("invitation")) + if obj.get("invitation") is not None + else None + ), "invitation_url": obj.get("invitation_url"), } ) diff --git a/aries_cloudcontroller/models/issuer_rev_reg_record.py b/aries_cloudcontroller/models/issuer_rev_reg_record.py index a3e989645..1d0482850 100644 --- a/aries_cloudcontroller/models/issuer_rev_reg_record.py +++ b/aries_cloudcontroller/models/issuer_rev_reg_record.py @@ -261,12 +261,16 @@ def from_dict(cls, obj: Dict) -> Self: "pending_pub": obj.get("pending_pub"), "record_id": obj.get("record_id"), "revoc_def_type": obj.get("revoc_def_type"), - "revoc_reg_def": IndyRevRegDef.from_dict(obj.get("revoc_reg_def")) - if obj.get("revoc_reg_def") is not None - else None, - "revoc_reg_entry": IndyRevRegEntry.from_dict(obj.get("revoc_reg_entry")) - if obj.get("revoc_reg_entry") is not None - else None, + "revoc_reg_def": ( + IndyRevRegDef.from_dict(obj.get("revoc_reg_def")) + if obj.get("revoc_reg_def") is not None + else None + ), + "revoc_reg_entry": ( + IndyRevRegEntry.from_dict(obj.get("revoc_reg_entry")) + if obj.get("revoc_reg_entry") is not None + else None + ), "revoc_reg_id": obj.get("revoc_reg_id"), "state": obj.get("state"), "tag": obj.get("tag"), diff --git a/aries_cloudcontroller/models/keylist.py b/aries_cloudcontroller/models/keylist.py index bd7f16ae0..b92ba708f 100644 --- a/aries_cloudcontroller/models/keylist.py +++ b/aries_cloudcontroller/models/keylist.py @@ -89,11 +89,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - RouteRecord.from_dict(_item) for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [RouteRecord.from_dict(_item) for _item in obj.get("results")] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/keylist_query.py b/aries_cloudcontroller/models/keylist_query.py index 8bc43d6a1..0dad7f6cd 100644 --- a/aries_cloudcontroller/models/keylist_query.py +++ b/aries_cloudcontroller/models/keylist_query.py @@ -98,9 +98,11 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "filter": obj.get("filter"), - "paginate": KeylistQueryPaginate.from_dict(obj.get("paginate")) - if obj.get("paginate") is not None - else None, + "paginate": ( + KeylistQueryPaginate.from_dict(obj.get("paginate")) + if obj.get("paginate") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/keylist_update.py b/aries_cloudcontroller/models/keylist_update.py index 2507fa7f5..139cfe87d 100644 --- a/aries_cloudcontroller/models/keylist_update.py +++ b/aries_cloudcontroller/models/keylist_update.py @@ -100,11 +100,11 @@ def from_dict(cls, obj: Dict) -> Self: { "@id": obj.get("@id"), "@type": obj.get("@type"), - "updates": [ - KeylistUpdateRule.from_dict(_item) for _item in obj.get("updates") - ] - if obj.get("updates") is not None - else None, + "updates": ( + [KeylistUpdateRule.from_dict(_item) for _item in obj.get("updates")] + if obj.get("updates") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/keylist_update_request.py b/aries_cloudcontroller/models/keylist_update_request.py index 5654b0cae..5844369d5 100644 --- a/aries_cloudcontroller/models/keylist_update_request.py +++ b/aries_cloudcontroller/models/keylist_update_request.py @@ -87,11 +87,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "updates": [ - KeylistUpdateRule.from_dict(_item) for _item in obj.get("updates") - ] - if obj.get("updates") is not None - else None + "updates": ( + [KeylistUpdateRule.from_dict(_item) for _item in obj.get("updates")] + if obj.get("updates") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/ld_proof_vc_detail.py b/aries_cloudcontroller/models/ld_proof_vc_detail.py index c82c47a88..6184c50bf 100644 --- a/aries_cloudcontroller/models/ld_proof_vc_detail.py +++ b/aries_cloudcontroller/models/ld_proof_vc_detail.py @@ -90,12 +90,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "credential": Credential.from_dict(obj.get("credential")) - if obj.get("credential") is not None - else None, - "options": LDProofVCDetailOptions.from_dict(obj.get("options")) - if obj.get("options") is not None - else None, + "credential": ( + Credential.from_dict(obj.get("credential")) + if obj.get("credential") is not None + else None + ), + "options": ( + LDProofVCDetailOptions.from_dict(obj.get("options")) + if obj.get("options") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/ld_proof_vc_detail_options.py b/aries_cloudcontroller/models/ld_proof_vc_detail_options.py index aedb9cb6f..18e06c225 100644 --- a/aries_cloudcontroller/models/ld_proof_vc_detail_options.py +++ b/aries_cloudcontroller/models/ld_proof_vc_detail_options.py @@ -133,11 +133,11 @@ def from_dict(cls, obj: Dict) -> Self: { "challenge": obj.get("challenge"), "created": obj.get("created"), - "credentialStatus": CredentialStatusOptions.from_dict( - obj.get("credentialStatus") - ) - if obj.get("credentialStatus") is not None - else None, + "credentialStatus": ( + CredentialStatusOptions.from_dict(obj.get("credentialStatus")) + if obj.get("credentialStatus") is not None + else None + ), "domain": obj.get("domain"), "proofPurpose": obj.get("proofPurpose"), "proofType": obj.get("proofType"), diff --git a/aries_cloudcontroller/models/ledger_config_list.py b/aries_cloudcontroller/models/ledger_config_list.py index cb826b4ea..ad5911cbe 100644 --- a/aries_cloudcontroller/models/ledger_config_list.py +++ b/aries_cloudcontroller/models/ledger_config_list.py @@ -87,12 +87,14 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "ledger_config_list": [ - LedgerConfigInstance.from_dict(_item) - for _item in obj.get("ledger_config_list") - ] - if obj.get("ledger_config_list") is not None - else None + "ledger_config_list": ( + [ + LedgerConfigInstance.from_dict(_item) + for _item in obj.get("ledger_config_list") + ] + if obj.get("ledger_config_list") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/mediation_list.py b/aries_cloudcontroller/models/mediation_list.py index 32a36ee81..3d6a3c007 100644 --- a/aries_cloudcontroller/models/mediation_list.py +++ b/aries_cloudcontroller/models/mediation_list.py @@ -89,11 +89,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - MediationRecord.from_dict(_item) for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [MediationRecord.from_dict(_item) for _item in obj.get("results")] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/menu.py b/aries_cloudcontroller/models/menu.py index c30ba79ec..a9de82097 100644 --- a/aries_cloudcontroller/models/menu.py +++ b/aries_cloudcontroller/models/menu.py @@ -114,9 +114,11 @@ def from_dict(cls, obj: Dict) -> Self: "@type": obj.get("@type"), "description": obj.get("description"), "errormsg": obj.get("errormsg"), - "options": [MenuOption.from_dict(_item) for _item in obj.get("options")] - if obj.get("options") is not None - else None, + "options": ( + [MenuOption.from_dict(_item) for _item in obj.get("options")] + if obj.get("options") is not None + else None + ), "title": obj.get("title"), } ) diff --git a/aries_cloudcontroller/models/menu_form.py b/aries_cloudcontroller/models/menu_form.py index 76d0fb8f3..bfb2a0ad9 100644 --- a/aries_cloudcontroller/models/menu_form.py +++ b/aries_cloudcontroller/models/menu_form.py @@ -104,11 +104,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "description": obj.get("description"), - "params": [ - MenuFormParam.from_dict(_item) for _item in obj.get("params") - ] - if obj.get("params") is not None - else None, + "params": ( + [MenuFormParam.from_dict(_item) for _item in obj.get("params")] + if obj.get("params") is not None + else None + ), "submit-label": obj.get("submit-label"), "title": obj.get("title"), } diff --git a/aries_cloudcontroller/models/menu_json.py b/aries_cloudcontroller/models/menu_json.py index 99f4a21f5..5cdb5a902 100644 --- a/aries_cloudcontroller/models/menu_json.py +++ b/aries_cloudcontroller/models/menu_json.py @@ -96,9 +96,11 @@ def from_dict(cls, obj: Dict) -> Self: { "description": obj.get("description"), "errormsg": obj.get("errormsg"), - "options": [MenuOption.from_dict(_item) for _item in obj.get("options")] - if obj.get("options") is not None - else None, + "options": ( + [MenuOption.from_dict(_item) for _item in obj.get("options")] + if obj.get("options") is not None + else None + ), "title": obj.get("title"), } ) diff --git a/aries_cloudcontroller/models/menu_option.py b/aries_cloudcontroller/models/menu_option.py index 20636463f..09f39ceb6 100644 --- a/aries_cloudcontroller/models/menu_option.py +++ b/aries_cloudcontroller/models/menu_option.py @@ -99,9 +99,11 @@ def from_dict(cls, obj: Dict) -> Self: { "description": obj.get("description"), "disabled": obj.get("disabled"), - "form": MenuForm.from_dict(obj.get("form")) - if obj.get("form") is not None - else None, + "form": ( + MenuForm.from_dict(obj.get("form")) + if obj.get("form") is not None + else None + ), "name": obj.get("name"), "title": obj.get("title"), } diff --git a/aries_cloudcontroller/models/oob_record.py b/aries_cloudcontroller/models/oob_record.py index 8c1deab44..479ee9cac 100644 --- a/aries_cloudcontroller/models/oob_record.py +++ b/aries_cloudcontroller/models/oob_record.py @@ -187,16 +187,20 @@ def from_dict(cls, obj: Dict) -> Self: "connection_id": obj.get("connection_id"), "created_at": obj.get("created_at"), "invi_msg_id": obj.get("invi_msg_id"), - "invitation": InvitationMessage.from_dict(obj.get("invitation")) - if obj.get("invitation") is not None - else None, + "invitation": ( + InvitationMessage.from_dict(obj.get("invitation")) + if obj.get("invitation") is not None + else None + ), "oob_id": obj.get("oob_id"), "our_recipient_key": obj.get("our_recipient_key"), "role": obj.get("role"), "state": obj.get("state"), - "their_service": ServiceDecorator.from_dict(obj.get("their_service")) - if obj.get("their_service") is not None - else None, + "their_service": ( + ServiceDecorator.from_dict(obj.get("their_service")) + if obj.get("their_service") is not None + else None + ), "trace": obj.get("trace"), "updated_at": obj.get("updated_at"), } diff --git a/aries_cloudcontroller/models/presentation_definition.py b/aries_cloudcontroller/models/presentation_definition.py index f87687021..d9dd441fc 100644 --- a/aries_cloudcontroller/models/presentation_definition.py +++ b/aries_cloudcontroller/models/presentation_definition.py @@ -136,24 +136,30 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "format": ClaimFormat.from_dict(obj.get("format")) - if obj.get("format") is not None - else None, + "format": ( + ClaimFormat.from_dict(obj.get("format")) + if obj.get("format") is not None + else None + ), "id": obj.get("id"), - "input_descriptors": [ - InputDescriptors.from_dict(_item) - for _item in obj.get("input_descriptors") - ] - if obj.get("input_descriptors") is not None - else None, + "input_descriptors": ( + [ + InputDescriptors.from_dict(_item) + for _item in obj.get("input_descriptors") + ] + if obj.get("input_descriptors") is not None + else None + ), "name": obj.get("name"), "purpose": obj.get("purpose"), - "submission_requirements": [ - SubmissionRequirements.from_dict(_item) - for _item in obj.get("submission_requirements") - ] - if obj.get("submission_requirements") is not None - else None, + "submission_requirements": ( + [ + SubmissionRequirements.from_dict(_item) + for _item in obj.get("submission_requirements") + ] + if obj.get("submission_requirements") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/presentation_proposal.py b/aries_cloudcontroller/models/presentation_proposal.py index 03e38ed89..8aa8e7e84 100644 --- a/aries_cloudcontroller/models/presentation_proposal.py +++ b/aries_cloudcontroller/models/presentation_proposal.py @@ -108,11 +108,11 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "comment": obj.get("comment"), - "presentation_proposal": IndyPresPreview.from_dict( - obj.get("presentation_proposal") - ) - if obj.get("presentation_proposal") is not None - else None, + "presentation_proposal": ( + IndyPresPreview.from_dict(obj.get("presentation_proposal")) + if obj.get("presentation_proposal") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/presentation_request.py b/aries_cloudcontroller/models/presentation_request.py index 222008b5e..ce9f14b05 100644 --- a/aries_cloudcontroller/models/presentation_request.py +++ b/aries_cloudcontroller/models/presentation_request.py @@ -114,12 +114,14 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "comment": obj.get("comment"), - "request_presentations~attach": [ - AttachDecorator.from_dict(_item) - for _item in obj.get("request_presentations~attach") - ] - if obj.get("request_presentations~attach") is not None - else None, + "request_presentations~attach": ( + [ + AttachDecorator.from_dict(_item) + for _item in obj.get("request_presentations~attach") + ] + if obj.get("request_presentations~attach") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/queries.py b/aries_cloudcontroller/models/queries.py index 47435cdc9..8c6c0bf66 100644 --- a/aries_cloudcontroller/models/queries.py +++ b/aries_cloudcontroller/models/queries.py @@ -98,9 +98,11 @@ def from_dict(cls, obj: Dict) -> Self: { "@id": obj.get("@id"), "@type": obj.get("@type"), - "queries": [QueryItem.from_dict(_item) for _item in obj.get("queries")] - if obj.get("queries") is not None - else None, + "queries": ( + [QueryItem.from_dict(_item) for _item in obj.get("queries")] + if obj.get("queries") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/rev_reg_result.py b/aries_cloudcontroller/models/rev_reg_result.py index 0b63420db..3f6d728b3 100644 --- a/aries_cloudcontroller/models/rev_reg_result.py +++ b/aries_cloudcontroller/models/rev_reg_result.py @@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "result": IssuerRevRegRecord.from_dict(obj.get("result")) - if obj.get("result") is not None - else None + "result": ( + IssuerRevRegRecord.from_dict(obj.get("result")) + if obj.get("result") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/schema_get_result.py b/aries_cloudcontroller/models/schema_get_result.py index 97aed1a47..e38182f00 100644 --- a/aries_cloudcontroller/models/schema_get_result.py +++ b/aries_cloudcontroller/models/schema_get_result.py @@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "schema": ModelSchema.from_dict(obj.get("schema")) - if obj.get("schema") is not None - else None + "schema": ( + ModelSchema.from_dict(obj.get("schema")) + if obj.get("schema") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/schema_send_result.py b/aries_cloudcontroller/models/schema_send_result.py index 162c37708..b0e6c67a1 100644 --- a/aries_cloudcontroller/models/schema_send_result.py +++ b/aries_cloudcontroller/models/schema_send_result.py @@ -100,9 +100,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "schema": ModelSchema.from_dict(obj.get("schema")) - if obj.get("schema") is not None - else None, + "schema": ( + ModelSchema.from_dict(obj.get("schema")) + if obj.get("schema") is not None + else None + ), "schema_id": obj.get("schema_id"), } ) diff --git a/aries_cloudcontroller/models/schemas_input_descriptor_filter.py b/aries_cloudcontroller/models/schemas_input_descriptor_filter.py index 1ca9f688a..e6432a685 100644 --- a/aries_cloudcontroller/models/schemas_input_descriptor_filter.py +++ b/aries_cloudcontroller/models/schemas_input_descriptor_filter.py @@ -95,15 +95,17 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "oneof_filter": obj.get("oneof_filter"), - "uri_groups": [ + "uri_groups": ( [ - SchemaInputDescriptor.from_dict(_inner_item) - for _inner_item in _item + [ + SchemaInputDescriptor.from_dict(_inner_item) + for _inner_item in _item + ] + for _item in obj.get("uri_groups") ] - for _item in obj.get("uri_groups") - ] - if obj.get("uri_groups") is not None - else None, + if obj.get("uri_groups") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/send_menu.py b/aries_cloudcontroller/models/send_menu.py index b3c8bfb57..024f32cad 100644 --- a/aries_cloudcontroller/models/send_menu.py +++ b/aries_cloudcontroller/models/send_menu.py @@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "menu": MenuJson.from_dict(obj.get("menu")) - if obj.get("menu") is not None - else None + "menu": ( + MenuJson.from_dict(obj.get("menu")) + if obj.get("menu") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/sign_request.py b/aries_cloudcontroller/models/sign_request.py index 49945e356..1263221ef 100644 --- a/aries_cloudcontroller/models/sign_request.py +++ b/aries_cloudcontroller/models/sign_request.py @@ -84,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "doc": Doc.from_dict(obj.get("doc")) - if obj.get("doc") is not None - else None, + "doc": ( + Doc.from_dict(obj.get("doc")) + if obj.get("doc") is not None + else None + ), "verkey": obj.get("verkey"), } ) diff --git a/aries_cloudcontroller/models/signed_doc.py b/aries_cloudcontroller/models/signed_doc.py index df8d2dc65..b745852fa 100644 --- a/aries_cloudcontroller/models/signed_doc.py +++ b/aries_cloudcontroller/models/signed_doc.py @@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "proof": SignatureOptions.from_dict(obj.get("proof")) - if obj.get("proof") is not None - else None + "proof": ( + SignatureOptions.from_dict(obj.get("proof")) + if obj.get("proof") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/submission_requirements.py b/aries_cloudcontroller/models/submission_requirements.py index 41c118241..e14f96d1c 100644 --- a/aries_cloudcontroller/models/submission_requirements.py +++ b/aries_cloudcontroller/models/submission_requirements.py @@ -116,12 +116,14 @@ def from_dict(cls, obj: Dict) -> Self: { "count": obj.get("count"), "from": obj.get("from"), - "from_nested": [ - SubmissionRequirements.from_dict(_item) - for _item in obj.get("from_nested") - ] - if obj.get("from_nested") is not None - else None, + "from_nested": ( + [ + SubmissionRequirements.from_dict(_item) + for _item in obj.get("from_nested") + ] + if obj.get("from_nested") is not None + else None + ), "max": obj.get("max"), "min": obj.get("min"), "name": obj.get("name"), diff --git a/aries_cloudcontroller/models/taa_info.py b/aries_cloudcontroller/models/taa_info.py index c87915375..2400d847b 100644 --- a/aries_cloudcontroller/models/taa_info.py +++ b/aries_cloudcontroller/models/taa_info.py @@ -99,15 +99,21 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "aml_record": AMLRecord.from_dict(obj.get("aml_record")) - if obj.get("aml_record") is not None - else None, - "taa_accepted": TAAAcceptance.from_dict(obj.get("taa_accepted")) - if obj.get("taa_accepted") is not None - else None, - "taa_record": TAARecord.from_dict(obj.get("taa_record")) - if obj.get("taa_record") is not None - else None, + "aml_record": ( + AMLRecord.from_dict(obj.get("aml_record")) + if obj.get("aml_record") is not None + else None + ), + "taa_accepted": ( + TAAAcceptance.from_dict(obj.get("taa_accepted")) + if obj.get("taa_accepted") is not None + else None + ), + "taa_record": ( + TAARecord.from_dict(obj.get("taa_record")) + if obj.get("taa_record") is not None + else None + ), "taa_required": obj.get("taa_required"), } ) diff --git a/aries_cloudcontroller/models/taa_result.py b/aries_cloudcontroller/models/taa_result.py index c3db365f4..9548cc95c 100644 --- a/aries_cloudcontroller/models/taa_result.py +++ b/aries_cloudcontroller/models/taa_result.py @@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "result": TAAInfo.from_dict(obj.get("result")) - if obj.get("result") is not None - else None + "result": ( + TAAInfo.from_dict(obj.get("result")) + if obj.get("result") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/transaction_list.py b/aries_cloudcontroller/models/transaction_list.py index 26fc22f60..0a8748fd5 100644 --- a/aries_cloudcontroller/models/transaction_list.py +++ b/aries_cloudcontroller/models/transaction_list.py @@ -89,11 +89,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - TransactionRecord.from_dict(_item) for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [TransactionRecord.from_dict(_item) for _item in obj.get("results")] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/transaction_record.py b/aries_cloudcontroller/models/transaction_record.py index e16854642..f28d67635 100644 --- a/aries_cloudcontroller/models/transaction_record.py +++ b/aries_cloudcontroller/models/transaction_record.py @@ -40,7 +40,7 @@ class TransactionRecord(BaseModel): ) connection_id: Optional[StrictStr] = Field( default=None, - description="The connection identifier for thie particular transaction record", + description="The connection identifier for this particular transaction record", ) created_at: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="Time of record creation" diff --git a/aries_cloudcontroller/models/txn_or_credential_definition_send_result.py b/aries_cloudcontroller/models/txn_or_credential_definition_send_result.py index 1cf25951a..c54dcb2e8 100644 --- a/aries_cloudcontroller/models/txn_or_credential_definition_send_result.py +++ b/aries_cloudcontroller/models/txn_or_credential_definition_send_result.py @@ -90,12 +90,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "sent": CredentialDefinitionSendResult.from_dict(obj.get("sent")) - if obj.get("sent") is not None - else None, - "txn": TransactionRecord.from_dict(obj.get("txn")) - if obj.get("txn") is not None - else None, + "sent": ( + CredentialDefinitionSendResult.from_dict(obj.get("sent")) + if obj.get("sent") is not None + else None + ), + "txn": ( + TransactionRecord.from_dict(obj.get("txn")) + if obj.get("txn") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/txn_or_publish_revocations_result.py b/aries_cloudcontroller/models/txn_or_publish_revocations_result.py index 98a44a8e0..c1deeec7f 100644 --- a/aries_cloudcontroller/models/txn_or_publish_revocations_result.py +++ b/aries_cloudcontroller/models/txn_or_publish_revocations_result.py @@ -88,12 +88,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "sent": PublishRevocations.from_dict(obj.get("sent")) - if obj.get("sent") is not None - else None, - "txn": TransactionRecord.from_dict(obj.get("txn")) - if obj.get("txn") is not None - else None, + "sent": ( + PublishRevocations.from_dict(obj.get("sent")) + if obj.get("sent") is not None + else None + ), + "txn": ( + TransactionRecord.from_dict(obj.get("txn")) + if obj.get("txn") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/txn_or_register_ledger_nym_response.py b/aries_cloudcontroller/models/txn_or_register_ledger_nym_response.py index fa136279a..5a03f0b2c 100644 --- a/aries_cloudcontroller/models/txn_or_register_ledger_nym_response.py +++ b/aries_cloudcontroller/models/txn_or_register_ledger_nym_response.py @@ -87,9 +87,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "success": obj.get("success"), - "txn": TransactionRecord.from_dict(obj.get("txn")) - if obj.get("txn") is not None - else None, + "txn": ( + TransactionRecord.from_dict(obj.get("txn")) + if obj.get("txn") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/txn_or_rev_reg_result.py b/aries_cloudcontroller/models/txn_or_rev_reg_result.py index 26bb75ab9..b2f416c4a 100644 --- a/aries_cloudcontroller/models/txn_or_rev_reg_result.py +++ b/aries_cloudcontroller/models/txn_or_rev_reg_result.py @@ -88,12 +88,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "sent": RevRegResult.from_dict(obj.get("sent")) - if obj.get("sent") is not None - else None, - "txn": TransactionRecord.from_dict(obj.get("txn")) - if obj.get("txn") is not None - else None, + "sent": ( + RevRegResult.from_dict(obj.get("sent")) + if obj.get("sent") is not None + else None + ), + "txn": ( + TransactionRecord.from_dict(obj.get("txn")) + if obj.get("txn") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/txn_or_schema_send_result.py b/aries_cloudcontroller/models/txn_or_schema_send_result.py index 9fda62b27..371f666b4 100644 --- a/aries_cloudcontroller/models/txn_or_schema_send_result.py +++ b/aries_cloudcontroller/models/txn_or_schema_send_result.py @@ -88,12 +88,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "sent": SchemaSendResult.from_dict(obj.get("sent")) - if obj.get("sent") is not None - else None, - "txn": TransactionRecord.from_dict(obj.get("txn")) - if obj.get("txn") is not None - else None, + "sent": ( + SchemaSendResult.from_dict(obj.get("sent")) + if obj.get("sent") is not None + else None + ), + "txn": ( + TransactionRecord.from_dict(obj.get("txn")) + if obj.get("txn") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/v10_credential_bound_offer_request.py b/aries_cloudcontroller/models/v10_credential_bound_offer_request.py index ce656c2af..305173da2 100644 --- a/aries_cloudcontroller/models/v10_credential_bound_offer_request.py +++ b/aries_cloudcontroller/models/v10_credential_bound_offer_request.py @@ -83,11 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "counter_proposal": CredentialProposal.from_dict( - obj.get("counter_proposal") + "counter_proposal": ( + CredentialProposal.from_dict(obj.get("counter_proposal")) + if obj.get("counter_proposal") is not None + else None ) - if obj.get("counter_proposal") is not None - else None } ) return _obj diff --git a/aries_cloudcontroller/models/v10_credential_conn_free_offer_request.py b/aries_cloudcontroller/models/v10_credential_conn_free_offer_request.py index 6adedb7b4..39f2638e7 100644 --- a/aries_cloudcontroller/models/v10_credential_conn_free_offer_request.py +++ b/aries_cloudcontroller/models/v10_credential_conn_free_offer_request.py @@ -131,11 +131,11 @@ def from_dict(cls, obj: Dict) -> Self: "auto_remove": obj.get("auto_remove"), "comment": obj.get("comment"), "cred_def_id": obj.get("cred_def_id"), - "credential_preview": CredentialPreview.from_dict( - obj.get("credential_preview") - ) - if obj.get("credential_preview") is not None - else None, + "credential_preview": ( + CredentialPreview.from_dict(obj.get("credential_preview")) + if obj.get("credential_preview") is not None + else None + ), "trace": obj.get("trace"), } ) diff --git a/aries_cloudcontroller/models/v10_credential_create.py b/aries_cloudcontroller/models/v10_credential_create.py index 71ee46880..723e07e75 100644 --- a/aries_cloudcontroller/models/v10_credential_create.py +++ b/aries_cloudcontroller/models/v10_credential_create.py @@ -201,11 +201,11 @@ def from_dict(cls, obj: Dict) -> Self: "auto_remove": obj.get("auto_remove"), "comment": obj.get("comment"), "cred_def_id": obj.get("cred_def_id"), - "credential_proposal": CredentialPreview.from_dict( - obj.get("credential_proposal") - ) - if obj.get("credential_proposal") is not None - else None, + "credential_proposal": ( + CredentialPreview.from_dict(obj.get("credential_proposal")) + if obj.get("credential_proposal") is not None + else None + ), "issuer_did": obj.get("issuer_did"), "schema_id": obj.get("schema_id"), "schema_issuer_did": obj.get("schema_issuer_did"), diff --git a/aries_cloudcontroller/models/v10_credential_exchange.py b/aries_cloudcontroller/models/v10_credential_exchange.py index c56849dd9..607b19824 100644 --- a/aries_cloudcontroller/models/v10_credential_exchange.py +++ b/aries_cloudcontroller/models/v10_credential_exchange.py @@ -285,39 +285,43 @@ def from_dict(cls, obj: Dict) -> Self: "auto_remove": obj.get("auto_remove"), "connection_id": obj.get("connection_id"), "created_at": obj.get("created_at"), - "credential": IndyCredInfo.from_dict(obj.get("credential")) - if obj.get("credential") is not None - else None, + "credential": ( + IndyCredInfo.from_dict(obj.get("credential")) + if obj.get("credential") is not None + else None + ), "credential_definition_id": obj.get("credential_definition_id"), "credential_exchange_id": obj.get("credential_exchange_id"), "credential_id": obj.get("credential_id"), - "credential_offer": IndyCredAbstract.from_dict( - obj.get("credential_offer") - ) - if obj.get("credential_offer") is not None - else None, - "credential_offer_dict": CredentialOffer.from_dict( - obj.get("credential_offer_dict") - ) - if obj.get("credential_offer_dict") is not None - else None, - "credential_proposal_dict": CredentialProposal.from_dict( - obj.get("credential_proposal_dict") - ) - if obj.get("credential_proposal_dict") is not None - else None, - "credential_request": IndyCredRequest.from_dict( - obj.get("credential_request") - ) - if obj.get("credential_request") is not None - else None, + "credential_offer": ( + IndyCredAbstract.from_dict(obj.get("credential_offer")) + if obj.get("credential_offer") is not None + else None + ), + "credential_offer_dict": ( + CredentialOffer.from_dict(obj.get("credential_offer_dict")) + if obj.get("credential_offer_dict") is not None + else None + ), + "credential_proposal_dict": ( + CredentialProposal.from_dict(obj.get("credential_proposal_dict")) + if obj.get("credential_proposal_dict") is not None + else None + ), + "credential_request": ( + IndyCredRequest.from_dict(obj.get("credential_request")) + if obj.get("credential_request") is not None + else None + ), "credential_request_metadata": obj.get("credential_request_metadata"), "error_msg": obj.get("error_msg"), "initiator": obj.get("initiator"), "parent_thread_id": obj.get("parent_thread_id"), - "raw_credential": IndyCredential.from_dict(obj.get("raw_credential")) - if obj.get("raw_credential") is not None - else None, + "raw_credential": ( + IndyCredential.from_dict(obj.get("raw_credential")) + if obj.get("raw_credential") is not None + else None + ), "revoc_reg_id": obj.get("revoc_reg_id"), "revocation_id": obj.get("revocation_id"), "role": obj.get("role"), diff --git a/aries_cloudcontroller/models/v10_credential_exchange_list_result.py b/aries_cloudcontroller/models/v10_credential_exchange_list_result.py index 37df5d625..cc2413f39 100644 --- a/aries_cloudcontroller/models/v10_credential_exchange_list_result.py +++ b/aries_cloudcontroller/models/v10_credential_exchange_list_result.py @@ -89,12 +89,14 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - V10CredentialExchange.from_dict(_item) - for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [ + V10CredentialExchange.from_dict(_item) + for _item in obj.get("results") + ] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/v10_credential_free_offer_request.py b/aries_cloudcontroller/models/v10_credential_free_offer_request.py index 4c2619406..b26289352 100644 --- a/aries_cloudcontroller/models/v10_credential_free_offer_request.py +++ b/aries_cloudcontroller/models/v10_credential_free_offer_request.py @@ -134,11 +134,11 @@ def from_dict(cls, obj: Dict) -> Self: "comment": obj.get("comment"), "connection_id": obj.get("connection_id"), "cred_def_id": obj.get("cred_def_id"), - "credential_preview": CredentialPreview.from_dict( - obj.get("credential_preview") - ) - if obj.get("credential_preview") is not None - else None, + "credential_preview": ( + CredentialPreview.from_dict(obj.get("credential_preview")) + if obj.get("credential_preview") is not None + else None + ), "trace": obj.get("trace"), } ) diff --git a/aries_cloudcontroller/models/v10_credential_proposal_request_mand.py b/aries_cloudcontroller/models/v10_credential_proposal_request_mand.py index 72f73a785..6243a07a2 100644 --- a/aries_cloudcontroller/models/v10_credential_proposal_request_mand.py +++ b/aries_cloudcontroller/models/v10_credential_proposal_request_mand.py @@ -204,11 +204,11 @@ def from_dict(cls, obj: Dict) -> Self: "comment": obj.get("comment"), "connection_id": obj.get("connection_id"), "cred_def_id": obj.get("cred_def_id"), - "credential_proposal": CredentialPreview.from_dict( - obj.get("credential_proposal") - ) - if obj.get("credential_proposal") is not None - else None, + "credential_proposal": ( + CredentialPreview.from_dict(obj.get("credential_proposal")) + if obj.get("credential_proposal") is not None + else None + ), "issuer_did": obj.get("issuer_did"), "schema_id": obj.get("schema_id"), "schema_issuer_did": obj.get("schema_issuer_did"), diff --git a/aries_cloudcontroller/models/v10_credential_proposal_request_opt.py b/aries_cloudcontroller/models/v10_credential_proposal_request_opt.py index bc71db752..4f8d36930 100644 --- a/aries_cloudcontroller/models/v10_credential_proposal_request_opt.py +++ b/aries_cloudcontroller/models/v10_credential_proposal_request_opt.py @@ -204,11 +204,11 @@ def from_dict(cls, obj: Dict) -> Self: "comment": obj.get("comment"), "connection_id": obj.get("connection_id"), "cred_def_id": obj.get("cred_def_id"), - "credential_proposal": CredentialPreview.from_dict( - obj.get("credential_proposal") - ) - if obj.get("credential_proposal") is not None - else None, + "credential_proposal": ( + CredentialPreview.from_dict(obj.get("credential_proposal")) + if obj.get("credential_proposal") is not None + else None + ), "issuer_did": obj.get("issuer_did"), "schema_id": obj.get("schema_id"), "schema_issuer_did": obj.get("schema_issuer_did"), diff --git a/aries_cloudcontroller/models/v10_discovery_exchange_list_result.py b/aries_cloudcontroller/models/v10_discovery_exchange_list_result.py index 3cffaaa74..931d88ccb 100644 --- a/aries_cloudcontroller/models/v10_discovery_exchange_list_result.py +++ b/aries_cloudcontroller/models/v10_discovery_exchange_list_result.py @@ -87,11 +87,14 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - V10DiscoveryRecord.from_dict(_item) for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [ + V10DiscoveryRecord.from_dict(_item) + for _item in obj.get("results") + ] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/v10_discovery_record.py b/aries_cloudcontroller/models/v10_discovery_record.py index 9ce5eab3d..20785c548 100644 --- a/aries_cloudcontroller/models/v10_discovery_record.py +++ b/aries_cloudcontroller/models/v10_discovery_record.py @@ -152,13 +152,17 @@ def from_dict(cls, obj: Dict) -> Self: { "connection_id": obj.get("connection_id"), "created_at": obj.get("created_at"), - "disclose": Disclose.from_dict(obj.get("disclose")) - if obj.get("disclose") is not None - else None, + "disclose": ( + Disclose.from_dict(obj.get("disclose")) + if obj.get("disclose") is not None + else None + ), "discovery_exchange_id": obj.get("discovery_exchange_id"), - "query_msg": Query.from_dict(obj.get("query_msg")) - if obj.get("query_msg") is not None - else None, + "query_msg": ( + Query.from_dict(obj.get("query_msg")) + if obj.get("query_msg") is not None + else None + ), "state": obj.get("state"), "thread_id": obj.get("thread_id"), "trace": obj.get("trace"), diff --git a/aries_cloudcontroller/models/v10_presentation_create_request_request.py b/aries_cloudcontroller/models/v10_presentation_create_request_request.py index e4f047a37..de8b80af6 100644 --- a/aries_cloudcontroller/models/v10_presentation_create_request_request.py +++ b/aries_cloudcontroller/models/v10_presentation_create_request_request.py @@ -108,9 +108,11 @@ def from_dict(cls, obj: Dict) -> Self: "auto_remove": obj.get("auto_remove"), "auto_verify": obj.get("auto_verify"), "comment": obj.get("comment"), - "proof_request": IndyProofRequest.from_dict(obj.get("proof_request")) - if obj.get("proof_request") is not None - else None, + "proof_request": ( + IndyProofRequest.from_dict(obj.get("proof_request")) + if obj.get("proof_request") is not None + else None + ), "trace": obj.get("trace"), } ) diff --git a/aries_cloudcontroller/models/v10_presentation_exchange.py b/aries_cloudcontroller/models/v10_presentation_exchange.py index a14d02f48..4063c8f18 100644 --- a/aries_cloudcontroller/models/v10_presentation_exchange.py +++ b/aries_cloudcontroller/models/v10_presentation_exchange.py @@ -204,17 +204,17 @@ def to_dict(self) -> Dict[str, Any]: _dict["presentation"] = self.presentation.to_dict() # override the default output from pydantic by calling `to_dict()` of presentation_proposal_dict if self.presentation_proposal_dict: - _dict[ - "presentation_proposal_dict" - ] = self.presentation_proposal_dict.to_dict() + _dict["presentation_proposal_dict"] = ( + self.presentation_proposal_dict.to_dict() + ) # override the default output from pydantic by calling `to_dict()` of presentation_request if self.presentation_request: _dict["presentation_request"] = self.presentation_request.to_dict() # override the default output from pydantic by calling `to_dict()` of presentation_request_dict if self.presentation_request_dict: - _dict[ - "presentation_request_dict" - ] = self.presentation_request_dict.to_dict() + _dict["presentation_request_dict"] = ( + self.presentation_request_dict.to_dict() + ) return _dict @classmethod @@ -235,25 +235,29 @@ def from_dict(cls, obj: Dict) -> Self: "created_at": obj.get("created_at"), "error_msg": obj.get("error_msg"), "initiator": obj.get("initiator"), - "presentation": IndyProof.from_dict(obj.get("presentation")) - if obj.get("presentation") is not None - else None, + "presentation": ( + IndyProof.from_dict(obj.get("presentation")) + if obj.get("presentation") is not None + else None + ), "presentation_exchange_id": obj.get("presentation_exchange_id"), - "presentation_proposal_dict": PresentationProposal.from_dict( - obj.get("presentation_proposal_dict") - ) - if obj.get("presentation_proposal_dict") is not None - else None, - "presentation_request": IndyProofRequest.from_dict( - obj.get("presentation_request") - ) - if obj.get("presentation_request") is not None - else None, - "presentation_request_dict": PresentationRequest.from_dict( - obj.get("presentation_request_dict") - ) - if obj.get("presentation_request_dict") is not None - else None, + "presentation_proposal_dict": ( + PresentationProposal.from_dict( + obj.get("presentation_proposal_dict") + ) + if obj.get("presentation_proposal_dict") is not None + else None + ), + "presentation_request": ( + IndyProofRequest.from_dict(obj.get("presentation_request")) + if obj.get("presentation_request") is not None + else None + ), + "presentation_request_dict": ( + PresentationRequest.from_dict(obj.get("presentation_request_dict")) + if obj.get("presentation_request_dict") is not None + else None + ), "role": obj.get("role"), "state": obj.get("state"), "thread_id": obj.get("thread_id"), diff --git a/aries_cloudcontroller/models/v10_presentation_exchange_list.py b/aries_cloudcontroller/models/v10_presentation_exchange_list.py index cca26b41b..b70b11e44 100644 --- a/aries_cloudcontroller/models/v10_presentation_exchange_list.py +++ b/aries_cloudcontroller/models/v10_presentation_exchange_list.py @@ -91,12 +91,14 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - V10PresentationExchange.from_dict(_item) - for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [ + V10PresentationExchange.from_dict(_item) + for _item in obj.get("results") + ] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/v10_presentation_proposal_request.py b/aries_cloudcontroller/models/v10_presentation_proposal_request.py index 190358048..2828448af 100644 --- a/aries_cloudcontroller/models/v10_presentation_proposal_request.py +++ b/aries_cloudcontroller/models/v10_presentation_proposal_request.py @@ -114,11 +114,11 @@ def from_dict(cls, obj: Dict) -> Self: "auto_remove": obj.get("auto_remove"), "comment": obj.get("comment"), "connection_id": obj.get("connection_id"), - "presentation_proposal": IndyPresPreview.from_dict( - obj.get("presentation_proposal") - ) - if obj.get("presentation_proposal") is not None - else None, + "presentation_proposal": ( + IndyPresPreview.from_dict(obj.get("presentation_proposal")) + if obj.get("presentation_proposal") is not None + else None + ), "trace": obj.get("trace"), } ) diff --git a/aries_cloudcontroller/models/v10_presentation_send_request.py b/aries_cloudcontroller/models/v10_presentation_send_request.py index 38b73866b..5286d031d 100644 --- a/aries_cloudcontroller/models/v10_presentation_send_request.py +++ b/aries_cloudcontroller/models/v10_presentation_send_request.py @@ -121,18 +121,22 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "auto_remove": obj.get("auto_remove"), - "requested_attributes": dict( - (_k, IndyRequestedCredsRequestedAttr.from_dict(_v)) - for _k, _v in obj.get("requested_attributes").items() - ) - if obj.get("requested_attributes") is not None - else None, - "requested_predicates": dict( - (_k, IndyRequestedCredsRequestedPred.from_dict(_v)) - for _k, _v in obj.get("requested_predicates").items() - ) - if obj.get("requested_predicates") is not None - else None, + "requested_attributes": ( + dict( + (_k, IndyRequestedCredsRequestedAttr.from_dict(_v)) + for _k, _v in obj.get("requested_attributes").items() + ) + if obj.get("requested_attributes") is not None + else None + ), + "requested_predicates": ( + dict( + (_k, IndyRequestedCredsRequestedPred.from_dict(_v)) + for _k, _v in obj.get("requested_predicates").items() + ) + if obj.get("requested_predicates") is not None + else None + ), "self_attested_attributes": obj.get("self_attested_attributes"), "trace": obj.get("trace"), } diff --git a/aries_cloudcontroller/models/v10_presentation_send_request_request.py b/aries_cloudcontroller/models/v10_presentation_send_request_request.py index 9e395c983..34f93d91f 100644 --- a/aries_cloudcontroller/models/v10_presentation_send_request_request.py +++ b/aries_cloudcontroller/models/v10_presentation_send_request_request.py @@ -111,9 +111,11 @@ def from_dict(cls, obj: Dict) -> Self: "auto_verify": obj.get("auto_verify"), "comment": obj.get("comment"), "connection_id": obj.get("connection_id"), - "proof_request": IndyProofRequest.from_dict(obj.get("proof_request")) - if obj.get("proof_request") is not None - else None, + "proof_request": ( + IndyProofRequest.from_dict(obj.get("proof_request")) + if obj.get("proof_request") is not None + else None + ), "trace": obj.get("trace"), } ) diff --git a/aries_cloudcontroller/models/v20_cred_bound_offer_request.py b/aries_cloudcontroller/models/v20_cred_bound_offer_request.py index b3ecd4fea..c5b28b4f4 100644 --- a/aries_cloudcontroller/models/v20_cred_bound_offer_request.py +++ b/aries_cloudcontroller/models/v20_cred_bound_offer_request.py @@ -88,12 +88,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "counter_preview": V20CredPreview.from_dict(obj.get("counter_preview")) - if obj.get("counter_preview") is not None - else None, - "filter": V20CredFilter.from_dict(obj.get("filter")) - if obj.get("filter") is not None - else None, + "counter_preview": ( + V20CredPreview.from_dict(obj.get("counter_preview")) + if obj.get("counter_preview") is not None + else None + ), + "filter": ( + V20CredFilter.from_dict(obj.get("filter")) + if obj.get("filter") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/v20_cred_ex_free.py b/aries_cloudcontroller/models/v20_cred_ex_free.py index 09a90341a..f5870624b 100644 --- a/aries_cloudcontroller/models/v20_cred_ex_free.py +++ b/aries_cloudcontroller/models/v20_cred_ex_free.py @@ -137,14 +137,16 @@ def from_dict(cls, obj: Dict) -> Self: "auto_remove": obj.get("auto_remove"), "comment": obj.get("comment"), "connection_id": obj.get("connection_id"), - "credential_preview": V20CredPreview.from_dict( - obj.get("credential_preview") - ) - if obj.get("credential_preview") is not None - else None, - "filter": V20CredFilter.from_dict(obj.get("filter")) - if obj.get("filter") is not None - else None, + "credential_preview": ( + V20CredPreview.from_dict(obj.get("credential_preview")) + if obj.get("credential_preview") is not None + else None + ), + "filter": ( + V20CredFilter.from_dict(obj.get("filter")) + if obj.get("filter") is not None + else None + ), "replacement_id": obj.get("replacement_id"), "trace": obj.get("trace"), "verification_method": obj.get("verification_method"), diff --git a/aries_cloudcontroller/models/v20_cred_ex_record.py b/aries_cloudcontroller/models/v20_cred_ex_record.py index 20237f641..4b959ebf6 100644 --- a/aries_cloudcontroller/models/v20_cred_ex_record.py +++ b/aries_cloudcontroller/models/v20_cred_ex_record.py @@ -256,27 +256,39 @@ def from_dict(cls, obj: Dict) -> Self: "auto_issue": obj.get("auto_issue"), "auto_offer": obj.get("auto_offer"), "auto_remove": obj.get("auto_remove"), - "by_format": V20CredExRecordByFormat.from_dict(obj.get("by_format")) - if obj.get("by_format") is not None - else None, + "by_format": ( + V20CredExRecordByFormat.from_dict(obj.get("by_format")) + if obj.get("by_format") is not None + else None + ), "connection_id": obj.get("connection_id"), "created_at": obj.get("created_at"), "cred_ex_id": obj.get("cred_ex_id"), - "cred_issue": V20CredIssue.from_dict(obj.get("cred_issue")) - if obj.get("cred_issue") is not None - else None, - "cred_offer": V20CredOffer.from_dict(obj.get("cred_offer")) - if obj.get("cred_offer") is not None - else None, - "cred_preview": V20CredPreview.from_dict(obj.get("cred_preview")) - if obj.get("cred_preview") is not None - else None, - "cred_proposal": V20CredProposal.from_dict(obj.get("cred_proposal")) - if obj.get("cred_proposal") is not None - else None, - "cred_request": V20CredRequest.from_dict(obj.get("cred_request")) - if obj.get("cred_request") is not None - else None, + "cred_issue": ( + V20CredIssue.from_dict(obj.get("cred_issue")) + if obj.get("cred_issue") is not None + else None + ), + "cred_offer": ( + V20CredOffer.from_dict(obj.get("cred_offer")) + if obj.get("cred_offer") is not None + else None + ), + "cred_preview": ( + V20CredPreview.from_dict(obj.get("cred_preview")) + if obj.get("cred_preview") is not None + else None + ), + "cred_proposal": ( + V20CredProposal.from_dict(obj.get("cred_proposal")) + if obj.get("cred_proposal") is not None + else None + ), + "cred_request": ( + V20CredRequest.from_dict(obj.get("cred_request")) + if obj.get("cred_request") is not None + else None + ), "error_msg": obj.get("error_msg"), "initiator": obj.get("initiator"), "parent_thread_id": obj.get("parent_thread_id"), diff --git a/aries_cloudcontroller/models/v20_cred_ex_record_detail.py b/aries_cloudcontroller/models/v20_cred_ex_record_detail.py index f589eb0e7..7668b2789 100644 --- a/aries_cloudcontroller/models/v20_cred_ex_record_detail.py +++ b/aries_cloudcontroller/models/v20_cred_ex_record_detail.py @@ -95,15 +95,21 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "cred_ex_record": V20CredExRecord.from_dict(obj.get("cred_ex_record")) - if obj.get("cred_ex_record") is not None - else None, - "indy": V20CredExRecordIndy.from_dict(obj.get("indy")) - if obj.get("indy") is not None - else None, - "ld_proof": V20CredExRecordLDProof.from_dict(obj.get("ld_proof")) - if obj.get("ld_proof") is not None - else None, + "cred_ex_record": ( + V20CredExRecord.from_dict(obj.get("cred_ex_record")) + if obj.get("cred_ex_record") is not None + else None + ), + "indy": ( + V20CredExRecordIndy.from_dict(obj.get("indy")) + if obj.get("indy") is not None + else None + ), + "ld_proof": ( + V20CredExRecordLDProof.from_dict(obj.get("ld_proof")) + if obj.get("ld_proof") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/v20_cred_ex_record_list_result.py b/aries_cloudcontroller/models/v20_cred_ex_record_list_result.py index f6915a7a0..a6f1d8125 100644 --- a/aries_cloudcontroller/models/v20_cred_ex_record_list_result.py +++ b/aries_cloudcontroller/models/v20_cred_ex_record_list_result.py @@ -90,12 +90,14 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - V20CredExRecordDetail.from_dict(_item) - for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [ + V20CredExRecordDetail.from_dict(_item) + for _item in obj.get("results") + ] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/v20_cred_filter.py b/aries_cloudcontroller/models/v20_cred_filter.py index 82b57d56a..6ade71a3f 100644 --- a/aries_cloudcontroller/models/v20_cred_filter.py +++ b/aries_cloudcontroller/models/v20_cred_filter.py @@ -88,12 +88,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "indy": V20CredFilterIndy.from_dict(obj.get("indy")) - if obj.get("indy") is not None - else None, - "ld_proof": LDProofVCDetail.from_dict(obj.get("ld_proof")) - if obj.get("ld_proof") is not None - else None, + "indy": ( + V20CredFilterIndy.from_dict(obj.get("indy")) + if obj.get("indy") is not None + else None + ), + "ld_proof": ( + LDProofVCDetail.from_dict(obj.get("ld_proof")) + if obj.get("ld_proof") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/v20_cred_filter_ld_proof.py b/aries_cloudcontroller/models/v20_cred_filter_ld_proof.py index 8b52e9052..c67056602 100644 --- a/aries_cloudcontroller/models/v20_cred_filter_ld_proof.py +++ b/aries_cloudcontroller/models/v20_cred_filter_ld_proof.py @@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "ld_proof": LDProofVCDetail.from_dict(obj.get("ld_proof")) - if obj.get("ld_proof") is not None - else None + "ld_proof": ( + LDProofVCDetail.from_dict(obj.get("ld_proof")) + if obj.get("ld_proof") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/v20_cred_issue.py b/aries_cloudcontroller/models/v20_cred_issue.py index 4107c4cfe..28fe69458 100644 --- a/aries_cloudcontroller/models/v20_cred_issue.py +++ b/aries_cloudcontroller/models/v20_cred_issue.py @@ -129,17 +129,19 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "comment": obj.get("comment"), - "credentials~attach": [ - AttachDecorator.from_dict(_item) - for _item in obj.get("credentials~attach") - ] - if obj.get("credentials~attach") is not None - else None, - "formats": [ - V20CredFormat.from_dict(_item) for _item in obj.get("formats") - ] - if obj.get("formats") is not None - else None, + "credentials~attach": ( + [ + AttachDecorator.from_dict(_item) + for _item in obj.get("credentials~attach") + ] + if obj.get("credentials~attach") is not None + else None + ), + "formats": ( + [V20CredFormat.from_dict(_item) for _item in obj.get("formats")] + if obj.get("formats") is not None + else None + ), "replacement_id": obj.get("replacement_id"), } ) diff --git a/aries_cloudcontroller/models/v20_cred_offer.py b/aries_cloudcontroller/models/v20_cred_offer.py index 48e3ea29c..443248a58 100644 --- a/aries_cloudcontroller/models/v20_cred_offer.py +++ b/aries_cloudcontroller/models/v20_cred_offer.py @@ -135,22 +135,24 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "comment": obj.get("comment"), - "credential_preview": V20CredPreview.from_dict( - obj.get("credential_preview") - ) - if obj.get("credential_preview") is not None - else None, - "formats": [ - V20CredFormat.from_dict(_item) for _item in obj.get("formats") - ] - if obj.get("formats") is not None - else None, - "offers~attach": [ - AttachDecorator.from_dict(_item) - for _item in obj.get("offers~attach") - ] - if obj.get("offers~attach") is not None - else None, + "credential_preview": ( + V20CredPreview.from_dict(obj.get("credential_preview")) + if obj.get("credential_preview") is not None + else None + ), + "formats": ( + [V20CredFormat.from_dict(_item) for _item in obj.get("formats")] + if obj.get("formats") is not None + else None + ), + "offers~attach": ( + [ + AttachDecorator.from_dict(_item) + for _item in obj.get("offers~attach") + ] + if obj.get("offers~attach") is not None + else None + ), "replacement_id": obj.get("replacement_id"), } ) diff --git a/aries_cloudcontroller/models/v20_cred_offer_conn_free_request.py b/aries_cloudcontroller/models/v20_cred_offer_conn_free_request.py index 5808321c5..2ff353e43 100644 --- a/aries_cloudcontroller/models/v20_cred_offer_conn_free_request.py +++ b/aries_cloudcontroller/models/v20_cred_offer_conn_free_request.py @@ -128,14 +128,16 @@ def from_dict(cls, obj: Dict) -> Self: "auto_issue": obj.get("auto_issue"), "auto_remove": obj.get("auto_remove"), "comment": obj.get("comment"), - "credential_preview": V20CredPreview.from_dict( - obj.get("credential_preview") - ) - if obj.get("credential_preview") is not None - else None, - "filter": V20CredFilter.from_dict(obj.get("filter")) - if obj.get("filter") is not None - else None, + "credential_preview": ( + V20CredPreview.from_dict(obj.get("credential_preview")) + if obj.get("credential_preview") is not None + else None + ), + "filter": ( + V20CredFilter.from_dict(obj.get("filter")) + if obj.get("filter") is not None + else None + ), "replacement_id": obj.get("replacement_id"), "trace": obj.get("trace"), } diff --git a/aries_cloudcontroller/models/v20_cred_offer_request.py b/aries_cloudcontroller/models/v20_cred_offer_request.py index ada8d3735..414f7e1a2 100644 --- a/aries_cloudcontroller/models/v20_cred_offer_request.py +++ b/aries_cloudcontroller/models/v20_cred_offer_request.py @@ -131,14 +131,16 @@ def from_dict(cls, obj: Dict) -> Self: "auto_remove": obj.get("auto_remove"), "comment": obj.get("comment"), "connection_id": obj.get("connection_id"), - "credential_preview": V20CredPreview.from_dict( - obj.get("credential_preview") - ) - if obj.get("credential_preview") is not None - else None, - "filter": V20CredFilter.from_dict(obj.get("filter")) - if obj.get("filter") is not None - else None, + "credential_preview": ( + V20CredPreview.from_dict(obj.get("credential_preview")) + if obj.get("credential_preview") is not None + else None + ), + "filter": ( + V20CredFilter.from_dict(obj.get("filter")) + if obj.get("filter") is not None + else None + ), "replacement_id": obj.get("replacement_id"), "trace": obj.get("trace"), } diff --git a/aries_cloudcontroller/models/v20_cred_preview.py b/aries_cloudcontroller/models/v20_cred_preview.py index f2acbea50..066b2810b 100644 --- a/aries_cloudcontroller/models/v20_cred_preview.py +++ b/aries_cloudcontroller/models/v20_cred_preview.py @@ -91,11 +91,14 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "@type": obj.get("@type"), - "attributes": [ - V20CredAttrSpec.from_dict(_item) for _item in obj.get("attributes") - ] - if obj.get("attributes") is not None - else None, + "attributes": ( + [ + V20CredAttrSpec.from_dict(_item) + for _item in obj.get("attributes") + ] + if obj.get("attributes") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/v20_cred_proposal.py b/aries_cloudcontroller/models/v20_cred_proposal.py index 8bb3a1e8d..a0fc437c0 100644 --- a/aries_cloudcontroller/models/v20_cred_proposal.py +++ b/aries_cloudcontroller/models/v20_cred_proposal.py @@ -131,22 +131,24 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "comment": obj.get("comment"), - "credential_preview": V20CredPreview.from_dict( - obj.get("credential_preview") - ) - if obj.get("credential_preview") is not None - else None, - "filters~attach": [ - AttachDecorator.from_dict(_item) - for _item in obj.get("filters~attach") - ] - if obj.get("filters~attach") is not None - else None, - "formats": [ - V20CredFormat.from_dict(_item) for _item in obj.get("formats") - ] - if obj.get("formats") is not None - else None, + "credential_preview": ( + V20CredPreview.from_dict(obj.get("credential_preview")) + if obj.get("credential_preview") is not None + else None + ), + "filters~attach": ( + [ + AttachDecorator.from_dict(_item) + for _item in obj.get("filters~attach") + ] + if obj.get("filters~attach") is not None + else None + ), + "formats": ( + [V20CredFormat.from_dict(_item) for _item in obj.get("formats")] + if obj.get("formats") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/v20_cred_request.py b/aries_cloudcontroller/models/v20_cred_request.py index 1272c8fb0..8f8b4a4e6 100644 --- a/aries_cloudcontroller/models/v20_cred_request.py +++ b/aries_cloudcontroller/models/v20_cred_request.py @@ -124,17 +124,19 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "comment": obj.get("comment"), - "formats": [ - V20CredFormat.from_dict(_item) for _item in obj.get("formats") - ] - if obj.get("formats") is not None - else None, - "requests~attach": [ - AttachDecorator.from_dict(_item) - for _item in obj.get("requests~attach") - ] - if obj.get("requests~attach") is not None - else None, + "formats": ( + [V20CredFormat.from_dict(_item) for _item in obj.get("formats")] + if obj.get("formats") is not None + else None + ), + "requests~attach": ( + [ + AttachDecorator.from_dict(_item) + for _item in obj.get("requests~attach") + ] + if obj.get("requests~attach") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/v20_cred_request_free.py b/aries_cloudcontroller/models/v20_cred_request_free.py index acc744177..6ea443204 100644 --- a/aries_cloudcontroller/models/v20_cred_request_free.py +++ b/aries_cloudcontroller/models/v20_cred_request_free.py @@ -118,9 +118,11 @@ def from_dict(cls, obj: Dict) -> Self: "auto_remove": obj.get("auto_remove"), "comment": obj.get("comment"), "connection_id": obj.get("connection_id"), - "filter": V20CredFilterLDProof.from_dict(obj.get("filter")) - if obj.get("filter") is not None - else None, + "filter": ( + V20CredFilterLDProof.from_dict(obj.get("filter")) + if obj.get("filter") is not None + else None + ), "holder_did": obj.get("holder_did"), "trace": obj.get("trace"), } diff --git a/aries_cloudcontroller/models/v20_discovery_exchange_list_result.py b/aries_cloudcontroller/models/v20_discovery_exchange_list_result.py index bf7eab434..564dd1521 100644 --- a/aries_cloudcontroller/models/v20_discovery_exchange_list_result.py +++ b/aries_cloudcontroller/models/v20_discovery_exchange_list_result.py @@ -87,11 +87,14 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - V20DiscoveryRecord.from_dict(_item) for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [ + V20DiscoveryRecord.from_dict(_item) + for _item in obj.get("results") + ] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/v20_discovery_exchange_result.py b/aries_cloudcontroller/models/v20_discovery_exchange_result.py index 6bfe83cba..5ed0f1b3c 100644 --- a/aries_cloudcontroller/models/v20_discovery_exchange_result.py +++ b/aries_cloudcontroller/models/v20_discovery_exchange_result.py @@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": V20DiscoveryRecord.from_dict(obj.get("results")) - if obj.get("results") is not None - else None + "results": ( + V20DiscoveryRecord.from_dict(obj.get("results")) + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/v20_discovery_record.py b/aries_cloudcontroller/models/v20_discovery_record.py index a65139efa..7b7c0e626 100644 --- a/aries_cloudcontroller/models/v20_discovery_record.py +++ b/aries_cloudcontroller/models/v20_discovery_record.py @@ -152,13 +152,17 @@ def from_dict(cls, obj: Dict) -> Self: { "connection_id": obj.get("connection_id"), "created_at": obj.get("created_at"), - "disclosures": Disclosures.from_dict(obj.get("disclosures")) - if obj.get("disclosures") is not None - else None, + "disclosures": ( + Disclosures.from_dict(obj.get("disclosures")) + if obj.get("disclosures") is not None + else None + ), "discovery_exchange_id": obj.get("discovery_exchange_id"), - "queries_msg": Queries.from_dict(obj.get("queries_msg")) - if obj.get("queries_msg") is not None - else None, + "queries_msg": ( + Queries.from_dict(obj.get("queries_msg")) + if obj.get("queries_msg") is not None + else None + ), "state": obj.get("state"), "thread_id": obj.get("thread_id"), "trace": obj.get("trace"), diff --git a/aries_cloudcontroller/models/v20_issue_cred_schema_core.py b/aries_cloudcontroller/models/v20_issue_cred_schema_core.py index 1c4e8ea01..445ef21c9 100644 --- a/aries_cloudcontroller/models/v20_issue_cred_schema_core.py +++ b/aries_cloudcontroller/models/v20_issue_cred_schema_core.py @@ -122,14 +122,16 @@ def from_dict(cls, obj: Dict) -> Self: { "auto_remove": obj.get("auto_remove"), "comment": obj.get("comment"), - "credential_preview": V20CredPreview.from_dict( - obj.get("credential_preview") - ) - if obj.get("credential_preview") is not None - else None, - "filter": V20CredFilter.from_dict(obj.get("filter")) - if obj.get("filter") is not None - else None, + "credential_preview": ( + V20CredPreview.from_dict(obj.get("credential_preview")) + if obj.get("credential_preview") is not None + else None + ), + "filter": ( + V20CredFilter.from_dict(obj.get("filter")) + if obj.get("filter") is not None + else None + ), "replacement_id": obj.get("replacement_id"), "trace": obj.get("trace"), } diff --git a/aries_cloudcontroller/models/v20_pres.py b/aries_cloudcontroller/models/v20_pres.py index 5303deede..3554d6750 100644 --- a/aries_cloudcontroller/models/v20_pres.py +++ b/aries_cloudcontroller/models/v20_pres.py @@ -122,17 +122,19 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "comment": obj.get("comment"), - "formats": [ - V20PresFormat.from_dict(_item) for _item in obj.get("formats") - ] - if obj.get("formats") is not None - else None, - "presentations~attach": [ - AttachDecorator.from_dict(_item) - for _item in obj.get("presentations~attach") - ] - if obj.get("presentations~attach") is not None - else None, + "formats": ( + [V20PresFormat.from_dict(_item) for _item in obj.get("formats")] + if obj.get("formats") is not None + else None + ), + "presentations~attach": ( + [ + AttachDecorator.from_dict(_item) + for _item in obj.get("presentations~attach") + ] + if obj.get("presentations~attach") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/v20_pres_create_request_request.py b/aries_cloudcontroller/models/v20_pres_create_request_request.py index da26a701b..b199d2e43 100644 --- a/aries_cloudcontroller/models/v20_pres_create_request_request.py +++ b/aries_cloudcontroller/models/v20_pres_create_request_request.py @@ -110,11 +110,11 @@ def from_dict(cls, obj: Dict) -> Self: "auto_remove": obj.get("auto_remove"), "auto_verify": obj.get("auto_verify"), "comment": obj.get("comment"), - "presentation_request": V20PresRequestByFormat.from_dict( - obj.get("presentation_request") - ) - if obj.get("presentation_request") is not None - else None, + "presentation_request": ( + V20PresRequestByFormat.from_dict(obj.get("presentation_request")) + if obj.get("presentation_request") is not None + else None + ), "trace": obj.get("trace"), } ) diff --git a/aries_cloudcontroller/models/v20_pres_ex_record.py b/aries_cloudcontroller/models/v20_pres_ex_record.py index b2ac55af5..aa7e79210 100644 --- a/aries_cloudcontroller/models/v20_pres_ex_record.py +++ b/aries_cloudcontroller/models/v20_pres_ex_record.py @@ -251,23 +251,31 @@ def from_dict(cls, obj: Dict) -> Self: "auto_present": obj.get("auto_present"), "auto_remove": obj.get("auto_remove"), "auto_verify": obj.get("auto_verify"), - "by_format": V20PresExRecordByFormat.from_dict(obj.get("by_format")) - if obj.get("by_format") is not None - else None, + "by_format": ( + V20PresExRecordByFormat.from_dict(obj.get("by_format")) + if obj.get("by_format") is not None + else None + ), "connection_id": obj.get("connection_id"), "created_at": obj.get("created_at"), "error_msg": obj.get("error_msg"), "initiator": obj.get("initiator"), - "pres": V20Pres.from_dict(obj.get("pres")) - if obj.get("pres") is not None - else None, + "pres": ( + V20Pres.from_dict(obj.get("pres")) + if obj.get("pres") is not None + else None + ), "pres_ex_id": obj.get("pres_ex_id"), - "pres_proposal": V20PresProposal.from_dict(obj.get("pres_proposal")) - if obj.get("pres_proposal") is not None - else None, - "pres_request": V20PresRequest.from_dict(obj.get("pres_request")) - if obj.get("pres_request") is not None - else None, + "pres_proposal": ( + V20PresProposal.from_dict(obj.get("pres_proposal")) + if obj.get("pres_proposal") is not None + else None + ), + "pres_request": ( + V20PresRequest.from_dict(obj.get("pres_request")) + if obj.get("pres_request") is not None + else None + ), "role": obj.get("role"), "state": obj.get("state"), "thread_id": obj.get("thread_id"), diff --git a/aries_cloudcontroller/models/v20_pres_ex_record_list.py b/aries_cloudcontroller/models/v20_pres_ex_record_list.py index f43ec8014..fd61e0f9f 100644 --- a/aries_cloudcontroller/models/v20_pres_ex_record_list.py +++ b/aries_cloudcontroller/models/v20_pres_ex_record_list.py @@ -89,11 +89,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - V20PresExRecord.from_dict(_item) for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [V20PresExRecord.from_dict(_item) for _item in obj.get("results")] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/v20_pres_proposal.py b/aries_cloudcontroller/models/v20_pres_proposal.py index e60b59ef8..e28f901ef 100644 --- a/aries_cloudcontroller/models/v20_pres_proposal.py +++ b/aries_cloudcontroller/models/v20_pres_proposal.py @@ -120,17 +120,19 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "comment": obj.get("comment"), - "formats": [ - V20PresFormat.from_dict(_item) for _item in obj.get("formats") - ] - if obj.get("formats") is not None - else None, - "proposals~attach": [ - AttachDecorator.from_dict(_item) - for _item in obj.get("proposals~attach") - ] - if obj.get("proposals~attach") is not None - else None, + "formats": ( + [V20PresFormat.from_dict(_item) for _item in obj.get("formats")] + if obj.get("formats") is not None + else None + ), + "proposals~attach": ( + [ + AttachDecorator.from_dict(_item) + for _item in obj.get("proposals~attach") + ] + if obj.get("proposals~attach") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/v20_pres_proposal_by_format.py b/aries_cloudcontroller/models/v20_pres_proposal_by_format.py index bcd800033..75283e2b2 100644 --- a/aries_cloudcontroller/models/v20_pres_proposal_by_format.py +++ b/aries_cloudcontroller/models/v20_pres_proposal_by_format.py @@ -88,12 +88,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "dif": DIFProofProposal.from_dict(obj.get("dif")) - if obj.get("dif") is not None - else None, - "indy": IndyProofRequest.from_dict(obj.get("indy")) - if obj.get("indy") is not None - else None, + "dif": ( + DIFProofProposal.from_dict(obj.get("dif")) + if obj.get("dif") is not None + else None + ), + "indy": ( + IndyProofRequest.from_dict(obj.get("indy")) + if obj.get("indy") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/v20_pres_proposal_request.py b/aries_cloudcontroller/models/v20_pres_proposal_request.py index 59dbd3a99..a7f5c2976 100644 --- a/aries_cloudcontroller/models/v20_pres_proposal_request.py +++ b/aries_cloudcontroller/models/v20_pres_proposal_request.py @@ -116,11 +116,11 @@ def from_dict(cls, obj: Dict) -> Self: "auto_remove": obj.get("auto_remove"), "comment": obj.get("comment"), "connection_id": obj.get("connection_id"), - "presentation_proposal": V20PresProposalByFormat.from_dict( - obj.get("presentation_proposal") - ) - if obj.get("presentation_proposal") is not None - else None, + "presentation_proposal": ( + V20PresProposalByFormat.from_dict(obj.get("presentation_proposal")) + if obj.get("presentation_proposal") is not None + else None + ), "trace": obj.get("trace"), } ) diff --git a/aries_cloudcontroller/models/v20_pres_request.py b/aries_cloudcontroller/models/v20_pres_request.py index 2b5bc7849..7e15deba8 100644 --- a/aries_cloudcontroller/models/v20_pres_request.py +++ b/aries_cloudcontroller/models/v20_pres_request.py @@ -124,17 +124,19 @@ def from_dict(cls, obj: Dict) -> Self: "@id": obj.get("@id"), "@type": obj.get("@type"), "comment": obj.get("comment"), - "formats": [ - V20PresFormat.from_dict(_item) for _item in obj.get("formats") - ] - if obj.get("formats") is not None - else None, - "request_presentations~attach": [ - AttachDecorator.from_dict(_item) - for _item in obj.get("request_presentations~attach") - ] - if obj.get("request_presentations~attach") is not None - else None, + "formats": ( + [V20PresFormat.from_dict(_item) for _item in obj.get("formats")] + if obj.get("formats") is not None + else None + ), + "request_presentations~attach": ( + [ + AttachDecorator.from_dict(_item) + for _item in obj.get("request_presentations~attach") + ] + if obj.get("request_presentations~attach") is not None + else None + ), "will_confirm": obj.get("will_confirm"), } ) diff --git a/aries_cloudcontroller/models/v20_pres_request_by_format.py b/aries_cloudcontroller/models/v20_pres_request_by_format.py index 9f3e14986..b33141d7b 100644 --- a/aries_cloudcontroller/models/v20_pres_request_by_format.py +++ b/aries_cloudcontroller/models/v20_pres_request_by_format.py @@ -88,12 +88,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "dif": DIFProofRequest.from_dict(obj.get("dif")) - if obj.get("dif") is not None - else None, - "indy": IndyProofRequest.from_dict(obj.get("indy")) - if obj.get("indy") is not None - else None, + "dif": ( + DIFProofRequest.from_dict(obj.get("dif")) + if obj.get("dif") is not None + else None + ), + "indy": ( + IndyProofRequest.from_dict(obj.get("indy")) + if obj.get("indy") is not None + else None + ), } ) return _obj diff --git a/aries_cloudcontroller/models/v20_pres_send_request_request.py b/aries_cloudcontroller/models/v20_pres_send_request_request.py index c911cff5a..148c0a0ed 100644 --- a/aries_cloudcontroller/models/v20_pres_send_request_request.py +++ b/aries_cloudcontroller/models/v20_pres_send_request_request.py @@ -113,11 +113,11 @@ def from_dict(cls, obj: Dict) -> Self: "auto_verify": obj.get("auto_verify"), "comment": obj.get("comment"), "connection_id": obj.get("connection_id"), - "presentation_request": V20PresRequestByFormat.from_dict( - obj.get("presentation_request") - ) - if obj.get("presentation_request") is not None - else None, + "presentation_request": ( + V20PresRequestByFormat.from_dict(obj.get("presentation_request")) + if obj.get("presentation_request") is not None + else None + ), "trace": obj.get("trace"), } ) diff --git a/aries_cloudcontroller/models/v20_pres_spec_by_format_request.py b/aries_cloudcontroller/models/v20_pres_spec_by_format_request.py index 08feeac94..98162f0f9 100644 --- a/aries_cloudcontroller/models/v20_pres_spec_by_format_request.py +++ b/aries_cloudcontroller/models/v20_pres_spec_by_format_request.py @@ -97,12 +97,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "auto_remove": obj.get("auto_remove"), - "dif": DIFPresSpec.from_dict(obj.get("dif")) - if obj.get("dif") is not None - else None, - "indy": IndyPresSpec.from_dict(obj.get("indy")) - if obj.get("indy") is not None - else None, + "dif": ( + DIFPresSpec.from_dict(obj.get("dif")) + if obj.get("dif") is not None + else None + ), + "indy": ( + IndyPresSpec.from_dict(obj.get("indy")) + if obj.get("indy") is not None + else None + ), "trace": obj.get("trace"), } ) diff --git a/aries_cloudcontroller/models/vc_record_list.py b/aries_cloudcontroller/models/vc_record_list.py index eef4c3921..60f010d33 100644 --- a/aries_cloudcontroller/models/vc_record_list.py +++ b/aries_cloudcontroller/models/vc_record_list.py @@ -87,9 +87,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [VCRecord.from_dict(_item) for _item in obj.get("results")] - if obj.get("results") is not None - else None + "results": ( + [VCRecord.from_dict(_item) for _item in obj.get("results")] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/verify_request.py b/aries_cloudcontroller/models/verify_request.py index 58c2041da..1fef43c55 100644 --- a/aries_cloudcontroller/models/verify_request.py +++ b/aries_cloudcontroller/models/verify_request.py @@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "doc": SignedDoc.from_dict(obj.get("doc")) - if obj.get("doc") is not None - else None, + "doc": ( + SignedDoc.from_dict(obj.get("doc")) + if obj.get("doc") is not None + else None + ), "verkey": obj.get("verkey"), } ) diff --git a/aries_cloudcontroller/models/wallet_list.py b/aries_cloudcontroller/models/wallet_list.py index 3fe81e76e..9c70899d9 100644 --- a/aries_cloudcontroller/models/wallet_list.py +++ b/aries_cloudcontroller/models/wallet_list.py @@ -89,11 +89,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - WalletRecord.from_dict(_item) for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [WalletRecord.from_dict(_item) for _item in obj.get("results")] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/wallet_list_with_groups.py b/aries_cloudcontroller/models/wallet_list_with_groups.py index 8e025fe94..0b8a71649 100644 --- a/aries_cloudcontroller/models/wallet_list_with_groups.py +++ b/aries_cloudcontroller/models/wallet_list_with_groups.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import List, Optional +from typing import Dict, List, Optional from aries_cloudcontroller.models.wallet_list import WalletList from aries_cloudcontroller.models.wallet_record_with_groups import ( @@ -27,12 +27,14 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "results": [ - WalletRecordWithGroups.from_dict(_item) - for _item in obj.get("results") - ] - if obj.get("results") is not None - else None + "results": ( + [ + WalletRecordWithGroups.from_dict(_item) + for _item in obj.get("results") + ] + if obj.get("results") is not None + else None + ) } ) return _obj diff --git a/aries_cloudcontroller/models/wallet_record_with_groups.py b/aries_cloudcontroller/models/wallet_record_with_groups.py index 606c28e41..08a87db3f 100644 --- a/aries_cloudcontroller/models/wallet_record_with_groups.py +++ b/aries_cloudcontroller/models/wallet_record_with_groups.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import Optional +from typing import Dict, Optional from pydantic import Field diff --git a/generator/README.md b/generator/README.md index 1963ce53f..56d697e7d 100644 --- a/generator/README.md +++ b/generator/README.md @@ -3,6 +3,7 @@ Currently to generate the client you need to use the DIDx fork of OpenAPI generator and build the JAR yourself. ## Prerequisites + ```sh # Clone projects git clone https://github.com/didx-xyz/aries-cloudcontroller-python @@ -17,9 +18,10 @@ mvn -B --no-snapshot-updates clean package -DskipTests=true -Dmaven.javadoc.skip ``` ## Generate the CloudController client + ```sh cd aries-cloudcontroller-python -pip install -r requirements.txt -r requirements.dev.txt +pip install -r requirements.txt -r requirements.dev.txt --upgrade ./generator/scripts/generate-client.sh 0.9.0 # Or other ACA-Py version ``` diff --git a/requirements.dev.txt b/requirements.dev.txt index 410935257..619baf5e5 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -1,6 +1,6 @@ -anyio>=3.7.1 -autoflake~=2.2.1 -black~=23.12.1 +anyio~=4.3.0 +autoflake~=2.3.1 +black~=24.3.0 isort~=5.13.2 -pytest~=7.4.0 +pytest~=8.1.1 pytest-mock~=3.12.0 diff --git a/requirements.txt b/requirements.txt index a7f840c2b..50bf58e16 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -aiohttp~=3.9.0 -pydantic~=2.5.1 -python-dateutil~=2.8.2 -typing-extensions~=4.9.0 -urllib3~=2.1.0 +aiohttp>=3.9.2,<4.0 +pydantic>=2.4,<3.0 +python-dateutil>=2 +typing-extensions>=4,<5.0 +urllib3>=2.1,<3 diff --git a/setup.py b/setup.py index b6c6612bd..b00a57bb0 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ def parse_requirements(filename: str): if __name__ == "__main__": setup( name=PACKAGE_NAME, - version="0.11.0-rev0", + version="0.11.0-rev1", description="A simple python client for controlling an ACA-Py agent", long_description=long_description, long_description_content_type="text/markdown", diff --git a/tests/README.md b/tests/README.md index e3a74aa0f..18dd11b6b 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,7 +1,7 @@ -### Running tests locally +# Running tests locally -In order to run the tests locally, e.g. for development, make sure you have installed the requirements by running `pip install -r requirements.txt` in the root of the project. +In order to run the tests locally, e.g. for development, make sure you have installed the requirements by running `pip install -r requirements.txt` in the root of the project. You can now run all tests py running `pytest` in the root of the project. in order to run specific tests you can specifying the test file to run, e.g. `pytest tests/path/to/your/testfile.py`. You can also run individual tests only using the `-k` flag of pytest `pytest tests/path/to/your/testfile.py -k 'test_your_whatever'` where `test_your_whatever` is the name of the test definition. For more information, please, refer to the [pytest docs](https://docs.pytest.org/en/). -It is recommended to run the tests locally (and to add tests to your chnages and code additions). Tests will automatically run when trying to merge into or push to master. The merge or push will be rejected if any test fails. \ No newline at end of file +It is recommended to run the tests locally (and to add tests to your chnages and code additions). Tests will automatically run when trying to merge into or push to master. The merge or push will be rejected if any test fails.