anchorbrowser 0.3.8__py3-none-any.whl → 0.3.10__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/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "anchorbrowser"
4
- __version__ = "0.3.8" # x-release-please-version
4
+ __version__ = "0.3.10" # x-release-please-version
@@ -6,6 +6,7 @@ from typing import Dict
6
6
 
7
7
  import httpx
8
8
 
9
+ from ...types import task_run_params
9
10
  from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
10
11
  from ..._utils import maybe_transform, async_maybe_transform
11
12
  from ..._compat import cached_property
@@ -16,9 +17,8 @@ from ..._response import (
16
17
  async_to_raw_response_wrapper,
17
18
  async_to_streamed_response_wrapper,
18
19
  )
19
- from ...types.task import run_execute_params
20
20
  from ..._base_client import make_request_options
21
- from ...types.task.run_execute_response import RunExecuteResponse
21
+ from ...types.task_run_response import RunExecuteResponse
22
22
 
23
23
  __all__ = ["RunResource", "AsyncRunResource"]
24
24
 
@@ -49,9 +49,7 @@ class RunResource(SyncAPIResource):
49
49
  task_id: str,
50
50
  async_: bool | Omit = omit,
51
51
  inputs: Dict[str, str] | Omit = omit,
52
- override_browser_configuration: run_execute_params.OverrideBrowserConfiguration | Omit = omit,
53
- session_id: str | Omit = omit,
54
- task_session_id: str | Omit = omit,
52
+ override_browser_configuration: task_run_params.OverrideBrowserConfiguration | Omit = omit,
55
53
  version: str | Omit = omit,
56
54
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
57
55
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -75,10 +73,6 @@ class RunResource(SyncAPIResource):
75
73
 
76
74
  override_browser_configuration: Override browser configuration for this execution
77
75
 
78
- session_id: Optional existing session ID to use
79
-
80
- task_session_id: Optional task-specific session ID
81
-
82
76
  version: Version to run (draft, latest, or version number)
83
77
 
84
78
  extra_headers: Send extra headers
@@ -97,11 +91,9 @@ class RunResource(SyncAPIResource):
97
91
  "async_": async_,
98
92
  "inputs": inputs,
99
93
  "override_browser_configuration": override_browser_configuration,
100
- "session_id": session_id,
101
- "task_session_id": task_session_id,
102
94
  "version": version,
103
95
  },
104
- run_execute_params.RunExecuteParams,
96
+ task_run_params.RunExecuteParams,
105
97
  ),
106
98
  options=make_request_options(
107
99
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
@@ -136,9 +128,7 @@ class AsyncRunResource(AsyncAPIResource):
136
128
  task_id: str,
137
129
  async_: bool | Omit = omit,
138
130
  inputs: Dict[str, str] | Omit = omit,
139
- override_browser_configuration: run_execute_params.OverrideBrowserConfiguration | Omit = omit,
140
- session_id: str | Omit = omit,
141
- task_session_id: str | Omit = omit,
131
+ override_browser_configuration: task_run_params.OverrideBrowserConfiguration | Omit = omit,
142
132
  version: str | Omit = omit,
143
133
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
144
134
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -162,10 +152,6 @@ class AsyncRunResource(AsyncAPIResource):
162
152
 
163
153
  override_browser_configuration: Override browser configuration for this execution
164
154
 
165
- session_id: Optional existing session ID to use
166
-
167
- task_session_id: Optional task-specific session ID
168
-
169
155
  version: Version to run (draft, latest, or version number)
170
156
 
171
157
  extra_headers: Send extra headers
@@ -184,11 +170,9 @@ class AsyncRunResource(AsyncAPIResource):
184
170
  "async_": async_,
185
171
  "inputs": inputs,
186
172
  "override_browser_configuration": override_browser_configuration,
187
- "session_id": session_id,
188
- "task_session_id": task_session_id,
189
173
  "version": version,
190
174
  },
191
- run_execute_params.RunExecuteParams,
175
+ task_run_params.RunExecuteParams,
192
176
  ),
193
177
  options=make_request_options(
194
178
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
@@ -7,7 +7,7 @@ from typing_extensions import Literal
7
7
 
8
8
  import httpx
9
9
 
10
- from ..types import task_list_params, task_create_params
10
+ from ..types import task_run_params, task_list_params, task_create_params
11
11
  from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
12
12
  from .._utils import maybe_transform, async_maybe_transform
13
13
  from .._compat import cached_property
@@ -18,11 +18,10 @@ from .._response import (
18
18
  async_to_raw_response_wrapper,
19
19
  async_to_streamed_response_wrapper,
20
20
  )
21
- from ..types.task import run_execute_params
22
21
  from .._base_client import make_request_options
22
+ from ..types.task_run_response import RunExecuteResponse
23
23
  from ..types.task_list_response import TaskListResponse
24
24
  from ..types.task_create_response import TaskCreateResponse
25
- from ..types.task.run_execute_response import RunExecuteResponse
26
25
 
27
26
  __all__ = ["TaskResource", "AsyncTaskResource"]
28
27
 
@@ -159,9 +158,7 @@ class TaskResource(SyncAPIResource):
159
158
  task_id: str,
160
159
  async_: bool | Omit = omit,
161
160
  inputs: Dict[str, str] | Omit = omit,
162
- override_browser_configuration: run_execute_params.OverrideBrowserConfiguration | Omit = omit,
163
- session_id: str | Omit = omit,
164
- task_session_id: str | Omit = omit,
161
+ override_browser_configuration: task_run_params.OverrideBrowserConfiguration | Omit = omit,
165
162
  version: str | Omit = omit,
166
163
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
167
164
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -185,10 +182,6 @@ class TaskResource(SyncAPIResource):
185
182
 
186
183
  override_browser_configuration: Override browser configuration for this execution
187
184
 
188
- session_id: Optional existing session ID to use
189
-
190
- task_session_id: Optional task-specific session ID
191
-
192
185
  version: Version to run (draft, latest, or version number)
193
186
 
194
187
  extra_headers: Send extra headers
@@ -207,11 +200,9 @@ class TaskResource(SyncAPIResource):
207
200
  "async_": async_,
208
201
  "inputs": inputs,
209
202
  "override_browser_configuration": override_browser_configuration,
210
- "session_id": session_id,
211
- "task_session_id": task_session_id,
212
203
  "version": version,
213
204
  },
214
- run_execute_params.RunExecuteParams,
205
+ task_run_params.RunExecuteParams,
215
206
  ),
216
207
  options=make_request_options(
217
208
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
@@ -352,9 +343,7 @@ class AsyncTaskResource(AsyncAPIResource):
352
343
  task_id: str,
353
344
  async_: bool | Omit = omit,
354
345
  inputs: Dict[str, str] | Omit = omit,
355
- override_browser_configuration: run_execute_params.OverrideBrowserConfiguration | Omit = omit,
356
- session_id: str | Omit = omit,
357
- task_session_id: str | Omit = omit,
346
+ override_browser_configuration: task_run_params.OverrideBrowserConfiguration | Omit = omit,
358
347
  version: str | Omit = omit,
359
348
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
360
349
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -378,10 +367,6 @@ class AsyncTaskResource(AsyncAPIResource):
378
367
 
379
368
  override_browser_configuration: Override browser configuration for this execution
380
369
 
381
- session_id: Optional existing session ID to use
382
-
383
- task_session_id: Optional task-specific session ID
384
-
385
370
  version: Version to run (draft, latest, or version number)
386
371
 
387
372
  extra_headers: Send extra headers
@@ -400,11 +385,9 @@ class AsyncTaskResource(AsyncAPIResource):
400
385
  "async": async_,
401
386
  "inputs": inputs,
402
387
  "override_browser_configuration": override_browser_configuration,
403
- "session_id": session_id,
404
- "task_session_id": task_session_id,
405
388
  "version": version,
406
389
  },
407
- run_execute_params.RunExecuteParams,
390
+ task_run_params.RunExecuteParams,
408
391
  ),
409
392
  options=make_request_options(
410
393
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
@@ -5,7 +5,7 @@ from __future__ import annotations
5
5
  from typing import Dict, Union
6
6
  from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
7
7
 
8
- from ..._utils import PropertyInfo
8
+ from .._utils import PropertyInfo
9
9
 
10
10
  __all__ = [
11
11
  "RunExecuteParams",
@@ -34,12 +34,6 @@ class RunExecuteParams(TypedDict, total=False):
34
34
  ]
35
35
  """Override browser configuration for this execution"""
36
36
 
37
- session_id: Annotated[str, PropertyInfo(alias="sessionId")]
38
- """Optional existing session ID to use"""
39
-
40
- task_session_id: Annotated[str, PropertyInfo(alias="taskSessionId")]
41
- """Optional task-specific session ID"""
42
-
43
37
  version: str
44
38
  """Version to run (draft, latest, or version number)"""
45
39
 
@@ -325,3 +319,4 @@ class OverrideBrowserConfiguration(TypedDict, total=False):
325
319
 
326
320
  timeout: OverrideBrowserConfigurationTimeout
327
321
  """Timeout configurations for the browser session."""
322
+
@@ -1,10 +1,12 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ from __future__ import annotations
4
+
3
5
  from typing import Optional
4
6
 
5
7
  from pydantic import Field as FieldInfo
6
8
 
7
- from ..._models import BaseModel
9
+ from .._models import BaseModel
8
10
 
9
11
  __all__ = ["RunExecuteResponse", "Data"]
10
12
 
@@ -31,3 +33,4 @@ class Data(BaseModel):
31
33
 
32
34
  class RunExecuteResponse(BaseModel):
33
35
  data: Optional[Data] = None
36
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anchorbrowser
3
- Version: 0.3.8
3
+ Version: 0.3.10
4
4
  Summary: The official Python library for the anchorbrowser API
5
5
  Project-URL: Homepage, https://github.com/anchorbrowser/AnchorBrowser-SDK-Python
6
6
  Project-URL: Repository, https://github.com/anchorbrowser/AnchorBrowser-SDK-Python
@@ -18,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.10
18
18
  Classifier: Programming Language :: Python :: 3.11
19
19
  Classifier: Programming Language :: Python :: 3.12
20
20
  Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
21
22
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
23
  Classifier: Typing :: Typed
23
24
  Requires-Python: >=3.9
@@ -11,7 +11,7 @@ anchorbrowser/_resource.py,sha256=7lE1EgpVj5kwckk-27umtigTOf9nKTyRl97cgNwRbRQ,11
11
11
  anchorbrowser/_response.py,sha256=xsiyWOC8LWW-NvbFtZ-MJD4f7eI9RnivKwtKImZ-8o4,28860
12
12
  anchorbrowser/_streaming.py,sha256=ageQnvSloL91I4OxR1GL6-V5sDa4A_99PX1Sgi-U7zY,10177
13
13
  anchorbrowser/_types.py,sha256=hYSr4gk9908ZiGTqMX3pHhdzfzUUaHVelFS_I6p2Uj0,7243
14
- anchorbrowser/_version.py,sha256=Ra0af65GuTiLrewF-0mZcRKU41J8mgZnHNEMCarOb7M,165
14
+ anchorbrowser/_version.py,sha256=AtdYmZoJvz0jZk_lruGk8rCsSdBl0a8RF4uZGy4TebU,166
15
15
  anchorbrowser/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  anchorbrowser/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
17
  anchorbrowser/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
@@ -35,7 +35,7 @@ anchorbrowser/resources/browser.py,sha256=BB5hq_ayIDL_ziYHq13oj8US3XkHzkoXiGLBm7
35
35
  anchorbrowser/resources/events.py,sha256=B6TwziBmOVMjWwoFO7OJR2X_Jt_3jtzNhQg4lgY-7SE,10780
36
36
  anchorbrowser/resources/extensions.py,sha256=KWySN-tu8Cxy-LbY3TXLNMPs1s5Hzwwk7Rmr1AYLVeU,15943
37
37
  anchorbrowser/resources/profiles.py,sha256=g6xLjfmdXfRM5QV-N-omShpSPO_jMvRRmxKjOllq5RQ,16206
38
- anchorbrowser/resources/task.py,sha256=ciHGW2SJTbpvIlxFOkAtngpG1T82X9Tth456l0uhRH8,17239
38
+ anchorbrowser/resources/task.py,sha256=mimwjwBWvSDbXUYhjq7fVpbmGbsxDkBVEmxDTHiVeTQ,16580
39
39
  anchorbrowser/resources/tools.py,sha256=lqVo9w1gvDD7Q_bRV9H_KoLa3RDHac7-yDzw7KV6mlg,25988
40
40
  anchorbrowser/resources/sessions/__init__.py,sha256=51tmuaKqEsEMfFTtZOovPAid6vYyKLkv6quuFBnQSiY,3330
41
41
  anchorbrowser/resources/sessions/all.py,sha256=5iN5Vv6UW-2p07lEqiRHw3fFQC4m_acfvsn3yZVi_g0,7193
@@ -49,7 +49,7 @@ anchorbrowser/resources/sessions/agent/files.py,sha256=E5pFDXEeaqJAN7DfE774WWJMf
49
49
  anchorbrowser/resources/sessions/recordings/__init__.py,sha256=MRWTb2Kwpc-wGBrcaa5YnTntQ9Z85Zd0McKS5K_mG00,1067
50
50
  anchorbrowser/resources/sessions/recordings/primary.py,sha256=p739aM0tU6CUx2KAgbo2O0oS-5T438Ho7SeUH9eSKXI,6569
51
51
  anchorbrowser/resources/sessions/recordings/recordings.py,sha256=LtaT51hX5GWdl21ypu2SGKzEHJHfsjWhJkqAy_fjWGo,13746
52
- anchorbrowser/resources/task/run.py,sha256=cLl3SOWzzfkOuo7lVdcqKpfG_QXtzKTQnYF2acVUj7s,8559
52
+ anchorbrowser/resources/task/run.py,sha256=wgh4guYSaeysvEmbnxBZtrrZXTJGv62aiacXPqxM3MU,7919
53
53
  anchorbrowser/types/__init__.py,sha256=mnuoFsN6OClbSkY0jpie8UQuq_ukz-XMlY6l_flVcHM,3620
54
54
  anchorbrowser/types/batch_session_create_params.py,sha256=ZmrNF7tOLvd7P4zFSNlz70HEC8wNJ51_VLGnC7h07nM,11530
55
55
  anchorbrowser/types/batch_session_create_response.py,sha256=K3EqFJzenfNDjzoTaWefPjuyULlxTMhdemBjKAd3_Dg,761
@@ -86,6 +86,8 @@ anchorbrowser/types/task_create_params.py,sha256=fOQt3UALquLuwh9J1R5rs0tRzEW48_g
86
86
  anchorbrowser/types/task_create_response.py,sha256=MAgVHNyYCl8-Ns9lGT3FnV5MSF2oZHOddxkZ834-DDk,7811
87
87
  anchorbrowser/types/task_list_params.py,sha256=pu0gLGBp5UxKLpbEpSEz-J-kSRrY6VIvzjc-A0sOUFc,328
88
88
  anchorbrowser/types/task_list_response.py,sha256=cxLCLS7yX3CpnpbAGhTb9rshW4DFUtjLxKWPLe8_99A,8126
89
+ anchorbrowser/types/task_run_params.py,sha256=P9R7p9_9x9talSybyPabxiTxRpvNod10da03gxR9eRU,6559
90
+ anchorbrowser/types/task_run_response.py,sha256=Vy33PwbYTneLeAe0rAi_K6nr4M4uwMg4fzgvf0bBe3w,830
89
91
  anchorbrowser/types/tool_fetch_webpage_params.py,sha256=g_C7tLpyFx4I2r7-iizM7ZiQ71-VfowCj9aufaSHjmg,1181
90
92
  anchorbrowser/types/tool_fetch_webpage_response.py,sha256=hdbrNgPz_LeWa3_aVbtck-n-SRvO4moFDbGoSf_2_tU,210
91
93
  anchorbrowser/types/tool_perform_web_task_params.py,sha256=6EGsoxMasrZCxwfPOx_vY6kPwLl8wdA7nqw2pKiEbkY,2120
@@ -116,10 +118,7 @@ anchorbrowser/types/sessions/agent/file_upload_response.py,sha256=9DnqplfvEud89U
116
118
  anchorbrowser/types/sessions/recordings/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
117
119
  anchorbrowser/types/shared/__init__.py,sha256=FQKjY3VDxI8T0feNRazdY5TOqb2KDeEwZaoJjsxuEl4,152
118
120
  anchorbrowser/types/shared/success_response.py,sha256=l9OWrucXoSjBdsx5QKdvBPFtxv8d0YdpYY6iL5cWWuc,314
119
- anchorbrowser/types/task/__init__.py,sha256=CbGxF7UFks1LsFq_wdSi62f4bgThKymv5OOSDmaFBI4,267
120
- anchorbrowser/types/task/run_execute_params.py,sha256=WMEic2hETsUAhTHVZbJfzMqC0tbEGKId-9NHz5ivWNo,6788
121
- anchorbrowser/types/task/run_execute_response.py,sha256=ha86lTlKsLA_yZlaHNHEqBM1F--GiOLuifZpAk9J1bM,794
122
- anchorbrowser-0.3.8.dist-info/METADATA,sha256=Y0444zCOV3GG5Pj9NqOTfNtjVBSCbgk0xnHufjSywH8,15279
123
- anchorbrowser-0.3.8.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
124
- anchorbrowser-0.3.8.dist-info/licenses/LICENSE,sha256=QYTH6OztHxnELDn890vME8F7-euzmsHhWI4XOSYxwOg,11343
125
- anchorbrowser-0.3.8.dist-info/RECORD,,
121
+ anchorbrowser-0.3.10.dist-info/METADATA,sha256=orjZa2rU8-EsEdxVFs-tgMHmHLc0p7hWG_fiXK-apc0,15331
122
+ anchorbrowser-0.3.10.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
123
+ anchorbrowser-0.3.10.dist-info/licenses/LICENSE,sha256=QYTH6OztHxnELDn890vME8F7-euzmsHhWI4XOSYxwOg,11343
124
+ anchorbrowser-0.3.10.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from .run_execute_params import RunExecuteParams as RunExecuteParams
6
- from .run_execute_response import RunExecuteResponse as RunExecuteResponse