US04-03: Apply and Verify Guarded Renames (#68)
This commit was merged in pull request #68.
This commit is contained in:
@@ -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",
|
||||
|
||||
11
photo_pipeline/schemas/renames.py
Normal file
11
photo_pipeline/schemas/renames.py
Normal 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
|
||||
Reference in New Issue
Block a user