anchorbrowser 0.6.2__py3-none-any.whl → 0.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anchorbrowser/_client.py +1 -2
- anchorbrowser/_version.py +1 -1
- anchorbrowser/resources/extensions.py +1 -278
- anchorbrowser/resources/sessions/agent/files.py +0 -83
- anchorbrowser/resources/sessions/clipboard.py +0 -79
- anchorbrowser/resources/sessions/mouse.py +1 -114
- anchorbrowser/resources/sessions/recordings/recordings.py +0 -158
- anchorbrowser/resources/sessions/sessions.py +0 -246
- anchorbrowser/resources/task.py +8 -8
- anchorbrowser/types/__init__.py +2 -8
- anchorbrowser/types/sessions/__init__.py +0 -5
- anchorbrowser/types/sessions/agent/__init__.py +0 -1
- anchorbrowser/types/task_run_params.py +2 -2
- anchorbrowser/types/task_run_response.py +2 -2
- {anchorbrowser-0.6.2.dist-info → anchorbrowser-0.7.0.dist-info}/METADATA +1 -1
- {anchorbrowser-0.6.2.dist-info → anchorbrowser-0.7.0.dist-info}/RECORD +18 -32
- anchorbrowser/types/extension_delete_response.py +0 -12
- anchorbrowser/types/extension_retrieve_response.py +0 -27
- anchorbrowser/types/extension_upload_params.py +0 -17
- anchorbrowser/types/extension_upload_response.py +0 -31
- anchorbrowser/types/session_copy_response.py +0 -12
- anchorbrowser/types/session_list_pages_response.py +0 -25
- anchorbrowser/types/session_paste_params.py +0 -12
- anchorbrowser/types/session_paste_response.py +0 -11
- anchorbrowser/types/sessions/agent/file_list_response.py +0 -32
- anchorbrowser/types/sessions/clipboard_get_response.py +0 -16
- anchorbrowser/types/sessions/mouse_double_click_params.py +0 -18
- anchorbrowser/types/sessions/mouse_double_click_response.py +0 -11
- anchorbrowser/types/sessions/recording_pause_response.py +0 -12
- anchorbrowser/types/sessions/recording_resume_response.py +0 -12
- {anchorbrowser-0.6.2.dist-info → anchorbrowser-0.7.0.dist-info}/WHEEL +0 -0
- {anchorbrowser-0.6.2.dist-info → anchorbrowser-0.7.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -17,10 +17,9 @@ from ..._response import (
|
|
|
17
17
|
async_to_streamed_response_wrapper,
|
|
18
18
|
)
|
|
19
19
|
from ..._base_client import make_request_options
|
|
20
|
-
from ...types.sessions import mouse_move_params, mouse_click_params
|
|
20
|
+
from ...types.sessions import mouse_move_params, mouse_click_params
|
|
21
21
|
from ...types.sessions.mouse_move_response import MouseMoveResponse
|
|
22
22
|
from ...types.sessions.mouse_click_response import MouseClickResponse
|
|
23
|
-
from ...types.sessions.mouse_double_click_response import MouseDoubleClickResponse
|
|
24
23
|
|
|
25
24
|
__all__ = ["MouseResource", "AsyncMouseResource"]
|
|
26
25
|
|
|
@@ -109,56 +108,6 @@ class MouseResource(SyncAPIResource):
|
|
|
109
108
|
cast_to=MouseClickResponse,
|
|
110
109
|
)
|
|
111
110
|
|
|
112
|
-
def double_click(
|
|
113
|
-
self,
|
|
114
|
-
session_id: str,
|
|
115
|
-
*,
|
|
116
|
-
x: int,
|
|
117
|
-
y: int,
|
|
118
|
-
button: Literal["left", "middle", "right"] | Omit = omit,
|
|
119
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
120
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
121
|
-
extra_headers: Headers | None = None,
|
|
122
|
-
extra_query: Query | None = None,
|
|
123
|
-
extra_body: Body | None = None,
|
|
124
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
125
|
-
) -> MouseDoubleClickResponse:
|
|
126
|
-
"""
|
|
127
|
-
Performs a double click at the specified coordinates
|
|
128
|
-
|
|
129
|
-
Args:
|
|
130
|
-
x: X coordinate
|
|
131
|
-
|
|
132
|
-
y: Y coordinate
|
|
133
|
-
|
|
134
|
-
button: Mouse button to use
|
|
135
|
-
|
|
136
|
-
extra_headers: Send extra headers
|
|
137
|
-
|
|
138
|
-
extra_query: Add additional query parameters to the request
|
|
139
|
-
|
|
140
|
-
extra_body: Add additional JSON properties to the request
|
|
141
|
-
|
|
142
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
143
|
-
"""
|
|
144
|
-
if not session_id:
|
|
145
|
-
raise ValueError(f"Expected a non-empty value for `session_id` but received {session_id!r}")
|
|
146
|
-
return self._post(
|
|
147
|
-
f"/v1/sessions/{session_id}/mouse/doubleClick",
|
|
148
|
-
body=maybe_transform(
|
|
149
|
-
{
|
|
150
|
-
"x": x,
|
|
151
|
-
"y": y,
|
|
152
|
-
"button": button,
|
|
153
|
-
},
|
|
154
|
-
mouse_double_click_params.MouseDoubleClickParams,
|
|
155
|
-
),
|
|
156
|
-
options=make_request_options(
|
|
157
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
158
|
-
),
|
|
159
|
-
cast_to=MouseDoubleClickResponse,
|
|
160
|
-
)
|
|
161
|
-
|
|
162
111
|
def move(
|
|
163
112
|
self,
|
|
164
113
|
session_id: str,
|
|
@@ -290,56 +239,6 @@ class AsyncMouseResource(AsyncAPIResource):
|
|
|
290
239
|
cast_to=MouseClickResponse,
|
|
291
240
|
)
|
|
292
241
|
|
|
293
|
-
async def double_click(
|
|
294
|
-
self,
|
|
295
|
-
session_id: str,
|
|
296
|
-
*,
|
|
297
|
-
x: int,
|
|
298
|
-
y: int,
|
|
299
|
-
button: Literal["left", "middle", "right"] | Omit = omit,
|
|
300
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
301
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
302
|
-
extra_headers: Headers | None = None,
|
|
303
|
-
extra_query: Query | None = None,
|
|
304
|
-
extra_body: Body | None = None,
|
|
305
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
306
|
-
) -> MouseDoubleClickResponse:
|
|
307
|
-
"""
|
|
308
|
-
Performs a double click at the specified coordinates
|
|
309
|
-
|
|
310
|
-
Args:
|
|
311
|
-
x: X coordinate
|
|
312
|
-
|
|
313
|
-
y: Y coordinate
|
|
314
|
-
|
|
315
|
-
button: Mouse button to use
|
|
316
|
-
|
|
317
|
-
extra_headers: Send extra headers
|
|
318
|
-
|
|
319
|
-
extra_query: Add additional query parameters to the request
|
|
320
|
-
|
|
321
|
-
extra_body: Add additional JSON properties to the request
|
|
322
|
-
|
|
323
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
324
|
-
"""
|
|
325
|
-
if not session_id:
|
|
326
|
-
raise ValueError(f"Expected a non-empty value for `session_id` but received {session_id!r}")
|
|
327
|
-
return await self._post(
|
|
328
|
-
f"/v1/sessions/{session_id}/mouse/doubleClick",
|
|
329
|
-
body=await async_maybe_transform(
|
|
330
|
-
{
|
|
331
|
-
"x": x,
|
|
332
|
-
"y": y,
|
|
333
|
-
"button": button,
|
|
334
|
-
},
|
|
335
|
-
mouse_double_click_params.MouseDoubleClickParams,
|
|
336
|
-
),
|
|
337
|
-
options=make_request_options(
|
|
338
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
339
|
-
),
|
|
340
|
-
cast_to=MouseDoubleClickResponse,
|
|
341
|
-
)
|
|
342
|
-
|
|
343
242
|
async def move(
|
|
344
243
|
self,
|
|
345
244
|
session_id: str,
|
|
@@ -394,9 +293,6 @@ class MouseResourceWithRawResponse:
|
|
|
394
293
|
self.click = to_raw_response_wrapper(
|
|
395
294
|
mouse.click,
|
|
396
295
|
)
|
|
397
|
-
self.double_click = to_raw_response_wrapper(
|
|
398
|
-
mouse.double_click,
|
|
399
|
-
)
|
|
400
296
|
self.move = to_raw_response_wrapper(
|
|
401
297
|
mouse.move,
|
|
402
298
|
)
|
|
@@ -409,9 +305,6 @@ class AsyncMouseResourceWithRawResponse:
|
|
|
409
305
|
self.click = async_to_raw_response_wrapper(
|
|
410
306
|
mouse.click,
|
|
411
307
|
)
|
|
412
|
-
self.double_click = async_to_raw_response_wrapper(
|
|
413
|
-
mouse.double_click,
|
|
414
|
-
)
|
|
415
308
|
self.move = async_to_raw_response_wrapper(
|
|
416
309
|
mouse.move,
|
|
417
310
|
)
|
|
@@ -424,9 +317,6 @@ class MouseResourceWithStreamingResponse:
|
|
|
424
317
|
self.click = to_streamed_response_wrapper(
|
|
425
318
|
mouse.click,
|
|
426
319
|
)
|
|
427
|
-
self.double_click = to_streamed_response_wrapper(
|
|
428
|
-
mouse.double_click,
|
|
429
|
-
)
|
|
430
320
|
self.move = to_streamed_response_wrapper(
|
|
431
321
|
mouse.move,
|
|
432
322
|
)
|
|
@@ -439,9 +329,6 @@ class AsyncMouseResourceWithStreamingResponse:
|
|
|
439
329
|
self.click = async_to_streamed_response_wrapper(
|
|
440
330
|
mouse.click,
|
|
441
331
|
)
|
|
442
|
-
self.double_click = async_to_streamed_response_wrapper(
|
|
443
|
-
mouse.double_click,
|
|
444
|
-
)
|
|
445
332
|
self.move = async_to_streamed_response_wrapper(
|
|
446
333
|
mouse.move,
|
|
447
334
|
)
|
|
@@ -23,8 +23,6 @@ from ...._response import (
|
|
|
23
23
|
)
|
|
24
24
|
from ...._base_client import make_request_options
|
|
25
25
|
from ....types.sessions.recording_list_response import RecordingListResponse
|
|
26
|
-
from ....types.sessions.recording_pause_response import RecordingPauseResponse
|
|
27
|
-
from ....types.sessions.recording_resume_response import RecordingResumeResponse
|
|
28
26
|
|
|
29
27
|
__all__ = ["RecordingsResource", "AsyncRecordingsResource"]
|
|
30
28
|
|
|
@@ -88,72 +86,6 @@ class RecordingsResource(SyncAPIResource):
|
|
|
88
86
|
cast_to=RecordingListResponse,
|
|
89
87
|
)
|
|
90
88
|
|
|
91
|
-
def pause(
|
|
92
|
-
self,
|
|
93
|
-
session_id: str,
|
|
94
|
-
*,
|
|
95
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
96
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
97
|
-
extra_headers: Headers | None = None,
|
|
98
|
-
extra_query: Query | None = None,
|
|
99
|
-
extra_body: Body | None = None,
|
|
100
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
101
|
-
) -> RecordingPauseResponse:
|
|
102
|
-
"""
|
|
103
|
-
Pauses the video recording for the specified browser session.
|
|
104
|
-
|
|
105
|
-
Args:
|
|
106
|
-
extra_headers: Send extra headers
|
|
107
|
-
|
|
108
|
-
extra_query: Add additional query parameters to the request
|
|
109
|
-
|
|
110
|
-
extra_body: Add additional JSON properties to the request
|
|
111
|
-
|
|
112
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
113
|
-
"""
|
|
114
|
-
if not session_id:
|
|
115
|
-
raise ValueError(f"Expected a non-empty value for `session_id` but received {session_id!r}")
|
|
116
|
-
return self._post(
|
|
117
|
-
f"/v1/sessions/{session_id}/recordings/pause",
|
|
118
|
-
options=make_request_options(
|
|
119
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
120
|
-
),
|
|
121
|
-
cast_to=RecordingPauseResponse,
|
|
122
|
-
)
|
|
123
|
-
|
|
124
|
-
def resume(
|
|
125
|
-
self,
|
|
126
|
-
session_id: str,
|
|
127
|
-
*,
|
|
128
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
129
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
130
|
-
extra_headers: Headers | None = None,
|
|
131
|
-
extra_query: Query | None = None,
|
|
132
|
-
extra_body: Body | None = None,
|
|
133
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
134
|
-
) -> RecordingResumeResponse:
|
|
135
|
-
"""
|
|
136
|
-
Resumes the video recording for the specified browser session.
|
|
137
|
-
|
|
138
|
-
Args:
|
|
139
|
-
extra_headers: Send extra headers
|
|
140
|
-
|
|
141
|
-
extra_query: Add additional query parameters to the request
|
|
142
|
-
|
|
143
|
-
extra_body: Add additional JSON properties to the request
|
|
144
|
-
|
|
145
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
146
|
-
"""
|
|
147
|
-
if not session_id:
|
|
148
|
-
raise ValueError(f"Expected a non-empty value for `session_id` but received {session_id!r}")
|
|
149
|
-
return self._post(
|
|
150
|
-
f"/v1/sessions/{session_id}/recordings/resume",
|
|
151
|
-
options=make_request_options(
|
|
152
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
153
|
-
),
|
|
154
|
-
cast_to=RecordingResumeResponse,
|
|
155
|
-
)
|
|
156
|
-
|
|
157
89
|
|
|
158
90
|
class AsyncRecordingsResource(AsyncAPIResource):
|
|
159
91
|
@cached_property
|
|
@@ -214,72 +146,6 @@ class AsyncRecordingsResource(AsyncAPIResource):
|
|
|
214
146
|
cast_to=RecordingListResponse,
|
|
215
147
|
)
|
|
216
148
|
|
|
217
|
-
async def pause(
|
|
218
|
-
self,
|
|
219
|
-
session_id: str,
|
|
220
|
-
*,
|
|
221
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
222
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
223
|
-
extra_headers: Headers | None = None,
|
|
224
|
-
extra_query: Query | None = None,
|
|
225
|
-
extra_body: Body | None = None,
|
|
226
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
227
|
-
) -> RecordingPauseResponse:
|
|
228
|
-
"""
|
|
229
|
-
Pauses the video recording for the specified browser session.
|
|
230
|
-
|
|
231
|
-
Args:
|
|
232
|
-
extra_headers: Send extra headers
|
|
233
|
-
|
|
234
|
-
extra_query: Add additional query parameters to the request
|
|
235
|
-
|
|
236
|
-
extra_body: Add additional JSON properties to the request
|
|
237
|
-
|
|
238
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
239
|
-
"""
|
|
240
|
-
if not session_id:
|
|
241
|
-
raise ValueError(f"Expected a non-empty value for `session_id` but received {session_id!r}")
|
|
242
|
-
return await self._post(
|
|
243
|
-
f"/v1/sessions/{session_id}/recordings/pause",
|
|
244
|
-
options=make_request_options(
|
|
245
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
246
|
-
),
|
|
247
|
-
cast_to=RecordingPauseResponse,
|
|
248
|
-
)
|
|
249
|
-
|
|
250
|
-
async def resume(
|
|
251
|
-
self,
|
|
252
|
-
session_id: str,
|
|
253
|
-
*,
|
|
254
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
255
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
256
|
-
extra_headers: Headers | None = None,
|
|
257
|
-
extra_query: Query | None = None,
|
|
258
|
-
extra_body: Body | None = None,
|
|
259
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
260
|
-
) -> RecordingResumeResponse:
|
|
261
|
-
"""
|
|
262
|
-
Resumes the video recording for the specified browser session.
|
|
263
|
-
|
|
264
|
-
Args:
|
|
265
|
-
extra_headers: Send extra headers
|
|
266
|
-
|
|
267
|
-
extra_query: Add additional query parameters to the request
|
|
268
|
-
|
|
269
|
-
extra_body: Add additional JSON properties to the request
|
|
270
|
-
|
|
271
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
272
|
-
"""
|
|
273
|
-
if not session_id:
|
|
274
|
-
raise ValueError(f"Expected a non-empty value for `session_id` but received {session_id!r}")
|
|
275
|
-
return await self._post(
|
|
276
|
-
f"/v1/sessions/{session_id}/recordings/resume",
|
|
277
|
-
options=make_request_options(
|
|
278
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
279
|
-
),
|
|
280
|
-
cast_to=RecordingResumeResponse,
|
|
281
|
-
)
|
|
282
|
-
|
|
283
149
|
|
|
284
150
|
class RecordingsResourceWithRawResponse:
|
|
285
151
|
def __init__(self, recordings: RecordingsResource) -> None:
|
|
@@ -288,12 +154,6 @@ class RecordingsResourceWithRawResponse:
|
|
|
288
154
|
self.list = to_raw_response_wrapper(
|
|
289
155
|
recordings.list,
|
|
290
156
|
)
|
|
291
|
-
self.pause = to_raw_response_wrapper(
|
|
292
|
-
recordings.pause,
|
|
293
|
-
)
|
|
294
|
-
self.resume = to_raw_response_wrapper(
|
|
295
|
-
recordings.resume,
|
|
296
|
-
)
|
|
297
157
|
|
|
298
158
|
@cached_property
|
|
299
159
|
def primary(self) -> PrimaryResourceWithRawResponse:
|
|
@@ -307,12 +167,6 @@ class AsyncRecordingsResourceWithRawResponse:
|
|
|
307
167
|
self.list = async_to_raw_response_wrapper(
|
|
308
168
|
recordings.list,
|
|
309
169
|
)
|
|
310
|
-
self.pause = async_to_raw_response_wrapper(
|
|
311
|
-
recordings.pause,
|
|
312
|
-
)
|
|
313
|
-
self.resume = async_to_raw_response_wrapper(
|
|
314
|
-
recordings.resume,
|
|
315
|
-
)
|
|
316
170
|
|
|
317
171
|
@cached_property
|
|
318
172
|
def primary(self) -> AsyncPrimaryResourceWithRawResponse:
|
|
@@ -326,12 +180,6 @@ class RecordingsResourceWithStreamingResponse:
|
|
|
326
180
|
self.list = to_streamed_response_wrapper(
|
|
327
181
|
recordings.list,
|
|
328
182
|
)
|
|
329
|
-
self.pause = to_streamed_response_wrapper(
|
|
330
|
-
recordings.pause,
|
|
331
|
-
)
|
|
332
|
-
self.resume = to_streamed_response_wrapper(
|
|
333
|
-
recordings.resume,
|
|
334
|
-
)
|
|
335
183
|
|
|
336
184
|
@cached_property
|
|
337
185
|
def primary(self) -> PrimaryResourceWithStreamingResponse:
|
|
@@ -345,12 +193,6 @@ class AsyncRecordingsResourceWithStreamingResponse:
|
|
|
345
193
|
self.list = async_to_streamed_response_wrapper(
|
|
346
194
|
recordings.list,
|
|
347
195
|
)
|
|
348
|
-
self.pause = async_to_streamed_response_wrapper(
|
|
349
|
-
recordings.pause,
|
|
350
|
-
)
|
|
351
|
-
self.resume = async_to_streamed_response_wrapper(
|
|
352
|
-
recordings.resume,
|
|
353
|
-
)
|
|
354
196
|
|
|
355
197
|
@cached_property
|
|
356
198
|
def primary(self) -> AsyncPrimaryResourceWithStreamingResponse:
|