@@ -54,18 +54,18 @@ export namespace ArtifactItem {
5454 /**
5555 * Type of the artifact
5656 */
57- artifact_type : 'plan ' ;
57+ artifact_type : 'PLAN ' ;
5858
5959 /**
6060 * Timestamp when the artifact was created (RFC3339)
6161 */
6262 created_at : string ;
6363
64- plan : PlanArtifact . Plan ;
64+ data : PlanArtifact . Data ;
6565 }
6666
6767 export namespace PlanArtifact {
68- export interface Plan {
68+ export interface Data {
6969 /**
7070 * Unique identifier for the plan document
7171 */
@@ -87,18 +87,18 @@ export namespace ArtifactItem {
8787 /**
8888 * Type of the artifact
8989 */
90- artifact_type : 'pull_request ' ;
90+ artifact_type : 'PULL_REQUEST ' ;
9191
9292 /**
9393 * Timestamp when the artifact was created (RFC3339)
9494 */
9595 created_at : string ;
9696
97- pull_request : PullRequestArtifact . PullRequest ;
97+ data : PullRequestArtifact . Data ;
9898 }
9999
100100 export namespace PullRequestArtifact {
101- export interface PullRequest {
101+ export interface Data {
102102 /**
103103 * Branch name for the pull request
104104 */
@@ -137,6 +137,7 @@ export interface RunItem {
137137 * - INPROGRESS: Run is actively being executed
138138 * - SUCCEEDED: Run completed successfully
139139 * - FAILED: Run failed
140+ * - CANCELLED: Run was cancelled by user
140141 */
141142 state : RunState ;
142143
@@ -293,8 +294,9 @@ export type RunSourceType =
293294 * - INPROGRESS: Run is actively being executed
294295 * - SUCCEEDED: Run completed successfully
295296 * - FAILED: Run failed
297+ * - CANCELLED: Run was cancelled by user
296298 */
297- export type RunState = 'QUEUED' | 'PENDING' | 'CLAIMED' | 'INPROGRESS' | 'SUCCEEDED' | 'FAILED' ;
299+ export type RunState = 'QUEUED' | 'PENDING' | 'CLAIMED' | 'INPROGRESS' | 'SUCCEEDED' | 'FAILED' | 'CANCELLED' ;
298300
299301export interface RunListResponse {
300302 page_info : RunListResponse . PageInfo ;
@@ -350,7 +352,7 @@ export interface RunListParams {
350352 /**
351353 * Filter runs by environment ID
352354 */
353- environmentId ?: string ;
355+ environment_id ?: string ;
354356
355357 /**
356358 * Maximum number of runs to return
@@ -362,6 +364,16 @@ export interface RunListParams {
362364 */
363365 model_id ?: string ;
364366
367+ /**
368+ * Filter runs by the scheduled agent ID that created them
369+ */
370+ schedule_id ?: string ;
371+
372+ /**
373+ * Filter runs by skill spec (e.g., "owner/repo:path/to/SKILL.md")
374+ */
375+ skill_spec ?: string ;
376+
365377 /**
366378 * Filter by run source type
367379 */
@@ -372,6 +384,11 @@ export interface RunListParams {
372384 * states.
373385 */
374386 state ?: Array < RunState > ;
387+
388+ /**
389+ * Filter runs updated after this timestamp (RFC3339 format)
390+ */
391+ updated_after ?: string ;
375392}
376393
377394export declare namespace Runs {
0 commit comments