Skip to content

Commit 9198d9d

Browse files
feat(api): manual updates
1 parent aca8a44 commit 9198d9d

7 files changed

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

api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ 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>
1213
- <code><a href="./src/resources/agent/agent.ts">McpServerConfig</a></code>
1314
- <code><a href="./src/resources/agent/agent.ts">Scope</a></code>
1415
- <code><a href="./src/resources/agent/agent.ts">UserProfile</a></code>
@@ -26,10 +27,14 @@ Methods:
2627

2728
Types:
2829

30+
- <code><a href="./src/resources/agent/runs.ts">AgentSkill</a></code>
2931
- <code><a href="./src/resources/agent/runs.ts">ArtifactItem</a></code>
32+
- <code><a href="./src/resources/agent/runs.ts">RequestUsage</a></code>
3033
- <code><a href="./src/resources/agent/runs.ts">RunItem</a></code>
3134
- <code><a href="./src/resources/agent/runs.ts">RunSourceType</a></code>
3235
- <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>
3338
- <code><a href="./src/resources/agent/runs.ts">RunCancelResponse</a></code>
3439

3540
Methods:

src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import {
3333
Error,
3434
ErrorCode,
3535
GcpProviderConfig,
36+
Harness,
3637
McpServerConfig,
3738
Scope,
3839
UserProfile,
@@ -785,6 +786,7 @@ export declare namespace OzAPI {
785786
type Error as Error,
786787
type ErrorCode as ErrorCode,
787788
type GcpProviderConfig as GcpProviderConfig,
789+
type Harness as Harness,
788790
type McpServerConfig as McpServerConfig,
789791
type Scope as Scope,
790792
type UserProfile as UserProfile,

src/resources/agent/agent.ts

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ import * as AgentAPI from './agent';
55
import * as RunsAPI from './runs';
66
import {
77
ArtifactItem,
8+
RequestUsage,
89
RunCancelResponse,
910
RunItem,
1011
RunItemsRunsCursorPage,
1112
RunListParams,
1213
RunSourceType,
1314
RunState,
15+
RunStatusMessage,
1416
Runs,
17+
ScheduleInfo,
1518
} from './runs';
1619
import * as SchedulesAPI from './schedules';
1720
import {
@@ -188,7 +191,7 @@ export interface AmbientAgentConfig {
188191
* Specifies which execution harness to use for the agent run. Default (nil/empty)
189192
* uses Warp's built-in Oz harness.
190193
*/
191-
harness?: AmbientAgentConfig.Harness;
194+
harness?: Harness;
192195

193196
/**
194197
* Number of minutes to keep the agent environment alive after task completion. If
@@ -230,19 +233,6 @@ export interface AmbientAgentConfig {
230233
worker_host?: string;
231234
}
232235

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-
246236
/**
247237
* AWS IAM role assumption settings
248238
*/
@@ -439,6 +429,17 @@ export interface GcpProviderConfig {
439429
workload_identity_federation_provider_id: string;
440430
}
441431

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+
442443
/**
443444
* Configuration for an MCP server. Must have exactly one of: warp_id, command, or
444445
* url.
@@ -730,6 +731,7 @@ export declare namespace Agent {
730731
type Error as Error,
731732
type ErrorCode as ErrorCode,
732733
type GcpProviderConfig as GcpProviderConfig,
734+
type Harness as Harness,
733735
type McpServerConfig as McpServerConfig,
734736
type Scope as Scope,
735737
type UserProfile as UserProfile,
@@ -743,9 +745,12 @@ export declare namespace Agent {
743745
export {
744746
Runs as Runs,
745747
type ArtifactItem as ArtifactItem,
748+
type RequestUsage as RequestUsage,
746749
type RunItem as RunItem,
747750
type RunSourceType as RunSourceType,
748751
type RunState as RunState,
752+
type RunStatusMessage as RunStatusMessage,
753+
type ScheduleInfo as ScheduleInfo,
749754
type RunCancelResponse as RunCancelResponse,
750755
type RunItemsRunsCursorPage as RunItemsRunsCursorPage,
751756
type RunListParams as RunListParams,

src/resources/agent/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export {
99
type Error,
1010
type ErrorCode,
1111
type GcpProviderConfig,
12+
type Harness,
1213
type McpServerConfig,
1314
type Scope,
1415
type UserProfile,
@@ -21,9 +22,12 @@ export {
2122
export {
2223
Runs,
2324
type ArtifactItem,
25+
type RequestUsage,
2426
type RunItem,
2527
type RunSourceType,
2628
type RunState,
29+
type RunStatusMessage,
30+
type ScheduleInfo,
2731
type RunCancelResponse,
2832
type RunListParams,
2933
type RunItemsRunsCursorPage,

0 commit comments

Comments
 (0)