Added generate_url and stream endpoints.
This commit is contained in:
10
src/schema.py
Normal file
10
src/schema.py
Normal 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.")
|
||||
Reference in New Issue
Block a user