initial
This commit is contained in:
parent
f4de36d1b7
commit
0da40bd5b7
2 changed files with 29 additions and 62 deletions
10
models.py
10
models.py
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import time
|
||||
from sqlite3 import Row
|
||||
from typing import Any, Dict, List
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
|
@ -79,3 +79,11 @@ class NWCRegistrationRequest(BaseModel):
|
|||
class NWCGetResponse(BaseModel):
|
||||
data: NWCKey
|
||||
budgets: List[NWCBudget]
|
||||
|
||||
class CreateNWCKey(BaseModel):
|
||||
pubkey: str
|
||||
wallet_id: str
|
||||
description: str
|
||||
expires_at: int
|
||||
permissions: List[str]
|
||||
budgets: Optional[List[NWCNewBudget]] = None
|
||||
Loading…
Add table
Add a link
Reference in a new issue