From 602dc3ec993423bc9fde1b4ea67106ff1b7ab8b3 Mon Sep 17 00:00:00 2001 From: Sidhant Panda Date: Wed, 20 Nov 2024 14:54:53 +0530 Subject: [PATCH] Use UUID instead of UUID4 --- onelens_backend_client_v2/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/onelens_backend_client_v2/models.py b/onelens_backend_client_v2/models.py index 54d29dcf..8d277da2 100644 --- a/onelens_backend_client_v2/models.py +++ b/onelens_backend_client_v2/models.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: -# timestamp: 2024-11-20T08:32:28+00:00 +# timestamp: 2024-11-20T09:24:42+00:00 from __future__ import annotations @@ -769,7 +769,7 @@ class CreateThreadRequest(BaseModel): None, description="Optional name for the thread", title="Name" ) agent_type: AgentType = Field(..., description="Type of the workflow") - user_id: Optional[UUID4] = Field( + user_id: Optional[UUID] = Field( None, description="Unique identifier of the user, required if agent_type is not provided to create a new thread for the user", title="User Id", @@ -1046,7 +1046,7 @@ class GetAllTenantConnectionsRequest(BaseModel): class GetAllThreadsFilters(BaseModel): - user_ids: Optional[List[UUID4]] = Field( + user_ids: Optional[List[UUID]] = Field( None, description="Unique identifiers of the users", title="User Ids" ) agent_types: Optional[List[AgentType]] = Field( @@ -1535,7 +1535,7 @@ class MarkViewAsDefaultResponse(BaseModel): class MessageAuthor(BaseModel): - user_id: Optional[UUID4] = Field( + user_id: Optional[UUID] = Field( None, description="Unique identifier of the user", title="User Id" ) role: AuthorRole = Field(..., description="Role of the author (USER or ASSISTANT)") @@ -2892,7 +2892,7 @@ class Thread(BaseModel): None, description="Timestamp of last thread update", title="Updated At" ) name: Optional[str] = Field(None, description="Name of the thread", title="Name") - user_id: Optional[UUID4] = Field( + user_id: Optional[UUID] = Field( None, description="Unique identifier of the user associated with the thread", title="User Id",