anchorbrowser 0.1.0a3__py3-none-any.whl → 0.1.1__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.
Files changed (52) hide show
  1. anchorbrowser/__init__.py +3 -1
  2. anchorbrowser/_base_client.py +16 -13
  3. anchorbrowser/_client.py +21 -9
  4. anchorbrowser/_compat.py +48 -48
  5. anchorbrowser/_files.py +4 -4
  6. anchorbrowser/_models.py +51 -45
  7. anchorbrowser/_qs.py +7 -7
  8. anchorbrowser/_types.py +53 -12
  9. anchorbrowser/_utils/__init__.py +9 -2
  10. anchorbrowser/_utils/_compat.py +45 -0
  11. anchorbrowser/_utils/_datetime_parse.py +136 -0
  12. anchorbrowser/_utils/_transform.py +13 -3
  13. anchorbrowser/_utils/_typing.py +6 -1
  14. anchorbrowser/_utils/_utils.py +4 -5
  15. anchorbrowser/_version.py +1 -1
  16. anchorbrowser/lib/browser.py +1 -1
  17. anchorbrowser/resources/__init__.py +14 -0
  18. anchorbrowser/resources/events.py +270 -0
  19. anchorbrowser/resources/extensions.py +9 -9
  20. anchorbrowser/resources/profiles.py +31 -43
  21. anchorbrowser/resources/sessions/all.py +5 -5
  22. anchorbrowser/resources/sessions/clipboard.py +5 -5
  23. anchorbrowser/resources/sessions/keyboard.py +11 -13
  24. anchorbrowser/resources/sessions/mouse.py +19 -19
  25. anchorbrowser/resources/sessions/recordings/primary.py +3 -3
  26. anchorbrowser/resources/sessions/recordings/recordings.py +7 -7
  27. anchorbrowser/resources/sessions/sessions.py +307 -30
  28. anchorbrowser/resources/tools.py +107 -37
  29. anchorbrowser/types/__init__.py +7 -0
  30. anchorbrowser/types/event_signal_params.py +13 -0
  31. anchorbrowser/types/event_wait_for_params.py +14 -0
  32. anchorbrowser/types/event_wait_for_response.py +12 -0
  33. anchorbrowser/types/extension_manifest.py +6 -1
  34. anchorbrowser/types/profile_create_params.py +3 -6
  35. anchorbrowser/types/profile_list_response.py +0 -3
  36. anchorbrowser/types/profile_retrieve_response.py +0 -3
  37. anchorbrowser/types/profile_update_params.py +0 -6
  38. anchorbrowser/types/session_create_params.py +262 -26
  39. anchorbrowser/types/session_list_pages_response.py +25 -0
  40. anchorbrowser/types/session_retrieve_response.py +46 -0
  41. anchorbrowser/types/session_scroll_params.py +3 -0
  42. anchorbrowser/types/session_upload_file_params.py +14 -0
  43. anchorbrowser/types/session_upload_file_response.py +17 -0
  44. anchorbrowser/types/sessions/keyboard_shortcut_params.py +2 -2
  45. anchorbrowser/types/sessions/recording_list_response.py +4 -8
  46. anchorbrowser/types/tool_fetch_webpage_params.py +15 -0
  47. anchorbrowser/types/tool_perform_web_task_params.py +17 -1
  48. anchorbrowser/types/tool_perform_web_task_response.py +3 -3
  49. {anchorbrowser-0.1.0a3.dist-info → anchorbrowser-0.1.1.dist-info}/METADATA +8 -9
  50. {anchorbrowser-0.1.0a3.dist-info → anchorbrowser-0.1.1.dist-info}/RECORD +52 -42
  51. {anchorbrowser-0.1.0a3.dist-info → anchorbrowser-0.1.1.dist-info}/WHEEL +0 -0
  52. {anchorbrowser-0.1.0a3.dist-info → anchorbrowser-0.1.1.dist-info}/licenses/LICENSE +0 -0
@@ -7,7 +7,7 @@ from typing_extensions import Literal
7
7
  import httpx
8
8
 
9
9
  from ..types import profile_create_params, profile_update_params
10
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
11
  from .._utils import maybe_transform, async_maybe_transform
12
12
  from .._compat import cached_property
13
13
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -49,16 +49,16 @@ class ProfilesResource(SyncAPIResource):
49
49
  self,
50
50
  *,
51
51
  name: str,
52
- description: str | NotGiven = NOT_GIVEN,
53
- session_id: str | NotGiven = NOT_GIVEN,
54
- source: Literal["session"] | NotGiven = NOT_GIVEN,
55
- store_cache: bool | NotGiven = NOT_GIVEN,
52
+ dedicated_sticky_ip: bool | Omit = omit,
53
+ description: str | Omit = omit,
54
+ session_id: str | Omit = omit,
55
+ source: Literal["session"] | Omit = omit,
56
56
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
57
57
  # The extra values given here take precedence over values defined on the client or passed to this method.
58
58
  extra_headers: Headers | None = None,
59
59
  extra_query: Query | None = None,
60
60
  extra_body: Body | None = None,
61
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
61
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
62
62
  ) -> SuccessResponse:
63
63
  """Creates a new profile from a browser session.
64
64
 
@@ -68,6 +68,8 @@ class ProfilesResource(SyncAPIResource):
68
68
  Args:
69
69
  name: The name of the profile.
70
70
 
71
+ dedicated_sticky_ip: Whether to use a dedicated sticky IP for this profile. Defaults to false.
72
+
71
73
  description: A description of the profile.
72
74
 
73
75
  session_id: The browser session ID is required if the source is set to `session`. The
@@ -76,9 +78,6 @@ class ProfilesResource(SyncAPIResource):
76
78
 
77
79
  source: The source of the profile data. currently only `session` is supported.
78
80
 
79
- store_cache: Indicates whether the browser session cache should be saved when the browser
80
- session ends. Defaults to `false`.
81
-
82
81
  extra_headers: Send extra headers
83
82
 
84
83
  extra_query: Add additional query parameters to the request
@@ -92,10 +91,10 @@ class ProfilesResource(SyncAPIResource):
92
91
  body=maybe_transform(
93
92
  {
94
93
  "name": name,
94
+ "dedicated_sticky_ip": dedicated_sticky_ip,
95
95
  "description": description,
96
96
  "session_id": session_id,
97
97
  "source": source,
98
- "store_cache": store_cache,
99
98
  },
100
99
  profile_create_params.ProfileCreateParams,
101
100
  ),
@@ -114,7 +113,7 @@ class ProfilesResource(SyncAPIResource):
114
113
  extra_headers: Headers | None = None,
115
114
  extra_query: Query | None = None,
116
115
  extra_body: Body | None = None,
117
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
116
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
118
117
  ) -> ProfileRetrieveResponse:
119
118
  """
120
119
  Retrieves details of a specific profile by its name.
@@ -142,16 +141,15 @@ class ProfilesResource(SyncAPIResource):
142
141
  self,
143
142
  name: str,
144
143
  *,
145
- description: str | NotGiven = NOT_GIVEN,
146
- session_id: str | NotGiven = NOT_GIVEN,
147
- source: Literal["session"] | NotGiven = NOT_GIVEN,
148
- store_cache: bool | NotGiven = NOT_GIVEN,
144
+ description: str | Omit = omit,
145
+ session_id: str | Omit = omit,
146
+ source: Literal["session"] | Omit = omit,
149
147
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
150
148
  # The extra values given here take precedence over values defined on the client or passed to this method.
151
149
  extra_headers: Headers | None = None,
152
150
  extra_query: Query | None = None,
153
151
  extra_body: Body | None = None,
154
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
152
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
155
153
  ) -> SuccessResponse:
156
154
  """
157
155
  Updates the description or data of an existing profile using a browser session.
@@ -164,9 +162,6 @@ class ProfilesResource(SyncAPIResource):
164
162
 
165
163
  source: The source of the profile data. Currently, only `session` is supported.
166
164
 
167
- store_cache: Indicates whether the browser session cache should be saved when the browser
168
- session ends. Defaults to `false`.
169
-
170
165
  extra_headers: Send extra headers
171
166
 
172
167
  extra_query: Add additional query parameters to the request
@@ -184,7 +179,6 @@ class ProfilesResource(SyncAPIResource):
184
179
  "description": description,
185
180
  "session_id": session_id,
186
181
  "source": source,
187
- "store_cache": store_cache,
188
182
  },
189
183
  profile_update_params.ProfileUpdateParams,
190
184
  ),
@@ -202,7 +196,7 @@ class ProfilesResource(SyncAPIResource):
202
196
  extra_headers: Headers | None = None,
203
197
  extra_query: Query | None = None,
204
198
  extra_body: Body | None = None,
205
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
199
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
206
200
  ) -> ProfileListResponse:
207
201
  """Fetches all stored profiles."""
208
202
  return self._get(
@@ -222,7 +216,7 @@ class ProfilesResource(SyncAPIResource):
222
216
  extra_headers: Headers | None = None,
223
217
  extra_query: Query | None = None,
224
218
  extra_body: Body | None = None,
225
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
219
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
226
220
  ) -> SuccessResponse:
227
221
  """
228
222
  Deletes an existing profile by its name.
@@ -271,16 +265,16 @@ class AsyncProfilesResource(AsyncAPIResource):
271
265
  self,
272
266
  *,
273
267
  name: str,
274
- description: str | NotGiven = NOT_GIVEN,
275
- session_id: str | NotGiven = NOT_GIVEN,
276
- source: Literal["session"] | NotGiven = NOT_GIVEN,
277
- store_cache: bool | NotGiven = NOT_GIVEN,
268
+ dedicated_sticky_ip: bool | Omit = omit,
269
+ description: str | Omit = omit,
270
+ session_id: str | Omit = omit,
271
+ source: Literal["session"] | Omit = omit,
278
272
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
279
273
  # The extra values given here take precedence over values defined on the client or passed to this method.
280
274
  extra_headers: Headers | None = None,
281
275
  extra_query: Query | None = None,
282
276
  extra_body: Body | None = None,
283
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
277
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
284
278
  ) -> SuccessResponse:
285
279
  """Creates a new profile from a browser session.
286
280
 
@@ -290,6 +284,8 @@ class AsyncProfilesResource(AsyncAPIResource):
290
284
  Args:
291
285
  name: The name of the profile.
292
286
 
287
+ dedicated_sticky_ip: Whether to use a dedicated sticky IP for this profile. Defaults to false.
288
+
293
289
  description: A description of the profile.
294
290
 
295
291
  session_id: The browser session ID is required if the source is set to `session`. The
@@ -298,9 +294,6 @@ class AsyncProfilesResource(AsyncAPIResource):
298
294
 
299
295
  source: The source of the profile data. currently only `session` is supported.
300
296
 
301
- store_cache: Indicates whether the browser session cache should be saved when the browser
302
- session ends. Defaults to `false`.
303
-
304
297
  extra_headers: Send extra headers
305
298
 
306
299
  extra_query: Add additional query parameters to the request
@@ -314,10 +307,10 @@ class AsyncProfilesResource(AsyncAPIResource):
314
307
  body=await async_maybe_transform(
315
308
  {
316
309
  "name": name,
310
+ "dedicated_sticky_ip": dedicated_sticky_ip,
317
311
  "description": description,
318
312
  "session_id": session_id,
319
313
  "source": source,
320
- "store_cache": store_cache,
321
314
  },
322
315
  profile_create_params.ProfileCreateParams,
323
316
  ),
@@ -336,7 +329,7 @@ class AsyncProfilesResource(AsyncAPIResource):
336
329
  extra_headers: Headers | None = None,
337
330
  extra_query: Query | None = None,
338
331
  extra_body: Body | None = None,
339
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
332
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
340
333
  ) -> ProfileRetrieveResponse:
341
334
  """
342
335
  Retrieves details of a specific profile by its name.
@@ -364,16 +357,15 @@ class AsyncProfilesResource(AsyncAPIResource):
364
357
  self,
365
358
  name: str,
366
359
  *,
367
- description: str | NotGiven = NOT_GIVEN,
368
- session_id: str | NotGiven = NOT_GIVEN,
369
- source: Literal["session"] | NotGiven = NOT_GIVEN,
370
- store_cache: bool | NotGiven = NOT_GIVEN,
360
+ description: str | Omit = omit,
361
+ session_id: str | Omit = omit,
362
+ source: Literal["session"] | Omit = omit,
371
363
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
372
364
  # The extra values given here take precedence over values defined on the client or passed to this method.
373
365
  extra_headers: Headers | None = None,
374
366
  extra_query: Query | None = None,
375
367
  extra_body: Body | None = None,
376
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
368
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
377
369
  ) -> SuccessResponse:
378
370
  """
379
371
  Updates the description or data of an existing profile using a browser session.
@@ -386,9 +378,6 @@ class AsyncProfilesResource(AsyncAPIResource):
386
378
 
387
379
  source: The source of the profile data. Currently, only `session` is supported.
388
380
 
389
- store_cache: Indicates whether the browser session cache should be saved when the browser
390
- session ends. Defaults to `false`.
391
-
392
381
  extra_headers: Send extra headers
393
382
 
394
383
  extra_query: Add additional query parameters to the request
@@ -406,7 +395,6 @@ class AsyncProfilesResource(AsyncAPIResource):
406
395
  "description": description,
407
396
  "session_id": session_id,
408
397
  "source": source,
409
- "store_cache": store_cache,
410
398
  },
411
399
  profile_update_params.ProfileUpdateParams,
412
400
  ),
@@ -424,7 +412,7 @@ class AsyncProfilesResource(AsyncAPIResource):
424
412
  extra_headers: Headers | None = None,
425
413
  extra_query: Query | None = None,
426
414
  extra_body: Body | None = None,
427
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
415
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
428
416
  ) -> ProfileListResponse:
429
417
  """Fetches all stored profiles."""
430
418
  return await self._get(
@@ -444,7 +432,7 @@ class AsyncProfilesResource(AsyncAPIResource):
444
432
  extra_headers: Headers | None = None,
445
433
  extra_query: Query | None = None,
446
434
  extra_body: Body | None = None,
447
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
435
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
448
436
  ) -> SuccessResponse:
449
437
  """
450
438
  Deletes an existing profile by its name.
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from ..._types import Body, Query, Headers, NotGiven, not_given
8
8
  from ..._compat import cached_property
9
9
  from ..._resource import SyncAPIResource, AsyncAPIResource
10
10
  from ..._response import (
@@ -48,7 +48,7 @@ class AllResource(SyncAPIResource):
48
48
  extra_headers: Headers | None = None,
49
49
  extra_query: Query | None = None,
50
50
  extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
52
  ) -> SuccessResponse:
53
53
  """Terminates all active browser sessions associated with the provided API key."""
54
54
  return self._delete(
@@ -67,7 +67,7 @@ class AllResource(SyncAPIResource):
67
67
  extra_headers: Headers | None = None,
68
68
  extra_query: Query | None = None,
69
69
  extra_body: Body | None = None,
70
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
70
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
71
71
  ) -> AllStatusResponse:
72
72
  """
73
73
  Retrieves status information for all browser sessions associated with the API
@@ -110,7 +110,7 @@ class AsyncAllResource(AsyncAPIResource):
110
110
  extra_headers: Headers | None = None,
111
111
  extra_query: Query | None = None,
112
112
  extra_body: Body | None = None,
113
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
113
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
114
114
  ) -> SuccessResponse:
115
115
  """Terminates all active browser sessions associated with the provided API key."""
116
116
  return await self._delete(
@@ -129,7 +129,7 @@ class AsyncAllResource(AsyncAPIResource):
129
129
  extra_headers: Headers | None = None,
130
130
  extra_query: Query | None = None,
131
131
  extra_body: Body | None = None,
132
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
132
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
133
133
  ) -> AllStatusResponse:
134
134
  """
135
135
  Retrieves status information for all browser sessions associated with the API
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from ..._types import Body, Query, Headers, NotGiven, not_given
8
8
  from ..._utils import maybe_transform, async_maybe_transform
9
9
  from ..._compat import cached_property
10
10
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -51,7 +51,7 @@ class ClipboardResource(SyncAPIResource):
51
51
  extra_headers: Headers | None = None,
52
52
  extra_query: Query | None = None,
53
53
  extra_body: Body | None = None,
54
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
54
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
55
55
  ) -> ClipboardGetResponse:
56
56
  """
57
57
  Retrieves the current content of the clipboard
@@ -85,7 +85,7 @@ class ClipboardResource(SyncAPIResource):
85
85
  extra_headers: Headers | None = None,
86
86
  extra_query: Query | None = None,
87
87
  extra_body: Body | None = None,
88
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
88
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
89
89
  ) -> ClipboardSetResponse:
90
90
  """
91
91
  Sets the content of the clipboard
@@ -142,7 +142,7 @@ class AsyncClipboardResource(AsyncAPIResource):
142
142
  extra_headers: Headers | None = None,
143
143
  extra_query: Query | None = None,
144
144
  extra_body: Body | None = None,
145
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
145
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
146
146
  ) -> ClipboardGetResponse:
147
147
  """
148
148
  Retrieves the current content of the clipboard
@@ -176,7 +176,7 @@ class AsyncClipboardResource(AsyncAPIResource):
176
176
  extra_headers: Headers | None = None,
177
177
  extra_query: Query | None = None,
178
178
  extra_body: Body | None = None,
179
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
179
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
180
180
  ) -> ClipboardSetResponse:
181
181
  """
182
182
  Sets the content of the clipboard
@@ -2,11 +2,9 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
-
7
5
  import httpx
8
6
 
9
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
10
8
  from ..._utils import maybe_transform, async_maybe_transform
11
9
  from ..._compat import cached_property
12
10
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -48,14 +46,14 @@ class KeyboardResource(SyncAPIResource):
48
46
  self,
49
47
  session_id: str,
50
48
  *,
51
- keys: List[str],
52
- hold_time: int | NotGiven = NOT_GIVEN,
49
+ keys: SequenceNotStr[str],
50
+ hold_time: int | Omit = omit,
53
51
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
54
52
  # The extra values given here take precedence over values defined on the client or passed to this method.
55
53
  extra_headers: Headers | None = None,
56
54
  extra_query: Query | None = None,
57
55
  extra_body: Body | None = None,
58
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
56
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
59
57
  ) -> KeyboardShortcutResponse:
60
58
  """
61
59
  Performs a keyboard shortcut using the specified keys
@@ -95,13 +93,13 @@ class KeyboardResource(SyncAPIResource):
95
93
  session_id: str,
96
94
  *,
97
95
  text: str,
98
- delay: int | NotGiven = NOT_GIVEN,
96
+ delay: int | Omit = omit,
99
97
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
100
98
  # The extra values given here take precedence over values defined on the client or passed to this method.
101
99
  extra_headers: Headers | None = None,
102
100
  extra_query: Query | None = None,
103
101
  extra_body: Body | None = None,
104
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
102
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
105
103
  ) -> KeyboardTypeResponse:
106
104
  """
107
105
  Types the specified text with optional delay between keystrokes
@@ -161,14 +159,14 @@ class AsyncKeyboardResource(AsyncAPIResource):
161
159
  self,
162
160
  session_id: str,
163
161
  *,
164
- keys: List[str],
165
- hold_time: int | NotGiven = NOT_GIVEN,
162
+ keys: SequenceNotStr[str],
163
+ hold_time: int | Omit = omit,
166
164
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
167
165
  # The extra values given here take precedence over values defined on the client or passed to this method.
168
166
  extra_headers: Headers | None = None,
169
167
  extra_query: Query | None = None,
170
168
  extra_body: Body | None = None,
171
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
169
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
172
170
  ) -> KeyboardShortcutResponse:
173
171
  """
174
172
  Performs a keyboard shortcut using the specified keys
@@ -208,13 +206,13 @@ class AsyncKeyboardResource(AsyncAPIResource):
208
206
  session_id: str,
209
207
  *,
210
208
  text: str,
211
- delay: int | NotGiven = NOT_GIVEN,
209
+ delay: int | Omit = omit,
212
210
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
213
211
  # The extra values given here take precedence over values defined on the client or passed to this method.
214
212
  extra_headers: Headers | None = None,
215
213
  extra_query: Query | None = None,
216
214
  extra_body: Body | None = None,
217
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
215
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
218
216
  ) -> KeyboardTypeResponse:
219
217
  """
220
218
  Types the specified text with optional delay between keystrokes
@@ -6,7 +6,7 @@ from typing_extensions import Literal
6
6
 
7
7
  import httpx
8
8
 
9
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
9
+ from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
10
10
  from ..._utils import maybe_transform, async_maybe_transform
11
11
  from ..._compat import cached_property
12
12
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -59,13 +59,13 @@ class MouseResource(SyncAPIResource):
59
59
  *,
60
60
  x: int,
61
61
  y: int,
62
- button: Literal["left", "middle", "right"] | NotGiven = NOT_GIVEN,
62
+ button: Literal["left", "middle", "right"] | Omit = omit,
63
63
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
64
64
  # The extra values given here take precedence over values defined on the client or passed to this method.
65
65
  extra_headers: Headers | None = None,
66
66
  extra_query: Query | None = None,
67
67
  extra_body: Body | None = None,
68
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
68
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
69
69
  ) -> MouseClickResponse:
70
70
  """
71
71
  Performs a mouse click at the specified coordinates
@@ -109,13 +109,13 @@ class MouseResource(SyncAPIResource):
109
109
  *,
110
110
  x: int,
111
111
  y: int,
112
- button: Literal["left", "middle", "right"] | NotGiven = NOT_GIVEN,
112
+ button: Literal["left", "middle", "right"] | Omit = omit,
113
113
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
114
114
  # The extra values given here take precedence over values defined on the client or passed to this method.
115
115
  extra_headers: Headers | None = None,
116
116
  extra_query: Query | None = None,
117
117
  extra_body: Body | None = None,
118
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
118
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
119
119
  ) -> MouseDoubleClickResponse:
120
120
  """
121
121
  Performs a double click at the specified coordinates
@@ -159,13 +159,13 @@ class MouseResource(SyncAPIResource):
159
159
  *,
160
160
  x: int,
161
161
  y: int,
162
- button: Literal["left", "middle", "right"] | NotGiven = NOT_GIVEN,
162
+ button: Literal["left", "middle", "right"] | Omit = omit,
163
163
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
164
164
  # The extra values given here take precedence over values defined on the client or passed to this method.
165
165
  extra_headers: Headers | None = None,
166
166
  extra_query: Query | None = None,
167
167
  extra_body: Body | None = None,
168
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
168
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
169
169
  ) -> MouseDownResponse:
170
170
  """
171
171
  Performs a mouse button down action at the specified coordinates
@@ -214,7 +214,7 @@ class MouseResource(SyncAPIResource):
214
214
  extra_headers: Headers | None = None,
215
215
  extra_query: Query | None = None,
216
216
  extra_body: Body | None = None,
217
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
217
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
218
218
  ) -> MouseMoveResponse:
219
219
  """
220
220
  Moves the mouse cursor to the specified coordinates
@@ -255,13 +255,13 @@ class MouseResource(SyncAPIResource):
255
255
  *,
256
256
  x: int,
257
257
  y: int,
258
- button: Literal["left", "middle", "right"] | NotGiven = NOT_GIVEN,
258
+ button: Literal["left", "middle", "right"] | Omit = omit,
259
259
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
260
260
  # The extra values given here take precedence over values defined on the client or passed to this method.
261
261
  extra_headers: Headers | None = None,
262
262
  extra_query: Query | None = None,
263
263
  extra_body: Body | None = None,
264
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
264
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
265
265
  ) -> MouseUpResponse:
266
266
  """
267
267
  Performs a mouse button up action at the specified coordinates
@@ -326,13 +326,13 @@ class AsyncMouseResource(AsyncAPIResource):
326
326
  *,
327
327
  x: int,
328
328
  y: int,
329
- button: Literal["left", "middle", "right"] | NotGiven = NOT_GIVEN,
329
+ button: Literal["left", "middle", "right"] | Omit = omit,
330
330
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
331
331
  # The extra values given here take precedence over values defined on the client or passed to this method.
332
332
  extra_headers: Headers | None = None,
333
333
  extra_query: Query | None = None,
334
334
  extra_body: Body | None = None,
335
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
335
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
336
336
  ) -> MouseClickResponse:
337
337
  """
338
338
  Performs a mouse click at the specified coordinates
@@ -376,13 +376,13 @@ class AsyncMouseResource(AsyncAPIResource):
376
376
  *,
377
377
  x: int,
378
378
  y: int,
379
- button: Literal["left", "middle", "right"] | NotGiven = NOT_GIVEN,
379
+ button: Literal["left", "middle", "right"] | Omit = omit,
380
380
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
381
381
  # The extra values given here take precedence over values defined on the client or passed to this method.
382
382
  extra_headers: Headers | None = None,
383
383
  extra_query: Query | None = None,
384
384
  extra_body: Body | None = None,
385
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
385
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
386
386
  ) -> MouseDoubleClickResponse:
387
387
  """
388
388
  Performs a double click at the specified coordinates
@@ -426,13 +426,13 @@ class AsyncMouseResource(AsyncAPIResource):
426
426
  *,
427
427
  x: int,
428
428
  y: int,
429
- button: Literal["left", "middle", "right"] | NotGiven = NOT_GIVEN,
429
+ button: Literal["left", "middle", "right"] | Omit = omit,
430
430
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
431
431
  # The extra values given here take precedence over values defined on the client or passed to this method.
432
432
  extra_headers: Headers | None = None,
433
433
  extra_query: Query | None = None,
434
434
  extra_body: Body | None = None,
435
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
435
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
436
436
  ) -> MouseDownResponse:
437
437
  """
438
438
  Performs a mouse button down action at the specified coordinates
@@ -481,7 +481,7 @@ class AsyncMouseResource(AsyncAPIResource):
481
481
  extra_headers: Headers | None = None,
482
482
  extra_query: Query | None = None,
483
483
  extra_body: Body | None = None,
484
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
484
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
485
485
  ) -> MouseMoveResponse:
486
486
  """
487
487
  Moves the mouse cursor to the specified coordinates
@@ -522,13 +522,13 @@ class AsyncMouseResource(AsyncAPIResource):
522
522
  *,
523
523
  x: int,
524
524
  y: int,
525
- button: Literal["left", "middle", "right"] | NotGiven = NOT_GIVEN,
525
+ button: Literal["left", "middle", "right"] | Omit = omit,
526
526
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
527
527
  # The extra values given here take precedence over values defined on the client or passed to this method.
528
528
  extra_headers: Headers | None = None,
529
529
  extra_query: Query | None = None,
530
530
  extra_body: Body | None = None,
531
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
531
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
532
532
  ) -> MouseUpResponse:
533
533
  """
534
534
  Performs a mouse button up action at the specified coordinates
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from ...._types import Body, Query, Headers, NotGiven, not_given
8
8
  from ...._compat import cached_property
9
9
  from ...._resource import SyncAPIResource, AsyncAPIResource
10
10
  from ...._response import (
@@ -51,7 +51,7 @@ class PrimaryResource(SyncAPIResource):
51
51
  extra_headers: Headers | None = None,
52
52
  extra_query: Query | None = None,
53
53
  extra_body: Body | None = None,
54
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
54
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
55
55
  ) -> BinaryAPIResponse:
56
56
  """Downloads the primary recording file for the specified browser session.
57
57
 
@@ -108,7 +108,7 @@ class AsyncPrimaryResource(AsyncAPIResource):
108
108
  extra_headers: Headers | None = None,
109
109
  extra_query: Query | None = None,
110
110
  extra_body: Body | None = None,
111
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
111
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
112
112
  ) -> AsyncBinaryAPIResponse:
113
113
  """Downloads the primary recording file for the specified browser session.
114
114
 
@@ -12,7 +12,7 @@ from .primary import (
12
12
  PrimaryResourceWithStreamingResponse,
13
13
  AsyncPrimaryResourceWithStreamingResponse,
14
14
  )
15
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
15
+ from ...._types import Body, Query, Headers, NotGiven, not_given
16
16
  from ...._compat import cached_property
17
17
  from ...._resource import SyncAPIResource, AsyncAPIResource
18
18
  from ...._response import (
@@ -62,7 +62,7 @@ class RecordingsResource(SyncAPIResource):
62
62
  extra_headers: Headers | None = None,
63
63
  extra_query: Query | None = None,
64
64
  extra_body: Body | None = None,
65
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
65
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
66
66
  ) -> RecordingListResponse:
67
67
  """Retrieves the URLs of the browser session's video recordings.
68
68
 
@@ -97,7 +97,7 @@ class RecordingsResource(SyncAPIResource):
97
97
  extra_headers: Headers | None = None,
98
98
  extra_query: Query | None = None,
99
99
  extra_body: Body | None = None,
100
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
100
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
101
101
  ) -> RecordingPauseResponse:
102
102
  """
103
103
  Pauses the video recording for the specified browser session.
@@ -130,7 +130,7 @@ class RecordingsResource(SyncAPIResource):
130
130
  extra_headers: Headers | None = None,
131
131
  extra_query: Query | None = None,
132
132
  extra_body: Body | None = None,
133
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
133
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
134
134
  ) -> RecordingResumeResponse:
135
135
  """
136
136
  Resumes the video recording for the specified browser session.
@@ -188,7 +188,7 @@ class AsyncRecordingsResource(AsyncAPIResource):
188
188
  extra_headers: Headers | None = None,
189
189
  extra_query: Query | None = None,
190
190
  extra_body: Body | None = None,
191
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
191
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
192
192
  ) -> RecordingListResponse:
193
193
  """Retrieves the URLs of the browser session's video recordings.
194
194
 
@@ -223,7 +223,7 @@ class AsyncRecordingsResource(AsyncAPIResource):
223
223
  extra_headers: Headers | None = None,
224
224
  extra_query: Query | None = None,
225
225
  extra_body: Body | None = None,
226
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
226
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
227
227
  ) -> RecordingPauseResponse:
228
228
  """
229
229
  Pauses the video recording for the specified browser session.
@@ -256,7 +256,7 @@ class AsyncRecordingsResource(AsyncAPIResource):
256
256
  extra_headers: Headers | None = None,
257
257
  extra_query: Query | None = None,
258
258
  extra_body: Body | None = None,
259
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
259
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
260
260
  ) -> RecordingResumeResponse:
261
261
  """
262
262
  Resumes the video recording for the specified browser session.