Skip to content

Commit 369d858

Browse files
authored
⬆️ Upgrade to ACA-Py 0.12.0 (#169)
* 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
1 parent 9ae2758 commit 369d858

File tree

401 files changed

+31501
-30153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

401 files changed

+31501
-30153
lines changed

.github/workflows/python-publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Python 3
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.9
18+
python-version: "3.10"
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip
@@ -28,10 +28,10 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- uses: actions/checkout@v4
31-
- name: Set up Python 3.9
31+
- name: Set up Python "3.10"
3232
uses: actions/setup-python@v5
3333
with:
34-
python-version: 3.9
34+
python-version: "3.10"
3535
- name: Install dependencies
3636
run: |
3737
python -m pip install --upgrade pip
@@ -53,7 +53,7 @@ jobs:
5353
- name: Set up Python
5454
uses: actions/setup-python@v5
5555
with:
56-
python-version: "3.x"
56+
python-version: "3.10"
5757
- name: Install dependencies
5858
run: |
5959
python -m pip install --upgrade pip

.github/workflows/python-test-publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install Python 3
1818
uses: actions/setup-python@v5
1919
with:
20-
python-version: 3.9
20+
python-version: "3.10"
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
@@ -30,10 +30,10 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- uses: actions/checkout@v4
33-
- name: Set up Python 3.9
33+
- name: Set up Python "3.10"
3434
uses: actions/setup-python@v5
3535
with:
36-
python-version: 3.9
36+
python-version: "3.10"
3737
- name: Install dependencies
3838
run: |
3939
python -m pip install --upgrade pip
@@ -55,7 +55,7 @@ jobs:
5555
- name: Set up Python
5656
uses: actions/setup-python@v5
5757
with:
58-
python-version: "3.x"
58+
python-version: "3.10"
5959
- name: Install dependencies
6060
run: |
6161
python -m pip install --upgrade pip

.vscode/settings.json

+24
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,70 @@
22
"cSpell.words": [
33
"acapy",
44
"Accum",
5+
"acked",
56
"aiohttp",
7+
"anoncreds",
68
"askar",
9+
"asyncio",
710
"Basicmessage",
11+
"binhex",
812
"cafile",
913
"Camenisch",
1014
"canonicalized",
1115
"cloudcontroller",
16+
"codegen",
17+
"conn",
18+
"cred",
1219
"credentialsattach",
1320
"Creds",
1421
"crid",
22+
"datetime",
1523
"dateutil",
24+
"deepmerge",
25+
"didcomm",
1626
"didexchange",
27+
"dids",
1728
"DIDX",
1829
"docattach",
1930
"errormsg",
2031
"filtersattach",
2132
"htilde",
33+
"Hyperledger",
2234
"invi",
2335
"JSESSIONID",
2436
"Jsonld",
2537
"Keylist",
38+
"keylists",
2639
"keypair",
2740
"klass",
41+
"lastmod",
2842
"levelname",
2943
"Lysyanskaya",
3044
"Mand",
3145
"Multitenancy",
46+
"Multitenant",
3247
"offersattach",
3348
"oneof",
49+
"openapi",
50+
"Precis",
51+
"Pred",
52+
"Pres",
3453
"presentationsattach",
3554
"proposalsattach",
55+
"prover",
3656
"pydantic",
3757
"pyversion",
3858
"rctxt",
59+
"recs",
60+
"refs",
3961
"Regs",
4062
"requestsattach",
4163
"Revoc",
4264
"rrid",
4365
"SDJWS",
4466
"subwallet",
67+
"subwallets",
68+
"tran",
4569
"Trustping",
4670
"Verkey"
4771
]

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ For legacy versions, please review our release history to found the version comp
4747
Aries CloudController Python provides a robust client for interacting with Aries Cloud Agents (ACA-Py).
4848

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

112112
- `action_menu`
113+
- `anoncreds_credential_definitions`
114+
- `anoncreds_revocation`
115+
- `anoncreds_schemas`
113116
- `basicmessage`
114117
- `connection`
115118
- `credential_definition`
116119
- `credentials`
117120
- `default`
118121
- `did_exchange`
122+
- `did_rotate`
119123
- `discover_features`
120124
- `discover_features_v2_0`
121125
- `endorse_transaction`
@@ -135,6 +139,7 @@ The client encompasses various APIs, each corresponding to ACA-Py Swagger UI top
135139
- `server`
136140
- `settings`
137141
- `trustping`
142+
- `vc`
138143
- `wallet`
139144

140145
## Contributing

aries_cloudcontroller/__init__.py

+69-3
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,30 @@
77
88
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
99
10-
The version of the OpenAPI document: v0.11.0
10+
The version of the OpenAPI document: v0.12.0
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212
1313
Do not edit the class manually.
1414
""" # noqa: E501
1515

1616

17-
__version__ = "0.11.0"
17+
__version__ = "0.12.0"
1818

1919
from aries_cloudcontroller.acapy_client import AcaPyClient
2020

2121
# import apis into sdk package
2222
from aries_cloudcontroller.api import (
2323
ActionMenuApi,
24+
AnoncredsCredentialDefinitionsApi,
25+
AnoncredsRevocationApi,
26+
AnoncredsSchemasApi,
2427
BasicmessageApi,
2528
ConnectionApi,
2629
CredentialDefinitionApi,
2730
CredentialsApi,
2831
DefaultApi,
2932
DidExchangeApi,
33+
DidRotateApi,
3034
DiscoverFeaturesApi,
3135
DiscoverFeaturesV20Api,
3236
EndorseTransactionApi,
@@ -46,6 +50,7 @@
4650
ServerApi,
4751
SettingsApi,
4852
TrustpingApi,
53+
VcApi,
4954
WalletApi,
5055
)
5156
from aries_cloudcontroller.api_client import ApiClient
@@ -72,6 +77,7 @@
7277
AdminStatusLiveliness,
7378
AdminStatusReadiness,
7479
AMLRecord,
80+
AnonCredsSchema,
7581
AttachDecorator,
7682
AttachDecoratorData,
7783
AttachDecoratorData1JWS,
@@ -96,9 +102,17 @@
96102
CreateWalletTokenRequest,
97103
CreateWalletTokenResponse,
98104
CredAttrSpec,
105+
CredDef,
106+
CredDefPostOptions,
107+
CredDefPostRequest,
108+
CredDefResult,
109+
CredDefState,
99110
CredDefValue,
100111
CredDefValuePrimary,
112+
CredDefValuePrimarySchemaAnoncreds,
101113
CredDefValueRevocation,
114+
CredDefValueRevocationSchemaAnoncreds,
115+
CredDefValueSchemaAnoncreds,
102116
Credential,
103117
CredentialDefinition,
104118
CredentialDefinitionGetResult,
@@ -111,15 +125,19 @@
111125
CredentialStatusOptions,
112126
CredInfoList,
113127
CredRevIndyRecordsResult,
128+
CredRevIndyRecordsResultSchemaAnoncreds,
114129
CredRevokedResult,
115130
CredRevRecordDetailsResult,
131+
CredRevRecordDetailsResultSchemaAnoncreds,
116132
CredRevRecordResult,
133+
CredRevRecordResultSchemaAnoncreds,
117134
DIDCreate,
118135
DIDCreateOptions,
119136
DIDEndpoint,
120137
DIDEndpointWithType,
121138
DIDList,
122139
DIDResult,
140+
DIDRotateRequestJSON,
123141
DIDXRejectRequest,
124142
DIDXRequest,
125143
DIFField,
@@ -131,13 +149,20 @@
131149
Disclose,
132150
Disclosures,
133151
Doc,
152+
DocumentVerificationResult,
134153
EndorserInfo,
135154
EndpointsResult,
155+
FetchCredentialResponse,
136156
Filter,
137157
Generated,
158+
GetCredDefResult,
159+
GetCredDefsResponse,
138160
GetDIDEndpointResponse,
139161
GetDIDVerkeyResponse,
140162
GetNymRoleResponse,
163+
GetSchemaResult,
164+
GetSchemasResponse,
165+
Hangup,
141166
IndyAttrValue,
142167
IndyCredAbstract,
143168
IndyCredential,
@@ -180,12 +205,17 @@
180205
IndyRevRegDefValuePublicKeysAccumKey,
181206
IndyRevRegEntry,
182207
IndyRevRegEntryValue,
208+
InnerCredDef,
209+
InnerRevRegDef,
183210
InputDescriptors,
184211
InvitationCreateRequest,
185212
InvitationMessage,
186213
InvitationRecord,
187214
InvitationResult,
215+
IssueCredentialRequest,
216+
IssueCredentialResponse,
188217
IssuerCredRevRecord,
218+
IssuerCredRevRecordSchemaAnoncreds,
189219
IssuerRevRegRecord,
190220
JWSCreate,
191221
JWSVerify,
@@ -198,7 +228,7 @@
198228
KeylistUpdateRequest,
199229
KeylistUpdateRule,
200230
LDProofVCDetail,
201-
LDProofVCDetailOptions,
231+
LDProofVCOptions,
202232
LedgerConfigInstance,
203233
LedgerConfigList,
204234
LinkedDataProof,
@@ -218,33 +248,63 @@
218248
PerformRequest,
219249
PingRequest,
220250
PingRequestResponse,
251+
Presentation,
221252
PresentationDefinition,
222253
PresentationProposal,
223254
PresentationRequest,
255+
PresentationVerificationResult,
224256
ProfileSettings,
257+
ProofResult,
225258
ProtocolDescriptor,
259+
ProvePresentationRequest,
260+
ProvePresentationResponse,
226261
PublishRevocations,
262+
PublishRevocationsOptions,
263+
PublishRevocationsResult,
264+
PublishRevocationsSchemaAnoncreds,
265+
PurposeResult,
227266
Queries,
228267
Query,
229268
QueryItem,
230269
RawEncoded,
231270
ReceiveInvitationRequest,
232271
RemoveWalletRequest,
233272
ResolutionResult,
273+
RevList,
274+
RevListCreateRequest,
275+
RevListOptions,
276+
RevListResult,
277+
RevListState,
234278
RevokeRequest,
279+
RevokeRequestSchemaAnoncreds,
235280
RevRegCreateRequest,
281+
RevRegCreateRequestSchemaAnoncreds,
282+
RevRegDef,
283+
RevRegDefOptions,
284+
RevRegDefResult,
285+
RevRegDefState,
286+
RevRegDefValue,
236287
RevRegIssuedResult,
288+
RevRegIssuedResultSchemaAnoncreds,
237289
RevRegResult,
290+
RevRegResultSchemaAnoncreds,
238291
RevRegsCreated,
292+
RevRegsCreatedSchemaAnoncreds,
239293
RevRegUpdateTailsFileUri,
240294
RevRegWalletUpdatedResult,
295+
RevRegWalletUpdatedResultSchemaAnoncreds,
296+
Rotate,
241297
RouteRecord,
242298
SchemaGetResult,
243299
SchemaInputDescriptor,
300+
SchemaPostOption,
301+
SchemaPostRequest,
302+
SchemaResult,
244303
SchemasCreatedResult,
245304
SchemaSendRequest,
246305
SchemaSendResult,
247306
SchemasInputDescriptorFilter,
307+
SchemaState,
248308
SDJWSCreate,
249309
SDJWSVerify,
250310
SDJWSVerifyResponse,
@@ -340,6 +400,12 @@
340400
V20PresSpecByFormatRequest,
341401
VCRecord,
342402
VCRecordList,
403+
VerifiableCredential,
404+
VerifiablePresentation,
405+
VerifyCredentialRequest,
406+
VerifyCredentialResponse,
407+
VerifyPresentationRequest,
408+
VerifyPresentationResponse,
343409
VerifyRequest,
344410
VerifyResponse,
345411
W3CCredentialsListRequest,

0 commit comments

Comments
 (0)