@@ -35,6 +35,39 @@ class DeploymentRetrieveResponse(BaseModel):
3535 values.
3636 """
3737
38+ source_checksum : Optional [str ] = None
39+ """Hex-encoded SHA-256 checksum of the source archive.
40+
41+ For file uploads, this hashes the uploaded archive; for GitHub-sourced
42+ deployments, this hashes the GitHub archive downloaded by the API. Omitted for
43+ deployments created before this field was recorded.
44+ """
45+
46+ source_path : Optional [str ] = None
47+ """
48+ For GitHub-sourced deployments, the subpath within the repository that was used
49+ as the deploy root. Omitted when the repo root was used or for file uploads.
50+ """
51+
52+ source_ref : Optional [str ] = None
53+ """
54+ For GitHub-sourced deployments, the git ref as requested at deploy time (branch,
55+ tag, or commit SHA — not resolved to a commit). Omitted for file uploads.
56+ """
57+
58+ source_type : Optional [Literal ["file" , "github" ]] = None
59+ """Origin of the deployed source code.
60+
61+ This is read-only response provenance; `file` indicates an uploaded archive and
62+ `github` indicates a repository fetched by the API.
63+ """
64+
65+ source_url : Optional [str ] = None
66+ """For GitHub-sourced deployments, the repository URL that was fetched.
67+
68+ Omitted for file uploads.
69+ """
70+
3871 status_reason : Optional [str ] = None
3972 """Status reason"""
4073
0 commit comments