@@ -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- data : PlanArtifact . Data ;
64+ plan : PlanArtifact . Plan ;
6565 }
6666
6767 export namespace PlanArtifact {
68- export interface Data {
68+ export interface Plan {
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- data : PullRequestArtifact . Data ;
97+ pull_request : PullRequestArtifact . PullRequest ;
9898 }
9999
100100 export namespace PullRequestArtifact {
101- export interface Data {
101+ export interface PullRequest {
102102 /**
103103 * Branch name for the pull request
104104 */
@@ -137,7 +137,6 @@ 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
141140 */
142141 state : RunState ;
143142
@@ -183,6 +182,12 @@ export interface RunItem {
183182 */
184183 request_usage ?: RunItem . RequestUsage ;
185184
185+ /**
186+ * Information about the schedule that triggered this run (only present for
187+ * scheduled runs)
188+ */
189+ schedule ?: RunItem . Schedule ;
190+
186191 /**
187192 * UUID of the shared session (if available)
188193 */
@@ -230,6 +235,27 @@ export namespace RunItem {
230235 inference_cost ?: number ;
231236 }
232237
238+ /**
239+ * Information about the schedule that triggered this run (only present for
240+ * scheduled runs)
241+ */
242+ export interface Schedule {
243+ /**
244+ * Cron expression at the time the run was created
245+ */
246+ cron_schedule : string ;
247+
248+ /**
249+ * Unique identifier for the schedule
250+ */
251+ schedule_id : string ;
252+
253+ /**
254+ * Name of the schedule at the time the run was created
255+ */
256+ schedule_name : string ;
257+ }
258+
233259 export interface StatusMessage {
234260 /**
235261 * Human-readable status message
@@ -267,9 +293,8 @@ export type RunSourceType =
267293 * - INPROGRESS: Run is actively being executed
268294 * - SUCCEEDED: Run completed successfully
269295 * - FAILED: Run failed
270- * - CANCELLED: Run was cancelled by user
271296 */
272- export type RunState = 'QUEUED' | 'PENDING' | 'CLAIMED' | 'INPROGRESS' | 'SUCCEEDED' | 'FAILED' | 'CANCELLED' ;
297+ export type RunState = 'QUEUED' | 'PENDING' | 'CLAIMED' | 'INPROGRESS' | 'SUCCEEDED' | 'FAILED' ;
273298
274299export interface RunListResponse {
275300 page_info : RunListResponse . PageInfo ;
@@ -325,7 +350,7 @@ export interface RunListParams {
325350 /**
326351 * Filter runs by environment ID
327352 */
328- environment_id ?: string ;
353+ environmentId ?: string ;
329354
330355 /**
331356 * Maximum number of runs to return
@@ -337,16 +362,6 @@ export interface RunListParams {
337362 */
338363 model_id ?: string ;
339364
340- /**
341- * Filter runs by the scheduled agent ID that created them
342- */
343- schedule_id ?: string ;
344-
345- /**
346- * Filter runs by skill spec (e.g., "owner/repo:path/to/SKILL.md")
347- */
348- skill_spec ?: string ;
349-
350365 /**
351366 * Filter by run source type
352367 */
@@ -357,11 +372,6 @@ export interface RunListParams {
357372 * states.
358373 */
359374 state ?: Array < RunState > ;
360-
361- /**
362- * Filter runs updated after this timestamp (RFC3339 format)
363- */
364- updated_after ?: string ;
365375}
366376
367377export declare namespace Runs {
0 commit comments