def get_confirmations(types: List[int], object_ids: List[int], hostname: Optional[str]=None) -> List[Dict[(str, Any)]]:
    lowest_datetime = (timezone_now() - timedelta(days=30))
    confirmations = Confirmation.objects.filter(type__in=types, object_id__in=object_ids, date_sent__gte=lowest_datetime)
    confirmation_dicts = []
    for confirmation in confirmations:
        realm = confirmation.realm
        content_object = confirmation.content_object
        type = confirmation.type
        days_to_activate = _properties[type].validity_in_days
        expiry_date = (confirmation.date_sent + timedelta(days=days_to_activate))
        if hasattr(content_object, 'status'):
            if (content_object.status == STATUS_ACTIVE):
                link_status = 'Link has been clicked'
            else:
                link_status = 'Link has never been clicked'
        else:
            link_status = ''
        if (timezone_now() < expiry_date):
            expires_in = timesince(confirmation.date_sent, expiry_date)
        else:
            expires_in = 'Expired'
        url = confirmation_url(confirmation.confirmation_key, realm, type)
        confirmation_dicts.append({'object': confirmation.content_object, 'url': url, 'type': type, 'link_status': link_status, 'expires_in': expires_in})
    return confirmation_dicts
def get_confirmations(types: List[int], object_ids: List[int], hostname: Optional[str]=None) -> List[Dict[(str, Any)]]:
    lowest_datetime = (timezone_now() - timedelta(days=30))
    confirmations = Confirmation.objects.filter(type__in=types, object_id__in=object_ids, date_sent__gte=lowest_datetime)
    confirmation_dicts = []
    for confirmation in confirmations:
        realm = confirmation.realm
        content_object = confirmation.content_object
        type = confirmation.type
        days_to_activate = _properties[type].validity_in_days
        expiry_date = (confirmation.date_sent + timedelta(days=days_to_activate))
        if hasattr(content_object, 'status'):
            if (content_object.status == STATUS_ACTIVE):
                link_status = 'Link has been clicked'
            else:
                link_status = 'Link has never been clicked'
        else:
            link_status = 
        if (timezone_now() < expiry_date):
            expires_in = timesince(confirmation.date_sent, expiry_date)
        else:
            expires_in = 'Expired'
        url = confirmation_url(confirmation.confirmation_key, realm, type)
        confirmation_dicts.append({'object': confirmation.content_object, 'url': url, 'type': type, 'link_status': link_status, 'expires_in': expires_in})
    return confirmation_dicts