@@ -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 */
660661export type AgentGetArtifactResponse =
662+ | AgentGetArtifactResponse . PlanArtifactResponse
661663 | AgentGetArtifactResponse . ScreenshotArtifactResponse
662664 | AgentGetArtifactResponse . FileArtifactResponse ;
663665
664666export 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 */
0 commit comments