async def iter_get_transcript(
self,
connection_token: "capo_connectparticipant.types.participant_token.ParticipantToken",
*,
config_overrides: Optional[AsyncConnectParticipantClientConfig] = None,
contact_id: Optional[
"capo_connectparticipant.types.contact_id.ContactId"
] = None,
max_results: Optional[
"capo_connectparticipant.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_connectparticipant.types.next_token.NextToken"
] = None,
scan_direction: Optional[
"capo_connectparticipant.types.scan_direction.ScanDirection"
] = None,
sort_order: Optional["capo_connectparticipant.types.sort_key.SortKey"] = None,
start_position: Optional[
"capo_connectparticipant.types.start_position.StartPosition"
] = None,
) -> "AsyncIterator[capo_connectparticipant.types.get_transcript_response.GetTranscriptResponse]":
_token = next_token
while True:
_response = await self.get_transcript(
connection_token,
config_overrides=config_overrides,
contact_id=contact_id,
max_results=max_results,
next_token=_token,
scan_direction=scan_direction,
sort_order=sort_order,
start_position=start_position,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break