US04-03: Apply and Verify Guarded Renames (#68)

This commit was merged in pull request #68.
This commit is contained in:
2026-08-16 11:27:08 +02:00
parent daaa4ca67b
commit 7103cb84bf
7 changed files with 1222 additions and 0 deletions

View File

@@ -6,10 +6,12 @@ from photo_pipeline.schemas.albums import (
GenerateProposalsRequest,
)
from photo_pipeline.schemas.duplicates import DecisionRequest
from photo_pipeline.schemas.renames import ApplyPlanRequest
from photo_pipeline.schemas.jobs import JobStartRequest
from photo_pipeline.schemas.safety import SafetyDecisionRequest
__all__ = [
"ApplyPlanRequest",
"ApproveProposalRequest",
"DecisionRequest",
"EditProposalRequest",

View File

@@ -0,0 +1,11 @@
"""Rename apply/confirmation request contracts."""
from __future__ import annotations
from pydantic import BaseModel
class ApplyPlanRequest(BaseModel):
# The server-issued plan version the user confirmed; a mismatch is a 409.
expected_version: int
expected_checksum: str | None = None