11 lines
634 B
Python
11 lines
634 B
Python
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.")
|