from lib.services.faas.event_source_client import EventSourceClientInterface
from lib.api_schema.response.flava_services.faas.v1_0 import event_source as schema


class FlavaEventSourceClient(EventSourceClientInterface):
    """Service client for the Event Srouce API of Flava FaaS.

    This client provides the schema and path to each API endpoint for dependency
    injection.

    For a full list of available parameters and endpoints, please refer to the
    official API reference:
    https://flava-stage-kks-function-api.workers-hub-dev.com/swagger/index.html#/EventSource
    """

    def get_schema(self):
        """Provide the response schema of the Event Source API."""
        return schema

    def get_event_source_path(self):
        """Provide the API endpoint path for Event Source API."""
        return "/eventSources"
