Skip to content

Commit 272c460

Browse files
feat(api): api update
1 parent aedca4a commit 272c460

3 files changed

Lines changed: 35 additions & 2 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: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-caba3084bc4ae52a6847df96dd0f8fe0a3b2bc9801ff4d2935092ae7e2c794f7.yml
3-
openapi_spec_hash: d3dd12a5a9bffb132239a2a206890602
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-256ff5878e3bbb3164f39342087829f5114c1918d51212668fe8a1f9c8151e4a.yml
3+
openapi_spec_hash: 900f64d8c755ef60e047b63fe23ace66
44
config_hash: c5fc921cc04f541a85f92299f365eba6

src/resources/agent/agent.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,16 @@ export interface AmbientAgentConfig {
257257
*/
258258
name?: string;
259259

260+
/**
261+
* Configures sharing behavior for the run's shared session. When set, the worker
262+
* emits `--share public:<level>` and the bundled Warp client applies an
263+
* anyone-with-link ACL to the shared session once it has bootstrapped. The same
264+
* ACL is mirrored onto the backing conversation so link viewers can read the
265+
* conversation without being on the run's team. Subject to the workspace-level
266+
* anyone-with-link sharing setting.
267+
*/
268+
session_sharing?: AmbientAgentConfig.SessionSharing;
269+
260270
/**
261271
* Skill specification identifying which agent skill to use. Format:
262272
* "{owner}/{repo}:{skill_path}" Example:
@@ -299,6 +309,27 @@ export namespace AmbientAgentConfig {
299309
*/
300310
claude_auth_secret_name?: string;
301311
}
312+
313+
/**
314+
* Configures sharing behavior for the run's shared session. When set, the worker
315+
* emits `--share public:<level>` and the bundled Warp client applies an
316+
* anyone-with-link ACL to the shared session once it has bootstrapped. The same
317+
* ACL is mirrored onto the backing conversation so link viewers can read the
318+
* conversation without being on the run's team. Subject to the workspace-level
319+
* anyone-with-link sharing setting.
320+
*/
321+
export interface SessionSharing {
322+
/**
323+
* Grants anyone-with-link access at the specified level to the run's shared
324+
* session and backing conversation.
325+
*
326+
* - VIEWER: link viewers can read the session and conversation.
327+
* - EDITOR: link viewers can also interact with the session. Anonymous
328+
* (unauthenticated) reads are not supported in this release; link viewers must
329+
* still be authenticated Warp users.
330+
*/
331+
public_access?: 'VIEWER' | 'EDITOR';
332+
}
302333
}
303334

304335
/**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ describe('resource schedules', () => {
4747
},
4848
model_id: 'model_id',
4949
name: 'name',
50+
session_sharing: { public_access: 'VIEWER' },
5051
skill_spec: 'skill_spec',
5152
worker_host: 'worker_host',
5253
},
@@ -109,6 +110,7 @@ describe('resource schedules', () => {
109110
},
110111
model_id: 'model_id',
111112
name: 'name',
113+
session_sharing: { public_access: 'VIEWER' },
112114
skill_spec: 'skill_spec',
113115
worker_host: 'worker_host',
114116
},

0 commit comments

Comments
 (0)