feat: implement channel runtime connectors
This commit is contained in:
28
external-connector/external_connector/providers/base.py
Normal file
28
external-connector/external_connector/providers/base.py
Normal file
@ -0,0 +1,28 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Protocol
|
||||
|
||||
|
||||
class ConnectorProvider(Protocol):
|
||||
provider_id: str
|
||||
|
||||
def connectors(self) -> list[dict[str, Any]]:
|
||||
...
|
||||
|
||||
def health(self) -> dict[str, Any]:
|
||||
...
|
||||
|
||||
def start_session(self, payload: dict[str, Any]) -> dict[str, Any]:
|
||||
...
|
||||
|
||||
def get_session(self, session_id: str) -> dict[str, Any]:
|
||||
...
|
||||
|
||||
def cancel_session(self, session_id: str) -> None:
|
||||
...
|
||||
|
||||
def logout(self, connection_id: str) -> None:
|
||||
...
|
||||
|
||||
def send(self, payload: dict[str, Any]) -> dict[str, Any]:
|
||||
...
|
||||
Reference in New Issue
Block a user