Skip to content

Commit cd99ab7

Browse files
feat: Add webdriver_ws_url and metro webdriver session proxy
1 parent 24cf884 commit cd99ab7

4 files changed

Lines changed: 20 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: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-ef24d4bf172555bcbe8e3b432c644a25a1c6afd99c958a2eda8c3b1ea9568113.yml
3-
openapi_spec_hash: b603c5a983e837928fa7d1100ed64fc9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-bda5e58fa0bbd08761f27a1e0edbc602c44141ac9483bf6c96d52b7f4d10d9a7.yml
3+
openapi_spec_hash: 10833b36358e8cda023e5bb0abeab0ba
44
config_hash: cff4d43372b6fa66b64e2d4150f6aa76

browser.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ type BrowserNewResponse struct {
290290
Stealth bool `json:"stealth" api:"required"`
291291
// The number of seconds of inactivity before the browser session is terminated.
292292
TimeoutSeconds int64 `json:"timeout_seconds" api:"required"`
293+
// Websocket URL for WebDriver BiDi connections to the browser session
294+
WebdriverWsURL string `json:"webdriver_ws_url" api:"required"`
293295
// Remote URL for live viewing the browser session. Only available for non-headless
294296
// browsers.
295297
BrowserLiveViewURL string `json:"browser_live_view_url"`
@@ -328,6 +330,7 @@ type BrowserNewResponse struct {
328330
SessionID respjson.Field
329331
Stealth respjson.Field
330332
TimeoutSeconds respjson.Field
333+
WebdriverWsURL respjson.Field
331334
BrowserLiveViewURL respjson.Field
332335
DeletedAt respjson.Field
333336
GPU respjson.Field
@@ -362,6 +365,8 @@ type BrowserGetResponse struct {
362365
Stealth bool `json:"stealth" api:"required"`
363366
// The number of seconds of inactivity before the browser session is terminated.
364367
TimeoutSeconds int64 `json:"timeout_seconds" api:"required"`
368+
// Websocket URL for WebDriver BiDi connections to the browser session
369+
WebdriverWsURL string `json:"webdriver_ws_url" api:"required"`
365370
// Remote URL for live viewing the browser session. Only available for non-headless
366371
// browsers.
367372
BrowserLiveViewURL string `json:"browser_live_view_url"`
@@ -400,6 +405,7 @@ type BrowserGetResponse struct {
400405
SessionID respjson.Field
401406
Stealth respjson.Field
402407
TimeoutSeconds respjson.Field
408+
WebdriverWsURL respjson.Field
403409
BrowserLiveViewURL respjson.Field
404410
DeletedAt respjson.Field
405411
GPU respjson.Field
@@ -434,6 +440,8 @@ type BrowserUpdateResponse struct {
434440
Stealth bool `json:"stealth" api:"required"`
435441
// The number of seconds of inactivity before the browser session is terminated.
436442
TimeoutSeconds int64 `json:"timeout_seconds" api:"required"`
443+
// Websocket URL for WebDriver BiDi connections to the browser session
444+
WebdriverWsURL string `json:"webdriver_ws_url" api:"required"`
437445
// Remote URL for live viewing the browser session. Only available for non-headless
438446
// browsers.
439447
BrowserLiveViewURL string `json:"browser_live_view_url"`
@@ -472,6 +480,7 @@ type BrowserUpdateResponse struct {
472480
SessionID respjson.Field
473481
Stealth respjson.Field
474482
TimeoutSeconds respjson.Field
483+
WebdriverWsURL respjson.Field
475484
BrowserLiveViewURL respjson.Field
476485
DeletedAt respjson.Field
477486
GPU respjson.Field
@@ -506,6 +515,8 @@ type BrowserListResponse struct {
506515
Stealth bool `json:"stealth" api:"required"`
507516
// The number of seconds of inactivity before the browser session is terminated.
508517
TimeoutSeconds int64 `json:"timeout_seconds" api:"required"`
518+
// Websocket URL for WebDriver BiDi connections to the browser session
519+
WebdriverWsURL string `json:"webdriver_ws_url" api:"required"`
509520
// Remote URL for live viewing the browser session. Only available for non-headless
510521
// browsers.
511522
BrowserLiveViewURL string `json:"browser_live_view_url"`
@@ -544,6 +555,7 @@ type BrowserListResponse struct {
544555
SessionID respjson.Field
545556
Stealth respjson.Field
546557
TimeoutSeconds respjson.Field
558+
WebdriverWsURL respjson.Field
547559
BrowserLiveViewURL respjson.Field
548560
DeletedAt respjson.Field
549561
GPU respjson.Field

browserpool.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ type BrowserPoolAcquireResponse struct {
243243
Stealth bool `json:"stealth" api:"required"`
244244
// The number of seconds of inactivity before the browser session is terminated.
245245
TimeoutSeconds int64 `json:"timeout_seconds" api:"required"`
246+
// Websocket URL for WebDriver BiDi connections to the browser session
247+
WebdriverWsURL string `json:"webdriver_ws_url" api:"required"`
246248
// Remote URL for live viewing the browser session. Only available for non-headless
247249
// browsers.
248250
BrowserLiveViewURL string `json:"browser_live_view_url"`
@@ -281,6 +283,7 @@ type BrowserPoolAcquireResponse struct {
281283
SessionID respjson.Field
282284
Stealth respjson.Field
283285
TimeoutSeconds respjson.Field
286+
WebdriverWsURL respjson.Field
284287
BrowserLiveViewURL respjson.Field
285288
DeletedAt respjson.Field
286289
GPU respjson.Field

invocation.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,8 @@ type InvocationListBrowsersResponseBrowser struct {
550550
Stealth bool `json:"stealth" api:"required"`
551551
// The number of seconds of inactivity before the browser session is terminated.
552552
TimeoutSeconds int64 `json:"timeout_seconds" api:"required"`
553+
// Websocket URL for WebDriver BiDi connections to the browser session
554+
WebdriverWsURL string `json:"webdriver_ws_url" api:"required"`
553555
// Remote URL for live viewing the browser session. Only available for non-headless
554556
// browsers.
555557
BrowserLiveViewURL string `json:"browser_live_view_url"`
@@ -588,6 +590,7 @@ type InvocationListBrowsersResponseBrowser struct {
588590
SessionID respjson.Field
589591
Stealth respjson.Field
590592
TimeoutSeconds respjson.Field
593+
WebdriverWsURL respjson.Field
591594
BrowserLiveViewURL respjson.Field
592595
DeletedAt respjson.Field
593596
GPU respjson.Field

0 commit comments

Comments
 (0)