Skip to content

Commit b3315e0

Browse files
feat(api): api update (#120)
1 parent 03b5237 commit b3315e0

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-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-7d749df7d5d78af46e1469203f20eca5dedd2f06076b3191f44ef921f4b10596.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-3b940292f5146d4659546ef49685da0a2877a622957e2cf48c6bc2ccf3c153ca.yml

src/resources/sessions/sessions.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ export interface Session {
111111
* Memory used by the Session
112112
*/
113113
memoryUsage?: number;
114+
115+
/**
116+
* Arbitrary user metadata to attach to the session.
117+
*/
118+
userMetadata?: unknown;
114119
}
115120

116121
export interface SessionLiveURLs {
@@ -203,6 +208,11 @@ export interface SessionCreateResponse {
203208
* Memory used by the Session
204209
*/
205210
memoryUsage?: number;
211+
212+
/**
213+
* Arbitrary user metadata to attach to the session.
214+
*/
215+
userMetadata?: unknown;
206216
}
207217

208218
export type SessionListResponse = Array<Session>;
@@ -246,6 +256,11 @@ export interface SessionCreateParams {
246256
* the Project's `defaultTimeout`.
247257
*/
248258
timeout?: number;
259+
260+
/**
261+
* Arbitrary user metadata to attach to the session.
262+
*/
263+
userMetadata?: unknown;
249264
}
250265

251266
export namespace SessionCreateParams {

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

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

0 commit comments

Comments
 (0)