anchorbrowser 0.7.1__py3-none-any.whl → 0.7.2__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.7.1" # x-release-please-version
4
+ __version__ = "0.7.2" # x-release-please-version
@@ -18,11 +18,10 @@ from ..._response import (
18
18
  async_to_streamed_response_wrapper,
19
19
  )
20
20
  from ..._base_client import make_request_options
21
- from ...types.applications import auth_flow_create_params, auth_flow_update_params
21
+ from ...types.applications import auth_flow_create_params
22
22
  from ...types.applications.auth_flow_list_response import AuthFlowListResponse
23
23
  from ...types.applications.auth_flow_create_response import AuthFlowCreateResponse
24
24
  from ...types.applications.auth_flow_delete_response import AuthFlowDeleteResponse
25
- from ...types.applications.auth_flow_update_response import AuthFlowUpdateResponse
26
25
 
27
26
  __all__ = ["AuthFlowsResource", "AsyncAuthFlowsResource"]
28
27
 
@@ -109,71 +108,6 @@ class AuthFlowsResource(SyncAPIResource):
109
108
  cast_to=AuthFlowCreateResponse,
110
109
  )
111
110
 
112
- def update(
113
- self,
114
- auth_flow_id: str,
115
- *,
116
- application_id: str,
117
- custom_fields: Iterable[auth_flow_update_params.CustomField] | Omit = omit,
118
- description: str | Omit = omit,
119
- is_recommended: bool | Omit = omit,
120
- methods: List[Literal["username_password", "authenticator", "custom"]] | Omit = omit,
121
- name: str | Omit = omit,
122
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
123
- # The extra values given here take precedence over values defined on the client or passed to this method.
124
- extra_headers: Headers | None = None,
125
- extra_query: Query | None = None,
126
- extra_body: Body | None = None,
127
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
128
- ) -> AuthFlowUpdateResponse:
129
- """Updates an existing authentication flow.
130
-
131
- **Beta** Capability.
132
-
133
- [Contact support](mailto:support@anchorbrowser.io) to
134
- enable.
135
-
136
- Args:
137
- custom_fields: Custom fields for this authentication flow
138
-
139
- description: Description of the authentication flow
140
-
141
- is_recommended: Whether this is the recommended authentication flow
142
-
143
- methods: Authentication methods in this flow
144
-
145
- name: Name of the authentication flow
146
-
147
- extra_headers: Send extra headers
148
-
149
- extra_query: Add additional query parameters to the request
150
-
151
- extra_body: Add additional JSON properties to the request
152
-
153
- timeout: Override the client-level default timeout for this request, in seconds
154
- """
155
- if not application_id:
156
- raise ValueError(f"Expected a non-empty value for `application_id` but received {application_id!r}")
157
- if not auth_flow_id:
158
- raise ValueError(f"Expected a non-empty value for `auth_flow_id` but received {auth_flow_id!r}")
159
- return self._patch(
160
- f"/v1/applications/{application_id}/auth-flows/{auth_flow_id}",
161
- body=maybe_transform(
162
- {
163
- "custom_fields": custom_fields,
164
- "description": description,
165
- "is_recommended": is_recommended,
166
- "methods": methods,
167
- "name": name,
168
- },
169
- auth_flow_update_params.AuthFlowUpdateParams,
170
- ),
171
- options=make_request_options(
172
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
173
- ),
174
- cast_to=AuthFlowUpdateResponse,
175
- )
176
-
177
111
  def list(
178
112
  self,
179
113
  application_id: str,
@@ -333,71 +267,6 @@ class AsyncAuthFlowsResource(AsyncAPIResource):
333
267
  cast_to=AuthFlowCreateResponse,
334
268
  )
335
269
 
336
- async def update(
337
- self,
338
- auth_flow_id: str,
339
- *,
340
- application_id: str,
341
- custom_fields: Iterable[auth_flow_update_params.CustomField] | Omit = omit,
342
- description: str | Omit = omit,
343
- is_recommended: bool | Omit = omit,
344
- methods: List[Literal["username_password", "authenticator", "custom"]] | Omit = omit,
345
- name: str | Omit = omit,
346
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
347
- # The extra values given here take precedence over values defined on the client or passed to this method.
348
- extra_headers: Headers | None = None,
349
- extra_query: Query | None = None,
350
- extra_body: Body | None = None,
351
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
352
- ) -> AuthFlowUpdateResponse:
353
- """Updates an existing authentication flow.
354
-
355
- **Beta** Capability.
356
-
357
- [Contact support](mailto:support@anchorbrowser.io) to
358
- enable.
359
-
360
- Args:
361
- custom_fields: Custom fields for this authentication flow
362
-
363
- description: Description of the authentication flow
364
-
365
- is_recommended: Whether this is the recommended authentication flow
366
-
367
- methods: Authentication methods in this flow
368
-
369
- name: Name of the authentication flow
370
-
371
- extra_headers: Send extra headers
372
-
373
- extra_query: Add additional query parameters to the request
374
-
375
- extra_body: Add additional JSON properties to the request
376
-
377
- timeout: Override the client-level default timeout for this request, in seconds
378
- """
379
- if not application_id:
380
- raise ValueError(f"Expected a non-empty value for `application_id` but received {application_id!r}")
381
- if not auth_flow_id:
382
- raise ValueError(f"Expected a non-empty value for `auth_flow_id` but received {auth_flow_id!r}")
383
- return await self._patch(
384
- f"/v1/applications/{application_id}/auth-flows/{auth_flow_id}",
385
- body=await async_maybe_transform(
386
- {
387
- "custom_fields": custom_fields,
388
- "description": description,
389
- "is_recommended": is_recommended,
390
- "methods": methods,
391
- "name": name,
392
- },
393
- auth_flow_update_params.AuthFlowUpdateParams,
394
- ),
395
- options=make_request_options(
396
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
397
- ),
398
- cast_to=AuthFlowUpdateResponse,
399
- )
400
-
401
270
  async def list(
402
271
  self,
403
272
  application_id: str,
@@ -482,9 +351,6 @@ class AuthFlowsResourceWithRawResponse:
482
351
  self.create = to_raw_response_wrapper(
483
352
  auth_flows.create,
484
353
  )
485
- self.update = to_raw_response_wrapper(
486
- auth_flows.update,
487
- )
488
354
  self.list = to_raw_response_wrapper(
489
355
  auth_flows.list,
490
356
  )
@@ -500,9 +366,6 @@ class AsyncAuthFlowsResourceWithRawResponse:
500
366
  self.create = async_to_raw_response_wrapper(
501
367
  auth_flows.create,
502
368
  )
503
- self.update = async_to_raw_response_wrapper(
504
- auth_flows.update,
505
- )
506
369
  self.list = async_to_raw_response_wrapper(
507
370
  auth_flows.list,
508
371
  )
@@ -518,9 +381,6 @@ class AuthFlowsResourceWithStreamingResponse:
518
381
  self.create = to_streamed_response_wrapper(
519
382
  auth_flows.create,
520
383
  )
521
- self.update = to_streamed_response_wrapper(
522
- auth_flows.update,
523
- )
524
384
  self.list = to_streamed_response_wrapper(
525
385
  auth_flows.list,
526
386
  )
@@ -536,9 +396,6 @@ class AsyncAuthFlowsResourceWithStreamingResponse:
536
396
  self.create = async_to_streamed_response_wrapper(
537
397
  auth_flows.create,
538
398
  )
539
- self.update = async_to_streamed_response_wrapper(
540
- auth_flows.update,
541
- )
542
399
  self.list = async_to_streamed_response_wrapper(
543
400
  auth_flows.list,
544
401
  )
@@ -4,7 +4,5 @@ from __future__ import annotations
4
4
 
5
5
  from .auth_flow_create_params import AuthFlowCreateParams as AuthFlowCreateParams
6
6
  from .auth_flow_list_response import AuthFlowListResponse as AuthFlowListResponse
7
- from .auth_flow_update_params import AuthFlowUpdateParams as AuthFlowUpdateParams
8
7
  from .auth_flow_create_response import AuthFlowCreateResponse as AuthFlowCreateResponse
9
8
  from .auth_flow_delete_response import AuthFlowDeleteResponse as AuthFlowDeleteResponse
10
- from .auth_flow_update_response import AuthFlowUpdateResponse as AuthFlowUpdateResponse
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anchorbrowser
3
- Version: 0.7.1
3
+ Version: 0.7.2
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
@@ -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=ey2jst1hntYHV6HDiCFfHhWr_dUCSG4dG-VUqQkmCQ4,10249
13
13
  anchorbrowser/_types.py,sha256=QvYWm0TMkfoauZj7cJwLtTrdnHfy0Wl7490nj7RFC9I,7601
14
- anchorbrowser/_version.py,sha256=ItP_wA2usGZxoCjtGRwe5xOHRNZDq6qEPkx7OndyjJQ,165
14
+ anchorbrowser/_version.py,sha256=V9VthqFOgb7AMJ92_0z7ZUskmMop1kea8nDavRj4Dvk,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
@@ -39,7 +39,7 @@ anchorbrowser/resources/task.py,sha256=Edh3sxfrP_0vs0j4QXS0TMFOS1frG2LZ-TITR0sPW
39
39
  anchorbrowser/resources/tools.py,sha256=6k2yc6O69rfQwh-rHAJ_U0iEOcZHLi-3ixSWzIuc4nI,26656
40
40
  anchorbrowser/resources/applications/__init__.py,sha256=l-NtHBcE8rngI0MYy5C56dxZxgVx_Jeq3i3TVLpo0Xk,1120
41
41
  anchorbrowser/resources/applications/applications.py,sha256=lhQIjdp0SKYeLkmTau0BLg7t_33ZNSHQ1CUjHUWyAr0,27666
42
- anchorbrowser/resources/applications/auth_flows.py,sha256=rw28rvN1hqa4Z99kko-gKsEoIkL-Gy7NrjihCiWKwXI,21423
42
+ anchorbrowser/resources/applications/auth_flows.py,sha256=C-zX1ojjZRb3PtiLEdBLKFQ7j0e9325jCM9crWdm7x8,15669
43
43
  anchorbrowser/resources/sessions/__init__.py,sha256=51tmuaKqEsEMfFTtZOovPAid6vYyKLkv6quuFBnQSiY,3330
44
44
  anchorbrowser/resources/sessions/all.py,sha256=5iN5Vv6UW-2p07lEqiRHw3fFQC4m_acfvsn3yZVi_g0,7193
45
45
  anchorbrowser/resources/sessions/clipboard.py,sha256=aP_O04dR9Axs_r1vMFvo8HlbX9YrNa0eWevIqCG7cTg,6482
@@ -101,13 +101,11 @@ anchorbrowser/types/tool_fetch_webpage_response.py,sha256=hdbrNgPz_LeWa3_aVbtck-
101
101
  anchorbrowser/types/tool_perform_web_task_params.py,sha256=rFEGtjZWtXA8wLLp36GLt9NuD7HO0dKSqDHp5GfFZYA,2219
102
102
  anchorbrowser/types/tool_perform_web_task_response.py,sha256=c7GCKQxXNql6UxXDXcRcetxUg0lOHd5lB4DdbKoKwh4,400
103
103
  anchorbrowser/types/tool_screenshot_webpage_params.py,sha256=a7p4nCi6mQRJvTZD3wYDa67UGsB4v4CqOhW6x8-9Rrk,1344
104
- anchorbrowser/types/applications/__init__.py,sha256=6a12R2eq4EsnzZ4gFKtVUJGqs0lL2TvKZYrnT97sn3k,633
104
+ anchorbrowser/types/applications/__init__.py,sha256=t7oANJ8hnVGMiX34_nXGV9v-1WGsiAJojQrz7TJlqaY,463
105
105
  anchorbrowser/types/applications/auth_flow_create_params.py,sha256=ohcUEAuTAG4CDWrvKK8X6al2X7rNxB_X1IIZFgOQ6zg,877
106
106
  anchorbrowser/types/applications/auth_flow_create_response.py,sha256=GLbv23KtuLVUHis3Zp1MLUUvytopq6Hec2k9AEK95KM,1122
107
107
  anchorbrowser/types/applications/auth_flow_delete_response.py,sha256=7BCd1dNYn8COMIMp-Xu5-1CEI3HpYq9tgTZ6eptWUpE,311
108
108
  anchorbrowser/types/applications/auth_flow_list_response.py,sha256=9xwPPmcWwz6mYwNKcHab6BbNpU4WFJQZ9SzBmH3z_yo,1231
109
- anchorbrowser/types/applications/auth_flow_update_params.py,sha256=kV4OALmUEcB-1J9iNXeyDcCc1a0QqzBGBJcVwm1pmMw,892
110
- anchorbrowser/types/applications/auth_flow_update_response.py,sha256=thxnOosEMhS7TagZqnRjXhHchkNHFTZ8jcFy9oCSi30,1122
111
109
  anchorbrowser/types/sessions/__init__.py,sha256=dNZck8W2DJTCddTLO-Z8wjuj3aT7z2t2FkNAOpQaEYo,1053
112
110
  anchorbrowser/types/sessions/all_status_response.py,sha256=h4uwmS47nHkHWbRJO2Sb9h_tEaysxvWcpaNyZO-IXxo,701
113
111
  anchorbrowser/types/sessions/clipboard_set_params.py,sha256=LDpW3WOXoD_dcSjTo6pE5K_ilL604sjGGx00AA1XtOQ,322
@@ -127,7 +125,7 @@ anchorbrowser/types/sessions/agent/file_upload_response.py,sha256=9DnqplfvEud89U
127
125
  anchorbrowser/types/sessions/recordings/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
128
126
  anchorbrowser/types/shared/__init__.py,sha256=FQKjY3VDxI8T0feNRazdY5TOqb2KDeEwZaoJjsxuEl4,152
129
127
  anchorbrowser/types/shared/success_response.py,sha256=l9OWrucXoSjBdsx5QKdvBPFtxv8d0YdpYY6iL5cWWuc,314
130
- anchorbrowser-0.7.1.dist-info/METADATA,sha256=CIQ40vGbgAFxFadWe6QKjvBKtvAIzzVC2sCWn7E0Dx8,15407
131
- anchorbrowser-0.7.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
132
- anchorbrowser-0.7.1.dist-info/licenses/LICENSE,sha256=RDcfjK9SJCPlF8nKJnQ33ZQqG4pFl5sBT9AOoTQXK5Q,11343
133
- anchorbrowser-0.7.1.dist-info/RECORD,,
128
+ anchorbrowser-0.7.2.dist-info/METADATA,sha256=zVqr9yj66d0jLwRPvpe3TZAIU3zz6x7xTnbEO2WdsnE,15407
129
+ anchorbrowser-0.7.2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
130
+ anchorbrowser-0.7.2.dist-info/licenses/LICENSE,sha256=RDcfjK9SJCPlF8nKJnQ33ZQqG4pFl5sBT9AOoTQXK5Q,11343
131
+ anchorbrowser-0.7.2.dist-info/RECORD,,
@@ -1,32 +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 List, Iterable
6
- from typing_extensions import Literal, Required, TypedDict
7
-
8
- __all__ = ["AuthFlowUpdateParams", "CustomField"]
9
-
10
-
11
- class AuthFlowUpdateParams(TypedDict, total=False):
12
- application_id: Required[str]
13
-
14
- custom_fields: Iterable[CustomField]
15
- """Custom fields for this authentication flow"""
16
-
17
- description: str
18
- """Description of the authentication flow"""
19
-
20
- is_recommended: bool
21
- """Whether this is the recommended authentication flow"""
22
-
23
- methods: List[Literal["username_password", "authenticator", "custom"]]
24
- """Authentication methods in this flow"""
25
-
26
- name: str
27
- """Name of the authentication flow"""
28
-
29
-
30
- class CustomField(TypedDict, total=False):
31
- name: Required[str]
32
- """Name of the custom field"""
@@ -1,39 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List, Optional
4
- from datetime import datetime
5
-
6
- from ..._models import BaseModel
7
-
8
- __all__ = ["AuthFlowUpdateResponse", "CustomField"]
9
-
10
-
11
- class CustomField(BaseModel):
12
- name: str
13
- """Name of the custom field"""
14
-
15
-
16
- class AuthFlowUpdateResponse(BaseModel):
17
- id: Optional[str] = None
18
- """Unique identifier for the authentication flow"""
19
-
20
- created_at: Optional[datetime] = None
21
- """Timestamp when the authentication flow was created"""
22
-
23
- custom_fields: Optional[List[CustomField]] = None
24
- """Custom fields for this authentication flow"""
25
-
26
- description: Optional[str] = None
27
- """Description of the authentication flow"""
28
-
29
- is_recommended: Optional[bool] = None
30
- """Whether this is the recommended authentication flow"""
31
-
32
- methods: Optional[List[str]] = None
33
- """Authentication methods in this flow"""
34
-
35
- name: Optional[str] = None
36
- """Name of the authentication flow"""
37
-
38
- updated_at: Optional[datetime] = None
39
- """Timestamp when the authentication flow was last updated"""