Skip to content

Commit eff4efa

Browse files
feat(api): api update
1 parent 641bbb6 commit eff4efa

3 files changed

Lines changed: 80 additions & 5 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 15
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-ae49b84ec5627699ad71bfbbf01d6ce76587b7cfbbfa10f124b397d0c59b0b82.yml
3-
openapi_spec_hash: b965b21aa3f92e8b9111e50c1b9a8bf0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-8e7a3c9ef00ac517caaa193265398850b6925ab898aaf84e83e28c9f023c0ba8.yml
3+
openapi_spec_hash: ebf53d80dd9066d5ac9401f1493544e3
44
config_hash: 253e4b5ca01236d448980a78491c17c5

src/resources/agent/agent.ts

Lines changed: 67 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ export class Agent extends APIResource {
5454
}
5555

5656
/**
57-
* Retrieve an artifact by its UUID. For supported downloadable artifacts, returns
58-
* a time-limited signed download URL.
57+
* Retrieve an artifact by its UUID. For downloadable file-like artifacts, returns
58+
* a time-limited signed download URL. For plan artifacts, returns the current plan
59+
* content inline.
5960
*
6061
* @example
6162
* ```ts
@@ -655,13 +656,76 @@ export interface AgentListResponse {
655656
}
656657

657658
/**
658-
* Response for retrieving a screenshot artifact.
659+
* Response for retrieving a plan artifact.
659660
*/
660661
export type AgentGetArtifactResponse =
662+
| AgentGetArtifactResponse.PlanArtifactResponse
661663
| AgentGetArtifactResponse.ScreenshotArtifactResponse
662664
| AgentGetArtifactResponse.FileArtifactResponse;
663665

664666
export namespace AgentGetArtifactResponse {
667+
/**
668+
* Response for retrieving a plan artifact.
669+
*/
670+
export interface PlanArtifactResponse {
671+
/**
672+
* Type of the artifact
673+
*/
674+
artifact_type: 'PLAN';
675+
676+
/**
677+
* Unique identifier (UUID) for the artifact
678+
*/
679+
artifact_uid: string;
680+
681+
/**
682+
* Timestamp when the artifact was created (RFC3339)
683+
*/
684+
created_at: string;
685+
686+
/**
687+
* Response data for a plan artifact, including current markdown content.
688+
*/
689+
data: PlanArtifactResponse.Data;
690+
}
691+
692+
export namespace PlanArtifactResponse {
693+
/**
694+
* Response data for a plan artifact, including current markdown content.
695+
*/
696+
export interface Data {
697+
/**
698+
* Current markdown content of the plan
699+
*/
700+
content: string;
701+
702+
/**
703+
* MIME type of the returned plan content
704+
*/
705+
content_type: string;
706+
707+
/**
708+
* Unique identifier for the plan document
709+
*/
710+
document_uid: string;
711+
712+
/**
713+
* Unique identifier for the associated notebook
714+
*/
715+
notebook_uid: string;
716+
717+
/**
718+
* Current title of the plan
719+
*/
720+
title?: string;
721+
722+
/**
723+
* URL to open the plan in Warp Drive
724+
*/
725+
url?: string;
726+
}
727+
}
728+
665729
/**
666730
* Response for retrieving a screenshot artifact.
667731
*/

src/resources/agent/runs.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ export namespace ArtifactItem {
9191
*/
9292
document_uid: string;
9393

94+
/**
95+
* Unique identifier for the plan artifact, usable with the artifact retrieval
96+
* endpoint
97+
*/
98+
artifact_uid?: string;
99+
94100
/**
95101
* Unique identifier for the associated notebook
96102
*/
@@ -100,6 +106,11 @@ export namespace ArtifactItem {
100106
* Title of the plan
101107
*/
102108
title?: string;
109+
110+
/**
111+
* URL to open the plan in Warp Drive
112+
*/
113+
url?: string;
103114
}
104115
}
105116

0 commit comments

Comments
 (0)