From 132da83050d0b2290f5197689d3959e4f8871d8c Mon Sep 17 00:00:00 2001 From: Mourits de Beer <31511766+ff137@users.noreply.github.com> Date: Mon, 28 Oct 2024 22:34:25 +0200 Subject: [PATCH] :heavy_plus_sign: :sparkles: :zap: replace json with orjson (#214) * :heavy_plus_sign: :sparkles: :zap: replace json with orjson * :arrow_up: Update version to 1.1.1b1 * :art: * :arrow_up: Upgrade aiohttp_retry --- aries_cloudcontroller/api_client.py | 8 ++++---- aries_cloudcontroller/models/action_menu_fetch_result.py | 4 ++-- aries_cloudcontroller/models/add_proof.py | 4 ++-- aries_cloudcontroller/models/add_proof_response.py | 4 ++-- aries_cloudcontroller/models/admin_config.py | 4 ++-- aries_cloudcontroller/models/admin_modules.py | 4 ++-- aries_cloudcontroller/models/admin_status.py | 4 ++-- aries_cloudcontroller/models/admin_status_liveliness.py | 4 ++-- aries_cloudcontroller/models/admin_status_readiness.py | 4 ++-- aries_cloudcontroller/models/aml_record.py | 4 ++-- aries_cloudcontroller/models/anon_creds_schema.py | 4 ++-- aries_cloudcontroller/models/attach_decorator.py | 4 ++-- aries_cloudcontroller/models/attach_decorator_data.py | 4 ++-- .../models/attach_decorator_data1_jws.py | 4 ++-- aries_cloudcontroller/models/attach_decorator_data_jws.py | 4 ++-- .../models/attach_decorator_data_jws_header.py | 4 ++-- aries_cloudcontroller/models/attachment_def.py | 4 ++-- .../models/attribute_mime_types_result.py | 4 ++-- aries_cloudcontroller/models/claim_format.py | 4 ++-- .../models/clear_pending_revocations_request.py | 4 ++-- .../models/configurable_write_ledgers.py | 4 ++-- aries_cloudcontroller/models/conn_record.py | 4 ++-- aries_cloudcontroller/models/connection_invitation.py | 4 ++-- aries_cloudcontroller/models/connection_list.py | 4 ++-- aries_cloudcontroller/models/connection_metadata.py | 4 ++-- .../models/connection_metadata_set_request.py | 4 ++-- aries_cloudcontroller/models/connection_static_request.py | 4 ++-- aries_cloudcontroller/models/connection_static_result.py | 4 ++-- aries_cloudcontroller/models/constraints.py | 4 ++-- aries_cloudcontroller/models/create_invitation_request.py | 4 ++-- aries_cloudcontroller/models/create_key_request.py | 4 ++-- aries_cloudcontroller/models/create_key_response.py | 4 ++-- aries_cloudcontroller/models/create_wallet_request.py | 4 ++-- aries_cloudcontroller/models/create_wallet_response.py | 4 ++-- .../models/create_wallet_token_request.py | 4 ++-- .../models/create_wallet_token_response.py | 4 ++-- aries_cloudcontroller/models/cred_attr_spec.py | 4 ++-- aries_cloudcontroller/models/cred_def.py | 4 ++-- aries_cloudcontroller/models/cred_def_post_options.py | 4 ++-- aries_cloudcontroller/models/cred_def_post_request.py | 4 ++-- aries_cloudcontroller/models/cred_def_result.py | 4 ++-- aries_cloudcontroller/models/cred_def_state.py | 4 ++-- aries_cloudcontroller/models/cred_def_value.py | 4 ++-- aries_cloudcontroller/models/cred_def_value_primary.py | 4 ++-- .../models/cred_def_value_primary_schema_anoncreds.py | 4 ++-- aries_cloudcontroller/models/cred_def_value_revocation.py | 4 ++-- .../models/cred_def_value_revocation_schema_anoncreds.py | 4 ++-- .../models/cred_def_value_schema_anoncreds.py | 4 ++-- aries_cloudcontroller/models/cred_info_list.py | 4 ++-- .../models/cred_rev_indy_records_result.py | 4 ++-- .../cred_rev_indy_records_result_schema_anoncreds.py | 4 ++-- .../models/cred_rev_record_details_result.py | 4 ++-- .../cred_rev_record_details_result_schema_anoncreds.py | 4 ++-- aries_cloudcontroller/models/cred_rev_record_result.py | 4 ++-- .../models/cred_rev_record_result_schema_anoncreds.py | 4 ++-- aries_cloudcontroller/models/cred_revoked_result.py | 4 ++-- aries_cloudcontroller/models/credential.py | 4 ++-- aries_cloudcontroller/models/credential_definition.py | 4 ++-- .../models/credential_definition_get_result.py | 4 ++-- .../models/credential_definition_send_request.py | 4 ++-- .../models/credential_definition_send_result.py | 4 ++-- .../models/credential_definitions_created_result.py | 4 ++-- aries_cloudcontroller/models/credential_offer.py | 4 ++-- aries_cloudcontroller/models/credential_preview.py | 4 ++-- aries_cloudcontroller/models/credential_proposal.py | 4 ++-- aries_cloudcontroller/models/credential_status_options.py | 4 ++-- .../models/data_integrity_proof_options.py | 4 ++-- aries_cloudcontroller/models/did.py | 4 ++-- aries_cloudcontroller/models/did_create.py | 4 ++-- aries_cloudcontroller/models/did_create_options.py | 4 ++-- aries_cloudcontroller/models/did_endpoint.py | 4 ++-- aries_cloudcontroller/models/did_endpoint_with_type.py | 4 ++-- aries_cloudcontroller/models/did_list.py | 4 ++-- aries_cloudcontroller/models/did_result.py | 4 ++-- aries_cloudcontroller/models/did_rotate_request_json.py | 4 ++-- aries_cloudcontroller/models/didx_reject_request.py | 4 ++-- aries_cloudcontroller/models/didx_request.py | 4 ++-- aries_cloudcontroller/models/dif_field.py | 4 ++-- aries_cloudcontroller/models/dif_holder.py | 4 ++-- aries_cloudcontroller/models/dif_options.py | 4 ++-- aries_cloudcontroller/models/dif_pres_spec.py | 4 ++-- aries_cloudcontroller/models/dif_proof_proposal.py | 4 ++-- aries_cloudcontroller/models/dif_proof_request.py | 4 ++-- aries_cloudcontroller/models/disclose.py | 4 ++-- aries_cloudcontroller/models/disclosures.py | 4 ++-- aries_cloudcontroller/models/doc.py | 4 ++-- .../models/document_verification_result.py | 4 ++-- aries_cloudcontroller/models/endorser_info.py | 4 ++-- aries_cloudcontroller/models/endpoints_result.py | 4 ++-- aries_cloudcontroller/models/fetch_credential_response.py | 4 ++-- aries_cloudcontroller/models/fetch_key_response.py | 4 ++-- aries_cloudcontroller/models/filter.py | 4 ++-- aries_cloudcontroller/models/generated.py | 4 ++-- aries_cloudcontroller/models/get_cred_def_result.py | 4 ++-- aries_cloudcontroller/models/get_cred_defs_response.py | 4 ++-- aries_cloudcontroller/models/get_did_endpoint_response.py | 4 ++-- aries_cloudcontroller/models/get_did_verkey_response.py | 4 ++-- aries_cloudcontroller/models/get_nym_role_response.py | 4 ++-- aries_cloudcontroller/models/get_schema_result.py | 4 ++-- aries_cloudcontroller/models/get_schemas_response.py | 4 ++-- aries_cloudcontroller/models/hangup.py | 4 ++-- aries_cloudcontroller/models/indy_attr_value.py | 4 ++-- aries_cloudcontroller/models/indy_cred_abstract.py | 4 ++-- aries_cloudcontroller/models/indy_cred_info.py | 4 ++-- aries_cloudcontroller/models/indy_cred_precis.py | 4 ++-- aries_cloudcontroller/models/indy_cred_request.py | 4 ++-- aries_cloudcontroller/models/indy_credential.py | 4 ++-- aries_cloudcontroller/models/indy_eq_proof.py | 4 ++-- aries_cloudcontroller/models/indy_ge_proof.py | 4 ++-- aries_cloudcontroller/models/indy_ge_proof_pred.py | 4 ++-- .../models/indy_key_correctness_proof.py | 4 ++-- aries_cloudcontroller/models/indy_non_revoc_proof.py | 4 ++-- .../models/indy_non_revocation_interval.py | 4 ++-- aries_cloudcontroller/models/indy_pres_attr_spec.py | 4 ++-- aries_cloudcontroller/models/indy_pres_pred_spec.py | 4 ++-- aries_cloudcontroller/models/indy_pres_preview.py | 4 ++-- aries_cloudcontroller/models/indy_pres_spec.py | 4 ++-- aries_cloudcontroller/models/indy_primary_proof.py | 4 ++-- aries_cloudcontroller/models/indy_proof.py | 4 ++-- aries_cloudcontroller/models/indy_proof_identifier.py | 4 ++-- aries_cloudcontroller/models/indy_proof_proof.py | 4 ++-- .../models/indy_proof_proof_aggregated_proof.py | 4 ++-- .../models/indy_proof_proof_proofs_proof.py | 4 ++-- aries_cloudcontroller/models/indy_proof_req_attr_spec.py | 4 ++-- .../models/indy_proof_req_attr_spec_non_revoked.py | 4 ++-- aries_cloudcontroller/models/indy_proof_req_pred_spec.py | 4 ++-- .../models/indy_proof_req_pred_spec_non_revoked.py | 4 ++-- aries_cloudcontroller/models/indy_proof_request.py | 4 ++-- .../models/indy_proof_request_non_revoked.py | 4 ++-- .../models/indy_proof_requested_proof.py | 4 ++-- .../models/indy_proof_requested_proof_predicate.py | 4 ++-- .../models/indy_proof_requested_proof_revealed_attr.py | 4 ++-- .../indy_proof_requested_proof_revealed_attr_group.py | 4 ++-- .../models/indy_requested_creds_requested_attr.py | 4 ++-- .../models/indy_requested_creds_requested_pred.py | 4 ++-- aries_cloudcontroller/models/indy_rev_reg_def.py | 4 ++-- aries_cloudcontroller/models/indy_rev_reg_def_value.py | 4 ++-- .../models/indy_rev_reg_def_value_public_keys.py | 4 ++-- .../indy_rev_reg_def_value_public_keys_accum_key.py | 4 ++-- aries_cloudcontroller/models/indy_rev_reg_entry.py | 4 ++-- aries_cloudcontroller/models/indy_rev_reg_entry_value.py | 4 ++-- aries_cloudcontroller/models/inner_cred_def.py | 4 ++-- aries_cloudcontroller/models/inner_rev_reg_def.py | 4 ++-- aries_cloudcontroller/models/input_descriptors.py | 4 ++-- aries_cloudcontroller/models/invitation_create_request.py | 4 ++-- aries_cloudcontroller/models/invitation_message.py | 4 ++-- aries_cloudcontroller/models/invitation_record.py | 4 ++-- aries_cloudcontroller/models/invitation_result.py | 4 ++-- aries_cloudcontroller/models/issue_credential_request.py | 4 ++-- aries_cloudcontroller/models/issue_credential_response.py | 4 ++-- aries_cloudcontroller/models/issuer_cred_rev_record.py | 4 ++-- .../models/issuer_cred_rev_record_schema_anoncreds.py | 4 ++-- aries_cloudcontroller/models/issuer_rev_reg_record.py | 4 ++-- aries_cloudcontroller/models/jws_create.py | 4 ++-- aries_cloudcontroller/models/jws_verify.py | 4 ++-- aries_cloudcontroller/models/jws_verify_response.py | 4 ++-- aries_cloudcontroller/models/keylist.py | 4 ++-- aries_cloudcontroller/models/keylist_query.py | 4 ++-- .../models/keylist_query_filter_request.py | 4 ++-- aries_cloudcontroller/models/keylist_query_paginate.py | 4 ++-- aries_cloudcontroller/models/keylist_update.py | 4 ++-- aries_cloudcontroller/models/keylist_update_request.py | 4 ++-- aries_cloudcontroller/models/keylist_update_rule.py | 4 ++-- aries_cloudcontroller/models/ld_proof_vc_detail.py | 4 ++-- aries_cloudcontroller/models/ld_proof_vc_options.py | 4 ++-- aries_cloudcontroller/models/ledger_config_instance.py | 4 ++-- aries_cloudcontroller/models/ledger_config_list.py | 4 ++-- aries_cloudcontroller/models/linked_data_proof.py | 4 ++-- aries_cloudcontroller/models/mediation_deny.py | 4 ++-- aries_cloudcontroller/models/mediation_grant.py | 4 ++-- aries_cloudcontroller/models/mediation_id_match_info.py | 4 ++-- aries_cloudcontroller/models/mediation_list.py | 4 ++-- aries_cloudcontroller/models/mediation_record.py | 4 ++-- aries_cloudcontroller/models/menu.py | 4 ++-- aries_cloudcontroller/models/menu_form.py | 4 ++-- aries_cloudcontroller/models/menu_form_param.py | 4 ++-- aries_cloudcontroller/models/menu_json.py | 4 ++-- aries_cloudcontroller/models/menu_option.py | 4 ++-- aries_cloudcontroller/models/model_date.py | 4 ++-- aries_cloudcontroller/models/model_schema.py | 4 ++-- aries_cloudcontroller/models/oob_record.py | 4 ++-- aries_cloudcontroller/models/perform_request.py | 4 ++-- aries_cloudcontroller/models/ping_request.py | 4 ++-- aries_cloudcontroller/models/ping_request_response.py | 4 ++-- aries_cloudcontroller/models/presentation.py | 4 ++-- aries_cloudcontroller/models/presentation_definition.py | 4 ++-- aries_cloudcontroller/models/presentation_proposal.py | 4 ++-- aries_cloudcontroller/models/presentation_request.py | 4 ++-- .../models/presentation_verification_result.py | 4 ++-- aries_cloudcontroller/models/profile_settings.py | 4 ++-- aries_cloudcontroller/models/proof_result.py | 4 ++-- aries_cloudcontroller/models/protocol_descriptor.py | 4 ++-- .../models/prove_presentation_request.py | 4 ++-- .../models/prove_presentation_response.py | 4 ++-- aries_cloudcontroller/models/publish_revocations.py | 4 ++-- .../models/publish_revocations_options.py | 4 ++-- .../models/publish_revocations_result_schema_anoncreds.py | 4 ++-- .../models/publish_revocations_schema_anoncreds.py | 4 ++-- aries_cloudcontroller/models/purpose_result.py | 4 ++-- aries_cloudcontroller/models/queries.py | 4 ++-- aries_cloudcontroller/models/query.py | 4 ++-- aries_cloudcontroller/models/query_item.py | 4 ++-- aries_cloudcontroller/models/raw_encoded.py | 4 ++-- .../models/receive_invitation_request.py | 4 ++-- aries_cloudcontroller/models/remove_wallet_request.py | 4 ++-- aries_cloudcontroller/models/resolution_result.py | 4 ++-- aries_cloudcontroller/models/rev_list.py | 4 ++-- aries_cloudcontroller/models/rev_list_create_request.py | 4 ++-- aries_cloudcontroller/models/rev_list_options.py | 4 ++-- aries_cloudcontroller/models/rev_list_result.py | 4 ++-- aries_cloudcontroller/models/rev_list_state.py | 4 ++-- aries_cloudcontroller/models/rev_reg_create_request.py | 4 ++-- .../models/rev_reg_create_request_schema_anoncreds.py | 4 ++-- aries_cloudcontroller/models/rev_reg_def.py | 4 ++-- aries_cloudcontroller/models/rev_reg_def_options.py | 4 ++-- aries_cloudcontroller/models/rev_reg_def_result.py | 4 ++-- aries_cloudcontroller/models/rev_reg_def_state.py | 4 ++-- aries_cloudcontroller/models/rev_reg_def_value.py | 4 ++-- aries_cloudcontroller/models/rev_reg_issued_result.py | 4 ++-- .../models/rev_reg_issued_result_schema_anoncreds.py | 4 ++-- aries_cloudcontroller/models/rev_reg_result.py | 4 ++-- .../models/rev_reg_result_schema_anoncreds.py | 4 ++-- .../models/rev_reg_update_tails_file_uri.py | 4 ++-- .../models/rev_reg_wallet_updated_result.py | 4 ++-- .../rev_reg_wallet_updated_result_schema_anoncreds.py | 4 ++-- aries_cloudcontroller/models/rev_regs_created.py | 4 ++-- .../models/rev_regs_created_schema_anoncreds.py | 4 ++-- aries_cloudcontroller/models/revoke_request.py | 4 ++-- .../models/revoke_request_schema_anoncreds.py | 4 ++-- aries_cloudcontroller/models/rotate.py | 4 ++-- aries_cloudcontroller/models/route_record.py | 4 ++-- aries_cloudcontroller/models/schema_get_result.py | 4 ++-- aries_cloudcontroller/models/schema_input_descriptor.py | 4 ++-- aries_cloudcontroller/models/schema_post_option.py | 4 ++-- aries_cloudcontroller/models/schema_post_request.py | 4 ++-- aries_cloudcontroller/models/schema_result.py | 4 ++-- aries_cloudcontroller/models/schema_send_request.py | 4 ++-- aries_cloudcontroller/models/schema_send_result.py | 4 ++-- aries_cloudcontroller/models/schema_state.py | 4 ++-- aries_cloudcontroller/models/schemas_created_result.py | 4 ++-- .../models/schemas_input_descriptor_filter.py | 4 ++-- aries_cloudcontroller/models/sdjws_create.py | 4 ++-- aries_cloudcontroller/models/sdjws_verify.py | 4 ++-- aries_cloudcontroller/models/sdjws_verify_response.py | 4 ++-- aries_cloudcontroller/models/send_menu.py | 4 ++-- aries_cloudcontroller/models/send_message.py | 4 ++-- aries_cloudcontroller/models/service_decorator.py | 4 ++-- aries_cloudcontroller/models/sign_request.py | 4 ++-- aries_cloudcontroller/models/sign_response.py | 4 ++-- aries_cloudcontroller/models/signature_options.py | 4 ++-- aries_cloudcontroller/models/signed_doc.py | 4 ++-- aries_cloudcontroller/models/submission_requirements.py | 4 ++-- aries_cloudcontroller/models/taa_accept.py | 4 ++-- aries_cloudcontroller/models/taa_acceptance.py | 4 ++-- aries_cloudcontroller/models/taa_info.py | 4 ++-- aries_cloudcontroller/models/taa_record.py | 4 ++-- aries_cloudcontroller/models/taa_result.py | 4 ++-- aries_cloudcontroller/models/tails_delete_response.py | 4 ++-- aries_cloudcontroller/models/transaction_jobs.py | 4 ++-- aries_cloudcontroller/models/transaction_list.py | 4 ++-- aries_cloudcontroller/models/transaction_record.py | 4 ++-- .../models/txn_or_credential_definition_send_result.py | 4 ++-- .../models/txn_or_publish_revocations_result.py | 4 ++-- .../models/txn_or_register_ledger_nym_response.py | 4 ++-- aries_cloudcontroller/models/txn_or_rev_reg_result.py | 4 ++-- aries_cloudcontroller/models/txn_or_schema_send_result.py | 4 ++-- aries_cloudcontroller/models/update_key_request.py | 4 ++-- aries_cloudcontroller/models/update_key_response.py | 4 ++-- aries_cloudcontroller/models/update_profile_settings.py | 4 ++-- aries_cloudcontroller/models/update_wallet_request.py | 4 ++-- .../models/v10_credential_bound_offer_request.py | 4 ++-- .../models/v10_credential_conn_free_offer_request.py | 4 ++-- aries_cloudcontroller/models/v10_credential_create.py | 4 ++-- aries_cloudcontroller/models/v10_credential_exchange.py | 4 ++-- .../models/v10_credential_exchange_auto_remove_request.py | 4 ++-- .../models/v10_credential_exchange_list_result.py | 4 ++-- .../models/v10_credential_free_offer_request.py | 4 ++-- .../models/v10_credential_issue_request.py | 4 ++-- .../models/v10_credential_problem_report_request.py | 4 ++-- .../models/v10_credential_proposal_request_mand.py | 4 ++-- .../models/v10_credential_proposal_request_opt.py | 4 ++-- .../models/v10_credential_store_request.py | 4 ++-- .../models/v10_discovery_exchange_list_result.py | 4 ++-- aries_cloudcontroller/models/v10_discovery_record.py | 4 ++-- .../models/v10_presentation_create_request_request.py | 4 ++-- aries_cloudcontroller/models/v10_presentation_exchange.py | 4 ++-- .../models/v10_presentation_exchange_list.py | 4 ++-- .../models/v10_presentation_problem_report_request.py | 4 ++-- .../models/v10_presentation_proposal_request.py | 4 ++-- .../models/v10_presentation_send_request.py | 4 ++-- .../models/v10_presentation_send_request_request.py | 4 ++-- .../models/v10_presentation_send_request_to_proposal.py | 4 ++-- aries_cloudcontroller/models/v20_cred_attr_spec.py | 4 ++-- .../models/v20_cred_bound_offer_request.py | 4 ++-- aries_cloudcontroller/models/v20_cred_ex_free.py | 4 ++-- aries_cloudcontroller/models/v20_cred_ex_record.py | 4 ++-- .../models/v20_cred_ex_record_by_format.py | 4 ++-- aries_cloudcontroller/models/v20_cred_ex_record_detail.py | 4 ++-- aries_cloudcontroller/models/v20_cred_ex_record_indy.py | 4 ++-- .../models/v20_cred_ex_record_ld_proof.py | 4 ++-- .../models/v20_cred_ex_record_list_result.py | 4 ++-- aries_cloudcontroller/models/v20_cred_filter.py | 4 ++-- aries_cloudcontroller/models/v20_cred_filter_indy.py | 4 ++-- aries_cloudcontroller/models/v20_cred_filter_ld_proof.py | 4 ++-- aries_cloudcontroller/models/v20_cred_filter_vcdi.py | 4 ++-- aries_cloudcontroller/models/v20_cred_format.py | 4 ++-- aries_cloudcontroller/models/v20_cred_issue.py | 4 ++-- .../models/v20_cred_issue_problem_report_request.py | 4 ++-- aries_cloudcontroller/models/v20_cred_issue_request.py | 4 ++-- aries_cloudcontroller/models/v20_cred_offer.py | 4 ++-- .../models/v20_cred_offer_conn_free_request.py | 4 ++-- aries_cloudcontroller/models/v20_cred_offer_request.py | 4 ++-- aries_cloudcontroller/models/v20_cred_preview.py | 4 ++-- aries_cloudcontroller/models/v20_cred_proposal.py | 4 ++-- aries_cloudcontroller/models/v20_cred_request.py | 4 ++-- aries_cloudcontroller/models/v20_cred_request_free.py | 4 ++-- aries_cloudcontroller/models/v20_cred_request_request.py | 4 ++-- aries_cloudcontroller/models/v20_cred_store_request.py | 4 ++-- .../models/v20_discovery_exchange_list_result.py | 4 ++-- .../models/v20_discovery_exchange_result.py | 4 ++-- aries_cloudcontroller/models/v20_discovery_record.py | 4 ++-- .../models/v20_issue_cred_schema_core.py | 4 ++-- aries_cloudcontroller/models/v20_pres.py | 4 ++-- .../models/v20_pres_create_request_request.py | 4 ++-- aries_cloudcontroller/models/v20_pres_ex_record.py | 4 ++-- .../models/v20_pres_ex_record_by_format.py | 4 ++-- aries_cloudcontroller/models/v20_pres_ex_record_list.py | 4 ++-- aries_cloudcontroller/models/v20_pres_format.py | 4 ++-- .../models/v20_pres_problem_report_request.py | 4 ++-- aries_cloudcontroller/models/v20_pres_proposal.py | 4 ++-- .../models/v20_pres_proposal_by_format.py | 4 ++-- aries_cloudcontroller/models/v20_pres_proposal_request.py | 4 ++-- aries_cloudcontroller/models/v20_pres_request.py | 4 ++-- .../models/v20_pres_request_by_format.py | 4 ++-- .../models/v20_pres_send_request_request.py | 4 ++-- .../models/v20_pres_spec_by_format_request.py | 4 ++-- .../models/v20_presentation_send_request_to_proposal.py | 4 ++-- aries_cloudcontroller/models/vc_record.py | 4 ++-- aries_cloudcontroller/models/vc_record_list.py | 4 ++-- aries_cloudcontroller/models/verifiable_credential.py | 4 ++-- aries_cloudcontroller/models/verifiable_presentation.py | 4 ++-- aries_cloudcontroller/models/verify_credential_request.py | 4 ++-- .../models/verify_credential_response.py | 4 ++-- aries_cloudcontroller/models/verify_di_request.py | 4 ++-- aries_cloudcontroller/models/verify_di_response.py | 4 ++-- .../models/verify_presentation_request.py | 4 ++-- .../models/verify_presentation_response.py | 4 ++-- aries_cloudcontroller/models/verify_request.py | 4 ++-- aries_cloudcontroller/models/verify_response.py | 4 ++-- .../models/w3_c_credentials_list_request.py | 4 ++-- aries_cloudcontroller/models/wallet_list.py | 4 ++-- aries_cloudcontroller/models/wallet_record.py | 4 ++-- aries_cloudcontroller/models/write_ledger.py | 4 ++-- aries_cloudcontroller/rest.py | 6 +++--- requirements.txt | 3 ++- setup.py | 2 +- 356 files changed, 714 insertions(+), 713 deletions(-) diff --git a/aries_cloudcontroller/api_client.py b/aries_cloudcontroller/api_client.py index 4e59755e..06957420 100644 --- a/aries_cloudcontroller/api_client.py +++ b/aries_cloudcontroller/api_client.py @@ -14,7 +14,6 @@ import datetime import decimal -import json import mimetypes import os import re @@ -23,6 +22,7 @@ from typing import Dict, List, Optional, Tuple, Union from urllib.parse import quote +import orjson from dateutil.parser import parse from pydantic import SecretStr @@ -389,7 +389,7 @@ def deserialize( # fetch data from response object if content_type is None: try: - data = json.loads(response_text) + data = orjson.loads(response_text) except ValueError: data = response_text elif re.match( @@ -400,7 +400,7 @@ def deserialize( if response_text == "": data = "" else: - data = json.loads(response_text) + data = orjson.loads(response_text) elif re.match(r"^text\/[a-z.+-]+\s*(;|$)", content_type, re.IGNORECASE): data = response_text else: @@ -500,7 +500,7 @@ def parameters_to_url_query(self, params, collection_formats): if isinstance(v, (int, float)): v = str(v) if isinstance(v, dict): - v = json.dumps(v) + v = orjson.dumps(v).decode() if k in collection_formats: collection_format = collection_formats[k] diff --git a/aries_cloudcontroller/models/action_menu_fetch_result.py b/aries_cloudcontroller/models/action_menu_fetch_result.py index 5c941ec9..b3073ace 100644 --- a/aries_cloudcontroller/models/action_menu_fetch_result.py +++ b/aries_cloudcontroller/models/action_menu_fetch_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ActionMenuFetchResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/add_proof.py b/aries_cloudcontroller/models/add_proof.py index aec4ef3f..a16ce9b9 100644 --- a/aries_cloudcontroller/models/add_proof.py +++ b/aries_cloudcontroller/models/add_proof.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AddProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/add_proof_response.py b/aries_cloudcontroller/models/add_proof_response.py index b6117ad4..692e3f12 100644 --- a/aries_cloudcontroller/models/add_proof_response.py +++ b/aries_cloudcontroller/models/add_proof_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AddProofResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/admin_config.py b/aries_cloudcontroller/models/admin_config.py index 3f816c7c..bbd67ac9 100644 --- a/aries_cloudcontroller/models/admin_config.py +++ b/aries_cloudcontroller/models/admin_config.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AdminConfig from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/admin_modules.py b/aries_cloudcontroller/models/admin_modules.py index caf489fd..2d11f1fa 100644 --- a/aries_cloudcontroller/models/admin_modules.py +++ b/aries_cloudcontroller/models/admin_modules.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AdminModules from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/admin_status.py b/aries_cloudcontroller/models/admin_status.py index bfaa5b34..8b80e009 100644 --- a/aries_cloudcontroller/models/admin_status.py +++ b/aries_cloudcontroller/models/admin_status.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AdminStatus from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/admin_status_liveliness.py b/aries_cloudcontroller/models/admin_status_liveliness.py index 495db2f2..f4ccd4c8 100644 --- a/aries_cloudcontroller/models/admin_status_liveliness.py +++ b/aries_cloudcontroller/models/admin_status_liveliness.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AdminStatusLiveliness from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/admin_status_readiness.py b/aries_cloudcontroller/models/admin_status_readiness.py index 7b93de93..346af50d 100644 --- a/aries_cloudcontroller/models/admin_status_readiness.py +++ b/aries_cloudcontroller/models/admin_status_readiness.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AdminStatusReadiness from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/aml_record.py b/aries_cloudcontroller/models/aml_record.py index c1f552d1..1a264d77 100644 --- a/aries_cloudcontroller/models/aml_record.py +++ b/aries_cloudcontroller/models/aml_record.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AMLRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/anon_creds_schema.py b/aries_cloudcontroller/models/anon_creds_schema.py index cac46b13..ef86ad31 100644 --- a/aries_cloudcontroller/models/anon_creds_schema.py +++ b/aries_cloudcontroller/models/anon_creds_schema.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AnonCredsSchema from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/attach_decorator.py b/aries_cloudcontroller/models/attach_decorator.py index 1286b218..05800356 100644 --- a/aries_cloudcontroller/models/attach_decorator.py +++ b/aries_cloudcontroller/models/attach_decorator.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -87,7 +87,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AttachDecorator from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/attach_decorator_data.py b/aries_cloudcontroller/models/attach_decorator_data.py index 74b98d66..21e4e990 100644 --- a/aries_cloudcontroller/models/attach_decorator_data.py +++ b/aries_cloudcontroller/models/attach_decorator_data.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set, Union +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -88,7 +88,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AttachDecoratorData from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/attach_decorator_data1_jws.py b/aries_cloudcontroller/models/attach_decorator_data1_jws.py index 5af64044..2ffbb891 100644 --- a/aries_cloudcontroller/models/attach_decorator_data1_jws.py +++ b/aries_cloudcontroller/models/attach_decorator_data1_jws.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -70,7 +70,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AttachDecoratorData1JWS from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/attach_decorator_data_jws.py b/aries_cloudcontroller/models/attach_decorator_data_jws.py index 9f4baf07..39a443bd 100644 --- a/aries_cloudcontroller/models/attach_decorator_data_jws.py +++ b/aries_cloudcontroller/models/attach_decorator_data_jws.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -86,7 +86,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AttachDecoratorDataJWS from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/attach_decorator_data_jws_header.py b/aries_cloudcontroller/models/attach_decorator_data_jws_header.py index a2e477a8..f97193a5 100644 --- a/aries_cloudcontroller/models/attach_decorator_data_jws_header.py +++ b/aries_cloudcontroller/models/attach_decorator_data_jws_header.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -60,7 +60,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AttachDecoratorDataJWSHeader from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/attachment_def.py b/aries_cloudcontroller/models/attachment_def.py index fffcdc1b..3e1fc419 100644 --- a/aries_cloudcontroller/models/attachment_def.py +++ b/aries_cloudcontroller/models/attachment_def.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -58,7 +58,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AttachmentDef from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/attribute_mime_types_result.py b/aries_cloudcontroller/models/attribute_mime_types_result.py index fe42466a..9273ef90 100644 --- a/aries_cloudcontroller/models/attribute_mime_types_result.py +++ b/aries_cloudcontroller/models/attribute_mime_types_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AttributeMimeTypesResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/claim_format.py b/aries_cloudcontroller/models/claim_format.py index d1a0df4a..d0e520c3 100644 --- a/aries_cloudcontroller/models/claim_format.py +++ b/aries_cloudcontroller/models/claim_format.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -59,7 +59,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ClaimFormat from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/clear_pending_revocations_request.py b/aries_cloudcontroller/models/clear_pending_revocations_request.py index f72a0733..394775ac 100644 --- a/aries_cloudcontroller/models/clear_pending_revocations_request.py +++ b/aries_cloudcontroller/models/clear_pending_revocations_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ClearPendingRevocationsRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/configurable_write_ledgers.py b/aries_cloudcontroller/models/configurable_write_ledgers.py index a7ca6731..476f546b 100644 --- a/aries_cloudcontroller/models/configurable_write_ledgers.py +++ b/aries_cloudcontroller/models/configurable_write_ledgers.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ConfigurableWriteLedgers from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/conn_record.py b/aries_cloudcontroller/models/conn_record.py index 74e8e0b9..72a17304 100644 --- a/aries_cloudcontroller/models/conn_record.py +++ b/aries_cloudcontroller/models/conn_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -235,7 +235,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ConnRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/connection_invitation.py b/aries_cloudcontroller/models/connection_invitation.py index d1052240..0e802931 100644 --- a/aries_cloudcontroller/models/connection_invitation.py +++ b/aries_cloudcontroller/models/connection_invitation.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -97,7 +97,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ConnectionInvitation from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/connection_list.py b/aries_cloudcontroller/models/connection_list.py index bf51f18c..9b7acdb1 100644 --- a/aries_cloudcontroller/models/connection_list.py +++ b/aries_cloudcontroller/models/connection_list.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ConnectionList from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/connection_metadata.py b/aries_cloudcontroller/models/connection_metadata.py index bd32664d..6205ea07 100644 --- a/aries_cloudcontroller/models/connection_metadata.py +++ b/aries_cloudcontroller/models/connection_metadata.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ConnectionMetadata from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/connection_metadata_set_request.py b/aries_cloudcontroller/models/connection_metadata_set_request.py index 8c5a0b0e..32e1b1a6 100644 --- a/aries_cloudcontroller/models/connection_metadata_set_request.py +++ b/aries_cloudcontroller/models/connection_metadata_set_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ConnectionMetadataSetRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/connection_static_request.py b/aries_cloudcontroller/models/connection_static_request.py index 4e298d01..2bbd3df6 100644 --- a/aries_cloudcontroller/models/connection_static_request.py +++ b/aries_cloudcontroller/models/connection_static_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -123,7 +123,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ConnectionStaticRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/connection_static_result.py b/aries_cloudcontroller/models/connection_static_result.py index 1a5123fa..6682e073 100644 --- a/aries_cloudcontroller/models/connection_static_result.py +++ b/aries_cloudcontroller/models/connection_static_result.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -125,7 +125,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ConnectionStaticResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/constraints.py b/aries_cloudcontroller/models/constraints.py index 23ace10f..9eef6102 100644 --- a/aries_cloudcontroller/models/constraints.py +++ b/aries_cloudcontroller/models/constraints.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -111,7 +111,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Constraints from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/create_invitation_request.py b/aries_cloudcontroller/models/create_invitation_request.py index b7cbf02e..2dd93e43 100644 --- a/aries_cloudcontroller/models/create_invitation_request.py +++ b/aries_cloudcontroller/models/create_invitation_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -86,7 +86,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateInvitationRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/create_key_request.py b/aries_cloudcontroller/models/create_key_request.py index 931cdcec..65df5d34 100644 --- a/aries_cloudcontroller/models/create_key_request.py +++ b/aries_cloudcontroller/models/create_key_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -55,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateKeyRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/create_key_response.py b/aries_cloudcontroller/models/create_key_response.py index ad5647e0..cebdcf00 100644 --- a/aries_cloudcontroller/models/create_key_response.py +++ b/aries_cloudcontroller/models/create_key_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateKeyResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/create_wallet_request.py b/aries_cloudcontroller/models/create_wallet_request.py index dbabcc13..500c6d18 100644 --- a/aries_cloudcontroller/models/create_wallet_request.py +++ b/aries_cloudcontroller/models/create_wallet_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -131,7 +131,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateWalletRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/create_wallet_response.py b/aries_cloudcontroller/models/create_wallet_response.py index b44521e9..232d765f 100644 --- a/aries_cloudcontroller/models/create_wallet_response.py +++ b/aries_cloudcontroller/models/create_wallet_response.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -107,7 +107,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateWalletResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/create_wallet_token_request.py b/aries_cloudcontroller/models/create_wallet_token_request.py index d24bb849..8edbd953 100644 --- a/aries_cloudcontroller/models/create_wallet_token_request.py +++ b/aries_cloudcontroller/models/create_wallet_token_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateWalletTokenRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/create_wallet_token_response.py b/aries_cloudcontroller/models/create_wallet_token_response.py index 0580dc23..0f6a3226 100644 --- a/aries_cloudcontroller/models/create_wallet_token_response.py +++ b/aries_cloudcontroller/models/create_wallet_token_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateWalletTokenResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_attr_spec.py b/aries_cloudcontroller/models/cred_attr_spec.py index d6c12940..6a8b736a 100644 --- a/aries_cloudcontroller/models/cred_attr_spec.py +++ b/aries_cloudcontroller/models/cred_attr_spec.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredAttrSpec from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_def.py b/aries_cloudcontroller/models/cred_def.py index a31a17b7..493575e9 100644 --- a/aries_cloudcontroller/models/cred_def.py +++ b/aries_cloudcontroller/models/cred_def.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -71,7 +71,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredDef from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_def_post_options.py b/aries_cloudcontroller/models/cred_def_post_options.py index a22233a4..68f4ab56 100644 --- a/aries_cloudcontroller/models/cred_def_post_options.py +++ b/aries_cloudcontroller/models/cred_def_post_options.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr from typing_extensions import Self @@ -64,7 +64,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredDefPostOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_def_post_request.py b/aries_cloudcontroller/models/cred_def_post_request.py index a87b5618..0398cc1c 100644 --- a/aries_cloudcontroller/models/cred_def_post_request.py +++ b/aries_cloudcontroller/models/cred_def_post_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredDefPostRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_def_result.py b/aries_cloudcontroller/models/cred_def_result.py index ec01af33..0d835620 100644 --- a/aries_cloudcontroller/models/cred_def_result.py +++ b/aries_cloudcontroller/models/cred_def_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredDefResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_def_state.py b/aries_cloudcontroller/models/cred_def_state.py index 22d58e31..f8ef0ecf 100644 --- a/aries_cloudcontroller/models/cred_def_state.py +++ b/aries_cloudcontroller/models/cred_def_state.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -68,7 +68,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredDefState from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_def_value.py b/aries_cloudcontroller/models/cred_def_value.py index 240a2db1..a038dc2c 100644 --- a/aries_cloudcontroller/models/cred_def_value.py +++ b/aries_cloudcontroller/models/cred_def_value.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredDefValue from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_def_value_primary.py b/aries_cloudcontroller/models/cred_def_value_primary.py index 8cf7e487..70bdb455 100644 --- a/aries_cloudcontroller/models/cred_def_value_primary.py +++ b/aries_cloudcontroller/models/cred_def_value_primary.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -91,7 +91,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredDefValuePrimary from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_def_value_primary_schema_anoncreds.py b/aries_cloudcontroller/models/cred_def_value_primary_schema_anoncreds.py index 65770788..7a457776 100644 --- a/aries_cloudcontroller/models/cred_def_value_primary_schema_anoncreds.py +++ b/aries_cloudcontroller/models/cred_def_value_primary_schema_anoncreds.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -90,7 +90,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredDefValuePrimarySchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_def_value_revocation.py b/aries_cloudcontroller/models/cred_def_value_revocation.py index 473aba9d..9fb5ae6a 100644 --- a/aries_cloudcontroller/models/cred_def_value_revocation.py +++ b/aries_cloudcontroller/models/cred_def_value_revocation.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -67,7 +67,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredDefValueRevocation from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_def_value_revocation_schema_anoncreds.py b/aries_cloudcontroller/models/cred_def_value_revocation_schema_anoncreds.py index 1cd45ef5..2552f40f 100644 --- a/aries_cloudcontroller/models/cred_def_value_revocation_schema_anoncreds.py +++ b/aries_cloudcontroller/models/cred_def_value_revocation_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -67,7 +67,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredDefValueRevocationSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_def_value_schema_anoncreds.py b/aries_cloudcontroller/models/cred_def_value_schema_anoncreds.py index 92daa5eb..c2314781 100644 --- a/aries_cloudcontroller/models/cred_def_value_schema_anoncreds.py +++ b/aries_cloudcontroller/models/cred_def_value_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -56,7 +56,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredDefValueSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_info_list.py b/aries_cloudcontroller/models/cred_info_list.py index 0b1b26ce..f29b6b0e 100644 --- a/aries_cloudcontroller/models/cred_info_list.py +++ b/aries_cloudcontroller/models/cred_info_list.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredInfoList from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_rev_indy_records_result.py b/aries_cloudcontroller/models/cred_rev_indy_records_result.py index d8b2d7e2..c36eadc9 100644 --- a/aries_cloudcontroller/models/cred_rev_indy_records_result.py +++ b/aries_cloudcontroller/models/cred_rev_indy_records_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredRevIndyRecordsResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_rev_indy_records_result_schema_anoncreds.py b/aries_cloudcontroller/models/cred_rev_indy_records_result_schema_anoncreds.py index 3b60d31b..dc03b669 100644 --- a/aries_cloudcontroller/models/cred_rev_indy_records_result_schema_anoncreds.py +++ b/aries_cloudcontroller/models/cred_rev_indy_records_result_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredRevIndyRecordsResultSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_rev_record_details_result.py b/aries_cloudcontroller/models/cred_rev_record_details_result.py index 5ac630cd..3fb624c6 100644 --- a/aries_cloudcontroller/models/cred_rev_record_details_result.py +++ b/aries_cloudcontroller/models/cred_rev_record_details_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredRevRecordDetailsResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_rev_record_details_result_schema_anoncreds.py b/aries_cloudcontroller/models/cred_rev_record_details_result_schema_anoncreds.py index cbf393d2..30defd5b 100644 --- a/aries_cloudcontroller/models/cred_rev_record_details_result_schema_anoncreds.py +++ b/aries_cloudcontroller/models/cred_rev_record_details_result_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredRevRecordDetailsResultSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_rev_record_result.py b/aries_cloudcontroller/models/cred_rev_record_result.py index afaf2b7a..6823ee76 100644 --- a/aries_cloudcontroller/models/cred_rev_record_result.py +++ b/aries_cloudcontroller/models/cred_rev_record_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredRevRecordResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_rev_record_result_schema_anoncreds.py b/aries_cloudcontroller/models/cred_rev_record_result_schema_anoncreds.py index 6fc02829..538fb9cd 100644 --- a/aries_cloudcontroller/models/cred_rev_record_result_schema_anoncreds.py +++ b/aries_cloudcontroller/models/cred_rev_record_result_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredRevRecordResultSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/cred_revoked_result.py b/aries_cloudcontroller/models/cred_revoked_result.py index b3e58701..0b8f00be 100644 --- a/aries_cloudcontroller/models/cred_revoked_result.py +++ b/aries_cloudcontroller/models/cred_revoked_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredRevokedResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/credential.py b/aries_cloudcontroller/models/credential.py index 8e8207c0..2dd025e1 100644 --- a/aries_cloudcontroller/models/credential.py +++ b/aries_cloudcontroller/models/credential.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set, Union +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -120,7 +120,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Credential from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/credential_definition.py b/aries_cloudcontroller/models/credential_definition.py index 6dc05663..85e96e27 100644 --- a/aries_cloudcontroller/models/credential_definition.py +++ b/aries_cloudcontroller/models/credential_definition.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Literal, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -99,7 +99,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredentialDefinition from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/credential_definition_get_result.py b/aries_cloudcontroller/models/credential_definition_get_result.py index a88fc3a9..75ac5045 100644 --- a/aries_cloudcontroller/models/credential_definition_get_result.py +++ b/aries_cloudcontroller/models/credential_definition_get_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredentialDefinitionGetResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/credential_definition_send_request.py b/aries_cloudcontroller/models/credential_definition_send_request.py index 221bcf91..d1b459ea 100644 --- a/aries_cloudcontroller/models/credential_definition_send_request.py +++ b/aries_cloudcontroller/models/credential_definition_send_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -77,7 +77,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredentialDefinitionSendRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/credential_definition_send_result.py b/aries_cloudcontroller/models/credential_definition_send_result.py index 242da0b9..91ae70ce 100644 --- a/aries_cloudcontroller/models/credential_definition_send_result.py +++ b/aries_cloudcontroller/models/credential_definition_send_result.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -60,7 +60,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredentialDefinitionSendResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/credential_definitions_created_result.py b/aries_cloudcontroller/models/credential_definitions_created_result.py index 044004b7..0b4fd888 100644 --- a/aries_cloudcontroller/models/credential_definitions_created_result.py +++ b/aries_cloudcontroller/models/credential_definitions_created_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredentialDefinitionsCreatedResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/credential_offer.py b/aries_cloudcontroller/models/credential_offer.py index 20064f33..65b66cf2 100644 --- a/aries_cloudcontroller/models/credential_offer.py +++ b/aries_cloudcontroller/models/credential_offer.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -63,7 +63,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredentialOffer from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/credential_preview.py b/aries_cloudcontroller/models/credential_preview.py index 213b1942..1d7f0187 100644 --- a/aries_cloudcontroller/models/credential_preview.py +++ b/aries_cloudcontroller/models/credential_preview.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredentialPreview from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/credential_proposal.py b/aries_cloudcontroller/models/credential_proposal.py index 9bd018d9..bf9514ca 100644 --- a/aries_cloudcontroller/models/credential_proposal.py +++ b/aries_cloudcontroller/models/credential_proposal.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -143,7 +143,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredentialProposal from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/credential_status_options.py b/aries_cloudcontroller/models/credential_status_options.py index 931078d0..878d9352 100644 --- a/aries_cloudcontroller/models/credential_status_options.py +++ b/aries_cloudcontroller/models/credential_status_options.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CredentialStatusOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/data_integrity_proof_options.py b/aries_cloudcontroller/models/data_integrity_proof_options.py index 24bb3de8..74fbea8e 100644 --- a/aries_cloudcontroller/models/data_integrity_proof_options.py +++ b/aries_cloudcontroller/models/data_integrity_proof_options.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -116,7 +116,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DataIntegrityProofOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/did.py b/aries_cloudcontroller/models/did.py index 4bfed0d6..7fca16f2 100644 --- a/aries_cloudcontroller/models/did.py +++ b/aries_cloudcontroller/models/did.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Literal, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -107,7 +107,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DID from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/did_create.py b/aries_cloudcontroller/models/did_create.py index d9708d1b..23925125 100644 --- a/aries_cloudcontroller/models/did_create.py +++ b/aries_cloudcontroller/models/did_create.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIDCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/did_create_options.py b/aries_cloudcontroller/models/did_create_options.py index dce8659b..54df11f4 100644 --- a/aries_cloudcontroller/models/did_create_options.py +++ b/aries_cloudcontroller/models/did_create_options.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -74,7 +74,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIDCreateOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/did_endpoint.py b/aries_cloudcontroller/models/did_endpoint.py index a8f0d280..3c238e19 100644 --- a/aries_cloudcontroller/models/did_endpoint.py +++ b/aries_cloudcontroller/models/did_endpoint.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -76,7 +76,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIDEndpoint from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/did_endpoint_with_type.py b/aries_cloudcontroller/models/did_endpoint_with_type.py index abf4e119..d52e0366 100644 --- a/aries_cloudcontroller/models/did_endpoint_with_type.py +++ b/aries_cloudcontroller/models/did_endpoint_with_type.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -115,7 +115,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIDEndpointWithType from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/did_list.py b/aries_cloudcontroller/models/did_list.py index cd268217..40d6c923 100644 --- a/aries_cloudcontroller/models/did_list.py +++ b/aries_cloudcontroller/models/did_list.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIDList from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/did_result.py b/aries_cloudcontroller/models/did_result.py index 60a31f52..d5a124b0 100644 --- a/aries_cloudcontroller/models/did_result.py +++ b/aries_cloudcontroller/models/did_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIDResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/did_rotate_request_json.py b/aries_cloudcontroller/models/did_rotate_request_json.py index 75a98a9b..ea519b8c 100644 --- a/aries_cloudcontroller/models/did_rotate_request_json.py +++ b/aries_cloudcontroller/models/did_rotate_request_json.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIDRotateRequestJSON from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/didx_reject_request.py b/aries_cloudcontroller/models/didx_reject_request.py index 31aaf9aa..6a7b0768 100644 --- a/aries_cloudcontroller/models/didx_reject_request.py +++ b/aries_cloudcontroller/models/didx_reject_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIDXRejectRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/didx_request.py b/aries_cloudcontroller/models/didx_request.py index bfd888dc..1fe03673 100644 --- a/aries_cloudcontroller/models/didx_request.py +++ b/aries_cloudcontroller/models/didx_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -92,7 +92,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIDXRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/dif_field.py b/aries_cloudcontroller/models/dif_field.py index 113af1bd..60e33a71 100644 --- a/aries_cloudcontroller/models/dif_field.py +++ b/aries_cloudcontroller/models/dif_field.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -60,7 +60,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIFField from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/dif_holder.py b/aries_cloudcontroller/models/dif_holder.py index 237ee441..e8e94e0a 100644 --- a/aries_cloudcontroller/models/dif_holder.py +++ b/aries_cloudcontroller/models/dif_holder.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -56,7 +56,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIFHolder from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/dif_options.py b/aries_cloudcontroller/models/dif_options.py index ee057fa3..fb96f1b7 100644 --- a/aries_cloudcontroller/models/dif_options.py +++ b/aries_cloudcontroller/models/dif_options.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -66,7 +66,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIFOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/dif_pres_spec.py b/aries_cloudcontroller/models/dif_pres_spec.py index 40369056..514de4be 100644 --- a/aries_cloudcontroller/models/dif_pres_spec.py +++ b/aries_cloudcontroller/models/dif_pres_spec.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -63,7 +63,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIFPresSpec from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/dif_proof_proposal.py b/aries_cloudcontroller/models/dif_proof_proposal.py index 3b8ca3ca..fefdae08 100644 --- a/aries_cloudcontroller/models/dif_proof_proposal.py +++ b/aries_cloudcontroller/models/dif_proof_proposal.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIFProofProposal from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/dif_proof_request.py b/aries_cloudcontroller/models/dif_proof_request.py index 26fb9da1..bb241ead 100644 --- a/aries_cloudcontroller/models/dif_proof_request.py +++ b/aries_cloudcontroller/models/dif_proof_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DIFProofRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/disclose.py b/aries_cloudcontroller/models/disclose.py index c5cdb3ba..51a4f02b 100644 --- a/aries_cloudcontroller/models/disclose.py +++ b/aries_cloudcontroller/models/disclose.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Disclose from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/disclosures.py b/aries_cloudcontroller/models/disclosures.py index d844cae8..632c2794 100644 --- a/aries_cloudcontroller/models/disclosures.py +++ b/aries_cloudcontroller/models/disclosures.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Disclosures from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/doc.py b/aries_cloudcontroller/models/doc.py index 7c54cdc3..f03bc5e1 100644 --- a/aries_cloudcontroller/models/doc.py +++ b/aries_cloudcontroller/models/doc.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Doc from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/document_verification_result.py b/aries_cloudcontroller/models/document_verification_result.py index ac7296d8..b737ea7f 100644 --- a/aries_cloudcontroller/models/document_verification_result.py +++ b/aries_cloudcontroller/models/document_verification_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictBool, StrictStr from typing_extensions import Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DocumentVerificationResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/endorser_info.py b/aries_cloudcontroller/models/endorser_info.py index 0d078bf0..fd87b340 100644 --- a/aries_cloudcontroller/models/endorser_info.py +++ b/aries_cloudcontroller/models/endorser_info.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of EndorserInfo from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/endpoints_result.py b/aries_cloudcontroller/models/endpoints_result.py index 66813aa5..59d03f27 100644 --- a/aries_cloudcontroller/models/endpoints_result.py +++ b/aries_cloudcontroller/models/endpoints_result.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -81,7 +81,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of EndpointsResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/fetch_credential_response.py b/aries_cloudcontroller/models/fetch_credential_response.py index 4dde71d9..15a74513 100644 --- a/aries_cloudcontroller/models/fetch_credential_response.py +++ b/aries_cloudcontroller/models/fetch_credential_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of FetchCredentialResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/fetch_key_response.py b/aries_cloudcontroller/models/fetch_key_response.py index 55a5bae8..d4b6bf23 100644 --- a/aries_cloudcontroller/models/fetch_key_response.py +++ b/aries_cloudcontroller/models/fetch_key_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of FetchKeyResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/filter.py b/aries_cloudcontroller/models/filter.py index 43ada7b2..363992f2 100644 --- a/aries_cloudcontroller/models/filter.py +++ b/aries_cloudcontroller/models/filter.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set, Union +import orjson from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr from typing_extensions import Self @@ -82,7 +82,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Filter from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/generated.py b/aries_cloudcontroller/models/generated.py index eb459375..21b3855f 100644 --- a/aries_cloudcontroller/models/generated.py +++ b/aries_cloudcontroller/models/generated.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -78,7 +78,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Generated from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/get_cred_def_result.py b/aries_cloudcontroller/models/get_cred_def_result.py index 0d542430..0d6d54ef 100644 --- a/aries_cloudcontroller/models/get_cred_def_result.py +++ b/aries_cloudcontroller/models/get_cred_def_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -58,7 +58,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetCredDefResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/get_cred_defs_response.py b/aries_cloudcontroller/models/get_cred_defs_response.py index b2a3d5b5..93ef76c9 100644 --- a/aries_cloudcontroller/models/get_cred_defs_response.py +++ b/aries_cloudcontroller/models/get_cred_defs_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetCredDefsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/get_did_endpoint_response.py b/aries_cloudcontroller/models/get_did_endpoint_response.py index 5f75997d..a144b329 100644 --- a/aries_cloudcontroller/models/get_did_endpoint_response.py +++ b/aries_cloudcontroller/models/get_did_endpoint_response.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -63,7 +63,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetDIDEndpointResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/get_did_verkey_response.py b/aries_cloudcontroller/models/get_did_verkey_response.py index 68a91ce9..9e2b1a8a 100644 --- a/aries_cloudcontroller/models/get_did_verkey_response.py +++ b/aries_cloudcontroller/models/get_did_verkey_response.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -63,7 +63,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetDIDVerkeyResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/get_nym_role_response.py b/aries_cloudcontroller/models/get_nym_role_response.py index 52407647..985941bc 100644 --- a/aries_cloudcontroller/models/get_nym_role_response.py +++ b/aries_cloudcontroller/models/get_nym_role_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -59,7 +59,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetNymRoleResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/get_schema_result.py b/aries_cloudcontroller/models/get_schema_result.py index c2cab95f..9268cc83 100644 --- a/aries_cloudcontroller/models/get_schema_result.py +++ b/aries_cloudcontroller/models/get_schema_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -56,7 +56,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetSchemaResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/get_schemas_response.py b/aries_cloudcontroller/models/get_schemas_response.py index 42907f01..853d793f 100644 --- a/aries_cloudcontroller/models/get_schemas_response.py +++ b/aries_cloudcontroller/models/get_schemas_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetSchemasResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/hangup.py b/aries_cloudcontroller/models/hangup.py index 8c2adec4..350cd98e 100644 --- a/aries_cloudcontroller/models/hangup.py +++ b/aries_cloudcontroller/models/hangup.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Hangup from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_attr_value.py b/aries_cloudcontroller/models/indy_attr_value.py index 2fd392b8..cca4c9a3 100644 --- a/aries_cloudcontroller/models/indy_attr_value.py +++ b/aries_cloudcontroller/models/indy_attr_value.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -56,7 +56,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyAttrValue from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_cred_abstract.py b/aries_cloudcontroller/models/indy_cred_abstract.py index efe32fa5..4381f590 100644 --- a/aries_cloudcontroller/models/indy_cred_abstract.py +++ b/aries_cloudcontroller/models/indy_cred_abstract.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -96,7 +96,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyCredAbstract from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_cred_info.py b/aries_cloudcontroller/models/indy_cred_info.py index 35423081..b672a8ad 100644 --- a/aries_cloudcontroller/models/indy_cred_info.py +++ b/aries_cloudcontroller/models/indy_cred_info.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -123,7 +123,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyCredInfo from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_cred_precis.py b/aries_cloudcontroller/models/indy_cred_precis.py index c425bac1..d38695fd 100644 --- a/aries_cloudcontroller/models/indy_cred_precis.py +++ b/aries_cloudcontroller/models/indy_cred_precis.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyCredPrecis from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_cred_request.py b/aries_cloudcontroller/models/indy_cred_request.py index 51dfcaa3..e91ca8ff 100644 --- a/aries_cloudcontroller/models/indy_cred_request.py +++ b/aries_cloudcontroller/models/indy_cred_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -81,7 +81,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyCredRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_credential.py b/aries_cloudcontroller/models/indy_credential.py index f4f2370e..58b3c25a 100644 --- a/aries_cloudcontroller/models/indy_credential.py +++ b/aries_cloudcontroller/models/indy_credential.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -114,7 +114,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyCredential from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_eq_proof.py b/aries_cloudcontroller/models/indy_eq_proof.py index 5ab2b290..21e6b1a1 100644 --- a/aries_cloudcontroller/models/indy_eq_proof.py +++ b/aries_cloudcontroller/models/indy_eq_proof.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -98,7 +98,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyEQProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_ge_proof.py b/aries_cloudcontroller/models/indy_ge_proof.py index 3c2ccc71..31d5b397 100644 --- a/aries_cloudcontroller/models/indy_ge_proof.py +++ b/aries_cloudcontroller/models/indy_ge_proof.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -72,7 +72,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyGEProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_ge_proof_pred.py b/aries_cloudcontroller/models/indy_ge_proof_pred.py index ff15b6aa..2c6af501 100644 --- a/aries_cloudcontroller/models/indy_ge_proof_pred.py +++ b/aries_cloudcontroller/models/indy_ge_proof_pred.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr, field_validator from typing_extensions import Self @@ -61,7 +61,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyGEProofPred from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_key_correctness_proof.py b/aries_cloudcontroller/models/indy_key_correctness_proof.py index 5c5baf81..0c915e02 100644 --- a/aries_cloudcontroller/models/indy_key_correctness_proof.py +++ b/aries_cloudcontroller/models/indy_key_correctness_proof.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -66,7 +66,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyKeyCorrectnessProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_non_revoc_proof.py b/aries_cloudcontroller/models/indy_non_revoc_proof.py index 507859d5..d08a7819 100644 --- a/aries_cloudcontroller/models/indy_non_revoc_proof.py +++ b/aries_cloudcontroller/models/indy_non_revoc_proof.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyNonRevocProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_non_revocation_interval.py b/aries_cloudcontroller/models/indy_non_revocation_interval.py index ad12c960..ecc2d78c 100644 --- a/aries_cloudcontroller/models/indy_non_revocation_interval.py +++ b/aries_cloudcontroller/models/indy_non_revocation_interval.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyNonRevocationInterval from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_pres_attr_spec.py b/aries_cloudcontroller/models/indy_pres_attr_spec.py index 537efad2..37e9ee76 100644 --- a/aries_cloudcontroller/models/indy_pres_attr_spec.py +++ b/aries_cloudcontroller/models/indy_pres_attr_spec.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -75,7 +75,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyPresAttrSpec from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_pres_pred_spec.py b/aries_cloudcontroller/models/indy_pres_pred_spec.py index 5508c27a..7cf029e4 100644 --- a/aries_cloudcontroller/models/indy_pres_pred_spec.py +++ b/aries_cloudcontroller/models/indy_pres_pred_spec.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -78,7 +78,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyPresPredSpec from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_pres_preview.py b/aries_cloudcontroller/models/indy_pres_preview.py index 3ff07112..4516ce44 100644 --- a/aries_cloudcontroller/models/indy_pres_preview.py +++ b/aries_cloudcontroller/models/indy_pres_preview.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -51,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyPresPreview from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_pres_spec.py b/aries_cloudcontroller/models/indy_pres_spec.py index bc88ce58..cd70524b 100644 --- a/aries_cloudcontroller/models/indy_pres_spec.py +++ b/aries_cloudcontroller/models/indy_pres_spec.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -67,7 +67,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyPresSpec from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_primary_proof.py b/aries_cloudcontroller/models/indy_primary_proof.py index b4015fbc..91fe181b 100644 --- a/aries_cloudcontroller/models/indy_primary_proof.py +++ b/aries_cloudcontroller/models/indy_primary_proof.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyPrimaryProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof.py b/aries_cloudcontroller/models/indy_proof.py index bb777825..780a979b 100644 --- a/aries_cloudcontroller/models/indy_proof.py +++ b/aries_cloudcontroller/models/indy_proof.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -58,7 +58,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof_identifier.py b/aries_cloudcontroller/models/indy_proof_identifier.py index afdcd5f8..9fafc898 100644 --- a/aries_cloudcontroller/models/indy_proof_identifier.py +++ b/aries_cloudcontroller/models/indy_proof_identifier.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -107,7 +107,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofIdentifier from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof_proof.py b/aries_cloudcontroller/models/indy_proof_proof.py index 40d04209..83246e28 100644 --- a/aries_cloudcontroller/models/indy_proof_proof.py +++ b/aries_cloudcontroller/models/indy_proof_proof.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -56,7 +56,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof_proof_aggregated_proof.py b/aries_cloudcontroller/models/indy_proof_proof_aggregated_proof.py index 53d92e4b..b407fb01 100644 --- a/aries_cloudcontroller/models/indy_proof_proof_aggregated_proof.py +++ b/aries_cloudcontroller/models/indy_proof_proof_aggregated_proof.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofProofAggregatedProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof_proof_proofs_proof.py b/aries_cloudcontroller/models/indy_proof_proof_proofs_proof.py index 51a9afb1..e81d4a82 100644 --- a/aries_cloudcontroller/models/indy_proof_proof_proofs_proof.py +++ b/aries_cloudcontroller/models/indy_proof_proof_proofs_proof.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofProofProofsProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof_req_attr_spec.py b/aries_cloudcontroller/models/indy_proof_req_attr_spec.py index bca950c7..9668bfcd 100644 --- a/aries_cloudcontroller/models/indy_proof_req_attr_spec.py +++ b/aries_cloudcontroller/models/indy_proof_req_attr_spec.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -56,7 +56,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofReqAttrSpec from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. 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 b3eae915..0ae8d560 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 @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofReqAttrSpecNonRevoked from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof_req_pred_spec.py b/aries_cloudcontroller/models/indy_proof_req_pred_spec.py index cbb13601..e0b5fdab 100644 --- a/aries_cloudcontroller/models/indy_proof_req_pred_spec.py +++ b/aries_cloudcontroller/models/indy_proof_req_pred_spec.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr, field_validator from typing_extensions import Self @@ -68,7 +68,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofReqPredSpec from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. 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 a77e15dd..d77b1ebe 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 @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofReqPredSpecNonRevoked from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof_request.py b/aries_cloudcontroller/models/indy_proof_request.py index a3894a7a..c6186f8f 100644 --- a/aries_cloudcontroller/models/indy_proof_request.py +++ b/aries_cloudcontroller/models/indy_proof_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -91,7 +91,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof_request_non_revoked.py b/aries_cloudcontroller/models/indy_proof_request_non_revoked.py index f4d7c44d..6de940a1 100644 --- a/aries_cloudcontroller/models/indy_proof_request_non_revoked.py +++ b/aries_cloudcontroller/models/indy_proof_request_non_revoked.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofRequestNonRevoked from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof_requested_proof.py b/aries_cloudcontroller/models/indy_proof_requested_proof.py index 1b745f38..fcbcd1ab 100644 --- a/aries_cloudcontroller/models/indy_proof_requested_proof.py +++ b/aries_cloudcontroller/models/indy_proof_requested_proof.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -76,7 +76,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofRequestedProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof_requested_proof_predicate.py b/aries_cloudcontroller/models/indy_proof_requested_proof_predicate.py index a6ec37a8..b8936ffa 100644 --- a/aries_cloudcontroller/models/indy_proof_requested_proof_predicate.py +++ b/aries_cloudcontroller/models/indy_proof_requested_proof_predicate.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofRequestedProofPredicate from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_proof_requested_proof_revealed_attr.py b/aries_cloudcontroller/models/indy_proof_requested_proof_revealed_attr.py index 26ec18af..0684893d 100644 --- a/aries_cloudcontroller/models/indy_proof_requested_proof_revealed_attr.py +++ b/aries_cloudcontroller/models/indy_proof_requested_proof_revealed_attr.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -62,7 +62,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofRequestedProofRevealedAttr from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. 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 42423069..840cf6e7 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 @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt from typing_extensions import Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyProofRequestedProofRevealedAttrGroup from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_requested_creds_requested_attr.py b/aries_cloudcontroller/models/indy_requested_creds_requested_attr.py index 0194ad90..93ea65fe 100644 --- a/aries_cloudcontroller/models/indy_requested_creds_requested_attr.py +++ b/aries_cloudcontroller/models/indy_requested_creds_requested_attr.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyRequestedCredsRequestedAttr from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_requested_creds_requested_pred.py b/aries_cloudcontroller/models/indy_requested_creds_requested_pred.py index 12cf060f..9e246c19 100644 --- a/aries_cloudcontroller/models/indy_requested_creds_requested_pred.py +++ b/aries_cloudcontroller/models/indy_requested_creds_requested_pred.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Annotated, Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyRequestedCredsRequestedPred from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_rev_reg_def.py b/aries_cloudcontroller/models/indy_rev_reg_def.py index 15e0e21a..53126a46 100644 --- a/aries_cloudcontroller/models/indy_rev_reg_def.py +++ b/aries_cloudcontroller/models/indy_rev_reg_def.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -123,7 +123,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyRevRegDef from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_rev_reg_def_value.py b/aries_cloudcontroller/models/indy_rev_reg_def_value.py index 239a6096..2b0d28db 100644 --- a/aries_cloudcontroller/models/indy_rev_reg_def_value.py +++ b/aries_cloudcontroller/models/indy_rev_reg_def_value.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -98,7 +98,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyRevRegDefValue from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. 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 24e1ea70..2eee2887 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 @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyRevRegDefValuePublicKeys from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_rev_reg_def_value_public_keys_accum_key.py b/aries_cloudcontroller/models/indy_rev_reg_def_value_public_keys_accum_key.py index 81b8a083..40a00d98 100644 --- a/aries_cloudcontroller/models/indy_rev_reg_def_value_public_keys_accum_key.py +++ b/aries_cloudcontroller/models/indy_rev_reg_def_value_public_keys_accum_key.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyRevRegDefValuePublicKeysAccumKey from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_rev_reg_entry.py b/aries_cloudcontroller/models/indy_rev_reg_entry.py index 6a43e7b3..ca3cd2e7 100644 --- a/aries_cloudcontroller/models/indy_rev_reg_entry.py +++ b/aries_cloudcontroller/models/indy_rev_reg_entry.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -62,7 +62,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyRevRegEntry from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/indy_rev_reg_entry_value.py b/aries_cloudcontroller/models/indy_rev_reg_entry_value.py index 7884ab1d..376b5e6e 100644 --- a/aries_cloudcontroller/models/indy_rev_reg_entry_value.py +++ b/aries_cloudcontroller/models/indy_rev_reg_entry_value.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr from typing_extensions import Self @@ -51,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IndyRevRegEntryValue from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/inner_cred_def.py b/aries_cloudcontroller/models/inner_cred_def.py index 2a4a4f5c..a2100125 100644 --- a/aries_cloudcontroller/models/inner_cred_def.py +++ b/aries_cloudcontroller/models/inner_cred_def.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of InnerCredDef from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/inner_rev_reg_def.py b/aries_cloudcontroller/models/inner_rev_reg_def.py index 93bc9b70..eebf1b2f 100644 --- a/aries_cloudcontroller/models/inner_rev_reg_def.py +++ b/aries_cloudcontroller/models/inner_rev_reg_def.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr from typing_extensions import Self @@ -60,7 +60,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of InnerRevRegDef from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/input_descriptors.py b/aries_cloudcontroller/models/input_descriptors.py index 7c0d87fa..926c15c9 100644 --- a/aries_cloudcontroller/models/input_descriptors.py +++ b/aries_cloudcontroller/models/input_descriptors.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -69,7 +69,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of InputDescriptors from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/invitation_create_request.py b/aries_cloudcontroller/models/invitation_create_request.py index 22b5b28d..a295b79c 100644 --- a/aries_cloudcontroller/models/invitation_create_request.py +++ b/aries_cloudcontroller/models/invitation_create_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -124,7 +124,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of InvitationCreateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/invitation_message.py b/aries_cloudcontroller/models/invitation_message.py index ae26b6d5..17978305 100644 --- a/aries_cloudcontroller/models/invitation_message.py +++ b/aries_cloudcontroller/models/invitation_message.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set, Union +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -85,7 +85,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of InvitationMessage from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/invitation_record.py b/aries_cloudcontroller/models/invitation_record.py index acbff4f8..8ef12cc5 100644 --- a/aries_cloudcontroller/models/invitation_record.py +++ b/aries_cloudcontroller/models/invitation_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -114,7 +114,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of InvitationRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/invitation_result.py b/aries_cloudcontroller/models/invitation_result.py index 7ad8d783..6fa6bc7b 100644 --- a/aries_cloudcontroller/models/invitation_result.py +++ b/aries_cloudcontroller/models/invitation_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of InvitationResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/issue_credential_request.py b/aries_cloudcontroller/models/issue_credential_request.py index 73f69aa8..337f3ac8 100644 --- a/aries_cloudcontroller/models/issue_credential_request.py +++ b/aries_cloudcontroller/models/issue_credential_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssueCredentialRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/issue_credential_response.py b/aries_cloudcontroller/models/issue_credential_response.py index 492c51dd..5d3b12cc 100644 --- a/aries_cloudcontroller/models/issue_credential_response.py +++ b/aries_cloudcontroller/models/issue_credential_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssueCredentialResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/issuer_cred_rev_record.py b/aries_cloudcontroller/models/issuer_cred_rev_record.py index c15eea72..2c1a88f3 100644 --- a/aries_cloudcontroller/models/issuer_cred_rev_record.py +++ b/aries_cloudcontroller/models/issuer_cred_rev_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -153,7 +153,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuerCredRevRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/issuer_cred_rev_record_schema_anoncreds.py b/aries_cloudcontroller/models/issuer_cred_rev_record_schema_anoncreds.py index 3fc4d868..aec29821 100644 --- a/aries_cloudcontroller/models/issuer_cred_rev_record_schema_anoncreds.py +++ b/aries_cloudcontroller/models/issuer_cred_rev_record_schema_anoncreds.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -113,7 +113,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuerCredRevRecordSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/issuer_rev_reg_record.py b/aries_cloudcontroller/models/issuer_rev_reg_record.py index 4b66760b..aa14e884 100644 --- a/aries_cloudcontroller/models/issuer_rev_reg_record.py +++ b/aries_cloudcontroller/models/issuer_rev_reg_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -216,7 +216,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuerRevRegRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/jws_create.py b/aries_cloudcontroller/models/jws_create.py index fc68d7ef..40cda3a0 100644 --- a/aries_cloudcontroller/models/jws_create.py +++ b/aries_cloudcontroller/models/jws_create.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -87,7 +87,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of JWSCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/jws_verify.py b/aries_cloudcontroller/models/jws_verify.py index 65aca2cb..12532e67 100644 --- a/aries_cloudcontroller/models/jws_verify.py +++ b/aries_cloudcontroller/models/jws_verify.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -58,7 +58,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of JWSVerify from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/jws_verify_response.py b/aries_cloudcontroller/models/jws_verify_response.py index 21fe7570..947e85f0 100644 --- a/aries_cloudcontroller/models/jws_verify_response.py +++ b/aries_cloudcontroller/models/jws_verify_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of JWSVerifyResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/keylist.py b/aries_cloudcontroller/models/keylist.py index 58d03a7d..1dce4534 100644 --- a/aries_cloudcontroller/models/keylist.py +++ b/aries_cloudcontroller/models/keylist.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Keylist from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/keylist_query.py b/aries_cloudcontroller/models/keylist_query.py index 6777078c..1b05788b 100644 --- a/aries_cloudcontroller/models/keylist_query.py +++ b/aries_cloudcontroller/models/keylist_query.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of KeylistQuery from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/keylist_query_filter_request.py b/aries_cloudcontroller/models/keylist_query_filter_request.py index a7a5377c..9b628fe5 100644 --- a/aries_cloudcontroller/models/keylist_query_filter_request.py +++ b/aries_cloudcontroller/models/keylist_query_filter_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of KeylistQueryFilterRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/keylist_query_paginate.py b/aries_cloudcontroller/models/keylist_query_paginate.py index 0d3afea7..518ff0f4 100644 --- a/aries_cloudcontroller/models/keylist_query_paginate.py +++ b/aries_cloudcontroller/models/keylist_query_paginate.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt from typing_extensions import Self @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of KeylistQueryPaginate from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/keylist_update.py b/aries_cloudcontroller/models/keylist_update.py index 9d3bba4f..1e61549c 100644 --- a/aries_cloudcontroller/models/keylist_update.py +++ b/aries_cloudcontroller/models/keylist_update.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of KeylistUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/keylist_update_request.py b/aries_cloudcontroller/models/keylist_update_request.py index fca2139e..e7c0da1c 100644 --- a/aries_cloudcontroller/models/keylist_update_request.py +++ b/aries_cloudcontroller/models/keylist_update_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of KeylistUpdateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/keylist_update_rule.py b/aries_cloudcontroller/models/keylist_update_rule.py index d8ffcc01..edc85f08 100644 --- a/aries_cloudcontroller/models/keylist_update_rule.py +++ b/aries_cloudcontroller/models/keylist_update_rule.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -68,7 +68,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of KeylistUpdateRule from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/ld_proof_vc_detail.py b/aries_cloudcontroller/models/ld_proof_vc_detail.py index b78088df..d6cfdb10 100644 --- a/aries_cloudcontroller/models/ld_proof_vc_detail.py +++ b/aries_cloudcontroller/models/ld_proof_vc_detail.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of LDProofVCDetail from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/ld_proof_vc_options.py b/aries_cloudcontroller/models/ld_proof_vc_options.py index df7203c6..678d01df 100644 --- a/aries_cloudcontroller/models/ld_proof_vc_options.py +++ b/aries_cloudcontroller/models/ld_proof_vc_options.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -103,7 +103,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of LDProofVCOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/ledger_config_instance.py b/aries_cloudcontroller/models/ledger_config_instance.py index c08e4e71..3777164e 100644 --- a/aries_cloudcontroller/models/ledger_config_instance.py +++ b/aries_cloudcontroller/models/ledger_config_instance.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -59,7 +59,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of LedgerConfigInstance from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/ledger_config_list.py b/aries_cloudcontroller/models/ledger_config_list.py index 5f23cdc3..4ecc1a93 100644 --- a/aries_cloudcontroller/models/ledger_config_list.py +++ b/aries_cloudcontroller/models/ledger_config_list.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of LedgerConfigList from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/linked_data_proof.py b/aries_cloudcontroller/models/linked_data_proof.py index 3edd410e..fb34f60c 100644 --- a/aries_cloudcontroller/models/linked_data_proof.py +++ b/aries_cloudcontroller/models/linked_data_proof.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -108,7 +108,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of LinkedDataProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/mediation_deny.py b/aries_cloudcontroller/models/mediation_deny.py index 1db7817e..02f4a18a 100644 --- a/aries_cloudcontroller/models/mediation_deny.py +++ b/aries_cloudcontroller/models/mediation_deny.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of MediationDeny from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/mediation_grant.py b/aries_cloudcontroller/models/mediation_grant.py index c8581c39..b809f15e 100644 --- a/aries_cloudcontroller/models/mediation_grant.py +++ b/aries_cloudcontroller/models/mediation_grant.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -55,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of MediationGrant from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/mediation_id_match_info.py b/aries_cloudcontroller/models/mediation_id_match_info.py index bf04413f..02ed551b 100644 --- a/aries_cloudcontroller/models/mediation_id_match_info.py +++ b/aries_cloudcontroller/models/mediation_id_match_info.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of MediationIdMatchInfo from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/mediation_list.py b/aries_cloudcontroller/models/mediation_list.py index a24b3a71..7c71a50e 100644 --- a/aries_cloudcontroller/models/mediation_list.py +++ b/aries_cloudcontroller/models/mediation_list.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of MediationList from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/mediation_record.py b/aries_cloudcontroller/models/mediation_record.py index cc6a4de0..2eae7af9 100644 --- a/aries_cloudcontroller/models/mediation_record.py +++ b/aries_cloudcontroller/models/mediation_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -100,7 +100,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of MediationRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/menu.py b/aries_cloudcontroller/models/menu.py index 5434eb34..ba9d534d 100644 --- a/aries_cloudcontroller/models/menu.py +++ b/aries_cloudcontroller/models/menu.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -66,7 +66,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Menu from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/menu_form.py b/aries_cloudcontroller/models/menu_form.py index 9c1da3e2..274df286 100644 --- a/aries_cloudcontroller/models/menu_form.py +++ b/aries_cloudcontroller/models/menu_form.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -62,7 +62,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of MenuForm from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/menu_form_param.py b/aries_cloudcontroller/models/menu_form_param.py index d7aac78b..6adadc26 100644 --- a/aries_cloudcontroller/models/menu_form_param.py +++ b/aries_cloudcontroller/models/menu_form_param.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -65,7 +65,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of MenuFormParam from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/menu_json.py b/aries_cloudcontroller/models/menu_json.py index 8e2f766e..390b981d 100644 --- a/aries_cloudcontroller/models/menu_json.py +++ b/aries_cloudcontroller/models/menu_json.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of MenuJson from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/menu_option.py b/aries_cloudcontroller/models/menu_option.py index fada0415..1e67a582 100644 --- a/aries_cloudcontroller/models/menu_option.py +++ b/aries_cloudcontroller/models/menu_option.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -60,7 +60,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of MenuOption from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/model_date.py b/aries_cloudcontroller/models/model_date.py index 70712be1..f7c07e85 100644 --- a/aries_cloudcontroller/models/model_date.py +++ b/aries_cloudcontroller/models/model_date.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModelDate from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/model_schema.py b/aries_cloudcontroller/models/model_schema.py index 0e2aee67..23a48a12 100644 --- a/aries_cloudcontroller/models/model_schema.py +++ b/aries_cloudcontroller/models/model_schema.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -103,7 +103,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModelSchema from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/oob_record.py b/aries_cloudcontroller/models/oob_record.py index ab4bed3b..b5d84dd8 100644 --- a/aries_cloudcontroller/models/oob_record.py +++ b/aries_cloudcontroller/models/oob_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -148,7 +148,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of OobRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/perform_request.py b/aries_cloudcontroller/models/perform_request.py index 0738c26c..2df3c909 100644 --- a/aries_cloudcontroller/models/perform_request.py +++ b/aries_cloudcontroller/models/perform_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PerformRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/ping_request.py b/aries_cloudcontroller/models/ping_request.py index 1e573cbb..c94c6fad 100644 --- a/aries_cloudcontroller/models/ping_request.py +++ b/aries_cloudcontroller/models/ping_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PingRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/ping_request_response.py b/aries_cloudcontroller/models/ping_request_response.py index e86dc607..cac96805 100644 --- a/aries_cloudcontroller/models/ping_request_response.py +++ b/aries_cloudcontroller/models/ping_request_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PingRequestResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/presentation.py b/aries_cloudcontroller/models/presentation.py index a2b541e9..c4de0289 100644 --- a/aries_cloudcontroller/models/presentation.py +++ b/aries_cloudcontroller/models/presentation.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -83,7 +83,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Presentation from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/presentation_definition.py b/aries_cloudcontroller/models/presentation_definition.py index e5573f0f..24b0d9f4 100644 --- a/aries_cloudcontroller/models/presentation_definition.py +++ b/aries_cloudcontroller/models/presentation_definition.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -84,7 +84,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PresentationDefinition from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/presentation_proposal.py b/aries_cloudcontroller/models/presentation_proposal.py index 6d15f8ac..ef23ae51 100644 --- a/aries_cloudcontroller/models/presentation_proposal.py +++ b/aries_cloudcontroller/models/presentation_proposal.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -60,7 +60,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PresentationProposal from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/presentation_request.py b/aries_cloudcontroller/models/presentation_request.py index 7076819e..53b55325 100644 --- a/aries_cloudcontroller/models/presentation_request.py +++ b/aries_cloudcontroller/models/presentation_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -62,7 +62,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PresentationRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/presentation_verification_result.py b/aries_cloudcontroller/models/presentation_verification_result.py index fa238f05..39f569ff 100644 --- a/aries_cloudcontroller/models/presentation_verification_result.py +++ b/aries_cloudcontroller/models/presentation_verification_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictBool, StrictStr from typing_extensions import Self @@ -56,7 +56,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PresentationVerificationResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/profile_settings.py b/aries_cloudcontroller/models/profile_settings.py index ec8b1ac7..9a3df5ff 100644 --- a/aries_cloudcontroller/models/profile_settings.py +++ b/aries_cloudcontroller/models/profile_settings.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ProfileSettings from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/proof_result.py b/aries_cloudcontroller/models/proof_result.py index bd181f70..779c8e0a 100644 --- a/aries_cloudcontroller/models/proof_result.py +++ b/aries_cloudcontroller/models/proof_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictBool, StrictStr from typing_extensions import Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ProofResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/protocol_descriptor.py b/aries_cloudcontroller/models/protocol_descriptor.py index c0baf139..c756c712 100644 --- a/aries_cloudcontroller/models/protocol_descriptor.py +++ b/aries_cloudcontroller/models/protocol_descriptor.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ProtocolDescriptor from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/prove_presentation_request.py b/aries_cloudcontroller/models/prove_presentation_request.py index 3bef6284..e45c5add 100644 --- a/aries_cloudcontroller/models/prove_presentation_request.py +++ b/aries_cloudcontroller/models/prove_presentation_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ProvePresentationRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/prove_presentation_response.py b/aries_cloudcontroller/models/prove_presentation_response.py index 2e3535f0..364f9b11 100644 --- a/aries_cloudcontroller/models/prove_presentation_response.py +++ b/aries_cloudcontroller/models/prove_presentation_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ProvePresentationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/publish_revocations.py b/aries_cloudcontroller/models/publish_revocations.py index 469c177a..d8a9956a 100644 --- a/aries_cloudcontroller/models/publish_revocations.py +++ b/aries_cloudcontroller/models/publish_revocations.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PublishRevocations from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/publish_revocations_options.py b/aries_cloudcontroller/models/publish_revocations_options.py index 73658f95..a8c1cbad 100644 --- a/aries_cloudcontroller/models/publish_revocations_options.py +++ b/aries_cloudcontroller/models/publish_revocations_options.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -55,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PublishRevocationsOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/publish_revocations_result_schema_anoncreds.py b/aries_cloudcontroller/models/publish_revocations_result_schema_anoncreds.py index eb3d01ed..a165fbc4 100644 --- a/aries_cloudcontroller/models/publish_revocations_result_schema_anoncreds.py +++ b/aries_cloudcontroller/models/publish_revocations_result_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PublishRevocationsResultSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/publish_revocations_schema_anoncreds.py b/aries_cloudcontroller/models/publish_revocations_schema_anoncreds.py index 0c2dfcfc..87c8d8a1 100644 --- a/aries_cloudcontroller/models/publish_revocations_schema_anoncreds.py +++ b/aries_cloudcontroller/models/publish_revocations_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -51,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PublishRevocationsSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/purpose_result.py b/aries_cloudcontroller/models/purpose_result.py index 2de40ebd..1b6aadf6 100644 --- a/aries_cloudcontroller/models/purpose_result.py +++ b/aries_cloudcontroller/models/purpose_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictBool, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PurposeResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/queries.py b/aries_cloudcontroller/models/queries.py index a24ec317..9eb6a41f 100644 --- a/aries_cloudcontroller/models/queries.py +++ b/aries_cloudcontroller/models/queries.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Queries from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/query.py b/aries_cloudcontroller/models/query.py index 6f72e645..b22f5f64 100644 --- a/aries_cloudcontroller/models/query.py +++ b/aries_cloudcontroller/models/query.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Query from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/query_item.py b/aries_cloudcontroller/models/query_item.py index b899a077..3b10d4ed 100644 --- a/aries_cloudcontroller/models/query_item.py +++ b/aries_cloudcontroller/models/query_item.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of QueryItem from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/raw_encoded.py b/aries_cloudcontroller/models/raw_encoded.py index 2508d736..25bcdc7f 100644 --- a/aries_cloudcontroller/models/raw_encoded.py +++ b/aries_cloudcontroller/models/raw_encoded.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -59,7 +59,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RawEncoded from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/receive_invitation_request.py b/aries_cloudcontroller/models/receive_invitation_request.py index 35a56078..69bc6df6 100644 --- a/aries_cloudcontroller/models/receive_invitation_request.py +++ b/aries_cloudcontroller/models/receive_invitation_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -97,7 +97,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ReceiveInvitationRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/remove_wallet_request.py b/aries_cloudcontroller/models/remove_wallet_request.py index 7aa50ce2..1a56ac43 100644 --- a/aries_cloudcontroller/models/remove_wallet_request.py +++ b/aries_cloudcontroller/models/remove_wallet_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RemoveWalletRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/resolution_result.py b/aries_cloudcontroller/models/resolution_result.py index d1b923ac..8b0a57c5 100644 --- a/aries_cloudcontroller/models/resolution_result.py +++ b/aries_cloudcontroller/models/resolution_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ResolutionResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_list.py b/aries_cloudcontroller/models/rev_list.py index ee7d4f8e..1e1aeab5 100644 --- a/aries_cloudcontroller/models/rev_list.py +++ b/aries_cloudcontroller/models/rev_list.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr from typing_extensions import Self @@ -73,7 +73,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevList from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_list_create_request.py b/aries_cloudcontroller/models/rev_list_create_request.py index 5f72a14a..4311d3a9 100644 --- a/aries_cloudcontroller/models/rev_list_create_request.py +++ b/aries_cloudcontroller/models/rev_list_create_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevListCreateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_list_options.py b/aries_cloudcontroller/models/rev_list_options.py index 27e75e9e..7eeaf8d7 100644 --- a/aries_cloudcontroller/models/rev_list_options.py +++ b/aries_cloudcontroller/models/rev_list_options.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -55,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevListOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_list_result.py b/aries_cloudcontroller/models/rev_list_result.py index dd5bbbcf..c466396d 100644 --- a/aries_cloudcontroller/models/rev_list_result.py +++ b/aries_cloudcontroller/models/rev_list_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevListResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_list_state.py b/aries_cloudcontroller/models/rev_list_state.py index a96c96dc..d7869c1e 100644 --- a/aries_cloudcontroller/models/rev_list_state.py +++ b/aries_cloudcontroller/models/rev_list_state.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -61,7 +61,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevListState from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_create_request.py b/aries_cloudcontroller/models/rev_reg_create_request.py index fbcdd471..529c9083 100644 --- a/aries_cloudcontroller/models/rev_reg_create_request.py +++ b/aries_cloudcontroller/models/rev_reg_create_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -66,7 +66,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegCreateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_create_request_schema_anoncreds.py b/aries_cloudcontroller/models/rev_reg_create_request_schema_anoncreds.py index 692bf704..2cb5e897 100644 --- a/aries_cloudcontroller/models/rev_reg_create_request_schema_anoncreds.py +++ b/aries_cloudcontroller/models/rev_reg_create_request_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegCreateRequestSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_def.py b/aries_cloudcontroller/models/rev_reg_def.py index bb9e1930..6553acc0 100644 --- a/aries_cloudcontroller/models/rev_reg_def.py +++ b/aries_cloudcontroller/models/rev_reg_def.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -64,7 +64,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegDef from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_def_options.py b/aries_cloudcontroller/models/rev_reg_def_options.py index 51781faa..8e56f1ea 100644 --- a/aries_cloudcontroller/models/rev_reg_def_options.py +++ b/aries_cloudcontroller/models/rev_reg_def_options.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -55,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegDefOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_def_result.py b/aries_cloudcontroller/models/rev_reg_def_result.py index f8c19e5d..31d1f6aa 100644 --- a/aries_cloudcontroller/models/rev_reg_def_result.py +++ b/aries_cloudcontroller/models/rev_reg_def_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegDefResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_def_state.py b/aries_cloudcontroller/models/rev_reg_def_state.py index df2e94f5..0e1bcb3d 100644 --- a/aries_cloudcontroller/models/rev_reg_def_state.py +++ b/aries_cloudcontroller/models/rev_reg_def_state.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -70,7 +70,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegDefState from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_def_value.py b/aries_cloudcontroller/models/rev_reg_def_value.py index d31a2cd2..78a2c4ea 100644 --- a/aries_cloudcontroller/models/rev_reg_def_value.py +++ b/aries_cloudcontroller/models/rev_reg_def_value.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr from typing_extensions import Self @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegDefValue from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_issued_result.py b/aries_cloudcontroller/models/rev_reg_issued_result.py index a21e2049..b2e080e8 100644 --- a/aries_cloudcontroller/models/rev_reg_issued_result.py +++ b/aries_cloudcontroller/models/rev_reg_issued_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegIssuedResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_issued_result_schema_anoncreds.py b/aries_cloudcontroller/models/rev_reg_issued_result_schema_anoncreds.py index f37e40c8..a5edd6fa 100644 --- a/aries_cloudcontroller/models/rev_reg_issued_result_schema_anoncreds.py +++ b/aries_cloudcontroller/models/rev_reg_issued_result_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegIssuedResultSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_result.py b/aries_cloudcontroller/models/rev_reg_result.py index 53f1d785..0ddb5909 100644 --- a/aries_cloudcontroller/models/rev_reg_result.py +++ b/aries_cloudcontroller/models/rev_reg_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_result_schema_anoncreds.py b/aries_cloudcontroller/models/rev_reg_result_schema_anoncreds.py index 0961d32a..eb1a2904 100644 --- a/aries_cloudcontroller/models/rev_reg_result_schema_anoncreds.py +++ b/aries_cloudcontroller/models/rev_reg_result_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegResultSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_update_tails_file_uri.py b/aries_cloudcontroller/models/rev_reg_update_tails_file_uri.py index 51e1b524..cf5e3a8d 100644 --- a/aries_cloudcontroller/models/rev_reg_update_tails_file_uri.py +++ b/aries_cloudcontroller/models/rev_reg_update_tails_file_uri.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegUpdateTailsFileUri from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_wallet_updated_result.py b/aries_cloudcontroller/models/rev_reg_wallet_updated_result.py index bf16365d..9593cc46 100644 --- a/aries_cloudcontroller/models/rev_reg_wallet_updated_result.py +++ b/aries_cloudcontroller/models/rev_reg_wallet_updated_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegWalletUpdatedResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_reg_wallet_updated_result_schema_anoncreds.py b/aries_cloudcontroller/models/rev_reg_wallet_updated_result_schema_anoncreds.py index 7b0b7eed..f7978982 100644 --- a/aries_cloudcontroller/models/rev_reg_wallet_updated_result_schema_anoncreds.py +++ b/aries_cloudcontroller/models/rev_reg_wallet_updated_result_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegWalletUpdatedResultSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_regs_created.py b/aries_cloudcontroller/models/rev_regs_created.py index 746c1c39..7a0371a4 100644 --- a/aries_cloudcontroller/models/rev_regs_created.py +++ b/aries_cloudcontroller/models/rev_regs_created.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegsCreated from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rev_regs_created_schema_anoncreds.py b/aries_cloudcontroller/models/rev_regs_created_schema_anoncreds.py index c923b18b..bef62232 100644 --- a/aries_cloudcontroller/models/rev_regs_created_schema_anoncreds.py +++ b/aries_cloudcontroller/models/rev_regs_created_schema_anoncreds.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevRegsCreatedSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/revoke_request.py b/aries_cloudcontroller/models/revoke_request.py index f15e285e..12ba67f6 100644 --- a/aries_cloudcontroller/models/revoke_request.py +++ b/aries_cloudcontroller/models/revoke_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -152,7 +152,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevokeRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/revoke_request_schema_anoncreds.py b/aries_cloudcontroller/models/revoke_request_schema_anoncreds.py index ea3c3b57..f322341c 100644 --- a/aries_cloudcontroller/models/revoke_request_schema_anoncreds.py +++ b/aries_cloudcontroller/models/revoke_request_schema_anoncreds.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -152,7 +152,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RevokeRequestSchemaAnoncreds from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/rotate.py b/aries_cloudcontroller/models/rotate.py index 03962380..ef0610ab 100644 --- a/aries_cloudcontroller/models/rotate.py +++ b/aries_cloudcontroller/models/rotate.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -51,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Rotate from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/route_record.py b/aries_cloudcontroller/models/route_record.py index e88332a7..418b8a20 100644 --- a/aries_cloudcontroller/models/route_record.py +++ b/aries_cloudcontroller/models/route_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -96,7 +96,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of RouteRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/schema_get_result.py b/aries_cloudcontroller/models/schema_get_result.py index 155a427a..38ad4449 100644 --- a/aries_cloudcontroller/models/schema_get_result.py +++ b/aries_cloudcontroller/models/schema_get_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SchemaGetResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/schema_input_descriptor.py b/aries_cloudcontroller/models/schema_input_descriptor.py index 13b8cd29..29ccaf33 100644 --- a/aries_cloudcontroller/models/schema_input_descriptor.py +++ b/aries_cloudcontroller/models/schema_input_descriptor.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SchemaInputDescriptor from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/schema_post_option.py b/aries_cloudcontroller/models/schema_post_option.py index 1b8ecdcf..b2243c3e 100644 --- a/aries_cloudcontroller/models/schema_post_option.py +++ b/aries_cloudcontroller/models/schema_post_option.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -55,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SchemaPostOption from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/schema_post_request.py b/aries_cloudcontroller/models/schema_post_request.py index cd78f503..59226b6d 100644 --- a/aries_cloudcontroller/models/schema_post_request.py +++ b/aries_cloudcontroller/models/schema_post_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SchemaPostRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/schema_result.py b/aries_cloudcontroller/models/schema_result.py index e0654113..909c12d1 100644 --- a/aries_cloudcontroller/models/schema_result.py +++ b/aries_cloudcontroller/models/schema_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SchemaResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/schema_send_request.py b/aries_cloudcontroller/models/schema_send_request.py index f14fd38e..439a0afd 100644 --- a/aries_cloudcontroller/models/schema_send_request.py +++ b/aries_cloudcontroller/models/schema_send_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SchemaSendRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/schema_send_result.py b/aries_cloudcontroller/models/schema_send_result.py index dc0b82d7..443baead 100644 --- a/aries_cloudcontroller/models/schema_send_result.py +++ b/aries_cloudcontroller/models/schema_send_result.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -64,7 +64,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SchemaSendResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/schema_state.py b/aries_cloudcontroller/models/schema_state.py index bb613877..2db6da43 100644 --- a/aries_cloudcontroller/models/schema_state.py +++ b/aries_cloudcontroller/models/schema_state.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -62,7 +62,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SchemaState from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/schemas_created_result.py b/aries_cloudcontroller/models/schemas_created_result.py index aed2e23d..e5dc0fe5 100644 --- a/aries_cloudcontroller/models/schemas_created_result.py +++ b/aries_cloudcontroller/models/schemas_created_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SchemasCreatedResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/schemas_input_descriptor_filter.py b/aries_cloudcontroller/models/schemas_input_descriptor_filter.py index 3ea116eb..f574327f 100644 --- a/aries_cloudcontroller/models/schemas_input_descriptor_filter.py +++ b/aries_cloudcontroller/models/schemas_input_descriptor_filter.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SchemasInputDescriptorFilter from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/sdjws_create.py b/aries_cloudcontroller/models/sdjws_create.py index 74d88665..38f46f55 100644 --- a/aries_cloudcontroller/models/sdjws_create.py +++ b/aries_cloudcontroller/models/sdjws_create.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -89,7 +89,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SDJWSCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/sdjws_verify.py b/aries_cloudcontroller/models/sdjws_verify.py index e135bfe3..985910df 100644 --- a/aries_cloudcontroller/models/sdjws_verify.py +++ b/aries_cloudcontroller/models/sdjws_verify.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, field_validator from typing_extensions import Annotated, Self @@ -61,7 +61,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SDJWSVerify from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/sdjws_verify_response.py b/aries_cloudcontroller/models/sdjws_verify_response.py index b38edc9a..94765375 100644 --- a/aries_cloudcontroller/models/sdjws_verify_response.py +++ b/aries_cloudcontroller/models/sdjws_verify_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set, Union +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -60,7 +60,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SDJWSVerifyResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/send_menu.py b/aries_cloudcontroller/models/send_menu.py index 620de583..b05b85f7 100644 --- a/aries_cloudcontroller/models/send_menu.py +++ b/aries_cloudcontroller/models/send_menu.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SendMenu from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/send_message.py b/aries_cloudcontroller/models/send_message.py index 27b4d7b5..514f2a04 100644 --- a/aries_cloudcontroller/models/send_message.py +++ b/aries_cloudcontroller/models/send_message.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SendMessage from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/service_decorator.py b/aries_cloudcontroller/models/service_decorator.py index d6e539cd..cf2df4f2 100644 --- a/aries_cloudcontroller/models/service_decorator.py +++ b/aries_cloudcontroller/models/service_decorator.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Annotated, Self @@ -58,7 +58,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ServiceDecorator from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/sign_request.py b/aries_cloudcontroller/models/sign_request.py index 20fd6100..5cca8f9b 100644 --- a/aries_cloudcontroller/models/sign_request.py +++ b/aries_cloudcontroller/models/sign_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SignRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/sign_response.py b/aries_cloudcontroller/models/sign_response.py index 8360013c..9f96d34e 100644 --- a/aries_cloudcontroller/models/sign_response.py +++ b/aries_cloudcontroller/models/sign_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SignResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/signature_options.py b/aries_cloudcontroller/models/signature_options.py index 122a77cf..03285718 100644 --- a/aries_cloudcontroller/models/signature_options.py +++ b/aries_cloudcontroller/models/signature_options.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -55,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SignatureOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/signed_doc.py b/aries_cloudcontroller/models/signed_doc.py index e8f91526..9769c369 100644 --- a/aries_cloudcontroller/models/signed_doc.py +++ b/aries_cloudcontroller/models/signed_doc.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SignedDoc from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/submission_requirements.py b/aries_cloudcontroller/models/submission_requirements.py index 203f78eb..5d90a884 100644 --- a/aries_cloudcontroller/models/submission_requirements.py +++ b/aries_cloudcontroller/models/submission_requirements.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr, field_validator from typing_extensions import Self @@ -73,7 +73,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SubmissionRequirements from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/taa_accept.py b/aries_cloudcontroller/models/taa_accept.py index 7e0aceb4..aac0964e 100644 --- a/aries_cloudcontroller/models/taa_accept.py +++ b/aries_cloudcontroller/models/taa_accept.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TAAAccept from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/taa_acceptance.py b/aries_cloudcontroller/models/taa_acceptance.py index 1448bce7..561adacc 100644 --- a/aries_cloudcontroller/models/taa_acceptance.py +++ b/aries_cloudcontroller/models/taa_acceptance.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Annotated, Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TAAAcceptance from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/taa_info.py b/aries_cloudcontroller/models/taa_info.py index 2889f0b9..b499129a 100644 --- a/aries_cloudcontroller/models/taa_info.py +++ b/aries_cloudcontroller/models/taa_info.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictBool from typing_extensions import Self @@ -56,7 +56,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TAAInfo from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/taa_record.py b/aries_cloudcontroller/models/taa_record.py index 1cd004b3..7c01561d 100644 --- a/aries_cloudcontroller/models/taa_record.py +++ b/aries_cloudcontroller/models/taa_record.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TAARecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/taa_result.py b/aries_cloudcontroller/models/taa_result.py index 364ee0a0..2e73de6c 100644 --- a/aries_cloudcontroller/models/taa_result.py +++ b/aries_cloudcontroller/models/taa_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TAAResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/tails_delete_response.py b/aries_cloudcontroller/models/tails_delete_response.py index 6eb3c3b6..182013d4 100644 --- a/aries_cloudcontroller/models/tails_delete_response.py +++ b/aries_cloudcontroller/models/tails_delete_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TailsDeleteResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/transaction_jobs.py b/aries_cloudcontroller/models/transaction_jobs.py index 82299d84..7b2409de 100644 --- a/aries_cloudcontroller/models/transaction_jobs.py +++ b/aries_cloudcontroller/models/transaction_jobs.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -74,7 +74,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TransactionJobs from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/transaction_list.py b/aries_cloudcontroller/models/transaction_list.py index 5080f75b..3cb4a639 100644 --- a/aries_cloudcontroller/models/transaction_list.py +++ b/aries_cloudcontroller/models/transaction_list.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TransactionList from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/transaction_record.py b/aries_cloudcontroller/models/transaction_record.py index 44b9e702..78a5b1e6 100644 --- a/aries_cloudcontroller/models/transaction_record.py +++ b/aries_cloudcontroller/models/transaction_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -125,7 +125,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TransactionRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. 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 9052f79f..1f36f72f 100644 --- a/aries_cloudcontroller/models/txn_or_credential_definition_send_result.py +++ b/aries_cloudcontroller/models/txn_or_credential_definition_send_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TxnOrCredentialDefinitionSendResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/txn_or_publish_revocations_result.py b/aries_cloudcontroller/models/txn_or_publish_revocations_result.py index 8355e74a..a36e9716 100644 --- a/aries_cloudcontroller/models/txn_or_publish_revocations_result.py +++ b/aries_cloudcontroller/models/txn_or_publish_revocations_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Annotated, Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TxnOrPublishRevocationsResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. 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 cc8b9a48..440047ba 100644 --- a/aries_cloudcontroller/models/txn_or_register_ledger_nym_response.py +++ b/aries_cloudcontroller/models/txn_or_register_ledger_nym_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool from typing_extensions import Self @@ -51,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TxnOrRegisterLedgerNymResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/txn_or_rev_reg_result.py b/aries_cloudcontroller/models/txn_or_rev_reg_result.py index 7242636d..5937c847 100644 --- a/aries_cloudcontroller/models/txn_or_rev_reg_result.py +++ b/aries_cloudcontroller/models/txn_or_rev_reg_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -51,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TxnOrRevRegResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/txn_or_schema_send_result.py b/aries_cloudcontroller/models/txn_or_schema_send_result.py index a0d66eae..ac942251 100644 --- a/aries_cloudcontroller/models/txn_or_schema_send_result.py +++ b/aries_cloudcontroller/models/txn_or_schema_send_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TxnOrSchemaSendResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/update_key_request.py b/aries_cloudcontroller/models/update_key_request.py index 1ae051df..7a4e58df 100644 --- a/aries_cloudcontroller/models/update_key_request.py +++ b/aries_cloudcontroller/models/update_key_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of UpdateKeyRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/update_key_response.py b/aries_cloudcontroller/models/update_key_response.py index 96481903..63595ffe 100644 --- a/aries_cloudcontroller/models/update_key_response.py +++ b/aries_cloudcontroller/models/update_key_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of UpdateKeyResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/update_profile_settings.py b/aries_cloudcontroller/models/update_profile_settings.py index e2c69a7e..3f1f662e 100644 --- a/aries_cloudcontroller/models/update_profile_settings.py +++ b/aries_cloudcontroller/models/update_profile_settings.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of UpdateProfileSettings from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/update_wallet_request.py b/aries_cloudcontroller/models/update_wallet_request.py index 57dc2a5a..3987d06e 100644 --- a/aries_cloudcontroller/models/update_wallet_request.py +++ b/aries_cloudcontroller/models/update_wallet_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Self @@ -80,7 +80,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of UpdateWalletRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_credential_bound_offer_request.py b/aries_cloudcontroller/models/v10_credential_bound_offer_request.py index 7af2de05..805c1671 100644 --- a/aries_cloudcontroller/models/v10_credential_bound_offer_request.py +++ b/aries_cloudcontroller/models/v10_credential_bound_offer_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialBoundOfferRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. 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 1181fd28..7896fdb5 100644 --- a/aries_cloudcontroller/models/v10_credential_conn_free_offer_request.py +++ b/aries_cloudcontroller/models/v10_credential_conn_free_offer_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -84,7 +84,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialConnFreeOfferRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_credential_create.py b/aries_cloudcontroller/models/v10_credential_create.py index 086d7b84..ce29f3f6 100644 --- a/aries_cloudcontroller/models/v10_credential_create.py +++ b/aries_cloudcontroller/models/v10_credential_create.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -155,7 +155,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_credential_exchange.py b/aries_cloudcontroller/models/v10_credential_exchange.py index 501e26ed..e940d7cf 100644 --- a/aries_cloudcontroller/models/v10_credential_exchange.py +++ b/aries_cloudcontroller/models/v10_credential_exchange.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -240,7 +240,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialExchange from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_credential_exchange_auto_remove_request.py b/aries_cloudcontroller/models/v10_credential_exchange_auto_remove_request.py index 9b4fc3f6..8b9e9970 100644 --- a/aries_cloudcontroller/models/v10_credential_exchange_auto_remove_request.py +++ b/aries_cloudcontroller/models/v10_credential_exchange_auto_remove_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialExchangeAutoRemoveRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_credential_exchange_list_result.py b/aries_cloudcontroller/models/v10_credential_exchange_list_result.py index 1f14d168..6c22ae32 100644 --- a/aries_cloudcontroller/models/v10_credential_exchange_list_result.py +++ b/aries_cloudcontroller/models/v10_credential_exchange_list_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialExchangeListResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_credential_free_offer_request.py b/aries_cloudcontroller/models/v10_credential_free_offer_request.py index bdb03578..5be863cf 100644 --- a/aries_cloudcontroller/models/v10_credential_free_offer_request.py +++ b/aries_cloudcontroller/models/v10_credential_free_offer_request.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -86,7 +86,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialFreeOfferRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_credential_issue_request.py b/aries_cloudcontroller/models/v10_credential_issue_request.py index 0b90b861..6040e1e5 100644 --- a/aries_cloudcontroller/models/v10_credential_issue_request.py +++ b/aries_cloudcontroller/models/v10_credential_issue_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialIssueRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_credential_problem_report_request.py b/aries_cloudcontroller/models/v10_credential_problem_report_request.py index 1bd096ca..a023ecca 100644 --- a/aries_cloudcontroller/models/v10_credential_problem_report_request.py +++ b/aries_cloudcontroller/models/v10_credential_problem_report_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialProblemReportRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_credential_proposal_request_mand.py b/aries_cloudcontroller/models/v10_credential_proposal_request_mand.py index b5d0b817..2e0106f8 100644 --- a/aries_cloudcontroller/models/v10_credential_proposal_request_mand.py +++ b/aries_cloudcontroller/models/v10_credential_proposal_request_mand.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -157,7 +157,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialProposalRequestMand from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_credential_proposal_request_opt.py b/aries_cloudcontroller/models/v10_credential_proposal_request_opt.py index 0844dd68..b72b5d69 100644 --- a/aries_cloudcontroller/models/v10_credential_proposal_request_opt.py +++ b/aries_cloudcontroller/models/v10_credential_proposal_request_opt.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -157,7 +157,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialProposalRequestOpt from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_credential_store_request.py b/aries_cloudcontroller/models/v10_credential_store_request.py index 3465396b..738407b4 100644 --- a/aries_cloudcontroller/models/v10_credential_store_request.py +++ b/aries_cloudcontroller/models/v10_credential_store_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10CredentialStoreRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_discovery_exchange_list_result.py b/aries_cloudcontroller/models/v10_discovery_exchange_list_result.py index 7fa29706..6a20b945 100644 --- a/aries_cloudcontroller/models/v10_discovery_exchange_list_result.py +++ b/aries_cloudcontroller/models/v10_discovery_exchange_list_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10DiscoveryExchangeListResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_discovery_record.py b/aries_cloudcontroller/models/v10_discovery_record.py index 4806514a..b40a867b 100644 --- a/aries_cloudcontroller/models/v10_discovery_record.py +++ b/aries_cloudcontroller/models/v10_discovery_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -109,7 +109,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10DiscoveryRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_presentation_create_request_request.py b/aries_cloudcontroller/models/v10_presentation_create_request_request.py index 81c3ef79..cc9a43c1 100644 --- a/aries_cloudcontroller/models/v10_presentation_create_request_request.py +++ b/aries_cloudcontroller/models/v10_presentation_create_request_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -63,7 +63,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10PresentationCreateRequestRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_presentation_exchange.py b/aries_cloudcontroller/models/v10_presentation_exchange.py index 6bddd1c8..ba2fae84 100644 --- a/aries_cloudcontroller/models/v10_presentation_exchange.py +++ b/aries_cloudcontroller/models/v10_presentation_exchange.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -186,7 +186,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10PresentationExchange from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_presentation_exchange_list.py b/aries_cloudcontroller/models/v10_presentation_exchange_list.py index f46a6c53..73bc6578 100644 --- a/aries_cloudcontroller/models/v10_presentation_exchange_list.py +++ b/aries_cloudcontroller/models/v10_presentation_exchange_list.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10PresentationExchangeList from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_presentation_problem_report_request.py b/aries_cloudcontroller/models/v10_presentation_problem_report_request.py index fbb92be4..6e342609 100644 --- a/aries_cloudcontroller/models/v10_presentation_problem_report_request.py +++ b/aries_cloudcontroller/models/v10_presentation_problem_report_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10PresentationProblemReportRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_presentation_proposal_request.py b/aries_cloudcontroller/models/v10_presentation_proposal_request.py index 87fe64af..0268024e 100644 --- a/aries_cloudcontroller/models/v10_presentation_proposal_request.py +++ b/aries_cloudcontroller/models/v10_presentation_proposal_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -68,7 +68,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10PresentationProposalRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_presentation_send_request.py b/aries_cloudcontroller/models/v10_presentation_send_request.py index 4dcac141..bbf9823c 100644 --- a/aries_cloudcontroller/models/v10_presentation_send_request.py +++ b/aries_cloudcontroller/models/v10_presentation_send_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -72,7 +72,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10PresentationSendRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_presentation_send_request_request.py b/aries_cloudcontroller/models/v10_presentation_send_request_request.py index b50d2cc0..dc378a2f 100644 --- a/aries_cloudcontroller/models/v10_presentation_send_request_request.py +++ b/aries_cloudcontroller/models/v10_presentation_send_request_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -65,7 +65,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10PresentationSendRequestRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v10_presentation_send_request_to_proposal.py b/aries_cloudcontroller/models/v10_presentation_send_request_to_proposal.py index 4663e63a..461768ae 100644 --- a/aries_cloudcontroller/models/v10_presentation_send_request_to_proposal.py +++ b/aries_cloudcontroller/models/v10_presentation_send_request_to_proposal.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool from typing_extensions import Self @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V10PresentationSendRequestToProposal from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_attr_spec.py b/aries_cloudcontroller/models/v20_cred_attr_spec.py index 170aedb0..cc177e41 100644 --- a/aries_cloudcontroller/models/v20_cred_attr_spec.py +++ b/aries_cloudcontroller/models/v20_cred_attr_spec.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredAttrSpec from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_bound_offer_request.py b/aries_cloudcontroller/models/v20_cred_bound_offer_request.py index 726b05f7..b35cc088 100644 --- a/aries_cloudcontroller/models/v20_cred_bound_offer_request.py +++ b/aries_cloudcontroller/models/v20_cred_bound_offer_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredBoundOfferRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_ex_free.py b/aries_cloudcontroller/models/v20_cred_ex_free.py index 7a682a15..b03ae5b9 100644 --- a/aries_cloudcontroller/models/v20_cred_ex_free.py +++ b/aries_cloudcontroller/models/v20_cred_ex_free.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -78,7 +78,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredExFree from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_ex_record.py b/aries_cloudcontroller/models/v20_cred_ex_record.py index ae0479a9..cd4f48da 100644 --- a/aries_cloudcontroller/models/v20_cred_ex_record.py +++ b/aries_cloudcontroller/models/v20_cred_ex_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -215,7 +215,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredExRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_ex_record_by_format.py b/aries_cloudcontroller/models/v20_cred_ex_record_by_format.py index a4eb0f05..5cd9b471 100644 --- a/aries_cloudcontroller/models/v20_cred_ex_record_by_format.py +++ b/aries_cloudcontroller/models/v20_cred_ex_record_by_format.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredExRecordByFormat from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_ex_record_detail.py b/aries_cloudcontroller/models/v20_cred_ex_record_detail.py index 0a582f05..a3e5d639 100644 --- a/aries_cloudcontroller/models/v20_cred_ex_record_detail.py +++ b/aries_cloudcontroller/models/v20_cred_ex_record_detail.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -55,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredExRecordDetail from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_ex_record_indy.py b/aries_cloudcontroller/models/v20_cred_ex_record_indy.py index 39fb385e..cc7993f3 100644 --- a/aries_cloudcontroller/models/v20_cred_ex_record_indy.py +++ b/aries_cloudcontroller/models/v20_cred_ex_record_indy.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -137,7 +137,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredExRecordIndy from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_ex_record_ld_proof.py b/aries_cloudcontroller/models/v20_cred_ex_record_ld_proof.py index a3192ecc..460d9ace 100644 --- a/aries_cloudcontroller/models/v20_cred_ex_record_ld_proof.py +++ b/aries_cloudcontroller/models/v20_cred_ex_record_ld_proof.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -99,7 +99,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredExRecordLDProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. 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 9540ae78..0f880d3c 100644 --- a/aries_cloudcontroller/models/v20_cred_ex_record_list_result.py +++ b/aries_cloudcontroller/models/v20_cred_ex_record_list_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredExRecordListResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_filter.py b/aries_cloudcontroller/models/v20_cred_filter.py index 9c014865..0229faa4 100644 --- a/aries_cloudcontroller/models/v20_cred_filter.py +++ b/aries_cloudcontroller/models/v20_cred_filter.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -56,7 +56,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredFilter from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_filter_indy.py b/aries_cloudcontroller/models/v20_cred_filter_indy.py index 9ac7953e..4289924c 100644 --- a/aries_cloudcontroller/models/v20_cred_filter_indy.py +++ b/aries_cloudcontroller/models/v20_cred_filter_indy.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -138,7 +138,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredFilterIndy from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_filter_ld_proof.py b/aries_cloudcontroller/models/v20_cred_filter_ld_proof.py index a617ec1e..5907c503 100644 --- a/aries_cloudcontroller/models/v20_cred_filter_ld_proof.py +++ b/aries_cloudcontroller/models/v20_cred_filter_ld_proof.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredFilterLDProof from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_filter_vcdi.py b/aries_cloudcontroller/models/v20_cred_filter_vcdi.py index d689fc37..26ace8cd 100644 --- a/aries_cloudcontroller/models/v20_cred_filter_vcdi.py +++ b/aries_cloudcontroller/models/v20_cred_filter_vcdi.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -138,7 +138,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredFilterVCDI from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_format.py b/aries_cloudcontroller/models/v20_cred_format.py index 2f48ce9c..0693df70 100644 --- a/aries_cloudcontroller/models/v20_cred_format.py +++ b/aries_cloudcontroller/models/v20_cred_format.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredFormat from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_issue.py b/aries_cloudcontroller/models/v20_cred_issue.py index 05966e60..b7f5bb84 100644 --- a/aries_cloudcontroller/models/v20_cred_issue.py +++ b/aries_cloudcontroller/models/v20_cred_issue.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -70,7 +70,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredIssue from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_issue_problem_report_request.py b/aries_cloudcontroller/models/v20_cred_issue_problem_report_request.py index 7a83e814..10b4ee83 100644 --- a/aries_cloudcontroller/models/v20_cred_issue_problem_report_request.py +++ b/aries_cloudcontroller/models/v20_cred_issue_problem_report_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredIssueProblemReportRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_issue_request.py b/aries_cloudcontroller/models/v20_cred_issue_request.py index e2883beb..85f94a9a 100644 --- a/aries_cloudcontroller/models/v20_cred_issue_request.py +++ b/aries_cloudcontroller/models/v20_cred_issue_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredIssueRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_offer.py b/aries_cloudcontroller/models/v20_cred_offer.py index 0066904f..3063df32 100644 --- a/aries_cloudcontroller/models/v20_cred_offer.py +++ b/aries_cloudcontroller/models/v20_cred_offer.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -73,7 +73,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredOffer from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. 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 638672a1..4d3f4517 100644 --- a/aries_cloudcontroller/models/v20_cred_offer_conn_free_request.py +++ b/aries_cloudcontroller/models/v20_cred_offer_conn_free_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -77,7 +77,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredOfferConnFreeRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_offer_request.py b/aries_cloudcontroller/models/v20_cred_offer_request.py index 12a257fb..735c12c3 100644 --- a/aries_cloudcontroller/models/v20_cred_offer_request.py +++ b/aries_cloudcontroller/models/v20_cred_offer_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -79,7 +79,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredOfferRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_preview.py b/aries_cloudcontroller/models/v20_cred_preview.py index d5d3088f..315e2cf7 100644 --- a/aries_cloudcontroller/models/v20_cred_preview.py +++ b/aries_cloudcontroller/models/v20_cred_preview.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredPreview from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_proposal.py b/aries_cloudcontroller/models/v20_cred_proposal.py index a5172060..7c167a0e 100644 --- a/aries_cloudcontroller/models/v20_cred_proposal.py +++ b/aries_cloudcontroller/models/v20_cred_proposal.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -71,7 +71,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredProposal from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_request.py b/aries_cloudcontroller/models/v20_cred_request.py index bc892500..6c956f4b 100644 --- a/aries_cloudcontroller/models/v20_cred_request.py +++ b/aries_cloudcontroller/models/v20_cred_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -65,7 +65,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_request_free.py b/aries_cloudcontroller/models/v20_cred_request_free.py index 8fafab58..ffb5536d 100644 --- a/aries_cloudcontroller/models/v20_cred_request_free.py +++ b/aries_cloudcontroller/models/v20_cred_request_free.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -70,7 +70,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredRequestFree from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_request_request.py b/aries_cloudcontroller/models/v20_cred_request_request.py index 8fb612c0..0d245e01 100644 --- a/aries_cloudcontroller/models/v20_cred_request_request.py +++ b/aries_cloudcontroller/models/v20_cred_request_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredRequestRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_cred_store_request.py b/aries_cloudcontroller/models/v20_cred_store_request.py index 04459b7b..e825a2d8 100644 --- a/aries_cloudcontroller/models/v20_cred_store_request.py +++ b/aries_cloudcontroller/models/v20_cred_store_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20CredStoreRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_discovery_exchange_list_result.py b/aries_cloudcontroller/models/v20_discovery_exchange_list_result.py index 4b1fb666..a5e65378 100644 --- a/aries_cloudcontroller/models/v20_discovery_exchange_list_result.py +++ b/aries_cloudcontroller/models/v20_discovery_exchange_list_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20DiscoveryExchangeListResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_discovery_exchange_result.py b/aries_cloudcontroller/models/v20_discovery_exchange_result.py index 48e3d87b..d641288c 100644 --- a/aries_cloudcontroller/models/v20_discovery_exchange_result.py +++ b/aries_cloudcontroller/models/v20_discovery_exchange_result.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20DiscoveryExchangeResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_discovery_record.py b/aries_cloudcontroller/models/v20_discovery_record.py index bcfc5200..677d5e4f 100644 --- a/aries_cloudcontroller/models/v20_discovery_record.py +++ b/aries_cloudcontroller/models/v20_discovery_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -111,7 +111,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20DiscoveryRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_issue_cred_schema_core.py b/aries_cloudcontroller/models/v20_issue_cred_schema_core.py index 7207836f..5e6b8acf 100644 --- a/aries_cloudcontroller/models/v20_issue_cred_schema_core.py +++ b/aries_cloudcontroller/models/v20_issue_cred_schema_core.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -72,7 +72,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20IssueCredSchemaCore from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres.py b/aries_cloudcontroller/models/v20_pres.py index 00d2af88..3b8b2375 100644 --- a/aries_cloudcontroller/models/v20_pres.py +++ b/aries_cloudcontroller/models/v20_pres.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -63,7 +63,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20Pres from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_create_request_request.py b/aries_cloudcontroller/models/v20_pres_create_request_request.py index ab69ecfd..efa0fe3c 100644 --- a/aries_cloudcontroller/models/v20_pres_create_request_request.py +++ b/aries_cloudcontroller/models/v20_pres_create_request_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -65,7 +65,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresCreateRequestRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_ex_record.py b/aries_cloudcontroller/models/v20_pres_ex_record.py index fc76364d..48b9d56e 100644 --- a/aries_cloudcontroller/models/v20_pres_ex_record.py +++ b/aries_cloudcontroller/models/v20_pres_ex_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -210,7 +210,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresExRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_ex_record_by_format.py b/aries_cloudcontroller/models/v20_pres_ex_record_by_format.py index f3f7dbb1..087e032c 100644 --- a/aries_cloudcontroller/models/v20_pres_ex_record_by_format.py +++ b/aries_cloudcontroller/models/v20_pres_ex_record_by_format.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresExRecordByFormat from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_ex_record_list.py b/aries_cloudcontroller/models/v20_pres_ex_record_list.py index 7b2a020f..a4780f13 100644 --- a/aries_cloudcontroller/models/v20_pres_ex_record_list.py +++ b/aries_cloudcontroller/models/v20_pres_ex_record_list.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresExRecordList from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_format.py b/aries_cloudcontroller/models/v20_pres_format.py index 6c41c411..b3cb6cc2 100644 --- a/aries_cloudcontroller/models/v20_pres_format.py +++ b/aries_cloudcontroller/models/v20_pres_format.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresFormat from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_problem_report_request.py b/aries_cloudcontroller/models/v20_pres_problem_report_request.py index 0070a226..1c6b7b22 100644 --- a/aries_cloudcontroller/models/v20_pres_problem_report_request.py +++ b/aries_cloudcontroller/models/v20_pres_problem_report_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresProblemReportRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_proposal.py b/aries_cloudcontroller/models/v20_pres_proposal.py index d7d8231e..876d13ff 100644 --- a/aries_cloudcontroller/models/v20_pres_proposal.py +++ b/aries_cloudcontroller/models/v20_pres_proposal.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -66,7 +66,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresProposal from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_proposal_by_format.py b/aries_cloudcontroller/models/v20_pres_proposal_by_format.py index c282eafd..b6be8a59 100644 --- a/aries_cloudcontroller/models/v20_pres_proposal_by_format.py +++ b/aries_cloudcontroller/models/v20_pres_proposal_by_format.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresProposalByFormat from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_proposal_request.py b/aries_cloudcontroller/models/v20_pres_proposal_request.py index 20d294f0..a9ac5fff 100644 --- a/aries_cloudcontroller/models/v20_pres_proposal_request.py +++ b/aries_cloudcontroller/models/v20_pres_proposal_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -70,7 +70,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresProposalRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_request.py b/aries_cloudcontroller/models/v20_pres_request.py index 387b28f2..57a45365 100644 --- a/aries_cloudcontroller/models/v20_pres_request.py +++ b/aries_cloudcontroller/models/v20_pres_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -70,7 +70,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_request_by_format.py b/aries_cloudcontroller/models/v20_pres_request_by_format.py index 4f013ab3..e0d3a5e1 100644 --- a/aries_cloudcontroller/models/v20_pres_request_by_format.py +++ b/aries_cloudcontroller/models/v20_pres_request_by_format.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresRequestByFormat from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_pres_send_request_request.py b/aries_cloudcontroller/models/v20_pres_send_request_request.py index 2bf09cec..791fac38 100644 --- a/aries_cloudcontroller/models/v20_pres_send_request_request.py +++ b/aries_cloudcontroller/models/v20_pres_send_request_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -67,7 +67,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresSendRequestRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. 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 725cc595..651c5257 100644 --- a/aries_cloudcontroller/models/v20_pres_spec_by_format_request.py +++ b/aries_cloudcontroller/models/v20_pres_spec_by_format_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool from typing_extensions import Self @@ -61,7 +61,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresSpecByFormatRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/v20_presentation_send_request_to_proposal.py b/aries_cloudcontroller/models/v20_presentation_send_request_to_proposal.py index e7fa6b61..669b48a8 100644 --- a/aries_cloudcontroller/models/v20_presentation_send_request_to_proposal.py +++ b/aries_cloudcontroller/models/v20_presentation_send_request_to_proposal.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool from typing_extensions import Self @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of V20PresentationSendRequestToProposal from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/vc_record.py b/aries_cloudcontroller/models/vc_record.py index b0e2acbd..c0041c1a 100644 --- a/aries_cloudcontroller/models/vc_record.py +++ b/aries_cloudcontroller/models/vc_record.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Annotated, Self @@ -73,7 +73,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VCRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/vc_record_list.py b/aries_cloudcontroller/models/vc_record_list.py index 1ae24f05..9b92cef5 100644 --- a/aries_cloudcontroller/models/vc_record_list.py +++ b/aries_cloudcontroller/models/vc_record_list.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VCRecordList from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/verifiable_credential.py b/aries_cloudcontroller/models/verifiable_credential.py index d9bede73..28b6af69 100644 --- a/aries_cloudcontroller/models/verifiable_credential.py +++ b/aries_cloudcontroller/models/verifiable_credential.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -117,7 +117,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifiableCredential from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/verifiable_presentation.py b/aries_cloudcontroller/models/verifiable_presentation.py index 06e2695a..72ece8c5 100644 --- a/aries_cloudcontroller/models/verifiable_presentation.py +++ b/aries_cloudcontroller/models/verifiable_presentation.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -81,7 +81,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifiablePresentation from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/verify_credential_request.py b/aries_cloudcontroller/models/verify_credential_request.py index 055e8fcf..9a599085 100644 --- a/aries_cloudcontroller/models/verify_credential_request.py +++ b/aries_cloudcontroller/models/verify_credential_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyCredentialRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/verify_credential_response.py b/aries_cloudcontroller/models/verify_credential_response.py index 77a2ffe7..3532f188 100644 --- a/aries_cloudcontroller/models/verify_credential_response.py +++ b/aries_cloudcontroller/models/verify_credential_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyCredentialResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/verify_di_request.py b/aries_cloudcontroller/models/verify_di_request.py index d0f8b1e1..30253af6 100644 --- a/aries_cloudcontroller/models/verify_di_request.py +++ b/aries_cloudcontroller/models/verify_di_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyDiRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/verify_di_response.py b/aries_cloudcontroller/models/verify_di_response.py index 422ad95b..bf01f1bb 100644 --- a/aries_cloudcontroller/models/verify_di_response.py +++ b/aries_cloudcontroller/models/verify_di_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyDiResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/verify_presentation_request.py b/aries_cloudcontroller/models/verify_presentation_request.py index 279d1bed..8ed59b73 100644 --- a/aries_cloudcontroller/models/verify_presentation_request.py +++ b/aries_cloudcontroller/models/verify_presentation_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyPresentationRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/verify_presentation_response.py b/aries_cloudcontroller/models/verify_presentation_response.py index 707a4c43..75f9c5ad 100644 --- a/aries_cloudcontroller/models/verify_presentation_response.py +++ b/aries_cloudcontroller/models/verify_presentation_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyPresentationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/verify_request.py b/aries_cloudcontroller/models/verify_request.py index 2ac71f26..f0ceddac 100644 --- a/aries_cloudcontroller/models/verify_request.py +++ b/aries_cloudcontroller/models/verify_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr from typing_extensions import Self @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/verify_response.py b/aries_cloudcontroller/models/verify_response.py index e0a49707..19198914 100644 --- a/aries_cloudcontroller/models/verify_response.py +++ b/aries_cloudcontroller/models/verify_response.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictBool, StrictStr from typing_extensions import Self @@ -46,7 +46,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/w3_c_credentials_list_request.py b/aries_cloudcontroller/models/w3_c_credentials_list_request.py index ab3626d9..4236018f 100644 --- a/aries_cloudcontroller/models/w3_c_credentials_list_request.py +++ b/aries_cloudcontroller/models/w3_c_credentials_list_request.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictInt, StrictStr from typing_extensions import Annotated, Self @@ -75,7 +75,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of W3CCredentialsListRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/wallet_list.py b/aries_cloudcontroller/models/wallet_list.py index 8aaf823e..f12dcc56 100644 --- a/aries_cloudcontroller/models/wallet_list.py +++ b/aries_cloudcontroller/models/wallet_list.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field from typing_extensions import Self @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of WalletList from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/wallet_record.py b/aries_cloudcontroller/models/wallet_record.py index fc644a06..03777d16 100644 --- a/aries_cloudcontroller/models/wallet_record.py +++ b/aries_cloudcontroller/models/wallet_record.py @@ -14,11 +14,11 @@ from __future__ import annotations -import json import pprint import re from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, Field, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -103,7 +103,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of WalletRecord from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/models/write_ledger.py b/aries_cloudcontroller/models/write_ledger.py index 2110bb24..f440c5be 100644 --- a/aries_cloudcontroller/models/write_ledger.py +++ b/aries_cloudcontroller/models/write_ledger.py @@ -14,10 +14,10 @@ from __future__ import annotations -import json import pprint from typing import Any, ClassVar, Dict, List, Optional, Set +import orjson from pydantic import BaseModel, StrictStr from typing_extensions import Self @@ -45,7 +45,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of WriteLedger from a JSON string""" - return cls.from_dict(json.loads(json_str)) + return cls.from_dict(orjson.loads(json_str)) def to_dict(self) -> Dict[str, Any]: """Return the dictionary representation of the model using alias. diff --git a/aries_cloudcontroller/rest.py b/aries_cloudcontroller/rest.py index 17bac5c6..47893e2e 100644 --- a/aries_cloudcontroller/rest.py +++ b/aries_cloudcontroller/rest.py @@ -13,13 +13,13 @@ import io -import json import re import ssl from typing import Optional, Union import aiohttp import aiohttp_retry +import orjson from aries_cloudcontroller.configuration import Configuration from aries_cloudcontroller.exceptions import ApiException, ApiValueError @@ -152,7 +152,7 @@ async def request( if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]: if re.search("json", headers["Content-Type"], re.IGNORECASE): if body is not None: - body = json.dumps(body) + body = orjson.dumps(body).decode() args["data"] = body elif headers["Content-Type"] == "application/x-www-form-urlencoded": args["data"] = aiohttp.FormData(post_params) @@ -168,7 +168,7 @@ async def request( else: # Ensures that dict objects are serialized if isinstance(v, dict): - v = json.dumps(v) + v = orjson.dumps(v).decode() elif isinstance(v, int): v = str(v) data.add_field(k, v) diff --git a/requirements.txt b/requirements.txt index 172dd800..e0e734ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ aiohttp>=3.9.4,<4.0 -aiohttp_retry~=2.8.3 +aiohttp_retry~=2.9.0 +orjson>=3.10.10 pydantic>=2.6,<3.0 python-dateutil>=2 typing-extensions>=4,<5.0 diff --git a/setup.py b/setup.py index 6c89d184..91324045 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ def parse_requirements(filename: str): if __name__ == "__main__": setup( name=PACKAGE_NAME, - version="1.1.1b0", + version="1.1.1b1", description="A simple python client for controlling an ACA-Py agent", long_description=long_description, long_description_content_type="text/markdown",