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
1818from aries_cloudcontroller .uplink_util import bool_query
1919
2323
2424
2525class 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"""
0 commit comments