Skip to content

Commit 3758473

Browse files
feat(api): api update
1 parent d41b2b0 commit 3758473

3 files changed

Lines changed: 10 additions & 13 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-9cbf61fcc1963e0a895575e95d6d57101ceebd06e7e83b2e6ab2e6559921d8b9.yml
3-
openapi_spec_hash: 3e687221fe05e917a1c5b622afd17103
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-e8d4199dcf2a97bcd0858e18db7feb3bb4f5a64c9c2d0ee0105636d28c35227d.yml
3+
openapi_spec_hash: 8e825842065c24f11fd3f51fdd705337
44
config_hash: ff13935d1231ad44cd3822ffe39904b4

‎src/context/dev/resources/web.py‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,9 @@ def screenshot(
209209
screenshot capturing all content. If 'false' or not provided, takes a viewport
210210
screenshot (standard browser view).
211211
212-
handle_cookie_popup: Optional parameter to control cookie/consent popup handling. If 'true', the
213-
browser service dismisses cookie consent before capture. If 'false' or not
214-
provided, captures the page without that step. This value is part of the
215-
screenshot cache key.
212+
handle_cookie_popup: Optional parameter to control cookie/consent popup handling. If 'true', we
213+
dismiss cookie banner before capture. If 'false' or not provided, captures the
214+
page without that step.
216215
217216
max_age_ms: Return a cached screenshot if a prior screenshot for the same parameters exists
218217
and is younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
@@ -826,10 +825,9 @@ async def screenshot(
826825
screenshot capturing all content. If 'false' or not provided, takes a viewport
827826
screenshot (standard browser view).
828827
829-
handle_cookie_popup: Optional parameter to control cookie/consent popup handling. If 'true', the
830-
browser service dismisses cookie consent before capture. If 'false' or not
831-
provided, captures the page without that step. This value is part of the
832-
screenshot cache key.
828+
handle_cookie_popup: Optional parameter to control cookie/consent popup handling. If 'true', we
829+
dismiss cookie banner before capture. If 'false' or not provided, captures the
830+
page without that step.
833831
834832
max_age_ms: Return a cached screenshot if a prior screenshot for the same parameters exists
835833
and is younger than this many milliseconds. Defaults to 1 day (86400000 ms) when

‎src/context/dev/types/web_screenshot_params.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ class WebScreenshotParams(TypedDict, total=False):
3434
handle_cookie_popup: Annotated[Literal["true", "false"], PropertyInfo(alias="handleCookiePopup")]
3535
"""Optional parameter to control cookie/consent popup handling.
3636
37-
If 'true', the browser service dismisses cookie consent before capture. If
38-
'false' or not provided, captures the page without that step. This value is part
39-
of the screenshot cache key.
37+
If 'true', we dismiss cookie banner before capture. If 'false' or not provided,
38+
captures the page without that step.
4039
"""
4140

4241
max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")]

0 commit comments

Comments
 (0)