mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-23 03:42:59 -05:00
* 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>
9 lines
169 B
Python
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
|