oz-agent-sdk 1.4.0-alpha.2 → 1.4.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/resources/agent/runs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,iCAA8B;AAC/F,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAItE;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sBAAsB,EAAE,OAAO,CAAC;IAI/C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAInE;;;;;;;;;;;;;;OAcG;IACH,sBAAsB,CACpB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD;;;;;;;;;;;;;OAaG;IACH,cAAc,CACZ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;CAGvB;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;AAE7D,MA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GAAG,MAAM,GAAG,aAAa,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -80,7 +80,6 @@ class Runs extends resource_1.APIResource {
80
80
  * ```ts
81
81
  * const response = await client.agent.runs.submitFollowup(
82
82
  * 'runId',
83
- * { message: 'message' },
84
83
  * );
85
84
  * ```
86
85
  */
@@ -1 +1 @@
1
- {"version":3,"file":"runs.js","sourceRoot":"","sources":["../../src/resources/agent/runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAA+F;AAE/F,uDAAiD;AAEjD;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAa,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,2BAAuB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;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I,CAAC,IAAA,WAAI,EAAA,eAAe,KAAK,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,sBAAsB,CACpB,KAAa,EACb,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,KAAK,sBAAsB,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,cAAc,CACZ,KAAa,EACb,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,eAAe,KAAK,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AA5FD,oBA4FC"}
@@ -77,7 +77,6 @@ export class Runs extends APIResource {
77
77
  * ```ts
78
78
  * const response = await client.agent.runs.submitFollowup(
79
79
  * 'runId',
80
- * { message: 'message' },
81
80
  * );
82
81
  * ```
83
82
  */
@@ -1 +1 @@
1
- {"version":3,"file":"runs.mjs","sourceRoot":"","sources":["../../src/resources/agent/runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAe,cAAc,EAA6B,kCAA8B;AAE/F,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAa,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,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uB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,KAAK,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,sBAAsB,CACpB,KAAa,EACb,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,KAAK,sBAAsB,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,cAAc,CACZ,KAAa,EACb,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,KAAK,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
@@ -104,8 +104,8 @@ export class Agent extends APIResource {
104
104
  }
105
105
 
106
106
  /**
107
- * Alias for POST /agent/run. This is the preferred endpoint for creating new agent
108
- * runs. Behavior is identical to POST /agent/run.
107
+ * Spawn a cloud agent with a prompt and optional configuration. The agent will be
108
+ * queued for execution and assigned a unique run ID.
109
109
  *
110
110
  * @example
111
111
  * ```ts
@@ -1109,7 +1109,8 @@ export interface AgentRunParams {
1109
1109
 
1110
1110
  /**
1111
1111
  * The prompt/instruction for the agent to execute. Required unless a skill is
1112
- * specified via the skill field, config.skill_spec, or config.skills.
1112
+ * specified via the skill field, config.skill_spec, or config.skills. Handoff
1113
+ * requests may omit prompt when conversation_id is set.
1113
1114
  */
1114
1115
  prompt?: string;
1115
1116
 
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as AgentAPI from './agent';
4
5
  import { APIPromise } from '../../core/api-promise';
5
6
  import { buildHeaders } from '../../internal/headers';
6
7
  import { RequestOptions } from '../../internal/request-options';
@@ -95,10 +96,9 @@ export interface AgentResponse {
95
96
  created_at: string;
96
97
 
97
98
  /**
98
- * Memory stores attached to this agent. Always present; empty when no stores are
99
- * attached.
99
+ * Memory settings for an agent.
100
100
  */
101
- memory_stores: Array<AgentResponse.MemoryStore>;
101
+ memory: AgentResponse.Memory;
102
102
 
103
103
  /**
104
104
  * Name of the agent
@@ -121,6 +121,11 @@ export interface AgentResponse {
121
121
  */
122
122
  uid: string;
123
123
 
124
+ /**
125
+ * When the agent was last updated (RFC3339)
126
+ */
127
+ updated_at: string;
128
+
124
129
  /**
125
130
  * Default harness for runs executed by this agent. The precedence order for
126
131
  * harness resolution is:
@@ -167,6 +172,12 @@ export interface AgentResponse {
167
172
  */
168
173
  inference_providers?: AgentResponse.InferenceProviders;
169
174
 
175
+ /**
176
+ * MCP server configurations attached to this agent by default. Run-level MCP
177
+ * config takes precedence over this agent-level default.
178
+ */
179
+ mcp_servers?: { [key: string]: AgentAPI.McpServerConfig };
180
+
170
181
  /**
171
182
  * Optional base prompt for this agent
172
183
  */
@@ -175,23 +186,92 @@ export interface AgentResponse {
175
186
 
176
187
  export namespace AgentResponse {
177
188
  /**
178
- * Reference to a memory store to attach to an agent.
189
+ * Memory settings for an agent.
179
190
  */
180
- export interface MemoryStore {
191
+ export interface Memory {
181
192
  /**
182
- * Access level for the store.
193
+ * Team memory stores attached to the agent.
183
194
  */
184
- access: 'read_write' | 'read_only';
195
+ attached_stores: Array<Memory.AttachedStore>;
185
196
 
186
197
  /**
187
- * Instructions for how the agent should use this memory store. Must not be empty.
198
+ * Auto-memory state for an agent.
188
199
  */
189
- instructions: string;
200
+ auto_memory: Memory.AutoMemory;
201
+ }
202
+
203
+ export namespace Memory {
204
+ /**
205
+ * Reference to a memory store to attach to an agent.
206
+ */
207
+ export interface AttachedStore {
208
+ /**
209
+ * Access level for the store.
210
+ */
211
+ access: 'read_write' | 'read_only';
212
+
213
+ /**
214
+ * Instructions for how the agent should use this memory store. Must not be empty.
215
+ */
216
+ instructions: string;
217
+
218
+ /**
219
+ * UID of the memory store.
220
+ */
221
+ uid: string;
222
+ }
190
223
 
191
224
  /**
192
- * UID of the memory store.
225
+ * Auto-memory state for an agent.
193
226
  */
194
- uid: string;
227
+ export interface AutoMemory {
228
+ /**
229
+ * Whether this agent has an agent-owned memory store.
230
+ */
231
+ enabled: boolean;
232
+
233
+ /**
234
+ * Memory store attached to an agent.
235
+ */
236
+ store?: AutoMemory.Store;
237
+ }
238
+
239
+ export namespace AutoMemory {
240
+ /**
241
+ * Memory store attached to an agent.
242
+ */
243
+ export interface Store {
244
+ /**
245
+ * Access level for the store.
246
+ */
247
+ access: 'read_write' | 'read_only';
248
+
249
+ /**
250
+ * Instructions for how the agent should use this memory store.
251
+ */
252
+ instructions: string;
253
+
254
+ /**
255
+ * Public owner type.
256
+ */
257
+ owner_type: 'user' | 'service_account' | 'team';
258
+
259
+ /**
260
+ * Public UID of the user, service account, or team that owns the memory store.
261
+ */
262
+ owner_uid: string;
263
+
264
+ /**
265
+ * UID of the memory store.
266
+ */
267
+ uid: string;
268
+
269
+ /**
270
+ * Optional description for the memory store.
271
+ */
272
+ description?: string;
273
+ }
274
+ }
195
275
  }
196
276
 
197
277
  /**
@@ -296,11 +376,15 @@ export interface CreateAgentRequest {
296
376
  inference_providers?: CreateAgentRequest.InferenceProviders;
297
377
 
298
378
  /**
299
- * Optional list of memory stores to attach to the agent. Each store must be
300
- * team-owned by the same team as the agent. Duplicate UIDs within a single request
301
- * are rejected.
379
+ * Optional map of MCP server configurations by name to attach to runs executed by
380
+ * this agent. Run-level MCP config takes precedence over this agent-level default.
381
+ */
382
+ mcp_servers?: { [key: string]: AgentAPI.McpServerConfig };
383
+
384
+ /**
385
+ * Memory settings for creating an agent.
302
386
  */
303
- memory_stores?: Array<CreateAgentRequest.MemoryStore>;
387
+ memory?: CreateAgentRequest.Memory;
304
388
 
305
389
  /**
306
390
  * Optional base prompt for this agent
@@ -378,23 +462,52 @@ export namespace CreateAgentRequest {
378
462
  }
379
463
 
380
464
  /**
381
- * Reference to a memory store to attach to an agent.
465
+ * Memory settings for creating an agent.
382
466
  */
383
- export interface MemoryStore {
467
+ export interface Memory {
468
+ /**
469
+ * Existing team memory stores to attach to the agent. Duplicate UIDs within a
470
+ * single request are rejected.
471
+ */
472
+ attached_stores?: Array<Memory.AttachedStore>;
473
+
384
474
  /**
385
- * Access level for the store.
475
+ * Auto-memory settings for creating an agent.
386
476
  */
387
- access: 'read_write' | 'read_only';
477
+ auto_memory?: Memory.AutoMemory;
478
+ }
388
479
 
480
+ export namespace Memory {
389
481
  /**
390
- * Instructions for how the agent should use this memory store. Must not be empty.
482
+ * Reference to a memory store to attach to an agent.
391
483
  */
392
- instructions: string;
484
+ export interface AttachedStore {
485
+ /**
486
+ * Access level for the store.
487
+ */
488
+ access: 'read_write' | 'read_only';
489
+
490
+ /**
491
+ * Instructions for how the agent should use this memory store. Must not be empty.
492
+ */
493
+ instructions: string;
494
+
495
+ /**
496
+ * UID of the memory store.
497
+ */
498
+ uid: string;
499
+ }
393
500
 
394
501
  /**
395
- * UID of the memory store.
502
+ * Auto-memory settings for creating an agent.
396
503
  */
397
- uid: string;
504
+ export interface AutoMemory {
505
+ /**
506
+ * Whether to create and attach a default service-account-owned memory store for
507
+ * this agent. Defaults to true when omitted.
508
+ */
509
+ enabled?: boolean;
510
+ }
398
511
  }
399
512
 
400
513
  /**
@@ -456,10 +569,16 @@ export interface UpdateAgentRequest {
456
569
  inference_providers?: UpdateAgentRequest.InferenceProviders | null;
457
570
 
458
571
  /**
459
- * Replacement list of memory stores. Omit to leave unchanged, pass an empty array
460
- * to clear, or pass a non-empty array to replace.
572
+ * Replacement map of MCP server configurations by name. Omit to leave unchanged,
573
+ * pass an empty object to clear, or pass a non-empty object to replace. Run-level
574
+ * MCP config takes precedence over this agent-level default.
461
575
  */
462
- memory_stores?: Array<UpdateAgentRequest.MemoryStore> | null;
576
+ mcp_servers?: { [key: string]: AgentAPI.McpServerConfig };
577
+
578
+ /**
579
+ * Memory settings for updating an agent.
580
+ */
581
+ memory?: UpdateAgentRequest.Memory | null;
463
582
 
464
583
  /**
465
584
  * The new name for the agent
@@ -539,23 +658,36 @@ export namespace UpdateAgentRequest {
539
658
  }
540
659
 
541
660
  /**
542
- * Reference to a memory store to attach to an agent.
661
+ * Memory settings for updating an agent.
543
662
  */
544
- export interface MemoryStore {
663
+ export interface Memory {
545
664
  /**
546
- * Access level for the store.
665
+ * Replacement list of attached team memory stores. Omit to leave unchanged, pass
666
+ * an empty array to clear, or pass a non-empty array to replace.
547
667
  */
548
- access: 'read_write' | 'read_only';
668
+ attached_stores?: Array<Memory.AttachedStore> | null;
669
+ }
549
670
 
671
+ export namespace Memory {
550
672
  /**
551
- * Instructions for how the agent should use this memory store. Must not be empty.
673
+ * Reference to a memory store to attach to an agent.
552
674
  */
553
- instructions: string;
675
+ export interface AttachedStore {
676
+ /**
677
+ * Access level for the store.
678
+ */
679
+ access: 'read_write' | 'read_only';
554
680
 
555
- /**
556
- * UID of the memory store.
557
- */
558
- uid: string;
681
+ /**
682
+ * Instructions for how the agent should use this memory store. Must not be empty.
683
+ */
684
+ instructions: string;
685
+
686
+ /**
687
+ * UID of the memory store.
688
+ */
689
+ uid: string;
690
+ }
559
691
  }
560
692
 
561
693
  /**
@@ -608,11 +740,15 @@ export interface AgentCreateParams {
608
740
  inference_providers?: AgentCreateParams.InferenceProviders;
609
741
 
610
742
  /**
611
- * Optional list of memory stores to attach to the agent. Each store must be
612
- * team-owned by the same team as the agent. Duplicate UIDs within a single request
613
- * are rejected.
743
+ * Optional map of MCP server configurations by name to attach to runs executed by
744
+ * this agent. Run-level MCP config takes precedence over this agent-level default.
745
+ */
746
+ mcp_servers?: { [key: string]: AgentAPI.McpServerConfig };
747
+
748
+ /**
749
+ * Memory settings for creating an agent.
614
750
  */
615
- memory_stores?: Array<AgentCreateParams.MemoryStore>;
751
+ memory?: AgentCreateParams.Memory;
616
752
 
617
753
  /**
618
754
  * Optional base prompt for this agent
@@ -690,23 +826,52 @@ export namespace AgentCreateParams {
690
826
  }
691
827
 
692
828
  /**
693
- * Reference to a memory store to attach to an agent.
829
+ * Memory settings for creating an agent.
694
830
  */
695
- export interface MemoryStore {
831
+ export interface Memory {
696
832
  /**
697
- * Access level for the store.
833
+ * Existing team memory stores to attach to the agent. Duplicate UIDs within a
834
+ * single request are rejected.
698
835
  */
699
- access: 'read_write' | 'read_only';
836
+ attached_stores?: Array<Memory.AttachedStore>;
700
837
 
701
838
  /**
702
- * Instructions for how the agent should use this memory store. Must not be empty.
839
+ * Auto-memory settings for creating an agent.
703
840
  */
704
- instructions: string;
841
+ auto_memory?: Memory.AutoMemory;
842
+ }
705
843
 
844
+ export namespace Memory {
706
845
  /**
707
- * UID of the memory store.
846
+ * Reference to a memory store to attach to an agent.
708
847
  */
709
- uid: string;
848
+ export interface AttachedStore {
849
+ /**
850
+ * Access level for the store.
851
+ */
852
+ access: 'read_write' | 'read_only';
853
+
854
+ /**
855
+ * Instructions for how the agent should use this memory store. Must not be empty.
856
+ */
857
+ instructions: string;
858
+
859
+ /**
860
+ * UID of the memory store.
861
+ */
862
+ uid: string;
863
+ }
864
+
865
+ /**
866
+ * Auto-memory settings for creating an agent.
867
+ */
868
+ export interface AutoMemory {
869
+ /**
870
+ * Whether to create and attach a default service-account-owned memory store for
871
+ * this agent. Defaults to true when omitted.
872
+ */
873
+ enabled?: boolean;
874
+ }
710
875
  }
711
876
 
712
877
  /**
@@ -757,10 +922,16 @@ export interface AgentUpdateParams {
757
922
  inference_providers?: AgentUpdateParams.InferenceProviders | null;
758
923
 
759
924
  /**
760
- * Replacement list of memory stores. Omit to leave unchanged, pass an empty array
761
- * to clear, or pass a non-empty array to replace.
925
+ * Replacement map of MCP server configurations by name. Omit to leave unchanged,
926
+ * pass an empty object to clear, or pass a non-empty object to replace. Run-level
927
+ * MCP config takes precedence over this agent-level default.
928
+ */
929
+ mcp_servers?: { [key: string]: AgentAPI.McpServerConfig };
930
+
931
+ /**
932
+ * Memory settings for updating an agent.
762
933
  */
763
- memory_stores?: Array<AgentUpdateParams.MemoryStore> | null;
934
+ memory?: AgentUpdateParams.Memory | null;
764
935
 
765
936
  /**
766
937
  * The new name for the agent
@@ -840,23 +1011,36 @@ export namespace AgentUpdateParams {
840
1011
  }
841
1012
 
842
1013
  /**
843
- * Reference to a memory store to attach to an agent.
1014
+ * Memory settings for updating an agent.
844
1015
  */
845
- export interface MemoryStore {
1016
+ export interface Memory {
846
1017
  /**
847
- * Access level for the store.
1018
+ * Replacement list of attached team memory stores. Omit to leave unchanged, pass
1019
+ * an empty array to clear, or pass a non-empty array to replace.
848
1020
  */
849
- access: 'read_write' | 'read_only';
1021
+ attached_stores?: Array<Memory.AttachedStore> | null;
1022
+ }
850
1023
 
1024
+ export namespace Memory {
851
1025
  /**
852
- * Instructions for how the agent should use this memory store. Must not be empty.
1026
+ * Reference to a memory store to attach to an agent.
853
1027
  */
854
- instructions: string;
1028
+ export interface AttachedStore {
1029
+ /**
1030
+ * Access level for the store.
1031
+ */
1032
+ access: 'read_write' | 'read_only';
855
1033
 
856
- /**
857
- * UID of the memory store.
858
- */
859
- uid: string;
1034
+ /**
1035
+ * Instructions for how the agent should use this memory store. Must not be empty.
1036
+ */
1037
+ instructions: string;
1038
+
1039
+ /**
1040
+ * UID of the memory store.
1041
+ */
1042
+ uid: string;
1043
+ }
860
1044
  }
861
1045
 
862
1046
  /**
@@ -92,7 +92,6 @@ export class Runs extends APIResource {
92
92
  * ```ts
93
93
  * const response = await client.agent.runs.submitFollowup(
94
94
  * 'runId',
95
- * { message: 'message' },
96
95
  * );
97
96
  * ```
98
97
  */
@@ -347,6 +346,14 @@ export interface RunItem {
347
346
 
348
347
  executor?: AgentAPI.UserProfile;
349
348
 
349
+ /**
350
+ * Whether the run's type is eligible for cancellation via the API.
351
+ * State-independent: false for GitHub Action and local runs; true for all other
352
+ * run types (including self-hosted). Clients should still gate the control on the
353
+ * run's current state.
354
+ */
355
+ is_run_type_cancellable?: boolean;
356
+
350
357
  /**
351
358
  * Whether the sandbox environment is currently running
352
359
  */
@@ -362,6 +369,12 @@ export interface RunItem {
362
369
  */
363
370
  request_usage?: RunItem.RequestUsage;
364
371
 
372
+ /**
373
+ * Total runtime as an ISO 8601 duration (e.g. "PT2M30S"), computed server-side
374
+ * from run executions.
375
+ */
376
+ run_time?: string;
377
+
365
378
  /**
366
379
  * Information about the schedule that triggered this run (only present for
367
380
  * scheduled runs)
@@ -395,6 +408,7 @@ export interface RunItem {
395
408
  * - GITHUB_ACTION: Created from a GitHub action
396
409
  * - CLOUD_MODE: Created from a Cloud Mode
397
410
  * - CLI: Created from the CLI
411
+ * - JIRA: Created from Jira integration
398
412
  */
399
413
  source?: RunSourceType;
400
414
 
@@ -544,6 +558,7 @@ export namespace RunItem {
544
558
  * - GITHUB_ACTION: Created from a GitHub action
545
559
  * - CLOUD_MODE: Created from a Cloud Mode
546
560
  * - CLI: Created from the CLI
561
+ * - JIRA: Created from Jira integration
547
562
  */
548
563
  export type RunSourceType =
549
564
  | 'LINEAR'
@@ -554,7 +569,8 @@ export type RunSourceType =
554
569
  | 'WEB_APP'
555
570
  | 'GITHUB_ACTION'
556
571
  | 'CLOUD_MODE'
557
- | 'CLI';
572
+ | 'CLI'
573
+ | 'JIRA';
558
574
 
559
575
  /**
560
576
  * Current state of the run:
@@ -735,7 +751,7 @@ export interface RunSubmitFollowupParams {
735
751
  /**
736
752
  * The follow-up message to send to the run.
737
753
  */
738
- message: string;
754
+ message?: string;
739
755
 
740
756
  /**
741
757
  * Optional query mode for the follow-up. Defaults to `normal` when omitted. The
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.4.0-alpha.2'; // x-release-please-version
1
+ export const VERSION = '1.4.0-alpha.4'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.4.0-alpha.2";
1
+ export declare const VERSION = "1.4.0-alpha.4";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.4.0-alpha.2";
1
+ export declare const VERSION = "1.4.0-alpha.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.4.0-alpha.2'; // x-release-please-version
4
+ exports.VERSION = '1.4.0-alpha.4'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.4.0-alpha.2'; // x-release-please-version
1
+ export const VERSION = '1.4.0-alpha.4'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map