Skip to content

Commit 277a2bd

Browse files
feat(api): api update
1 parent 9198d9d commit 277a2bd

7 files changed

Lines changed: 131 additions & 150 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: f505a9f31ba650e10b8b4398998fa9e8
4+
config_hash: 1888db8b2f33dc16874aea51a90e78f7

api.md

Lines changed: 0 additions & 5 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>
@@ -27,14 +26,10 @@ Methods:
2726

2827
Types:
2928

30-
- <code><a href="./src/resources/agent/runs.ts">AgentSkill</a></code>
3129
- <code><a href="./src/resources/agent/runs.ts">ArtifactItem</a></code>
32-
- <code><a href="./src/resources/agent/runs.ts">RequestUsage</a></code>
3330
- <code><a href="./src/resources/agent/runs.ts">RunItem</a></code>
3431
- <code><a href="./src/resources/agent/runs.ts">RunSourceType</a></code>
3532
- <code><a href="./src/resources/agent/runs.ts">RunState</a></code>
36-
- <code><a href="./src/resources/agent/runs.ts">RunStatusMessage</a></code>
37-
- <code><a href="./src/resources/agent/runs.ts">ScheduleInfo</a></code>
3833
- <code><a href="./src/resources/agent/runs.ts">RunCancelResponse</a></code>
3934

4035
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,

0 commit comments

Comments
 (0)