Skip to content

Commit 16c66fd

Browse files
feat: Define auth secrets and inject them into the environment.
1 parent 3cd87de commit 16c66fd

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.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-d45cb71aa9505f79b4ad42f50c3528e028508a941068c137393cbf2f54a8dd20.yml
3-
openapi_spec_hash: 2816d2eedf7d73fdde8a3fbb7bc96336
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-d57dae004e23149ddae4bd26e3ba05c2378d2c1070df0f303b19e45111c780d5.yml
3+
openapi_spec_hash: 6a15b456e6520a79981fafed3b0c94b9
44
config_hash: 40327fb76b7cce7b97f23de9b8d48efb

src/resources/agent/agent.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,14 @@ export namespace AmbientAgentConfig {
236236
* uses Warp's built-in harness.
237237
*/
238238
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+
239247
/**
240248
* The harness type identifier.
241249
*

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('resource schedules', () => {
3232
base_prompt: 'base_prompt',
3333
computer_use_enabled: true,
3434
environment_id: 'environment_id',
35-
harness: { type: 'oz' },
35+
harness: { auth_secret_name: 'auth_secret_name', type: 'oz' },
3636
idle_timeout_minutes: 1,
3737
mcp_servers: {
3838
foo: {
@@ -93,7 +93,7 @@ describe('resource schedules', () => {
9393
base_prompt: 'base_prompt',
9494
computer_use_enabled: true,
9595
environment_id: 'environment_id',
96-
harness: { type: 'oz' },
96+
harness: { auth_secret_name: 'auth_secret_name', type: 'oz' },
9797
idle_timeout_minutes: 1,
9898
mcp_servers: {
9999
foo: {

0 commit comments

Comments
 (0)