Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

713 B
Raw Blame
"""Framework- and persistence-independent contracts for data-source API-key auth."""

from collections.abc import Mapping
from dataclasses import dataclass
from datetime import datetime
from typing import Any


@dataclass(frozen=True, slots=True)
class DataSourceApiKeyAuthCredentials:
    auth_type: str
    api_key: str
    options: Mapping[str, Any]


@dataclass(frozen=True, slots=True)
class DataSourceApiKeyAuthBindingCreate:
    category: str
    provider: str
    credentials: DataSourceApiKeyAuthCredentials


@dataclass(frozen=True, slots=True)
class DataSourceApiKeyAuthBindingRecord:
    id: str
    category: str
    provider: str
    disabled: bool
    created_at: datetime
    updated_at: datetime