17 lines
499 B
Python
17 lines
499 B
Python
|
|
from pydantic import BaseModel
|
||
|
|
|
||
|
|
from models import BitcoinTransferMethod, InviteStatus, Permission
|
||
|
|
|
||
|
|
|
||
|
|
class ConstantsResponse(BaseModel):
|
||
|
|
"""Response model for shared constants.
|
||
|
|
|
||
|
|
Note: Using actual enum types ensures OpenAPI schema includes enum values,
|
||
|
|
allowing frontend type generation to produce matching TypeScript enums.
|
||
|
|
"""
|
||
|
|
|
||
|
|
permissions: list[Permission]
|
||
|
|
roles: list[str]
|
||
|
|
invite_statuses: list[InviteStatus]
|
||
|
|
bitcoin_transfer_methods: list[BitcoinTransferMethod]
|