mirror of
https://github.com/Rarebuffalo/securelens-backend.git
synced 2026-06-19 07:00:30 +00:00
18 lines
325 B
Python
18 lines
325 B
Python
from datetime import datetime
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class ApiKeyCreate(BaseModel):
|
|
name: str
|
|
|
|
|
|
class ApiKeyResponse(BaseModel):
|
|
id: str
|
|
name: str
|
|
key_prefix: str
|
|
created_at: datetime
|
|
|
|
|
|
class ApiKeyCreateResponse(ApiKeyResponse):
|
|
key: str # The raw API key returned only once upon creation
|