Skip to content

Commit ebeaf82

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#12)
1 parent 9191ed6 commit ebeaf82

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-1ccf843d2efab92c6fa01ffb11a0b5e6787218d750597687de526ac9f22f6b81.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-3140ed9942ce873c477c950cc9a13ccce88c3b054b903cdf78ac0db6cf2c634f.yml

src/resources/sessions/sessions.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@ export interface SessionCreateParams {
235235
* The region where the Session should run.
236236
*/
237237
region?: 'us-west-2' | 'us-east-1' | 'eu-central-1' | 'ap-southeast-1';
238+
239+
/**
240+
* Duration in seconds after which the session will automatically end. Defaults to
241+
* the Project's `defaultTimeout`.
242+
*/
243+
timeout?: number;
238244
}
239245

240246
export namespace SessionCreateParams {

tests/api-resources/sessions/sessions.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ describe('resource sessions', () => {
4444
keepAlive: true,
4545
proxies: {},
4646
region: 'us-west-2',
47+
timeout: 60,
4748
});
4849
});
4950

0 commit comments

Comments
 (0)