Релиз

This commit is contained in:
2025-12-17 06:30:13 +03:00
parent bb99154131
commit fbc628bc3b
11 changed files with 5246 additions and 334 deletions

View File

@ -0,0 +1,22 @@
from datetime import datetime
from typing import Literal
from pydantic import BaseModel
class BaseWebhookTransport(BaseModel):
method: Literal['webhook']
callback: str
class BaseWebsocketTransport(BaseModel):
method: Literal['websocket']
session_id: str
connected_at: datetime
class SubscribeWebhookTransport(BaseWebhookTransport):
secret: str
Any = BaseWebhookTransport | BaseWebsocketTransport