Skip to content

Commit 06eeb90

Browse files
feat(api): api update
1 parent 99080ad commit 06eeb90

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-ffb96b6ba7020a8e2608ad727c330c6f353c037485dc1c1309aa86ea5549af15.yml
3-
openapi_spec_hash: 2b969dbfad500d6f8a8d1ccfcaae930c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-584d3486a6c5bf7b68dcaacb0bde2ef5f648c158e5c5ebccc7a7684d95abc832.yml
3+
openapi_spec_hash: 29a53e1f96a2c5d9407f1a0938e301bf
44
config_hash: 4cd3173ea1cce7183640aae49cfbb374

src/brand/dev/resources/brand.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,6 +1803,7 @@ def web_scrape_md(
18031803
url: str,
18041804
include_images: bool | Omit = omit,
18051805
include_links: bool | Omit = omit,
1806+
shorten_base64_images: bool | Omit = omit,
18061807
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
18071808
# The extra values given here take precedence over values defined on the client or passed to this method.
18081809
extra_headers: Headers | None = None,
@@ -1823,6 +1824,8 @@ def web_scrape_md(
18231824
18241825
include_links: Preserve hyperlinks in Markdown output
18251826
1827+
shorten_base64_images: Shorten base64-encoded image data in the Markdown output
1828+
18261829
extra_headers: Send extra headers
18271830
18281831
extra_query: Add additional query parameters to the request
@@ -1843,6 +1846,7 @@ def web_scrape_md(
18431846
"url": url,
18441847
"include_images": include_images,
18451848
"include_links": include_links,
1849+
"shorten_base64_images": shorten_base64_images,
18461850
},
18471851
brand_web_scrape_md_params.BrandWebScrapeMdParams,
18481852
),
@@ -3632,6 +3636,7 @@ async def web_scrape_md(
36323636
url: str,
36333637
include_images: bool | Omit = omit,
36343638
include_links: bool | Omit = omit,
3639+
shorten_base64_images: bool | Omit = omit,
36353640
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
36363641
# The extra values given here take precedence over values defined on the client or passed to this method.
36373642
extra_headers: Headers | None = None,
@@ -3652,6 +3657,8 @@ async def web_scrape_md(
36523657
36533658
include_links: Preserve hyperlinks in Markdown output
36543659
3660+
shorten_base64_images: Shorten base64-encoded image data in the Markdown output
3661+
36553662
extra_headers: Send extra headers
36563663
36573664
extra_query: Add additional query parameters to the request
@@ -3672,6 +3679,7 @@ async def web_scrape_md(
36723679
"url": url,
36733680
"include_images": include_images,
36743681
"include_links": include_links,
3682+
"shorten_base64_images": shorten_base64_images,
36753683
},
36763684
brand_web_scrape_md_params.BrandWebScrapeMdParams,
36773685
),

src/brand/dev/types/brand_web_scrape_md_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ class BrandWebScrapeMdParams(TypedDict, total=False):
2121

2222
include_links: Annotated[bool, PropertyInfo(alias="includeLinks")]
2323
"""Preserve hyperlinks in Markdown output"""
24+
25+
shorten_base64_images: Annotated[bool, PropertyInfo(alias="shortenBase64Images")]
26+
"""Shorten base64-encoded image data in the Markdown output"""

tests/api_resources/test_brand.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,7 @@ def test_method_web_scrape_md_with_all_params(self, client: BrandDev) -> None:
920920
url="https://example.com",
921921
include_images=True,
922922
include_links=True,
923+
shorten_base64_images=True,
923924
)
924925
assert_matches_type(BrandWebScrapeMdResponse, brand, path=["response"])
925926

@@ -1871,6 +1872,7 @@ async def test_method_web_scrape_md_with_all_params(self, async_client: AsyncBra
18711872
url="https://example.com",
18721873
include_images=True,
18731874
include_links=True,
1875+
shorten_base64_images=True,
18741876
)
18751877
assert_matches_type(BrandWebScrapeMdResponse, brand, path=["response"])
18761878

0 commit comments

Comments
 (0)