Skip to content

Commit 2ba8226

Browse files
authored
⬆️ ACA-Py 0.11.0 (#135)
* `establish_inbound` method moved from connection api to default * deleted mediation_create_request and admin_meditation_deny models. Replaced with generic dictionaries * dropped mediator_terms and recipient_terms from MediationDeny model and mediation methods * ✨ new SD-JWT request/response models * updated regex in JWSVerify * drops routing_state from ConnRecord * new SD-JWT sign and verify methods * v0.11.0 * 0.11.0
1 parent bb7595c commit 2ba8226

File tree

320 files changed

+1334
-812
lines changed

Some content is hidden

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

320 files changed

+1334
-812
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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.10.5), ensuring access to the most recent features and improvements.
50+
- **Up-to-Date Support**: Compatible with the latest ACA-Py version (0.11.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.

aries_cloudcontroller/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
88
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
99
10-
The version of the OpenAPI document: v0.10.5
10+
The version of the OpenAPI document: v0.11.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.10.5"
17+
__version__ = "0.11.0"
1818

1919
from aries_cloudcontroller.acapy_client import AcaPyClient
2020

@@ -67,7 +67,6 @@
6767
DID,
6868
ActionMenuFetchResult,
6969
AdminConfig,
70-
AdminMediationDeny,
7170
AdminModules,
7271
AdminStatus,
7372
AdminStatusLiveliness,
@@ -203,7 +202,6 @@
203202
LedgerConfigInstance,
204203
LedgerConfigList,
205204
LinkedDataProof,
206-
MediationCreateRequest,
207205
MediationDeny,
208206
MediationGrant,
209207
MediationIdMatchInfo,
@@ -247,6 +245,9 @@
247245
SchemaSendRequest,
248246
SchemaSendResult,
249247
SchemasInputDescriptorFilter,
248+
SDJWSCreate,
249+
SDJWSVerify,
250+
SDJWSVerifyResponse,
250251
SendMenu,
251252
SendMessage,
252253
ServiceDecorator,

aries_cloudcontroller/api/action_menu_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v0.10.5
8+
The version of the OpenAPI document: v0.11.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/basicmessage_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v0.10.5
8+
The version of the OpenAPI document: v0.11.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/connection_api.py

Lines changed: 1 addition & 248 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v0.10.5
8+
The version of the OpenAPI document: v0.11.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.
@@ -1405,253 +1405,6 @@ def _delete_connection_serialize(
14051405
_request_auth=_request_auth,
14061406
)
14071407

1408-
async def establish_inbound(
1409-
self,
1410-
conn_id: Annotated[StrictStr, Field(description="Connection identifier")],
1411-
ref_id: Annotated[
1412-
StrictStr, Field(description="Inbound connection identifier")
1413-
],
1414-
_request_timeout: Union[
1415-
None,
1416-
Annotated[StrictFloat, Field(gt=0)],
1417-
Tuple[
1418-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1419-
],
1420-
] = None,
1421-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
1422-
_content_type: Optional[StrictStr] = None,
1423-
_headers: Optional[Dict[StrictStr, Any]] = None,
1424-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1425-
) -> object:
1426-
"""Assign another connection as the inbound connection
1427-
1428-
1429-
:param conn_id: Connection identifier (required)
1430-
:type conn_id: str
1431-
:param ref_id: Inbound connection identifier (required)
1432-
:type ref_id: str
1433-
:param _request_timeout: timeout setting for this request. If one
1434-
number provided, it will be total request
1435-
timeout. It can also be a pair (tuple) of
1436-
(connection, read) timeouts.
1437-
:type _request_timeout: int, tuple(int, int), optional
1438-
:param _request_auth: set to override the auth_settings for an a single
1439-
request; this effectively ignores the
1440-
authentication in the spec for a single request.
1441-
:type _request_auth: dict, optional
1442-
:param _content_type: force content-type for the request.
1443-
:type _content_type: str, Optional
1444-
:param _headers: set to override the headers for a single
1445-
request; this effectively ignores the headers
1446-
in the spec for a single request.
1447-
:type _headers: dict, optional
1448-
:param _host_index: set to override the host_index for a single
1449-
request; this effectively ignores the host_index
1450-
in the spec for a single request.
1451-
:type _host_index: int, optional
1452-
:return: Returns the result object.
1453-
""" # noqa: E501
1454-
1455-
_param = self._establish_inbound_serialize(
1456-
conn_id=conn_id,
1457-
ref_id=ref_id,
1458-
_request_auth=_request_auth,
1459-
_content_type=_content_type,
1460-
_headers=_headers,
1461-
_host_index=_host_index,
1462-
)
1463-
1464-
_response_types_map: Dict[str, Optional[str]] = {"200": "object"}
1465-
response_data = await self.api_client.call_api(
1466-
*_param, _request_timeout=_request_timeout
1467-
)
1468-
await response_data.read()
1469-
return self.api_client.response_deserialize(
1470-
response_data=response_data,
1471-
response_types_map=_response_types_map,
1472-
).data
1473-
1474-
async def establish_inbound_with_http_info(
1475-
self,
1476-
conn_id: Annotated[StrictStr, Field(description="Connection identifier")],
1477-
ref_id: Annotated[
1478-
StrictStr, Field(description="Inbound connection identifier")
1479-
],
1480-
_request_timeout: Union[
1481-
None,
1482-
Annotated[StrictFloat, Field(gt=0)],
1483-
Tuple[
1484-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1485-
],
1486-
] = None,
1487-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
1488-
_content_type: Optional[StrictStr] = None,
1489-
_headers: Optional[Dict[StrictStr, Any]] = None,
1490-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1491-
) -> ApiResponse[object]:
1492-
"""Assign another connection as the inbound connection
1493-
1494-
1495-
:param conn_id: Connection identifier (required)
1496-
:type conn_id: str
1497-
:param ref_id: Inbound connection identifier (required)
1498-
:type ref_id: str
1499-
:param _request_timeout: timeout setting for this request. If one
1500-
number provided, it will be total request
1501-
timeout. It can also be a pair (tuple) of
1502-
(connection, read) timeouts.
1503-
:type _request_timeout: int, tuple(int, int), optional
1504-
:param _request_auth: set to override the auth_settings for an a single
1505-
request; this effectively ignores the
1506-
authentication in the spec for a single request.
1507-
:type _request_auth: dict, optional
1508-
:param _content_type: force content-type for the request.
1509-
:type _content_type: str, Optional
1510-
:param _headers: set to override the headers for a single
1511-
request; this effectively ignores the headers
1512-
in the spec for a single request.
1513-
:type _headers: dict, optional
1514-
:param _host_index: set to override the host_index for a single
1515-
request; this effectively ignores the host_index
1516-
in the spec for a single request.
1517-
:type _host_index: int, optional
1518-
:return: Returns the result object.
1519-
""" # noqa: E501
1520-
1521-
_param = self._establish_inbound_serialize(
1522-
conn_id=conn_id,
1523-
ref_id=ref_id,
1524-
_request_auth=_request_auth,
1525-
_content_type=_content_type,
1526-
_headers=_headers,
1527-
_host_index=_host_index,
1528-
)
1529-
1530-
_response_types_map: Dict[str, Optional[str]] = {"200": "object"}
1531-
response_data = await self.api_client.call_api(
1532-
*_param, _request_timeout=_request_timeout
1533-
)
1534-
await response_data.read()
1535-
return self.api_client.response_deserialize(
1536-
response_data=response_data,
1537-
response_types_map=_response_types_map,
1538-
)
1539-
1540-
async def establish_inbound_without_preload_content(
1541-
self,
1542-
conn_id: Annotated[StrictStr, Field(description="Connection identifier")],
1543-
ref_id: Annotated[
1544-
StrictStr, Field(description="Inbound connection identifier")
1545-
],
1546-
_request_timeout: Union[
1547-
None,
1548-
Annotated[StrictFloat, Field(gt=0)],
1549-
Tuple[
1550-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1551-
],
1552-
] = None,
1553-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
1554-
_content_type: Optional[StrictStr] = None,
1555-
_headers: Optional[Dict[StrictStr, Any]] = None,
1556-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1557-
) -> RESTResponseType:
1558-
"""Assign another connection as the inbound connection
1559-
1560-
1561-
:param conn_id: Connection identifier (required)
1562-
:type conn_id: str
1563-
:param ref_id: Inbound connection identifier (required)
1564-
:type ref_id: str
1565-
:param _request_timeout: timeout setting for this request. If one
1566-
number provided, it will be total request
1567-
timeout. It can also be a pair (tuple) of
1568-
(connection, read) timeouts.
1569-
:type _request_timeout: int, tuple(int, int), optional
1570-
:param _request_auth: set to override the auth_settings for an a single
1571-
request; this effectively ignores the
1572-
authentication in the spec for a single request.
1573-
:type _request_auth: dict, optional
1574-
:param _content_type: force content-type for the request.
1575-
:type _content_type: str, Optional
1576-
:param _headers: set to override the headers for a single
1577-
request; this effectively ignores the headers
1578-
in the spec for a single request.
1579-
:type _headers: dict, optional
1580-
:param _host_index: set to override the host_index for a single
1581-
request; this effectively ignores the host_index
1582-
in the spec for a single request.
1583-
:type _host_index: int, optional
1584-
:return: Returns the result object.
1585-
""" # noqa: E501
1586-
1587-
_param = self._establish_inbound_serialize(
1588-
conn_id=conn_id,
1589-
ref_id=ref_id,
1590-
_request_auth=_request_auth,
1591-
_content_type=_content_type,
1592-
_headers=_headers,
1593-
_host_index=_host_index,
1594-
)
1595-
1596-
_response_types_map: Dict[str, Optional[str]] = {"200": "object"}
1597-
response_data = await self.api_client.call_api(
1598-
*_param, _request_timeout=_request_timeout
1599-
)
1600-
return response_data.response
1601-
1602-
def _establish_inbound_serialize(
1603-
self,
1604-
conn_id,
1605-
ref_id,
1606-
_request_auth,
1607-
_content_type,
1608-
_headers,
1609-
_host_index,
1610-
) -> Tuple:
1611-
_host = None
1612-
1613-
_collection_formats: Dict[str, str] = {}
1614-
1615-
_path_params: Dict[str, str] = {}
1616-
_query_params: List[Tuple[str, str]] = []
1617-
_header_params: Dict[str, Optional[str]] = _headers or {}
1618-
_form_params: List[Tuple[str, str]] = []
1619-
_files: Dict[str, str] = {}
1620-
_body_params: Optional[bytes] = None
1621-
1622-
# process the path parameters
1623-
if conn_id is not None:
1624-
_path_params["conn_id"] = conn_id
1625-
if ref_id is not None:
1626-
_path_params["ref_id"] = ref_id
1627-
# process the query parameters
1628-
# process the header parameters
1629-
# process the form parameters
1630-
# process the body parameter
1631-
1632-
# set the HTTP header `Accept`
1633-
_header_params["Accept"] = self.api_client.select_header_accept(
1634-
["application/json"]
1635-
)
1636-
1637-
# authentication setting
1638-
_auth_settings: List[str] = ["AuthorizationHeader"]
1639-
1640-
return self.api_client.param_serialize(
1641-
method="POST",
1642-
resource_path="/connections/{conn_id}/establish-inbound/{ref_id}",
1643-
path_params=_path_params,
1644-
query_params=_query_params,
1645-
header_params=_header_params,
1646-
body=_body_params,
1647-
post_params=_form_params,
1648-
files=_files,
1649-
auth_settings=_auth_settings,
1650-
collection_formats=_collection_formats,
1651-
_host=_host,
1652-
_request_auth=_request_auth,
1653-
)
1654-
16551408
async def get_connection(
16561409
self,
16571410
conn_id: Annotated[StrictStr, Field(description="Connection identifier")],

aries_cloudcontroller/api/credential_definition_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v0.10.5
8+
The version of the OpenAPI document: v0.11.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/credentials_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v0.10.5
8+
The version of the OpenAPI document: v0.11.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

0 commit comments

Comments
 (0)