Skip to content

Commit 52e41eb

Browse files
feat(api): api update
1 parent 2dec429 commit 52e41eb

3 files changed

Lines changed: 12 additions & 25 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-e84e9a84f73c707b6543dcb8052c7d6bec5a6dae80f1fe77aeedf9133e10a4b8.yml
3-
openapi_spec_hash: ba9556a8fa64b9d1e88a27a2d467b835
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-8f9c749573846b07a55a3131b66456f0a592838c6bfc986ab30948df66cd6f11.yml
3+
openapi_spec_hash: 59f1ac98ad6cf13b12c59196bcecffd7
44
config_hash: 60052b2c1c0862014416821aba875574

src/resources/agent/agent.ts

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,6 @@ export interface AmbientAgentConfig {
190190
*/
191191
harness?: AmbientAgentConfig.Harness;
192192

193-
/**
194-
* Authentication secrets for third-party harnesses. Only the secret for the
195-
* harness specified gets injected into the environment.
196-
*/
197-
harness_auth_secrets?: AmbientAgentConfig.HarnessAuthSecrets;
198-
199193
/**
200194
* Number of minutes to keep the agent environment alive after task completion. If
201195
* not set, defaults to 10 minutes. Maximum allowed value is min(60,
@@ -242,6 +236,14 @@ export namespace AmbientAgentConfig {
242236
* uses Warp's built-in harness.
243237
*/
244238
export interface Harness {
239+
/**
240+
* Name of a managed secret to use as the authentication credential for the
241+
* harness. The secret must exist within the caller's personal or team scope. The
242+
* environment variable injected into the agent is determined by the secret type
243+
* (e.g. ANTHROPIC_API_KEY for anthropic_api_key secrets).
244+
*/
245+
auth_secret_name?: string;
246+
245247
/**
246248
* The harness type identifier.
247249
*
@@ -250,19 +252,6 @@ export namespace AmbientAgentConfig {
250252
*/
251253
type?: 'oz' | 'claude';
252254
}
253-
254-
/**
255-
* Authentication secrets for third-party harnesses. Only the secret for the
256-
* harness specified gets injected into the environment.
257-
*/
258-
export interface HarnessAuthSecrets {
259-
/**
260-
* Name of a managed secret for Claude Code harness authentication. The secret must
261-
* exist within the caller's personal or team scope. Only applicable when harness
262-
* type is "claude".
263-
*/
264-
claude_auth_secret_name?: string;
265-
}
266255
}
267256

268257
/**

tests/api-resources/agent/schedules.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ describe('resource schedules', () => {
3232
base_prompt: 'base_prompt',
3333
computer_use_enabled: true,
3434
environment_id: 'environment_id',
35-
harness: { type: 'oz' },
36-
harness_auth_secrets: { claude_auth_secret_name: 'claude_auth_secret_name' },
35+
harness: { auth_secret_name: 'auth_secret_name', type: 'oz' },
3736
idle_timeout_minutes: 1,
3837
mcp_servers: {
3938
foo: {
@@ -94,8 +93,7 @@ describe('resource schedules', () => {
9493
base_prompt: 'base_prompt',
9594
computer_use_enabled: true,
9695
environment_id: 'environment_id',
97-
harness: { type: 'oz' },
98-
harness_auth_secrets: { claude_auth_secret_name: 'claude_auth_secret_name' },
96+
harness: { auth_secret_name: 'auth_secret_name', type: 'oz' },
9997
idle_timeout_minutes: 1,
10098
mcp_servers: {
10199
foo: {

0 commit comments

Comments
 (0)