From ef400e7bceda7027de08f1ea47d93a3fe5df1b3d Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 16:03:44 +0200 Subject: [PATCH 01/18] :arrow_up: Upgrade `black` to latest --- .github/workflows/python-publish.yml | 2 +- .github/workflows/python-test-publish.yml | 2 +- requirements.dev.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 6ab9607b..d819d15a 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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 2ac8fa38..0bb3e8ad 100644 --- a/.github/workflows/python-test-publish.yml +++ b/.github/workflows/python-test-publish.yml @@ -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 diff --git a/requirements.dev.txt b/requirements.dev.txt index 41093525..b696ccec 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 +black~=24.3.0 isort~=5.13.2 pytest~=7.4.0 pytest-mock~=3.12.0 From 9a947108c3d27b4d1790fb9ef6472a90020484f1 Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 16:03:52 +0200 Subject: [PATCH 02/18] :arrow_up: Upgrade `pytest` to latest --- requirements.dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.dev.txt b/requirements.dev.txt index b696ccec..d4ac5428 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -2,5 +2,5 @@ anyio>=3.7.1 autoflake~=2.2.1 black~=24.3.0 isort~=5.13.2 -pytest~=7.4.0 +pytest~=8.1.1 pytest-mock~=3.12.0 From 18c8a1b3a2faeb93d1e922a73d372c8b9994bb98 Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 16:03:58 +0200 Subject: [PATCH 03/18] :arrow_up: Upgrade `autoflake` to latest --- requirements.dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.dev.txt b/requirements.dev.txt index d4ac5428..5303a23a 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -1,5 +1,5 @@ anyio>=3.7.1 -autoflake~=2.2.1 +autoflake~=2.3.1 black~=24.3.0 isort~=5.13.2 pytest~=8.1.1 From fe39bd36a9632e3e3aae0b50a3679ae5cd0e0455 Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 16:04:07 +0200 Subject: [PATCH 04/18] :arrow_up: Upgrade `pydantic` to latest --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a7f840c2..25eddd4f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ aiohttp~=3.9.0 -pydantic~=2.5.1 +pydantic>=2.6.4 python-dateutil~=2.8.2 typing-extensions~=4.9.0 urllib3~=2.1.0 From b2a53533bd9195786a8e312a22e76e2fa89943ae Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 16:04:15 +0200 Subject: [PATCH 05/18] :arrow_up: Upgrade `urllib3` to latest --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 25eddd4f..0b352775 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ aiohttp~=3.9.0 pydantic>=2.6.4 python-dateutil~=2.8.2 typing-extensions~=4.9.0 -urllib3~=2.1.0 +urllib3~=2.2.1 From 3776bca6a800c05975ac1dae16b144e034cdc956 Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 16:04:21 +0200 Subject: [PATCH 06/18] :arrow_up: Upgrade `typing-extensions` to latest --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 0b352775..983dd4c8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ aiohttp~=3.9.0 pydantic>=2.6.4 python-dateutil~=2.8.2 -typing-extensions~=4.9.0 +typing-extensions>=4.10.0 urllib3~=2.2.1 From a9ae9710a01fe228cfbdf658d9fe03704e877292 Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 16:05:32 +0200 Subject: [PATCH 07/18] :art: apply newest `black` formatting --- .../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/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 | 8 ++- 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 ++-- ...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 | 14 +++-- 141 files changed, 1181 insertions(+), 873 deletions(-) diff --git a/aries_cloudcontroller/models/action_menu_fetch_result.py b/aries_cloudcontroller/models/action_menu_fetch_result.py index 88b4d923..1df92d94 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 f043cdde..68e4f74d 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 69ecaa3e..f51d781a 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 502b47b3..1b52e814 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 a75b497b..a6a3055c 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 020bc3f0..6235f69e 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 726a2a28..23cf1a39 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 4e2f5177..85ed8b47 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/cred_def_value.py b/aries_cloudcontroller/models/cred_def_value.py index a6ebcb27..1ce863c3 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 8d9e474f..32496448 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 d8ec99ca..04c1fd1a 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 4b49af54..1262ac9f 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 6ddcd2cd..fb382a3a 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 1e0bec67..caf3fb07 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 481dc0ae..8e3b4e27 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 65ab82d7..8f766867 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 e7caa55e..1d2f0368 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 4cff9308..37c0e494 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 3b6b6e62..820a8635 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 8d83b258..903528bd 100644 --- a/aries_cloudcontroller/models/did_create.py +++ b/aries_cloudcontroller/models/did_create.py @@ -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 6bd38e5f..385dbc11 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 785c2a5d..439a7edc 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 fd2de79c..eb1057f7 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 68320c77..ee701c83 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 7cd29ffa..44d8416e 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 55895d9f..c1055a98 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 cb621a1d..f8916051 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 d78ab0c3..a29145ef 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 e7e5162e..05078dba 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 7dcb2c34..7a0c7f9f 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 9bde00f0..617e7845 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 8c9ca51c..60b2a15f 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 df3b78ae..925dba70 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 44533a12..887d7051 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 ef8949fe..7a6b0d1e 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 17066d8f..276869cf 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 07c8d656..002ca050 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 9df305b7..b39cbaec 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 e1d5dafb..c9059d9b 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 b2195ebe..8fb3a0db 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 b5881933..049d93ff 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 6c77693d..e8579acb 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 3775983f..f51e8c44 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 6a49fb51..e4fb9956 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 e6369472..fbf8183b 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 c47e7d53..ea3d3f62 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 102efa97..b4c68233 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 9973b89a..0fdd5d8e 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 933d34c2..f69b1a01 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 11840e33..936bf219 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 126713eb..4c1d332a 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 1f0bb2d7..3411bd12 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 eace4555..0c2859ff 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 29eeaec6..7c74f1bb 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 fcc2abba..7480ddb9 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 ca2eae58..9ebcf533 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 3eadec0a..851196dc 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 a3e98964..1d048285 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 bd7f16ae..b92ba708 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 8bc43d6a..0dad7f6c 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 2507fa7f..139cfe87 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 5654b0ca..5844369d 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 c82c47a8..6184c50b 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 aedb9cb6..18e06c22 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 cb826b4e..ad5911cb 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 32a36ee8..3d6a3c00 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 c30ba79e..a9de8209 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 76d0fb8f..bfb2a0ad 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 99f4a21f..5cdb5a90 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 20636463..09f39ceb 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 8c1deab4..479ee9ca 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 f8768702..d9dd441f 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 03e38ed8..8aa8e7e8 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 222008b5..ce9f14b0 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 47435cdc..8c6c0bf6 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 0b63420d..3f6d728b 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 97aed1a4..e38182f0 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 162c3770..b0e6c67a 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 1ca9f688..e6432a68 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 b3c8bfb5..024f32ca 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 49945e35..1263221e 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 df8d2dc6..b745852f 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 41c11824..e14f96d1 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 c8791537..2400d847 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 c3db365f..9548cc95 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 26fc22f6..0a8748fd 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/txn_or_credential_definition_send_result.py b/aries_cloudcontroller/models/txn_or_credential_definition_send_result.py index 1cf25951..c54dcb2e 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 98a44a8e..c1deeec7 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 fa136279..5a03f0b2 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 26bb75ab..b2f416c4 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 9fda62b2..371f666b 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 ce656c2a..305173da 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 6adedb7b..39f2638e 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 71ee4688..723e07e7 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 c56849dd..607b1982 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 37df5d62..cc2413f3 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 4c261940..b2628935 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 72f73a78..6243a07a 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 bc71db75..4f8d3693 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 3cffaaa7..931d88cc 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 9ce5eab3..20785c54 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 e4f047a3..de8b80af 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 a14d02f4..4063c8f1 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 cca26b41..b70b11e4 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 19035804..2828448a 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 38b73866..5286d031 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 9e395c98..34f93d91 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 b3ecd4fe..c5b28b4f 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 09a90341..f5870624 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 20237f64..4b959ebf 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 f589eb0e..7668b278 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 f6915a7a..a6f1d812 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 82b57d56..6ade71a3 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 8b52e905..c6705660 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 4107c4cf..28fe6945 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 48e3ea29..443248a5 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 5808321c..2ff353e4 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 ada8d373..414f7e1a 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 f2acbea5..066b2810 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 8bb3a1e8..a0fc437c 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 1272c8fb..8f8b4a4e 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 acc74417..6ea44320 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 bf7eab43..564dd152 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 6bfe83cb..5ed0f1b3 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 a65139ef..7b7c0e62 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 1c4e8ea0..445ef21c 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 5303deed..3554d675 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 da26a701..b199d2e4 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 b2ac55af..aa7e7921 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 f43ec801..fd61e0f9 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 e60b59ef..e28f901e 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 bcd80003..75283e2b 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 59dbd3a9..a7f5c297 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 2b5bc784..7e15deba 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 9f3e1498..b33141d7 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 c911cff5..148c0a0e 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 08feeac9..98162f0f 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 eef4c392..60f010d3 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 58c2041d..1fef43c5 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 3fe81e76..9c70899d 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 8e025fe9..ec0540a6 100644 --- a/aries_cloudcontroller/models/wallet_list_with_groups.py +++ b/aries_cloudcontroller/models/wallet_list_with_groups.py @@ -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 From 5beba4100595127525986cd1efed99584cef561f Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 23:53:08 +0200 Subject: [PATCH 08/18] :art: fix missing import --- aries_cloudcontroller/models/wallet_list_with_groups.py | 2 +- aries_cloudcontroller/models/wallet_record_with_groups.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aries_cloudcontroller/models/wallet_list_with_groups.py b/aries_cloudcontroller/models/wallet_list_with_groups.py index ec0540a6..0b8a7164 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 ( diff --git a/aries_cloudcontroller/models/wallet_record_with_groups.py b/aries_cloudcontroller/models/wallet_record_with_groups.py index 606c28e4..08a87db3 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 From d13dc1c8a1ef5a60cba960830c836ca154890fd6 Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 23:53:20 +0200 Subject: [PATCH 09/18] :art: fix typos --- aries_cloudcontroller/models/create_wallet_token_request.py | 2 +- aries_cloudcontroller/models/did_create.py | 2 +- aries_cloudcontroller/models/transaction_record.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aries_cloudcontroller/models/create_wallet_token_request.py b/aries_cloudcontroller/models/create_wallet_token_request.py index d3585067..0c7231bd 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/did_create.py b/aries_cloudcontroller/models/did_create.py index 903528bd..54236e3d 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"] diff --git a/aries_cloudcontroller/models/transaction_record.py b/aries_cloudcontroller/models/transaction_record.py index e1685464..f28d6763 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" From 500f250a49e7309f5c80e86fbdd1bd502d4286ab Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 23:53:30 +0200 Subject: [PATCH 10/18] version bump --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b6c6612b..b00a57bb 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", From 8d352fd6fa2751eaebe1f71300b76f3d0c969918 Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 23:57:15 +0200 Subject: [PATCH 11/18] :see_no_evil: un-ignore vscode settings --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bb29115c..688589f3 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 From 89069d765dd23c7e43919dabf6a253654c381e17 Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 3 Apr 2024 23:57:49 +0200 Subject: [PATCH 12/18] :wrench: Add vscode/settings.json, with cSpell acceptable word dictionary --- .vscode/settings.json | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..c137bec1 --- /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 From 21a4bb7d4ad5c65a4ef179007286d12114727917 Mon Sep 17 00:00:00 2001 From: ff137 Date: Thu, 4 Apr 2024 12:31:31 +0200 Subject: [PATCH 13/18] :arrow_up: Upgrade `anyio` to latest --- requirements.dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.dev.txt b/requirements.dev.txt index 5303a23a..619baf5e 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -1,4 +1,4 @@ -anyio>=3.7.1 +anyio~=4.3.0 autoflake~=2.3.1 black~=24.3.0 isort~=5.13.2 From 26e6f5cc25cd0f8ad14a751b26e601672918dd6e Mon Sep 17 00:00:00 2001 From: ff137 Date: Thu, 4 Apr 2024 12:32:34 +0200 Subject: [PATCH 14/18] :construction_worker: Loosen requirement restrictions --- requirements.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index 983dd4c8..1f629492 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -aiohttp~=3.9.0 -pydantic>=2.6.4 -python-dateutil~=2.8.2 -typing-extensions>=4.10.0 -urllib3~=2.2.1 +aiohttp>=3.6,<4.0 +pydantic>=2.4,<3.0 +python-dateutil>=2 +typing-extensions>=4,<5.0 +urllib3>=2.1,<3 From 5e078c429a42f57016b314e9b6d761de3447799b Mon Sep 17 00:00:00 2001 From: ff137 Date: Thu, 4 Apr 2024 12:37:18 +0200 Subject: [PATCH 15/18] :art: fix markdown warnings --- generator/README.md | 4 +++- tests/README.md | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/generator/README.md b/generator/README.md index 1963ce53..56d697e7 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/tests/README.md b/tests/README.md index e3a74aa0..18dd11b6 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. From 5b5d8cb080b847fd81adffef86adc6126865eff7 Mon Sep 17 00:00:00 2001 From: ff137 Date: Thu, 4 Apr 2024 12:37:37 +0200 Subject: [PATCH 16/18] :construction_worker: add `--upgrade` flag to pip install --- .github/workflows/python-publish.yml | 2 +- .github/workflows/python-test-publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index d819d15a..b6e48119 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 diff --git a/.github/workflows/python-test-publish.yml b/.github/workflows/python-test-publish.yml index 0bb3e8ad..4788bfb6 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 From c516ec9d55f6f0f91950d3cc93e5fade91b96679 Mon Sep 17 00:00:00 2001 From: ff137 Date: Thu, 4 Apr 2024 12:48:17 +0200 Subject: [PATCH 17/18] :pushpin: pin aiohttp to >=3.9.2 for vulnerability fix --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1f629492..50bf58e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -aiohttp>=3.6,<4.0 +aiohttp>=3.9.2,<4.0 pydantic>=2.4,<3.0 python-dateutil>=2 typing-extensions>=4,<5.0 From 3c2159a8dd6ad52030ddfe257b1371b8ba890c12 Mon Sep 17 00:00:00 2001 From: ff137 Date: Thu, 4 Apr 2024 12:54:33 +0200 Subject: [PATCH 18/18] :construction_worker: add `--skip-existing` flag to twine upload --- .github/workflows/python-test-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test-publish.yml b/.github/workflows/python-test-publish.yml index 4788bfb6..05195c38 100644 --- a/.github/workflows/python-test-publish.yml +++ b/.github/workflows/python-test-publish.yml @@ -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