mirror of
https://github.com/langgenius/dify.git
synced 2026-04-15 18:06:36 +08:00
22 lines
494 B
Python
22 lines
494 B
Python
from enum import StrEnum
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
from core.plugin.entities.plugin import PluginDependency
|
|
|
|
|
|
class ImportMode(StrEnum):
|
|
YAML_CONTENT = "yaml-content"
|
|
YAML_URL = "yaml-url"
|
|
|
|
|
|
class ImportStatus(StrEnum):
|
|
COMPLETED = "completed"
|
|
COMPLETED_WITH_WARNINGS = "completed-with-warnings"
|
|
PENDING = "pending"
|
|
FAILED = "failed"
|
|
|
|
|
|
class CheckDependenciesResult(BaseModel):
|
|
leaked_dependencies: list[PluginDependency] = Field(default_factory=list)
|