Skip to content

Commit

Permalink
⬆️ Upgrade to ACA-Py 0.12.0 (#169)
Browse files Browse the repository at this point in the history
* Upgrade version to 0.12.0

* 🎨 Update `@type` is no longer read-only

* ✨ New API: VcApiApi (to be renamed to VcApi)

* ✨ New API: AnoncredsSchemasApi

* ⚠️ Deprecations:
- some methods in ConnectionApi,
- `receive_request` in DidExchangeApi,
- all of JsonLdApi, IssueCredentialV10Api and PresentProofV10Api

* ✨ multi_use option in OobRecord

* ✨ ConnectionList and MediationList no longer returns an Optiona List, just a List

* ✨ connection_id is now required in ConnRecord

* ✨ new wallet_type: `askar-anoncreds`. Note: "must be same as base wallet"

* ✨ new field for Credential: `credential_status`

* ✨ fields no longer optional:
- config in AdminConfig
- credential_definition_id in CredentialDefinitionSendResult
- cred_info in IndyCredPrecis
- mediation_id in MediationIdMatchInfo

* ✨ all fields in InvitationResult are no longer optional

* ✨ new optional fields for InvitationCreateRequest:
- use_did and use_did_method

* ✨ new query params for DidExchange.create_request:
- auto_accept
- protocol
- use_did
- use_did_method

* ✨ new query params for DidExchange.accept_invitation:
- use_did
- use_did_method

* ⚠️ Deprecations:
- `endorser_write_txn` in TransactionRecord and EndorseTransaction.create_request

* ✨ new connection protocol available for ConnRecord:
- didexchange/1.1

* ✨ expanded did validator regex expression for my_did and their_did in ConnRecord

* ✨ new query param `create_unique_did` for OutOfBand.create_invitation

* ✨ new method for OutOfBandApi: Delete records associated with invitation

* ✨ new query params for `publish_revocations` and `revoke_credential`:
- conn_id
- create_transaction_for_endorser

* 🎨 Update cspell dictionary

* ✨ New API: DidRotate

* ✨ New API: AnoncredsCredentialDefinitionsApi

* ✨ Models for VcApi

* ✨ Models for VcApi

* ✨ New API: AnoncredsRevocationApi

* ⚠️ Rename of options model: `LDProofVCDetailOptions` to `LDProofVCOptions`

* 🎨 `prover_did` is no longer validated to regex match a DID. See #2731 in hyperledger/aca-py

* ⚠️ DID fields are now marked as required

* 🎨 Update init

* 🎨 add operation ids for anoncreds route

* 🎨 add operation ids for /credential-definitions/{cred_def_id}/write_record

* 🎨 add operation ids for did-rotate

* 🎨 add operation ids for /didexchange/{conn_id}/reject

* 🎨 add operation ids for discover-features

* ⚠️ rename operation ids for /issue-credential-2.0/create-offer

* 🎨 add operation ids for some /ledger endpoints

* 🎨 add operation id for /mediation/update-keylist/{conn_id}

* 🎨 add operation id for /out-of-band/invitations/{invi_msg_id}

* 🎨 add operation ids for /revocation methods. update one

* 🎨 add operation ids for /settings

* 🎨 add operation ids for /vc/

* ⚠️ rename operation ids for sign and verify in /wallet/sd-jwt and /wallet/jwt

* 🎨 modify script to save missing operation ids

* 🎨 applied renaming of operation ids

* 🎨 Updated descriptions from latest aca-py changes

* 🎨

* 🎨 Updated descriptions from latest aca-py changes

* 🎨 fields are now required

* ✨ DID now returns optional metadata associated with the DID

* 🎨 update cspell dictionary

* 🎨 latest openapi specs

* 🎨 add new apis to readme

* 👷 Use python 3.10

* 📌 Pin aiohttp >= 3.9.4

* ✅ fix test to support required fields for new DID model

* ✨ script to remove unwanted methods

* 🎨 Applied removal of unwanted methods (_with_http_info and _without_preload_content methods)

* ✨ add step to rename "vc-api" to "vc"

* 🎨 renamed VcApiApi to VcApi

* 👷 Use python 3.10
  • Loading branch information
ff137 authored Apr 24, 2024
1 parent 9ae2758 commit 369d858
Show file tree
Hide file tree
Showing 401 changed files with 31,501 additions and 30,153 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Python 3
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -28,10 +28,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
- name: Set up Python "3.10"
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/python-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install Python 3
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -30,10 +30,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
- name: Set up Python "3.10"
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -55,7 +55,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
24 changes: 24 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,70 @@
"cSpell.words": [
"acapy",
"Accum",
"acked",
"aiohttp",
"anoncreds",
"askar",
"asyncio",
"Basicmessage",
"binhex",
"cafile",
"Camenisch",
"canonicalized",
"cloudcontroller",
"codegen",
"conn",
"cred",
"credentialsattach",
"Creds",
"crid",
"datetime",
"dateutil",
"deepmerge",
"didcomm",
"didexchange",
"dids",
"DIDX",
"docattach",
"errormsg",
"filtersattach",
"htilde",
"Hyperledger",
"invi",
"JSESSIONID",
"Jsonld",
"Keylist",
"keylists",
"keypair",
"klass",
"lastmod",
"levelname",
"Lysyanskaya",
"Mand",
"Multitenancy",
"Multitenant",
"offersattach",
"oneof",
"openapi",
"Precis",
"Pred",
"Pres",
"presentationsattach",
"proposalsattach",
"prover",
"pydantic",
"pyversion",
"rctxt",
"recs",
"refs",
"Regs",
"requestsattach",
"Revoc",
"rrid",
"SDJWS",
"subwallet",
"subwallets",
"tran",
"Trustping",
"Verkey"
]
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ For legacy versions, please review our release history to found the version comp
Aries CloudController Python provides a robust client for interacting with Aries Cloud Agents (ACA-Py).

- **Fully Typed**: Offers a strongly-typed wrapper around the Aries Cloud Agent Python, enhancing developer experience and reducing errors.
- **Up-to-Date Support**: Compatible with the latest ACA-Py version (0.11.0), ensuring access to the most recent features and improvements.
- **Up-to-Date Support**: Compatible with the latest ACA-Py version (0.12.0), ensuring access to the most recent features and improvements.
- **Auto-Generated Client**: Utilizes OpenAPI definitions for automatic generation, ensuring timely updates in line with new ACA-Py releases.
- **Multi-Tenancy and Authentication Support**: Facilitates working with multi-tenant APIs and integrates various authentication mechanisms.
- **Asynchronous API**: Supports asynchronous operations, enabling efficient handling of I/O-bound tasks.
Expand Down Expand Up @@ -110,12 +110,16 @@ connection = await client.connection.receive_invitation(body=invitation.invitati
The client encompasses various APIs, each corresponding to ACA-Py Swagger UI topics:

- `action_menu`
- `anoncreds_credential_definitions`
- `anoncreds_revocation`
- `anoncreds_schemas`
- `basicmessage`
- `connection`
- `credential_definition`
- `credentials`
- `default`
- `did_exchange`
- `did_rotate`
- `discover_features`
- `discover_features_v2_0`
- `endorse_transaction`
Expand All @@ -135,6 +139,7 @@ The client encompasses various APIs, each corresponding to ACA-Py Swagger UI top
- `server`
- `settings`
- `trustping`
- `vc`
- `wallet`

## Contributing
Expand Down
72 changes: 69 additions & 3 deletions aries_cloudcontroller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,30 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v0.11.0
The version of the OpenAPI document: v0.12.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501


__version__ = "0.11.0"
__version__ = "0.12.0"

from aries_cloudcontroller.acapy_client import AcaPyClient

# import apis into sdk package
from aries_cloudcontroller.api import (
ActionMenuApi,
AnoncredsCredentialDefinitionsApi,
AnoncredsRevocationApi,
AnoncredsSchemasApi,
BasicmessageApi,
ConnectionApi,
CredentialDefinitionApi,
CredentialsApi,
DefaultApi,
DidExchangeApi,
DidRotateApi,
DiscoverFeaturesApi,
DiscoverFeaturesV20Api,
EndorseTransactionApi,
Expand All @@ -46,6 +50,7 @@
ServerApi,
SettingsApi,
TrustpingApi,
VcApi,
WalletApi,
)
from aries_cloudcontroller.api_client import ApiClient
Expand All @@ -72,6 +77,7 @@
AdminStatusLiveliness,
AdminStatusReadiness,
AMLRecord,
AnonCredsSchema,
AttachDecorator,
AttachDecoratorData,
AttachDecoratorData1JWS,
Expand All @@ -96,9 +102,17 @@
CreateWalletTokenRequest,
CreateWalletTokenResponse,
CredAttrSpec,
CredDef,
CredDefPostOptions,
CredDefPostRequest,
CredDefResult,
CredDefState,
CredDefValue,
CredDefValuePrimary,
CredDefValuePrimarySchemaAnoncreds,
CredDefValueRevocation,
CredDefValueRevocationSchemaAnoncreds,
CredDefValueSchemaAnoncreds,
Credential,
CredentialDefinition,
CredentialDefinitionGetResult,
Expand All @@ -111,15 +125,19 @@
CredentialStatusOptions,
CredInfoList,
CredRevIndyRecordsResult,
CredRevIndyRecordsResultSchemaAnoncreds,
CredRevokedResult,
CredRevRecordDetailsResult,
CredRevRecordDetailsResultSchemaAnoncreds,
CredRevRecordResult,
CredRevRecordResultSchemaAnoncreds,
DIDCreate,
DIDCreateOptions,
DIDEndpoint,
DIDEndpointWithType,
DIDList,
DIDResult,
DIDRotateRequestJSON,
DIDXRejectRequest,
DIDXRequest,
DIFField,
Expand All @@ -131,13 +149,20 @@
Disclose,
Disclosures,
Doc,
DocumentVerificationResult,
EndorserInfo,
EndpointsResult,
FetchCredentialResponse,
Filter,
Generated,
GetCredDefResult,
GetCredDefsResponse,
GetDIDEndpointResponse,
GetDIDVerkeyResponse,
GetNymRoleResponse,
GetSchemaResult,
GetSchemasResponse,
Hangup,
IndyAttrValue,
IndyCredAbstract,
IndyCredential,
Expand Down Expand Up @@ -180,12 +205,17 @@
IndyRevRegDefValuePublicKeysAccumKey,
IndyRevRegEntry,
IndyRevRegEntryValue,
InnerCredDef,
InnerRevRegDef,
InputDescriptors,
InvitationCreateRequest,
InvitationMessage,
InvitationRecord,
InvitationResult,
IssueCredentialRequest,
IssueCredentialResponse,
IssuerCredRevRecord,
IssuerCredRevRecordSchemaAnoncreds,
IssuerRevRegRecord,
JWSCreate,
JWSVerify,
Expand All @@ -198,7 +228,7 @@
KeylistUpdateRequest,
KeylistUpdateRule,
LDProofVCDetail,
LDProofVCDetailOptions,
LDProofVCOptions,
LedgerConfigInstance,
LedgerConfigList,
LinkedDataProof,
Expand All @@ -218,33 +248,63 @@
PerformRequest,
PingRequest,
PingRequestResponse,
Presentation,
PresentationDefinition,
PresentationProposal,
PresentationRequest,
PresentationVerificationResult,
ProfileSettings,
ProofResult,
ProtocolDescriptor,
ProvePresentationRequest,
ProvePresentationResponse,
PublishRevocations,
PublishRevocationsOptions,
PublishRevocationsResult,
PublishRevocationsSchemaAnoncreds,
PurposeResult,
Queries,
Query,
QueryItem,
RawEncoded,
ReceiveInvitationRequest,
RemoveWalletRequest,
ResolutionResult,
RevList,
RevListCreateRequest,
RevListOptions,
RevListResult,
RevListState,
RevokeRequest,
RevokeRequestSchemaAnoncreds,
RevRegCreateRequest,
RevRegCreateRequestSchemaAnoncreds,
RevRegDef,
RevRegDefOptions,
RevRegDefResult,
RevRegDefState,
RevRegDefValue,
RevRegIssuedResult,
RevRegIssuedResultSchemaAnoncreds,
RevRegResult,
RevRegResultSchemaAnoncreds,
RevRegsCreated,
RevRegsCreatedSchemaAnoncreds,
RevRegUpdateTailsFileUri,
RevRegWalletUpdatedResult,
RevRegWalletUpdatedResultSchemaAnoncreds,
Rotate,
RouteRecord,
SchemaGetResult,
SchemaInputDescriptor,
SchemaPostOption,
SchemaPostRequest,
SchemaResult,
SchemasCreatedResult,
SchemaSendRequest,
SchemaSendResult,
SchemasInputDescriptorFilter,
SchemaState,
SDJWSCreate,
SDJWSVerify,
SDJWSVerifyResponse,
Expand Down Expand Up @@ -340,6 +400,12 @@
V20PresSpecByFormatRequest,
VCRecord,
VCRecordList,
VerifiableCredential,
VerifiablePresentation,
VerifyCredentialRequest,
VerifyCredentialResponse,
VerifyPresentationRequest,
VerifyPresentationResponse,
VerifyRequest,
VerifyResponse,
W3CCredentialsListRequest,
Expand Down
Loading

0 comments on commit 369d858

Please sign in to comment.