Skip to content

Commit e297172

Browse files
feat(api): api update
1 parent 688b723 commit e297172

6 files changed

Lines changed: 32 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: 39
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nen-labs/steel-b2d3c37101e6738f88acecc4f2a8e1bd723542d3939c58d7c32921753a2f1a5c.yml
3-
openapi_spec_hash: c573fb6f26d5fb14eaf92e0a107323ec
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nen-labs/steel-ec44ad2b0cc878febaf8a7e35c19bee2b9f66a05b6e97fe3d4a08376a961fd33.yml
3+
openapi_spec_hash: be71f6d49195b3ca5b957c6e66023ffa
44
config_hash: dce4dea59023b0a00890fa654fbfffb4

src/steel/resources/sessions/sessions.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def create(
8787
dimensions: session_create_params.Dimensions | Omit = omit,
8888
experimental_features: SequenceNotStr[str] | Omit = omit,
8989
extension_ids: SequenceNotStr[str] | Omit = omit,
90+
fullscreen: bool | Omit = omit,
9091
headless: bool | Omit = omit,
9192
is_selenium: bool | Omit = omit,
9293
namespace: str | Omit = omit,
@@ -132,6 +133,9 @@ def create(
132133
extension_ids: Array of extension IDs to install in the session. Use ['all_ext'] to install all
133134
uploaded extensions.
134135
136+
fullscreen: Launch the browser in fullscreen mode, covering the full screen with no Chrome
137+
UI. Default is false.
138+
135139
headless: Enable headless browser mode (disable Headful mode)
136140
137141
is_selenium: Enable Selenium mode for the browser session (default is false). Use this when
@@ -188,6 +192,7 @@ def create(
188192
"dimensions": dimensions,
189193
"experimental_features": experimental_features,
190194
"extension_ids": extension_ids,
195+
"fullscreen": fullscreen,
191196
"headless": headless,
192197
"is_selenium": is_selenium,
193198
"namespace": namespace,
@@ -894,6 +899,7 @@ async def create(
894899
dimensions: session_create_params.Dimensions | Omit = omit,
895900
experimental_features: SequenceNotStr[str] | Omit = omit,
896901
extension_ids: SequenceNotStr[str] | Omit = omit,
902+
fullscreen: bool | Omit = omit,
897903
headless: bool | Omit = omit,
898904
is_selenium: bool | Omit = omit,
899905
namespace: str | Omit = omit,
@@ -939,6 +945,9 @@ async def create(
939945
extension_ids: Array of extension IDs to install in the session. Use ['all_ext'] to install all
940946
uploaded extensions.
941947
948+
fullscreen: Launch the browser in fullscreen mode, covering the full screen with no Chrome
949+
UI. Default is false.
950+
942951
headless: Enable headless browser mode (disable Headful mode)
943952
944953
is_selenium: Enable Selenium mode for the browser session (default is false). Use this when
@@ -995,6 +1004,7 @@ async def create(
9951004
"dimensions": dimensions,
9961005
"experimental_features": experimental_features,
9971006
"extension_ids": extension_ids,
1007+
"fullscreen": fullscreen,
9981008
"headless": headless,
9991009
"is_selenium": is_selenium,
10001010
"namespace": namespace,

src/steel/types/session.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ class Session(BaseModel):
135135
device_config: Optional[DeviceConfig] = FieldInfo(alias="deviceConfig", default=None)
136136
"""Device configuration for the session"""
137137

138+
fullscreen: Optional[bool] = None
139+
"""
140+
Launch the browser in fullscreen mode, covering the full screen with no Chrome
141+
UI.
142+
"""
143+
138144
headless: Optional[bool] = None
139145
"""Indicates if the session is headless or headful"""
140146

src/steel/types/session_create_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ class SessionCreateParams(TypedDict, total=False):
6767
Use ['all_ext'] to install all uploaded extensions.
6868
"""
6969

70+
fullscreen: bool
71+
"""
72+
Launch the browser in fullscreen mode, covering the full screen with no Chrome
73+
UI. Default is false.
74+
"""
75+
7076
headless: bool
7177
"""Enable headless browser mode (disable Headful mode)"""
7278

src/steel/types/sessionslist.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ class Session(BaseModel):
143143
device_config: Optional[SessionDeviceConfig] = FieldInfo(alias="deviceConfig", default=None)
144144
"""Device configuration for the session"""
145145

146+
fullscreen: Optional[bool] = None
147+
"""
148+
Launch the browser in fullscreen mode, covering the full screen with no Chrome
149+
UI.
150+
"""
151+
146152
headless: Optional[bool] = None
147153
"""Indicates if the session is headless or headful"""
148154

tests/api_resources/test_sessions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_method_create_with_all_params(self, client: Steel) -> None:
5454
},
5555
experimental_features=["string"],
5656
extension_ids=["string"],
57+
fullscreen=True,
5758
headless=True,
5859
is_selenium=True,
5960
namespace="namespace",
@@ -926,6 +927,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncSteel) ->
926927
},
927928
experimental_features=["string"],
928929
extension_ids=["string"],
930+
fullscreen=True,
929931
headless=True,
930932
is_selenium=True,
931933
namespace="namespace",

0 commit comments

Comments
 (0)