Skip to content

Commit 1e3f393

Browse files
feat(api): api update
1 parent 4923772 commit 1e3f393

7 files changed

Lines changed: 102 additions & 121 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 14
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-e281c64ee44d0db13ba9ce62d3a61e8b17fcd1fad9bffb5c3b0e3dfb2b5e66e1.yml
33
openapi_spec_hash: 6bd667f546147c5fac3bffe34522ba2f
4-
config_hash: 56e5336dfbbacf3f4ec7f63b41309773
4+
config_hash: 1888db8b2f33dc16874aea51a90e78f7

api.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Types:
99
- <code><a href="./src/resources/agent/agent.ts">Error</a></code>
1010
- <code><a href="./src/resources/agent/agent.ts">ErrorCode</a></code>
1111
- <code><a href="./src/resources/agent/agent.ts">GcpProviderConfig</a></code>
12-
- <code><a href="./src/resources/agent/agent.ts">Harness</a></code>
1312
- <code><a href="./src/resources/agent/agent.ts">McpServerConfig</a></code>
1413
- <code><a href="./src/resources/agent/agent.ts">Scope</a></code>
1514
- <code><a href="./src/resources/agent/agent.ts">UserProfile</a></code>
@@ -28,12 +27,9 @@ Methods:
2827
Types:
2928

3029
- <code><a href="./src/resources/agent/runs.ts">ArtifactItem</a></code>
31-
- <code><a href="./src/resources/agent/runs.ts">RequestUsage</a></code>
3230
- <code><a href="./src/resources/agent/runs.ts">RunItem</a></code>
3331
- <code><a href="./src/resources/agent/runs.ts">RunSourceType</a></code>
3432
- <code><a href="./src/resources/agent/runs.ts">RunState</a></code>
35-
- <code><a href="./src/resources/agent/runs.ts">RunStatusMessage</a></code>
36-
- <code><a href="./src/resources/agent/runs.ts">ScheduleInfo</a></code>
3733
- <code><a href="./src/resources/agent/runs.ts">RunCancelResponse</a></code>
3834

3935
Methods:

src/client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
Error,
3434
ErrorCode,
3535
GcpProviderConfig,
36-
Harness,
3736
McpServerConfig,
3837
Scope,
3938
UserProfile,
@@ -786,7 +785,6 @@ export declare namespace OzAPI {
786785
type Error as Error,
787786
type ErrorCode as ErrorCode,
788787
type GcpProviderConfig as GcpProviderConfig,
789-
type Harness as Harness,
790788
type McpServerConfig as McpServerConfig,
791789
type Scope as Scope,
792790
type UserProfile as UserProfile,

src/resources/agent/agent.ts

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@ import * as AgentAPI from './agent';
55
import * as RunsAPI from './runs';
66
import {
77
ArtifactItem,
8-
RequestUsage,
98
RunCancelResponse,
109
RunItem,
1110
RunItemsRunsCursorPage,
1211
RunListParams,
1312
RunSourceType,
1413
RunState,
15-
RunStatusMessage,
1614
Runs,
17-
ScheduleInfo,
1815
} from './runs';
1916
import * as SchedulesAPI from './schedules';
2017
import {
@@ -191,7 +188,7 @@ export interface AmbientAgentConfig {
191188
* Specifies which execution harness to use for the agent run. Default (nil/empty)
192189
* uses Warp's built-in Oz harness.
193190
*/
194-
harness?: Harness;
191+
harness?: AmbientAgentConfig.Harness;
195192

196193
/**
197194
* Number of minutes to keep the agent environment alive after task completion. If
@@ -233,6 +230,19 @@ export interface AmbientAgentConfig {
233230
worker_host?: string;
234231
}
235232

233+
export namespace AmbientAgentConfig {
234+
/**
235+
* Specifies which execution harness to use for the agent run. Default (nil/empty)
236+
* uses Warp's built-in Oz harness.
237+
*/
238+
export interface Harness {
239+
/**
240+
* The harness type identifier (e.g. "claude").
241+
*/
242+
type?: string;
243+
}
244+
}
245+
236246
/**
237247
* AWS IAM role assumption settings
238248
*/
@@ -429,17 +439,6 @@ export interface GcpProviderConfig {
429439
workload_identity_federation_provider_id: string;
430440
}
431441

432-
/**
433-
* Specifies which execution harness to use for the agent run. Default (nil/empty)
434-
* uses Warp's built-in Oz harness.
435-
*/
436-
export interface Harness {
437-
/**
438-
* The harness type identifier (e.g. "claude").
439-
*/
440-
type?: string;
441-
}
442-
443442
/**
444443
* Configuration for an MCP server. Must have exactly one of: warp_id, command, or
445444
* url.
@@ -731,7 +730,6 @@ export declare namespace Agent {
731730
type Error as Error,
732731
type ErrorCode as ErrorCode,
733732
type GcpProviderConfig as GcpProviderConfig,
734-
type Harness as Harness,
735733
type McpServerConfig as McpServerConfig,
736734
type Scope as Scope,
737735
type UserProfile as UserProfile,
@@ -745,12 +743,9 @@ export declare namespace Agent {
745743
export {
746744
Runs as Runs,
747745
type ArtifactItem as ArtifactItem,
748-
type RequestUsage as RequestUsage,
749746
type RunItem as RunItem,
750747
type RunSourceType as RunSourceType,
751748
type RunState as RunState,
752-
type RunStatusMessage as RunStatusMessage,
753-
type ScheduleInfo as ScheduleInfo,
754749
type RunCancelResponse as RunCancelResponse,
755750
type RunItemsRunsCursorPage as RunItemsRunsCursorPage,
756751
type RunListParams as RunListParams,

src/resources/agent/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export {
99
type Error,
1010
type ErrorCode,
1111
type GcpProviderConfig,
12-
type Harness,
1312
type McpServerConfig,
1413
type Scope,
1514
type UserProfile,
@@ -22,12 +21,9 @@ export {
2221
export {
2322
Runs,
2423
type ArtifactItem,
25-
type RequestUsage,
2624
type RunItem,
2725
type RunSourceType,
2826
type RunState,
29-
type RunStatusMessage,
30-
type ScheduleInfo,
3127
type RunCancelResponse,
3228
type RunListParams,
3329
type RunItemsRunsCursorPage,

src/resources/agent/runs.ts

Lines changed: 87 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -164,21 +164,6 @@ export namespace ArtifactItem {
164164
}
165165
}
166166

167-
/**
168-
* Resource usage information for the run
169-
*/
170-
export interface RequestUsage {
171-
/**
172-
* Cost of compute resources for the run
173-
*/
174-
compute_cost?: number;
175-
176-
/**
177-
* Cost of LLM inference for the run
178-
*/
179-
inference_cost?: number;
180-
}
181-
182167
export interface RunItem {
183168
/**
184169
* Timestamp when the run was created (RFC3339)
@@ -264,13 +249,13 @@ export interface RunItem {
264249
/**
265250
* Resource usage information for the run
266251
*/
267-
request_usage?: RequestUsage;
252+
request_usage?: RunItem.RequestUsage;
268253

269254
/**
270255
* Information about the schedule that triggered this run (only present for
271256
* scheduled runs)
272257
*/
273-
schedule?: ScheduleInfo;
258+
schedule?: RunItem.Schedule;
274259

275260
/**
276261
* Ownership scope for a resource (team or personal)
@@ -311,7 +296,7 @@ export interface RunItem {
311296
* Status message for a run. For terminal error states, includes structured error
312297
* code and retryability info from the platform error catalog.
313298
*/
314-
status_message?: RunStatusMessage;
299+
status_message?: RunItem.StatusMessage;
315300
}
316301

317302
export namespace RunItem {
@@ -340,6 +325,90 @@ export namespace RunItem {
340325
*/
341326
name?: string;
342327
}
328+
329+
/**
330+
* Resource usage information for the run
331+
*/
332+
export interface RequestUsage {
333+
/**
334+
* Cost of compute resources for the run
335+
*/
336+
compute_cost?: number;
337+
338+
/**
339+
* Cost of LLM inference for the run
340+
*/
341+
inference_cost?: number;
342+
}
343+
344+
/**
345+
* Information about the schedule that triggered this run (only present for
346+
* scheduled runs)
347+
*/
348+
export interface Schedule {
349+
/**
350+
* Cron expression at the time the run was created
351+
*/
352+
cron_schedule: string;
353+
354+
/**
355+
* Unique identifier for the schedule
356+
*/
357+
schedule_id: string;
358+
359+
/**
360+
* Name of the schedule at the time the run was created
361+
*/
362+
schedule_name: string;
363+
}
364+
365+
/**
366+
* Status message for a run. For terminal error states, includes structured error
367+
* code and retryability info from the platform error catalog.
368+
*/
369+
export interface StatusMessage {
370+
/**
371+
* Human-readable status message
372+
*/
373+
message: string;
374+
375+
/**
376+
* Machine-readable error code identifying the problem type. Used in the `type` URI
377+
* of Error responses and in the `error_code` field of RunStatusMessage.
378+
*
379+
* User errors (run transitions to FAILED):
380+
*
381+
* - `insufficient_credits` — Team has no remaining add-on credits
382+
* - `feature_not_available` — Required feature not enabled for user's plan
383+
* - `external_authentication_required` — User hasn't authorized a required
384+
* external service
385+
* - `not_authorized` — Principal lacks permission for the requested operation
386+
* - `invalid_request` — Request is malformed or contains invalid parameters
387+
* - `resource_not_found` — Referenced resource does not exist
388+
* - `budget_exceeded` — Spending budget limit has been reached
389+
* - `integration_disabled` — Integration is disabled and must be enabled
390+
* - `integration_not_configured` — Integration setup is incomplete
391+
* - `operation_not_supported` — Requested operation not supported for this
392+
* resource/state
393+
* - `environment_setup_failed` — Client-side environment setup failed
394+
* - `content_policy_violation` — Prompt or setup commands violated content policy
395+
* - `conflict` — Request conflicts with the current state of the resource
396+
*
397+
* Warp errors (run transitions to ERROR):
398+
*
399+
* - `authentication_required` — Request lacks valid authentication credentials
400+
* - `resource_unavailable` — Transient infrastructure issue (retryable)
401+
* - `internal_error` — Unexpected server-side error (retryable)
402+
*/
403+
error_code?: AgentAPI.ErrorCode;
404+
405+
/**
406+
* Whether the error is transient and the client may retry by submitting a new run.
407+
* Only present on terminal error states. When false, retrying without addressing
408+
* the underlying cause will not succeed.
409+
*/
410+
retryable?: boolean;
411+
}
343412
}
344413

345414
/**
@@ -390,75 +459,6 @@ export type RunState =
390459
| 'ERROR'
391460
| 'CANCELLED';
392461

393-
/**
394-
* Status message for a run. For terminal error states, includes structured error
395-
* code and retryability info from the platform error catalog.
396-
*/
397-
export interface RunStatusMessage {
398-
/**
399-
* Human-readable status message
400-
*/
401-
message: string;
402-
403-
/**
404-
* Machine-readable error code identifying the problem type. Used in the `type` URI
405-
* of Error responses and in the `error_code` field of RunStatusMessage.
406-
*
407-
* User errors (run transitions to FAILED):
408-
*
409-
* - `insufficient_credits` — Team has no remaining add-on credits
410-
* - `feature_not_available` — Required feature not enabled for user's plan
411-
* - `external_authentication_required` — User hasn't authorized a required
412-
* external service
413-
* - `not_authorized` — Principal lacks permission for the requested operation
414-
* - `invalid_request` — Request is malformed or contains invalid parameters
415-
* - `resource_not_found` — Referenced resource does not exist
416-
* - `budget_exceeded` — Spending budget limit has been reached
417-
* - `integration_disabled` — Integration is disabled and must be enabled
418-
* - `integration_not_configured` — Integration setup is incomplete
419-
* - `operation_not_supported` — Requested operation not supported for this
420-
* resource/state
421-
* - `environment_setup_failed` — Client-side environment setup failed
422-
* - `content_policy_violation` — Prompt or setup commands violated content policy
423-
* - `conflict` — Request conflicts with the current state of the resource
424-
*
425-
* Warp errors (run transitions to ERROR):
426-
*
427-
* - `authentication_required` — Request lacks valid authentication credentials
428-
* - `resource_unavailable` — Transient infrastructure issue (retryable)
429-
* - `internal_error` — Unexpected server-side error (retryable)
430-
*/
431-
error_code?: AgentAPI.ErrorCode;
432-
433-
/**
434-
* Whether the error is transient and the client may retry by submitting a new run.
435-
* Only present on terminal error states. When false, retrying without addressing
436-
* the underlying cause will not succeed.
437-
*/
438-
retryable?: boolean;
439-
}
440-
441-
/**
442-
* Information about the schedule that triggered this run (only present for
443-
* scheduled runs)
444-
*/
445-
export interface ScheduleInfo {
446-
/**
447-
* Cron expression at the time the run was created
448-
*/
449-
cron_schedule: string;
450-
451-
/**
452-
* Unique identifier for the schedule
453-
*/
454-
schedule_id: string;
455-
456-
/**
457-
* Name of the schedule at the time the run was created
458-
*/
459-
schedule_name: string;
460-
}
461-
462462
/**
463463
* The ID of the cancelled run
464464
*/
@@ -561,12 +561,9 @@ export interface RunListParams extends RunsCursorPageParams {
561561
export declare namespace Runs {
562562
export {
563563
type ArtifactItem as ArtifactItem,
564-
type RequestUsage as RequestUsage,
565564
type RunItem as RunItem,
566565
type RunSourceType as RunSourceType,
567566
type RunState as RunState,
568-
type RunStatusMessage as RunStatusMessage,
569-
type ScheduleInfo as ScheduleInfo,
570567
type RunCancelResponse as RunCancelResponse,
571568
type RunItemsRunsCursorPage as RunItemsRunsCursorPage,
572569
type RunListParams as RunListParams,

src/resources/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export {
99
type Error,
1010
type ErrorCode,
1111
type GcpProviderConfig,
12-
type Harness,
1312
type McpServerConfig,
1413
type Scope,
1514
type UserProfile,

0 commit comments

Comments
 (0)