Refactor WebSocket authentication handling by removing auth requirements from the hello message. Update related documentation and schemas to reflect the changes in authentication strategy, simplifying the connection process.
This commit is contained in:
@@ -19,15 +19,9 @@ class _StrictModel(BaseModel):
|
||||
|
||||
|
||||
# Client -> Server messages
|
||||
class HelloAuth(_StrictModel):
|
||||
apiKey: Optional[str] = None
|
||||
jwt: Optional[str] = None
|
||||
|
||||
|
||||
class HelloMessage(_StrictModel):
|
||||
type: Literal["hello"]
|
||||
version: Literal["v1"] = Field(..., description="Protocol version, fixed to v1")
|
||||
auth: Optional[HelloAuth] = Field(default=None, description="Auth payload")
|
||||
|
||||
|
||||
class SessionStartAudio(_StrictModel):
|
||||
|
||||
Reference in New Issue
Block a user