Files
非法操作andautofix-ci[bot] 163062847b refactor(api): relocate trigger plugin runtime (#45966)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-11-11 09:43:32 +00:00

17 lines
589 B
Python

"""Read contract for the trigger providers installed in a workspace."""
from typing import Protocol
from models.provider_ids import TriggerProviderID
from services.trigger.api_entities import TriggerProviderApiEntity
class TriggerProviderQuery(Protocol):
def list(self, *, tenant_id: str) -> list[TriggerProviderApiEntity]: ...
def get(self, *, tenant_id: str, provider_id: TriggerProviderID) -> TriggerProviderApiEntity: ...
def get_icon(self, *, tenant_id: str, provider_id: TriggerProviderID) -> str:
"""Return the icon URL, not the icon bytes."""
...