Skip to content

Commit f0b66f8

Browse files
feat(api): update via SDK Studio
1 parent 91b5021 commit f0b66f8

3 files changed

Lines changed: 6 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: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-b91d95f8e40f28d0e455d749b86c4d864ac15a264dcc2c5b317f626ff605ce2c.yml
3-
openapi_spec_hash: befc3a683593ad7d832cfa9f0db941aa
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-4502c65bef0843a6ae96d23bba075433af6bab49b55b544b1522f63e7881c00c.yml
3+
openapi_spec_hash: 3e67b77bbc8cd6155b8f66f3271f2643
44
config_hash: c6bab7ac8da570a5abbcfb19db119b6b

browser.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ func (r *BrowserListResponse) UnmarshalJSON(data []byte) error {
211211
type BrowserNewParams struct {
212212
// action invocation ID
213213
InvocationID string `json:"invocation_id,required"`
214+
// If true, launches the browser in stealth mode to reduce detection by anti-bot
215+
// mechanisms.
216+
Stealth param.Opt[bool] `json:"stealth,omitzero"`
214217
// Optional persistence configuration for the browser session.
215218
Persistence BrowserPersistenceParam `json:"persistence,omitzero"`
216219
paramObj

browser_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func TestBrowserNewWithOptionalParams(t *testing.T) {
3131
Persistence: kernel.BrowserPersistenceParam{
3232
ID: "my-awesome-browser-for-user-1234",
3333
},
34+
Stealth: kernel.Bool(true),
3435
})
3536
if err != nil {
3637
var apierr *kernel.Error

0 commit comments

Comments
 (0)