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.

839 B
Raw Blame
"""Framework-neutral data contracts for OAuth data-source integrations."""

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


@dataclass(frozen=True, slots=True)
class DataSourceOAuthAuthorization:
    access_token: str
    source_info: Mapping[str, object]


@dataclass(frozen=True, slots=True)
class DataSourceOAuthCallback:
    provider: str
    code: str | None
    error: str | None


@dataclass(frozen=True, slots=True)
class DataSourceOAuthBindingRecord:
    id: str
    access_token: str
    source_info: Mapping[str, object]


@dataclass(frozen=True, slots=True)
class DataSourceBindingSummary:
    """Secret-free management view of a data-source OAuth binding."""

    id: str
    provider: str
    created_at: datetime
    disabled: bool
    source_info: Mapping[str, object]