anchorbrowser 0.3.12__py3-none-any.whl → 0.4.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anchorbrowser
3
- Version: 0.3.12
3
+ Version: 0.4.0
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
@@ -1,6 +1,6 @@
1
1
  anchorbrowser/__init__.py,sha256=Wl16NhVAsaRBCpDtHZjZXDY31QMKfCIRNjzJcfb8D9E,2728
2
2
  anchorbrowser/_base_client.py,sha256=fl8ELiO1VjtUQLGCkJiTouZAxtX3b-teiU8Z0ANoR7g,67054
3
- anchorbrowser/_client.py,sha256=BXHIqml4Sz3u49HQvUxpvvTARWFwMhQBr3F9P5zVzv4,19586
3
+ anchorbrowser/_client.py,sha256=kOirdFb7E1Ka4i8OmYvReMdFN4L-uvY9l_X2Zk-lNXs,19478
4
4
  anchorbrowser/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
5
5
  anchorbrowser/_constants.py,sha256=rKs4WwdZfRAvd1f_BWJm7vbaHYIdDm7Z7tz5NQKGbPM,468
6
6
  anchorbrowser/_exceptions.py,sha256=Qz7WOsYUFZ3bEoN28V-C9Wk-EvYerqP83-fMUINlZKQ,3234
@@ -10,8 +10,8 @@ anchorbrowser/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
10
10
  anchorbrowser/_resource.py,sha256=7lE1EgpVj5kwckk-27umtigTOf9nKTyRl97cgNwRbRQ,1142
11
11
  anchorbrowser/_response.py,sha256=xsiyWOC8LWW-NvbFtZ-MJD4f7eI9RnivKwtKImZ-8o4,28860
12
12
  anchorbrowser/_streaming.py,sha256=ey2jst1hntYHV6HDiCFfHhWr_dUCSG4dG-VUqQkmCQ4,10249
13
- anchorbrowser/_types.py,sha256=hYSr4gk9908ZiGTqMX3pHhdzfzUUaHVelFS_I6p2Uj0,7243
14
- anchorbrowser/_version.py,sha256=VdYvQVSKclqAmxjr2ICmV3HaQj06Qtn83DQsVnGI2b8,166
13
+ anchorbrowser/_types.py,sha256=nAsmJDL_VDIWprgQ9LdTLnW1NtUssCOAD8OKIqeaHQ8,7302
14
+ anchorbrowser/_version.py,sha256=KQiS3RIMQmAztrARiHxHAgknVHATAvEnd1JxsxWRouo,165
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
@@ -28,12 +28,12 @@ anchorbrowser/_utils/_utils.py,sha256=ugfUaneOK7I8h9b3656flwf5u_kthY0gvNuqvgOLoS
28
28
  anchorbrowser/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
29
29
  anchorbrowser/lib/agent.py,sha256=bPaGn2-Eta1HL0hB0cClL9WSmjwRfHphruBofq1oVvI,3533
30
30
  anchorbrowser/lib/browser.py,sha256=I8BGLRRBEAURb_rJHvMh5qGaN73Ln9jmXBwTkHJXOS0,6349
31
- anchorbrowser/resources/__init__.py,sha256=xw7K4TTIthqdKN3-YxvyoAtiNmx3dtvHkGbKPcaRhCs,3409
31
+ anchorbrowser/resources/__init__.py,sha256=7EiFSg_zGe3PD-8qVTwpphzf2YNWHbUOzHt-iE607IA,3369
32
32
  anchorbrowser/resources/agent.py,sha256=-pceCs4e76Ofe-yAfSU_AjNekTl7EWWk3NiDcCf6pKI,19597
33
- anchorbrowser/resources/batch_sessions.py,sha256=d7Jy59NHE0u7mw4sx1N9mhG60-93reu_DqsXsU3stZo,11336
34
33
  anchorbrowser/resources/browser.py,sha256=BB5hq_ayIDL_ziYHq13oj8US3XkHzkoXiGLBm7h9dH0,5548
35
34
  anchorbrowser/resources/events.py,sha256=B6TwziBmOVMjWwoFO7OJR2X_Jt_3jtzNhQg4lgY-7SE,10780
36
35
  anchorbrowser/resources/extensions.py,sha256=KWySN-tu8Cxy-LbY3TXLNMPs1s5Hzwwk7Rmr1AYLVeU,15943
36
+ anchorbrowser/resources/identities.py,sha256=fsRJwlO6-4r67ZcUlO_wJVKobFyw5adl4JdFG1zxQ-0,6378
37
37
  anchorbrowser/resources/profiles.py,sha256=g6xLjfmdXfRM5QV-N-omShpSPO_jMvRRmxKjOllq5RQ,16206
38
38
  anchorbrowser/resources/task.py,sha256=mimwjwBWvSDbXUYhjq7fVpbmGbsxDkBVEmxDTHiVeTQ,16580
39
39
  anchorbrowser/resources/tools.py,sha256=lqVo9w1gvDD7Q_bRV9H_KoLa3RDHac7-yDzw7KV6mlg,25988
@@ -50,10 +50,7 @@ anchorbrowser/resources/sessions/recordings/__init__.py,sha256=MRWTb2Kwpc-wGBrca
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
52
  anchorbrowser/resources/task/run.py,sha256=wgh4guYSaeysvEmbnxBZtrrZXTJGv62aiacXPqxM3MU,7919
53
- anchorbrowser/types/__init__.py,sha256=mnuoFsN6OClbSkY0jpie8UQuq_ukz-XMlY6l_flVcHM,3620
54
- anchorbrowser/types/batch_session_create_params.py,sha256=ZmrNF7tOLvd7P4zFSNlz70HEC8wNJ51_VLGnC7h07nM,11530
55
- anchorbrowser/types/batch_session_create_response.py,sha256=K3EqFJzenfNDjzoTaWefPjuyULlxTMhdemBjKAd3_Dg,761
56
- anchorbrowser/types/batch_session_retrieve_response.py,sha256=nCA22nuUPnmq2Ec-0ZzkZehNpMLCtLJa0aBPdaVAGDk,2800
53
+ anchorbrowser/types/__init__.py,sha256=NsF4l7kljN8D5Pjf1OlqOH_Lbr_py-dzA4ZBDsbEezg,3456
57
54
  anchorbrowser/types/event_signal_params.py,sha256=aEq0J4fq3YBGz3LLo2jtQH5GQUmfXj8Nuk-VFnnXRs8,372
58
55
  anchorbrowser/types/event_wait_for_params.py,sha256=hyBubY4vBGTtX5AfS6KhkTQHseWKCdhSY4TIzyxPqAo,448
59
56
  anchorbrowser/types/event_wait_for_response.py,sha256=QDjO9rVVpn34OGb5q6eQqrve1rSzzhaT8lPl_TCRXOs,319
@@ -63,11 +60,12 @@ anchorbrowser/types/extension_manifest.py,sha256=jgQzqKbPODPjEPiGPcEjCXx6yBdgFXZ
63
60
  anchorbrowser/types/extension_retrieve_response.py,sha256=wBpk7gNgAbVf1etsCSrC4JOrKD6c_9HTv2S2FjNiAiM,807
64
61
  anchorbrowser/types/extension_upload_params.py,sha256=bBd8BMRVHu6P18jJovVMLPnIzGXGlV8Geb8TdiuGPbQ,470
65
62
  anchorbrowser/types/extension_upload_response.py,sha256=ee8KYWIb-AjURMzrtAMNUTjV3Izhj6AB0LeAvR0npvk,868
63
+ anchorbrowser/types/identity_retrieve_credentials_response.py,sha256=JEbMSc2IJ-z9BGbBAmfR7V2a1YRisFNkfA1mhoyFxMA,1930
66
64
  anchorbrowser/types/profile_create_params.py,sha256=JU53ky-FAMbjHPFQzA70H63qrgvyZDmxU6v8CaUcriI,839
67
65
  anchorbrowser/types/profile_list_response.py,sha256=8mDdiQ_YHaKeAzVbzw9D9XbFbyLL1MSBaJQN9dE1xeE,1041
68
66
  anchorbrowser/types/profile_retrieve_response.py,sha256=OW5f6dcJfWUJUl1uKFQmwul5Uw4J5iyxP-f4vP19ufc,891
69
67
  anchorbrowser/types/session_copy_response.py,sha256=S6SzIEYrjLATuBWk5xCuT3QhVqE1ztWr-5UomASXL7g,289
70
- anchorbrowser/types/session_create_params.py,sha256=0jXPzOENYuhz093jwHQ6V_lmGl_DUb45IPnXg-ENI6Q,10350
68
+ anchorbrowser/types/session_create_params.py,sha256=cA1BDje6iDgL5We42vZil-9n5vexnFC9l027ZIv2qaM,11201
71
69
  anchorbrowser/types/session_create_response.py,sha256=SKTtGQlEfLwfdQ9e8n5kETeYXHdwhnDPaXw6Myx584k,539
72
70
  anchorbrowser/types/session_drag_and_drop_params.py,sha256=z3q4hyiRKkW7Vq8bo1Q1ryGS2FEzlfv5cw1p8qvXmcs,795
73
71
  anchorbrowser/types/session_drag_and_drop_response.py,sha256=mxxEdrYAdbgR0khm8wPTYcZRXae5Xf1m35WAc1g9irU,270
@@ -82,11 +80,11 @@ anchorbrowser/types/session_scroll_params.py,sha256=lRVL0Gda1Xs5Xrqu6oj70gOFd8a_
82
80
  anchorbrowser/types/session_scroll_response.py,sha256=FhBbUooF9AYNg-oX1HyHcNINcMGYt--hP47Hne4yxZE,260
83
81
  anchorbrowser/types/session_upload_file_params.py,sha256=dRPj6LQSDNtp3TiU4IoQj16bLRmYmJyG1IQfckcOUfY,379
84
82
  anchorbrowser/types/session_upload_file_response.py,sha256=00pC6pJOSJymJEZ6EISQJTMRfDax44RWi545h4-dSN4,368
85
- anchorbrowser/types/task_create_params.py,sha256=fOQt3UALquLuwh9J1R5rs0tRzEW48_gHe2CkHXQXGL4,6256
86
- anchorbrowser/types/task_create_response.py,sha256=MAgVHNyYCl8-Ns9lGT3FnV5MSF2oZHOddxkZ834-DDk,7811
83
+ anchorbrowser/types/task_create_params.py,sha256=3a55Cu-r8fslLooQEsFqcliJBl1_Z9q2Av-gfj8tMNo,6478
84
+ anchorbrowser/types/task_create_response.py,sha256=zYqfjOnibXTh7TvtPY5_aiXVXMCpK9N6WiO6cllt0Yc,8033
87
85
  anchorbrowser/types/task_list_params.py,sha256=pu0gLGBp5UxKLpbEpSEz-J-kSRrY6VIvzjc-A0sOUFc,328
88
- anchorbrowser/types/task_list_response.py,sha256=cxLCLS7yX3CpnpbAGhTb9rshW4DFUtjLxKWPLe8_99A,8126
89
- anchorbrowser/types/task_run_params.py,sha256=P9R7p9_9x9talSybyPabxiTxRpvNod10da03gxR9eRU,6559
86
+ anchorbrowser/types/task_list_response.py,sha256=4hSdAkWJXqMErtqbsuHX4wBuEJywMkvREcSOAkqrr7U,8348
87
+ anchorbrowser/types/task_run_params.py,sha256=U-5fDfwftOkHNBbnMDkQTK0qWVpUT4EdEb8O7ug1u8U,6790
90
88
  anchorbrowser/types/task_run_response.py,sha256=Vy33PwbYTneLeAe0rAi_K6nr4M4uwMg4fzgvf0bBe3w,830
91
89
  anchorbrowser/types/tool_fetch_webpage_params.py,sha256=g_C7tLpyFx4I2r7-iizM7ZiQ71-VfowCj9aufaSHjmg,1181
92
90
  anchorbrowser/types/tool_fetch_webpage_response.py,sha256=hdbrNgPz_LeWa3_aVbtck-n-SRvO4moFDbGoSf_2_tU,210
@@ -118,7 +116,7 @@ anchorbrowser/types/sessions/agent/file_upload_response.py,sha256=9DnqplfvEud89U
118
116
  anchorbrowser/types/sessions/recordings/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
119
117
  anchorbrowser/types/shared/__init__.py,sha256=FQKjY3VDxI8T0feNRazdY5TOqb2KDeEwZaoJjsxuEl4,152
120
118
  anchorbrowser/types/shared/success_response.py,sha256=l9OWrucXoSjBdsx5QKdvBPFtxv8d0YdpYY6iL5cWWuc,314
121
- anchorbrowser-0.3.12.dist-info/METADATA,sha256=XVdJ6SOP_LHwyjuPMn49FA-BS3XzP7HQGDLrEPyDTvA,15408
122
- anchorbrowser-0.3.12.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
123
- anchorbrowser-0.3.12.dist-info/licenses/LICENSE,sha256=QYTH6OztHxnELDn890vME8F7-euzmsHhWI4XOSYxwOg,11343
124
- anchorbrowser-0.3.12.dist-info/RECORD,,
119
+ anchorbrowser-0.4.0.dist-info/METADATA,sha256=u76Is3ph5Wo62g-cp5nGSPDb_j_NDlKixBkDkW5UMvo,15407
120
+ anchorbrowser-0.4.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
121
+ anchorbrowser-0.4.0.dist-info/licenses/LICENSE,sha256=QYTH6OztHxnELDn890vME8F7-euzmsHhWI4XOSYxwOg,11343
122
+ anchorbrowser-0.4.0.dist-info/RECORD,,
@@ -1,288 +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 typing import Dict
6
-
7
- import httpx
8
-
9
- from ..types import batch_session_create_params
10
- from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
- from .._utils import maybe_transform, async_maybe_transform
12
- from .._compat import cached_property
13
- from .._resource import SyncAPIResource, AsyncAPIResource
14
- from .._response import (
15
- to_raw_response_wrapper,
16
- to_streamed_response_wrapper,
17
- async_to_raw_response_wrapper,
18
- async_to_streamed_response_wrapper,
19
- )
20
- from .._base_client import make_request_options
21
- from ..types.batch_session_create_response import BatchSessionCreateResponse
22
- from ..types.batch_session_retrieve_response import BatchSessionRetrieveResponse
23
-
24
- __all__ = ["BatchSessionsResource", "AsyncBatchSessionsResource"]
25
-
26
-
27
- class BatchSessionsResource(SyncAPIResource):
28
- @cached_property
29
- def with_raw_response(self) -> BatchSessionsResourceWithRawResponse:
30
- """
31
- This property can be used as a prefix for any HTTP method call to return
32
- the raw response object instead of the parsed content.
33
-
34
- For more information, see https://www.github.com/anchorbrowser/AnchorBrowser-SDK-Python#accessing-raw-response-data-eg-headers
35
- """
36
- return BatchSessionsResourceWithRawResponse(self)
37
-
38
- @cached_property
39
- def with_streaming_response(self) -> BatchSessionsResourceWithStreamingResponse:
40
- """
41
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
42
-
43
- For more information, see https://www.github.com/anchorbrowser/AnchorBrowser-SDK-Python#with_streaming_response
44
- """
45
- return BatchSessionsResourceWithStreamingResponse(self)
46
-
47
- def create(
48
- self,
49
- *,
50
- count: int,
51
- configuration: batch_session_create_params.Configuration | Omit = omit,
52
- metadata: Dict[str, object] | Omit = omit,
53
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
54
- # The extra values given here take precedence over values defined on the client or passed to this method.
55
- extra_headers: Headers | None = None,
56
- extra_query: Query | None = None,
57
- extra_body: Body | None = None,
58
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
59
- ) -> BatchSessionCreateResponse:
60
- """Creates multiple browser sessions in a single batch operation.
61
-
62
- This endpoint
63
- allows you to create up to 5,000 browser sessions simultaneously with the same
64
- configuration.
65
-
66
- The batch will be processed asynchronously, and you can monitor progress using
67
- the batch status endpoint.
68
-
69
- Args:
70
- count: Number of sessions to create in the batch (1-1000)
71
-
72
- configuration: Configuration that applies to all sessions in the batch
73
-
74
- metadata: Optional batch-level metadata for identification and organization
75
-
76
- extra_headers: Send extra headers
77
-
78
- extra_query: Add additional query parameters to the request
79
-
80
- extra_body: Add additional JSON properties to the request
81
-
82
- timeout: Override the client-level default timeout for this request, in seconds
83
- """
84
- return self._post(
85
- "/v1/batch-sessions",
86
- body=maybe_transform(
87
- {
88
- "count": count,
89
- "configuration": configuration,
90
- "metadata": metadata,
91
- },
92
- batch_session_create_params.BatchSessionCreateParams,
93
- ),
94
- options=make_request_options(
95
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
96
- ),
97
- cast_to=BatchSessionCreateResponse,
98
- )
99
-
100
- def retrieve(
101
- self,
102
- batch_id: str,
103
- *,
104
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
105
- # The extra values given here take precedence over values defined on the client or passed to this method.
106
- extra_headers: Headers | None = None,
107
- extra_query: Query | None = None,
108
- extra_body: Body | None = None,
109
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
110
- ) -> BatchSessionRetrieveResponse:
111
- """
112
- Retrieves detailed status information for a specific batch, including progress,
113
- individual session details, and any errors that occurred.
114
-
115
- Args:
116
- extra_headers: Send extra headers
117
-
118
- extra_query: Add additional query parameters to the request
119
-
120
- extra_body: Add additional JSON properties to the request
121
-
122
- timeout: Override the client-level default timeout for this request, in seconds
123
- """
124
- if not batch_id:
125
- raise ValueError(f"Expected a non-empty value for `batch_id` but received {batch_id!r}")
126
- return self._get(
127
- f"/v1/batch-sessions/{batch_id}",
128
- options=make_request_options(
129
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
130
- ),
131
- cast_to=BatchSessionRetrieveResponse,
132
- )
133
-
134
-
135
- class AsyncBatchSessionsResource(AsyncAPIResource):
136
- @cached_property
137
- def with_raw_response(self) -> AsyncBatchSessionsResourceWithRawResponse:
138
- """
139
- This property can be used as a prefix for any HTTP method call to return
140
- the raw response object instead of the parsed content.
141
-
142
- For more information, see https://www.github.com/anchorbrowser/AnchorBrowser-SDK-Python#accessing-raw-response-data-eg-headers
143
- """
144
- return AsyncBatchSessionsResourceWithRawResponse(self)
145
-
146
- @cached_property
147
- def with_streaming_response(self) -> AsyncBatchSessionsResourceWithStreamingResponse:
148
- """
149
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
150
-
151
- For more information, see https://www.github.com/anchorbrowser/AnchorBrowser-SDK-Python#with_streaming_response
152
- """
153
- return AsyncBatchSessionsResourceWithStreamingResponse(self)
154
-
155
- async def create(
156
- self,
157
- *,
158
- count: int,
159
- configuration: batch_session_create_params.Configuration | Omit = omit,
160
- metadata: Dict[str, object] | Omit = omit,
161
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
162
- # The extra values given here take precedence over values defined on the client or passed to this method.
163
- extra_headers: Headers | None = None,
164
- extra_query: Query | None = None,
165
- extra_body: Body | None = None,
166
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
167
- ) -> BatchSessionCreateResponse:
168
- """Creates multiple browser sessions in a single batch operation.
169
-
170
- This endpoint
171
- allows you to create up to 5,000 browser sessions simultaneously with the same
172
- configuration.
173
-
174
- The batch will be processed asynchronously, and you can monitor progress using
175
- the batch status endpoint.
176
-
177
- Args:
178
- count: Number of sessions to create in the batch (1-1000)
179
-
180
- configuration: Configuration that applies to all sessions in the batch
181
-
182
- metadata: Optional batch-level metadata for identification and organization
183
-
184
- extra_headers: Send extra headers
185
-
186
- extra_query: Add additional query parameters to the request
187
-
188
- extra_body: Add additional JSON properties to the request
189
-
190
- timeout: Override the client-level default timeout for this request, in seconds
191
- """
192
- return await self._post(
193
- "/v1/batch-sessions",
194
- body=await async_maybe_transform(
195
- {
196
- "count": count,
197
- "configuration": configuration,
198
- "metadata": metadata,
199
- },
200
- batch_session_create_params.BatchSessionCreateParams,
201
- ),
202
- options=make_request_options(
203
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
204
- ),
205
- cast_to=BatchSessionCreateResponse,
206
- )
207
-
208
- async def retrieve(
209
- self,
210
- batch_id: str,
211
- *,
212
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
213
- # The extra values given here take precedence over values defined on the client or passed to this method.
214
- extra_headers: Headers | None = None,
215
- extra_query: Query | None = None,
216
- extra_body: Body | None = None,
217
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
218
- ) -> BatchSessionRetrieveResponse:
219
- """
220
- Retrieves detailed status information for a specific batch, including progress,
221
- individual session details, and any errors that occurred.
222
-
223
- Args:
224
- extra_headers: Send extra headers
225
-
226
- extra_query: Add additional query parameters to the request
227
-
228
- extra_body: Add additional JSON properties to the request
229
-
230
- timeout: Override the client-level default timeout for this request, in seconds
231
- """
232
- if not batch_id:
233
- raise ValueError(f"Expected a non-empty value for `batch_id` but received {batch_id!r}")
234
- return await self._get(
235
- f"/v1/batch-sessions/{batch_id}",
236
- options=make_request_options(
237
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
238
- ),
239
- cast_to=BatchSessionRetrieveResponse,
240
- )
241
-
242
-
243
- class BatchSessionsResourceWithRawResponse:
244
- def __init__(self, batch_sessions: BatchSessionsResource) -> None:
245
- self._batch_sessions = batch_sessions
246
-
247
- self.create = to_raw_response_wrapper(
248
- batch_sessions.create,
249
- )
250
- self.retrieve = to_raw_response_wrapper(
251
- batch_sessions.retrieve,
252
- )
253
-
254
-
255
- class AsyncBatchSessionsResourceWithRawResponse:
256
- def __init__(self, batch_sessions: AsyncBatchSessionsResource) -> None:
257
- self._batch_sessions = batch_sessions
258
-
259
- self.create = async_to_raw_response_wrapper(
260
- batch_sessions.create,
261
- )
262
- self.retrieve = async_to_raw_response_wrapper(
263
- batch_sessions.retrieve,
264
- )
265
-
266
-
267
- class BatchSessionsResourceWithStreamingResponse:
268
- def __init__(self, batch_sessions: BatchSessionsResource) -> None:
269
- self._batch_sessions = batch_sessions
270
-
271
- self.create = to_streamed_response_wrapper(
272
- batch_sessions.create,
273
- )
274
- self.retrieve = to_streamed_response_wrapper(
275
- batch_sessions.retrieve,
276
- )
277
-
278
-
279
- class AsyncBatchSessionsResourceWithStreamingResponse:
280
- def __init__(self, batch_sessions: AsyncBatchSessionsResource) -> None:
281
- self._batch_sessions = batch_sessions
282
-
283
- self.create = async_to_streamed_response_wrapper(
284
- batch_sessions.create,
285
- )
286
- self.retrieve = async_to_streamed_response_wrapper(
287
- batch_sessions.retrieve,
288
- )