Skip to content

Commit 578be41

Browse files
feat(api): update artifacts
1 parent c8bf51d commit 578be41

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 12
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-077b393072edf39858013851e3d539f3323ff77abbdcc98be663e67320cdd8c4.yml
3-
openapi_spec_hash: 4d140fc4f076fe917ed56e6033a948d8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-d3907596f0e1b561fd86deb46529fca2a4802a992a35e2a9c51440451f4e9811.yml
3+
openapi_spec_hash: 5636d38917d7664a237f4096c1338304
44
config_hash: 07820b17df23cbea39cb77fa05292538

src/warp_agent_sdk/types/agent/artifact_item.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
from ..._utils import PropertyInfo
88
from ..._models import BaseModel
99

10-
__all__ = ["ArtifactItem", "PlanArtifact", "PlanArtifactPlan", "PullRequestArtifact", "PullRequestArtifactPullRequest"]
10+
__all__ = ["ArtifactItem", "PlanArtifact", "PlanArtifactData", "PullRequestArtifact", "PullRequestArtifactData"]
1111

1212

13-
class PlanArtifactPlan(BaseModel):
13+
class PlanArtifactData(BaseModel):
1414
document_uid: str
1515
"""Unique identifier for the plan document"""
1616

@@ -22,16 +22,16 @@ class PlanArtifactPlan(BaseModel):
2222

2323

2424
class PlanArtifact(BaseModel):
25-
artifact_type: Literal["plan"]
25+
artifact_type: Literal["PLAN"]
2626
"""Type of the artifact"""
2727

2828
created_at: datetime
2929
"""Timestamp when the artifact was created (RFC3339)"""
3030

31-
plan: PlanArtifactPlan
31+
data: PlanArtifactData
3232

3333

34-
class PullRequestArtifactPullRequest(BaseModel):
34+
class PullRequestArtifactData(BaseModel):
3535
branch: str
3636
"""Branch name for the pull request"""
3737

@@ -40,13 +40,13 @@ class PullRequestArtifactPullRequest(BaseModel):
4040

4141

4242
class PullRequestArtifact(BaseModel):
43-
artifact_type: Literal["pull_request"]
43+
artifact_type: Literal["PULL_REQUEST"]
4444
"""Type of the artifact"""
4545

4646
created_at: datetime
4747
"""Timestamp when the artifact was created (RFC3339)"""
4848

49-
pull_request: PullRequestArtifactPullRequest
49+
data: PullRequestArtifactData
5050

5151

5252
ArtifactItem: TypeAlias = Annotated[

src/warp_agent_sdk/types/agent/run_item.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class RunItem(BaseModel):
4747
- INPROGRESS: Run is actively being executed
4848
- SUCCEEDED: Run completed successfully
4949
- FAILED: Run failed
50+
- CANCELLED: Run was cancelled by user
5051
"""
5152

5253
task_id: str

src/warp_agent_sdk/types/agent/run_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
__all__ = ["RunState"]
66

7-
RunState: TypeAlias = Literal["QUEUED", "PENDING", "CLAIMED", "INPROGRESS", "SUCCEEDED", "FAILED"]
7+
RunState: TypeAlias = Literal["QUEUED", "PENDING", "CLAIMED", "INPROGRESS", "SUCCEEDED", "FAILED", "CANCELLED"]

src/warp_agent_sdk/types/agent_run_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ class AgentRunResponse(BaseModel):
1919
- INPROGRESS: Run is actively being executed
2020
- SUCCEEDED: Run completed successfully
2121
- FAILED: Run failed
22+
- CANCELLED: Run was cancelled by user
2223
"""

0 commit comments

Comments
 (0)