Skip to content

Commit 0e8c2b9

Browse files
authored
Merge pull request #91 from didx-xyz/chore/update-080-acapy
Upgrade to v0.8.0 ACA-Py spec
2 parents 7450bce + 79a1608 commit 0e8c2b9

File tree

319 files changed

+1077
-4902
lines changed

Some content is hidden

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

319 files changed

+1077
-4902
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ Each Cloud Controller version maps to a specific ACA-Py version, which is outlin
4646
| 0.5.1-0.5.2 | 0.7.3 |
4747
| 0.6.0-0.6.3 | 0.7.4 |
4848
| 0.7.0 | 0.7.5 |
49+
| 0.8.0 | 0.8.0 |
4950

5051
## Features
5152

5253
Aries Cloud Controller Python is a fully featured client for interacting with ACA-Py.
5354

5455
- Fully Typed wrapper around Aries Cloud Agent Python
55-
- Supports latest ACA-Py version (0.7.5)
56+
- Supports latest ACA-Py version (0.8.0)
5657
- Client is auto generated based on OpenAPI definitions, allowing us to keep up to date with new releases.
5758
- Supports multi-tenant APIs and authentication
5859
- Async API

aries_cloudcontroller/__init__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@
166166
MediationCreateRequest,
167167
MediationDeny,
168168
MediationGrant,
169+
MediationIdMatchInfo,
169170
MediationList,
170171
MediationRecord,
171172
Menu,
@@ -174,6 +175,7 @@
174175
MenuJson,
175176
MenuOption,
176177
ModelSchema,
178+
OobRecord,
177179
PerformRequest,
178180
PingRequest,
179181
PingRequestResponse,
@@ -205,6 +207,7 @@
205207
SchemasInputDescriptorFilter,
206208
SendMenu,
207209
SendMessage,
210+
ServiceDecorator,
208211
SignRequest,
209212
SignResponse,
210213
SignatureOptions,
@@ -215,6 +218,7 @@
215218
TAAInfo,
216219
TAARecord,
217220
TAAResult,
221+
TailsDeleteResponse,
218222
TransactionJobs,
219223
TransactionList,
220224
TransactionRecord,
@@ -236,7 +240,6 @@
236240
V10CredentialProposalRequestOpt,
237241
V10CredentialStoreRequest,
238242
V10DiscoveryExchangeListResult,
239-
V10DiscoveryExchangeResult,
240243
V10DiscoveryRecord,
241244
V10PresentationCreateRequestRequest,
242245
V10PresentationExchange,
@@ -437,6 +440,7 @@
437440
"MediationCreateRequest",
438441
"MediationDeny",
439442
"MediationGrant",
443+
"MediationIdMatchInfo",
440444
"MediationList",
441445
"MediationRecord",
442446
"Menu",
@@ -445,6 +449,7 @@
445449
"MenuJson",
446450
"MenuOption",
447451
"ModelSchema",
452+
"OobRecord",
448453
"PerformRequest",
449454
"PingRequest",
450455
"PingRequestResponse",
@@ -476,6 +481,7 @@
476481
"SchemasInputDescriptorFilter",
477482
"SendMenu",
478483
"SendMessage",
484+
"ServiceDecorator",
479485
"SignRequest",
480486
"SignResponse",
481487
"SignatureOptions",
@@ -486,6 +492,7 @@
486492
"TAAInfo",
487493
"TAARecord",
488494
"TAAResult",
495+
"TailsDeleteResponse",
489496
"TransactionJobs",
490497
"TransactionList",
491498
"TransactionRecord",
@@ -507,7 +514,6 @@
507514
"V10CredentialProposalRequestOpt",
508515
"V10CredentialStoreRequest",
509516
"V10DiscoveryExchangeListResult",
510-
"V10DiscoveryExchangeResult",
511517
"V10DiscoveryRecord",
512518
"V10PresentationCreateRequestRequest",
513519
"V10PresentationExchange",

aries_cloudcontroller/acapy_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def __init__(
1414
admin_insecure: Optional[bool] = False,
1515
tenant_jwt: Optional[str] = None,
1616
):
17-
1817
if not api_key and not admin_insecure:
1918
raise Exception(
2019
"api_key property is missing. Use admin_insecure=True if you want"

aries_cloudcontroller/api/action_menu.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
json,
1414
)
1515

16-
from typing import Dict, List, Optional, Union # noqa: F401
16+
from typing import Any, Dict, List, Optional, Union # noqa: F401
1717

1818
from aries_cloudcontroller.uplink_util import bool_query
1919

@@ -23,7 +23,7 @@
2323

2424

2525
class ActionMenuApi(Consumer):
26-
async def close_active_menu(self, *, conn_id: str) -> Dict:
26+
async def close_active_menu(self, *, conn_id: str) -> Dict[str, Any]:
2727
"""Close the active menu associated with a connection"""
2828
return await self.__close_active_menu(
2929
conn_id=conn_id,
@@ -37,20 +37,22 @@ async def fetch_active_menu(self, *, conn_id: str) -> ActionMenuFetchResult:
3737

3838
async def perform_action(
3939
self, *, conn_id: str, body: Optional[PerformRequest] = None
40-
) -> Dict:
40+
) -> Dict[str, Any]:
4141
"""Perform an action associated with the active menu"""
4242
return await self.__perform_action(
4343
conn_id=conn_id,
4444
body=body,
4545
)
4646

47-
async def request_active_menu(self, *, conn_id: str) -> Dict:
47+
async def request_active_menu(self, *, conn_id: str) -> Dict[str, Any]:
4848
"""Request the active menu"""
4949
return await self.__request_active_menu(
5050
conn_id=conn_id,
5151
)
5252

53-
async def send_menu(self, *, conn_id: str, body: Optional[SendMenu] = None) -> Dict:
53+
async def send_menu(
54+
self, *, conn_id: str, body: Optional[SendMenu] = None
55+
) -> Dict[str, Any]:
5456
"""Send an action menu to a connection"""
5557
return await self.__send_menu(
5658
conn_id=conn_id,
@@ -59,7 +61,7 @@ async def send_menu(self, *, conn_id: str, body: Optional[SendMenu] = None) -> D
5961

6062
@returns.json
6163
@post("/action-menu/{conn_id}/close")
62-
def __close_active_menu(self, *, conn_id: str) -> Dict:
64+
def __close_active_menu(self, *, conn_id: str) -> Dict[str, Any]:
6365
"""Internal uplink method for close_active_menu"""
6466

6567
@returns.json
@@ -72,16 +74,18 @@ def __fetch_active_menu(self, *, conn_id: str) -> ActionMenuFetchResult:
7274
@post("/action-menu/{conn_id}/perform")
7375
def __perform_action(
7476
self, *, conn_id: str, body: Body(type=PerformRequest) = {}
75-
) -> Dict:
77+
) -> Dict[str, Any]:
7678
"""Internal uplink method for perform_action"""
7779

7880
@returns.json
7981
@post("/action-menu/{conn_id}/request")
80-
def __request_active_menu(self, *, conn_id: str) -> Dict:
82+
def __request_active_menu(self, *, conn_id: str) -> Dict[str, Any]:
8183
"""Internal uplink method for request_active_menu"""
8284

8385
@returns.json
8486
@json
8587
@post("/action-menu/{conn_id}/send-menu")
86-
def __send_menu(self, *, conn_id: str, body: Body(type=SendMenu) = {}) -> Dict:
88+
def __send_menu(
89+
self, *, conn_id: str, body: Body(type=SendMenu) = {}
90+
) -> Dict[str, Any]:
8791
"""Internal uplink method for send_menu"""

aries_cloudcontroller/api/basicmessage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
json,
1414
)
1515

16-
from typing import Dict, List, Optional, Union # noqa: F401
16+
from typing import Any, Dict, List, Optional, Union # noqa: F401
1717

1818
from aries_cloudcontroller.uplink_util import bool_query
1919

@@ -23,7 +23,7 @@
2323
class BasicmessageApi(Consumer):
2424
async def send_message(
2525
self, *, conn_id: str, body: Optional[SendMessage] = None
26-
) -> Dict:
26+
) -> Dict[str, Any]:
2727
"""Send a basic message to a connection"""
2828
return await self.__send_message(
2929
conn_id=conn_id,
@@ -35,5 +35,5 @@ async def send_message(
3535
@post("/connections/{conn_id}/send-message")
3636
def __send_message(
3737
self, *, conn_id: str, body: Body(type=SendMessage) = {}
38-
) -> Dict:
38+
) -> Dict[str, Any]:
3939
"""Internal uplink method for send_message"""

aries_cloudcontroller/api/connection.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
json,
1414
)
1515

16-
from typing import Dict, List, Optional, Union # noqa: F401
16+
from typing import Any, Dict, List, Optional, Union # noqa: F401
1717

1818
from aries_cloudcontroller.uplink_util import bool_query
1919

@@ -89,13 +89,13 @@ async def create_static_connection(
8989
body=body,
9090
)
9191

92-
async def delete_connection(self, *, conn_id: str) -> Dict:
92+
async def delete_connection(self, *, conn_id: str) -> Dict[str, Any]:
9393
"""Remove an existing connection record"""
9494
return await self.__delete_connection(
9595
conn_id=conn_id,
9696
)
9797

98-
async def establish_inbound(self, *, conn_id: str, ref_id: str) -> Dict:
98+
async def establish_inbound(self, *, conn_id: str, ref_id: str) -> Dict[str, Any]:
9999
"""Assign another connection as the inbound connection"""
100100
return await self.__establish_inbound(
101101
conn_id=conn_id,
@@ -217,12 +217,12 @@ def __create_static_connection(
217217

218218
@returns.json
219219
@delete("/connections/{conn_id}")
220-
def __delete_connection(self, *, conn_id: str) -> Dict:
220+
def __delete_connection(self, *, conn_id: str) -> Dict[str, Any]:
221221
"""Internal uplink method for delete_connection"""
222222

223223
@returns.json
224224
@post("/connections/{conn_id}/establish-inbound/{ref_id}")
225-
def __establish_inbound(self, *, conn_id: str, ref_id: str) -> Dict:
225+
def __establish_inbound(self, *, conn_id: str, ref_id: str) -> Dict[str, Any]:
226226
"""Internal uplink method for establish_inbound"""
227227

228228
@returns.json

aries_cloudcontroller/api/credential_definition.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
json,
1414
)
1515

16-
from typing import Dict, List, Optional, Union # noqa: F401
16+
from typing import Any, Dict, List, Optional, Union # noqa: F401
1717

1818
from aries_cloudcontroller.uplink_util import bool_query
1919

@@ -23,9 +23,6 @@
2323
from aries_cloudcontroller.model.credential_definition_send_request import (
2424
CredentialDefinitionSendRequest,
2525
)
26-
from aries_cloudcontroller.model.credential_definition_send_result import (
27-
CredentialDefinitionSendResult,
28-
)
2926
from aries_cloudcontroller.model.credential_definitions_created_result import (
3027
CredentialDefinitionsCreatedResult,
3128
)
@@ -75,7 +72,7 @@ async def publish_cred_def(
7572
conn_id: Optional[str] = None,
7673
create_transaction_for_endorser: Optional[bool] = None,
7774
body: Optional[CredentialDefinitionSendRequest] = None
78-
) -> Union[CredentialDefinitionSendResult, TxnOrCredentialDefinitionSendResult]:
75+
) -> TxnOrCredentialDefinitionSendResult:
7976
"""Sends a credential definition to the ledger"""
8077
return await self.__publish_cred_def(
8178
conn_id=conn_id,
@@ -118,5 +115,5 @@ def __publish_cred_def(
118115
conn_id: Query = None,
119116
create_transaction_for_endorser: Query = None,
120117
body: Body(type=CredentialDefinitionSendRequest) = {}
121-
) -> Union[CredentialDefinitionSendResult, TxnOrCredentialDefinitionSendResult]:
118+
) -> TxnOrCredentialDefinitionSendResult:
122119
"""Internal uplink method for publish_cred_def"""

aries_cloudcontroller/api/credentials.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
json,
1414
)
1515

16-
from typing import Dict, List, Optional, Union # noqa: F401
16+
from typing import Any, Dict, List, Optional, Union # noqa: F401
1717

1818
from aries_cloudcontroller.uplink_util import bool_query
1919

@@ -31,13 +31,13 @@
3131

3232

3333
class CredentialsApi(Consumer):
34-
async def delete_record(self, *, credential_id: str) -> Dict:
34+
async def delete_record(self, *, credential_id: str) -> Dict[str, Any]:
3535
"""Remove credential from wallet by id"""
3636
return await self.__delete_record(
3737
credential_id=credential_id,
3838
)
3939

40-
async def delete_w3c_credential(self, *, credential_id: str) -> Dict:
40+
async def delete_w3c_credential(self, *, credential_id: str) -> Dict[str, Any]:
4141
"""Remove W3C credential from wallet by id"""
4242
return await self.__delete_w3c_credential(
4343
credential_id=credential_id,
@@ -109,12 +109,12 @@ async def get_w3c_credentials(
109109

110110
@returns.json
111111
@delete("/credential/{credential_id}")
112-
def __delete_record(self, *, credential_id: str) -> Dict:
112+
def __delete_record(self, *, credential_id: str) -> Dict[str, Any]:
113113
"""Internal uplink method for delete_record"""
114114

115115
@returns.json
116116
@delete("/credential/w3c/{credential_id}")
117-
def __delete_w3c_credential(self, *, credential_id: str) -> Dict:
117+
def __delete_w3c_credential(self, *, credential_id: str) -> Dict[str, Any]:
118118
"""Internal uplink method for delete_w3c_credential"""
119119

120120
@returns.json

aries_cloudcontroller/api/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
json,
1414
)
1515

16-
from typing import Dict, List, Optional, Union # noqa: F401
16+
from typing import Any, Dict, List, Optional, Union # noqa: F401
1717

1818
from aries_cloudcontroller.uplink_util import bool_query
1919

aries_cloudcontroller/api/did_exchange.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
json,
1414
)
1515

16-
from typing import Dict, List, Optional, Union # noqa: F401
16+
from typing import Any, Dict, List, Optional, Union # noqa: F401
1717

1818
from aries_cloudcontroller.uplink_util import bool_query
1919

0 commit comments

Comments
 (0)