Added generate_url and stream endpoints.

This commit is contained in:
2025-05-04 00:58:28 -05:00
parent 55f89eb5a8
commit 5b18c3306d
5 changed files with 173 additions and 8 deletions

10
src/schema.py Normal file
View File

@@ -0,0 +1,10 @@
from typing import Literal, Dict, Any, Optional
from pydantic import BaseModel, Field, IPvAnyAddress, ConfigDict
class GenerateUrlRequest(BaseModel):
endpoint: Optional[str] = Field(None, description="The specific endpoint to be appended to the base URL.")
stream_url: str = Field(None, description="The URL of the stream.")
agent: Optional[str] = Field(None, description="User-Agent string to be used in the request.")
proxy_url: Optional[str] = Field(None, description="Proxy URL to be used.")
request_headers: Optional[dict] = Field(default_factory=dict, description="Headers to be included in the request.")