Skip to content

Commit 7cbc848

Browse files
fix(api): move batch + get_mouse_position into Browser Computer Controls tag
1 parent 06a2f7b commit 7cbc848

3 files changed

Lines changed: 12 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: 117
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-4bada2a5bdbde93018e5a1b1e80e134acbc5509cfdea94db6e4c5b799eba7b82.yml
3-
openapi_spec_hash: e0d541d480f5663b1e6bd3bb19a0fe61
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-7548abe9fea7553e12a128b31f7dc7fc33f2558a9f20d2eb33464db5f61ab3ea.yml
3+
openapi_spec_hash: 4b701cc4b33a2c944a5a9b63e9f364a2
44
config_hash: e0741f8035aea13f71e54e0fdb88eaa4

src/kernel/resources/browsers/browsers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def logs(self) -> LogsResource:
133133

134134
@cached_property
135135
def computer(self) -> ComputerResource:
136+
"""Control mouse, keyboard, and screen on the browser instance."""
136137
return ComputerResource(self._client)
137138

138139
@cached_property
@@ -680,6 +681,7 @@ def logs(self) -> AsyncLogsResource:
680681

681682
@cached_property
682683
def computer(self) -> AsyncComputerResource:
684+
"""Control mouse, keyboard, and screen on the browser instance."""
683685
return AsyncComputerResource(self._client)
684686

685687
@cached_property
@@ -1250,6 +1252,7 @@ def logs(self) -> LogsResourceWithRawResponse:
12501252

12511253
@cached_property
12521254
def computer(self) -> ComputerResourceWithRawResponse:
1255+
"""Control mouse, keyboard, and screen on the browser instance."""
12531256
return ComputerResourceWithRawResponse(self._browsers.computer)
12541257

12551258
@cached_property
@@ -1311,6 +1314,7 @@ def logs(self) -> AsyncLogsResourceWithRawResponse:
13111314

13121315
@cached_property
13131316
def computer(self) -> AsyncComputerResourceWithRawResponse:
1317+
"""Control mouse, keyboard, and screen on the browser instance."""
13141318
return AsyncComputerResourceWithRawResponse(self._browsers.computer)
13151319

13161320
@cached_property
@@ -1372,6 +1376,7 @@ def logs(self) -> LogsResourceWithStreamingResponse:
13721376

13731377
@cached_property
13741378
def computer(self) -> ComputerResourceWithStreamingResponse:
1379+
"""Control mouse, keyboard, and screen on the browser instance."""
13751380
return ComputerResourceWithStreamingResponse(self._browsers.computer)
13761381

13771382
@cached_property
@@ -1433,6 +1438,7 @@ def logs(self) -> AsyncLogsResourceWithStreamingResponse:
14331438

14341439
@cached_property
14351440
def computer(self) -> AsyncComputerResourceWithStreamingResponse:
1441+
"""Control mouse, keyboard, and screen on the browser instance."""
14361442
return AsyncComputerResourceWithStreamingResponse(self._browsers.computer)
14371443

14381444
@cached_property

src/kernel/resources/browsers/computer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646

4747

4848
class ComputerResource(SyncAPIResource):
49+
"""Control mouse, keyboard, and screen on the browser instance."""
50+
4951
@cached_property
5052
def with_raw_response(self) -> ComputerResourceWithRawResponse:
5153
"""
@@ -649,6 +651,8 @@ def write_clipboard(
649651

650652

651653
class AsyncComputerResource(AsyncAPIResource):
654+
"""Control mouse, keyboard, and screen on the browser instance."""
655+
652656
@cached_property
653657
def with_raw_response(self) -> AsyncComputerResourceWithRawResponse:
654658
"""

0 commit comments

Comments
 (0)