Files
onyx/backend/ee/danswer/server/api_key/models.py
T
rkuo-danswerandRichard Kuo f15d6d2b59 allow admin role api keys (#2124)
* allow admin role api keys

* bump to rerun deployment

* types needs explicit export now for APIKey

* remove api_key.role, use User.role instead

* fix formatting

* formatting

* formatting

---------

Co-authored-by: Richard Kuo <rkuo@rkuo.com>
2024-08-13 21:00:57 +00:00

9 lines
169 B
Python

from pydantic import BaseModel
from danswer.auth.schemas import UserRole
class APIKeyArgs(BaseModel):
name: str | None = None
role: UserRole = UserRole.BASIC