feat: add endpoints for orgs

This commit is contained in:
2026-06-08 11:20:39 +03:00
parent 5484ed6311
commit 2a09d1deae
32 changed files with 818 additions and 13 deletions

View File

@@ -0,0 +1,51 @@
from __future__ import annotations
from typing import Any
from pydantic import BaseModel
class OrganizationResponse(BaseModel):
id: str
user_id: str
name: str
short_name: str | None
inn: str
ogrn: str | None
kpp: str | None
legal_address: str | None
actual_address: str | None
bank_details: dict[str, Any] | None
contact_person: str | None
contact_phone: str | None
status: str
kyc_verified: bool
kyc_verified_at: str | None
has_wallets: bool
created_by: str | None
created_at: str | None
updated_at: str | None
class OrganizationListResponse(BaseModel):
items: list[OrganizationResponse]
total: int
class WalletResponse(BaseModel):
id: str
chain: str
address: str
derivation_path: str
created_at: str | None
class MnemonicResponse(BaseModel):
mnemonic: str
class SecretKeyResponse(BaseModel):
chain: str
address: str
derivation_path: str
private_key: str