def list_types_sync(api, instance='', **params):
    """List all the groups types of an instance. If no instance is provided , fetch the platform types

    Args:
        api: the ApiClient instance to use for requests
        instance: the instance id
        ``**params``: optional  dictionary of search parameters as defined in https://api.lumapps.com/docs/feedtype/list

    Returns:
        list of Lumapps Feed resourcess
    """
    if not params:
        params = dict()
    if instance != '':
        params['instance'] = instance
    result = api.get_call('feedtype', 'list', **params)
    return result
