Skip to content

Commit 5eeaf0f

Browse files
feat(api): api update (#123)
1 parent 58f702b commit 5eeaf0f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.stats.yml

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

src/resources/sessions/sessions.ts

+2
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ export interface SessionUpdateParams {
445445
}
446446

447447
export interface SessionListParams {
448+
q?: string;
449+
448450
status?: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED';
449451
}
450452

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('resource sessions', () => {
109109
test('list: request options and params are passed correctly', async () => {
110110
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
111111
await expect(
112-
client.sessions.list({ status: 'RUNNING' }, { path: '/_stainless_unknown_path' }),
112+
client.sessions.list({ q: 'q', status: 'RUNNING' }, { path: '/_stainless_unknown_path' }),
113113
).rejects.toThrow(Browserbase.NotFoundError);
114114
});
115115

0 commit comments

Comments
 (0)