feat: allow updating existing CV branches

This commit is contained in:
2026-04-04 11:29:46 +02:00
parent 15d5ef6ac6
commit c9914191d8
6 changed files with 137 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ from .cv import (
DocumentCreateResult,
DocumentListResponse,
DocumentResponse,
PatchApplyRequest,
PublicAssetAnalyticsResponse,
PublicAssetLookupResponse,
PublicAssetResponse,
@@ -21,6 +22,7 @@ __all__ = [
"DocumentCreateResult",
"VersionResponse",
"BranchCreateRequest",
"PatchApplyRequest",
"SubmissionCreateRequest",
"SubmissionResponse",
"AiSuggestionRequest",

View File

@@ -63,6 +63,10 @@ class BranchCreateRequest(BaseModel):
patches: list[dict[str, Any]] = Field(default_factory=list)
class PatchApplyRequest(BaseModel):
patches: list[dict[str, Any]] = Field(default_factory=list)
class SubmissionResponse(BaseModel):
model_config = ConfigDict(from_attributes=True)