Files
dify/api/constants/personal_access_token.py
583615e412 feat: support personal access token (#45540)
Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: Eldar Dadashov <52511672+eldardada@users.noreply.github.com>
Co-authored-by: Byron.wang <byron@dify.ai>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Yunlu Wen <yunlu.wen@dify.ai>
2026-11-11 03:00:24 +00:00

12 lines
370 B
Python

"""Explicit PAT admission domains; independent of OAuth scope names."""
from enum import StrEnum
class PersonalAccessTokenPolicy(StrEnum):
RESOURCE_CALLS = "resource_calls"
RESOURCE_DISCOVERY = "resource_discovery"
WORKSPACE_OPERATIONS = "workspace_operations"
WORKSPACE_DISCOVERY = "workspace_discovery"
IDENTITY_DISCOVERY = "identity_discovery"