@@ -88,7 +88,7 @@ async def create_invitation(
8888 attachments : Sequence [Mapping ] = None ,
8989 metadata : dict = None ,
9090 mediation_id : str = None ,
91- accept : Optional [Sequence [Text ]] = None ,
91+ service_accept : Optional [Sequence [Text ]] = None ,
9292 protocol_version : Optional [Text ] = None ,
9393 ) -> InvitationRecord :
9494 """
@@ -108,7 +108,7 @@ async def create_invitation(
108108 multi_use: set to True to create an invitation for multiple-use connection
109109 alias: optional alias to apply to connection for later use
110110 attachments: list of dicts in form of {"id": ..., "type": ...}
111- accept : Optional list of mime types in the order of preference of the sender
111+ service_accept : Optional list of mime types in the order of preference of the sender
112112 that the receiver can use in responding to the message
113113 protocol_version: OOB protocol version [1.0, 1.1]
114114
@@ -233,7 +233,7 @@ async def create_invitation(
233233 handshake_protocols = handshake_protocols ,
234234 requests_attach = message_attachments ,
235235 services = [f"did:sov:{ public_did .did } " ],
236- accept = accept if protocol_version != "1.0" else None ,
236+ service_accept = service_accept if protocol_version != "1.0" else None ,
237237 version = protocol_version or DEFAULT_VERSION ,
238238 )
239239
@@ -332,7 +332,9 @@ async def create_invitation(
332332 invi_msg .label = my_label or self .profile .settings .get ("default_label" )
333333 invi_msg .handshake_protocols = handshake_protocols
334334 invi_msg .requests_attach = message_attachments
335- invi_msg .accept = accept if protocol_version != "1.0" else None
335+ invi_msg .service_accept = (
336+ service_accept if protocol_version != "1.0" else None
337+ )
336338 invi_msg .services = [
337339 ServiceMessage (
338340 _id = "#inline" ,
@@ -426,8 +428,8 @@ async def receive_invitation(
426428 # Get the single service item
427429 oob_service_item = invitation .services [0 ]
428430
429- # accept
430- accept = invitation .accept
431+ # service_accept
432+ service_accept = invitation .service_accept
431433
432434 # Get the DID public did, if any
433435 public_did = None
@@ -483,7 +485,7 @@ async def receive_invitation(
483485 alias = alias ,
484486 auto_accept = auto_accept ,
485487 mediation_id = mediation_id ,
486- accept = accept ,
488+ service_accept = service_accept ,
487489 )
488490 LOGGER .debug (
489491 f"Performed handshake with connection { oob_record .connection_id } "
@@ -738,7 +740,7 @@ async def _perform_handshake(
738740 alias : Optional [str ] = None ,
739741 auto_accept : Optional [bool ] = None ,
740742 mediation_id : Optional [str ] = None ,
741- accept : Optional [Sequence [Text ]] = None ,
743+ service_accept : Optional [Sequence [Text ]] = None ,
742744 ) -> OobRecord :
743745 invitation = oob_record .invitation
744746
@@ -767,7 +769,7 @@ async def _perform_handshake(
767769 # ED25519 keys
768770 endpoint , recipient_keys , routing_keys = await self .resolve_invitation (
769771 service ,
770- accept = accept ,
772+ service_accept = service_accept ,
771773 )
772774 service = ServiceMessage .deserialize (
773775 {
0 commit comments