mirror of
https://github.com/langgenius/dify.git
synced 2026-11-13 23:06:40 +08:00
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>
12 lines
370 B
Python
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"
|