def METHOD_NAME(self) -> StreamToken:
    push_rules_key = self.store.get_max_push_rules_stream_id()
    to_device_key = self.store.get_to_device_stream_token()
    device_list_key = self.store.get_device_stream_token()
    un_partial_stated_rooms_key = self.store.get_un_partial_stated_rooms_token(
        self._instance_name
    )
    token = StreamToken(
        room_key=self.sources.room.get_current_key(),
        presence_key=self.sources.presence.get_current_key(),
        typing_key=self.sources.typing.get_current_key(),
        receipt_key=self.sources.receipt.get_current_key(),
        account_data_key=self.sources.account_data.get_current_key(),
        push_rules_key=push_rules_key,
        to_device_key=to_device_key,
        device_list_key=device_list_key,
        # Groups key is unused.
        groups_key=0,
        un_partial_stated_rooms_key=un_partial_stated_rooms_key,
    )
    return token