Skip to content

Commit 299d77e

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#6)
1 parent 4275810 commit 299d77e

File tree

3 files changed

+3
-74
lines changed

3 files changed

+3
-74
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-9af27d5ca04efd55b732756ee4c81b76331e5ee8ab8c74576a3eaf16faac44f1.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-70bae250a6bae7dc6efc73ce837b3244eab63318b2d4de9a77ac8733e104df5b.yml

src/resources/sessions/sessions.ts

Lines changed: 1 addition & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ export interface SessionCreateParams {
172172
* Proxy configuration. Can be true for default proxy, or an array of proxy
173173
* configurations.
174174
*/
175-
proxies?:
176-
| boolean
177-
| Array<SessionCreateParams.BrowserbaseProxyConfig | SessionCreateParams.ExternalProxyConfig>;
175+
proxies?: unknown | boolean;
178176

179177
/**
180178
* Duration in seconds after which the session will automatically end. Defaults to
@@ -279,75 +277,6 @@ export namespace SessionCreateParams {
279277
width?: number;
280278
}
281279
}
282-
283-
export interface BrowserbaseProxyConfig {
284-
/**
285-
* Type of proxy. Always use 'browserbase' for the Browserbase managed proxy
286-
* network.
287-
*/
288-
type: 'browserbase';
289-
290-
/**
291-
* Domain pattern for which this proxy should be used. If omitted, defaults to all
292-
* domains. Optional.
293-
*/
294-
domainPattern?: string;
295-
296-
/**
297-
* Configuration for geolocation
298-
*/
299-
geolocation?: BrowserbaseProxyConfig.Geolocation;
300-
}
301-
302-
export namespace BrowserbaseProxyConfig {
303-
/**
304-
* Configuration for geolocation
305-
*/
306-
export interface Geolocation {
307-
/**
308-
* Country code in ISO 3166-1 alpha-2 format
309-
*/
310-
country: string;
311-
312-
/**
313-
* Name of the city. Use spaces for multi-word city names. Optional.
314-
*/
315-
city?: string;
316-
317-
/**
318-
* US state code (2 characters). Must also specify US as the country. Optional.
319-
*/
320-
state?: string;
321-
}
322-
}
323-
324-
export interface ExternalProxyConfig {
325-
/**
326-
* Server URL for external proxy. Required.
327-
*/
328-
server: string;
329-
330-
/**
331-
* Type of proxy. Always 'external' for this config.
332-
*/
333-
type: 'external';
334-
335-
/**
336-
* Domain pattern for which this proxy should be used. If omitted, defaults to all
337-
* domains. Optional.
338-
*/
339-
domainPattern?: string;
340-
341-
/**
342-
* Password for external proxy authentication. Optional.
343-
*/
344-
password?: string;
345-
346-
/**
347-
* Username for external proxy authentication. Optional.
348-
*/
349-
username?: string;
350-
}
351280
}
352281

353282
export interface SessionUpdateParams {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('resource sessions', () => {
4242
},
4343
extensionId: 'extensionId',
4444
keepAlive: true,
45-
proxies: true,
45+
proxies: {},
4646
timeout: 60,
4747
});
4848
});

0 commit comments

Comments
 (0)