Skip to content

Commit 3073018

Browse files
feat(api): api update
1 parent 1f84096 commit 3073018

5 files changed

Lines changed: 186 additions & 136 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: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-c91b0567307b069c250d073074b7c861b64e632a8380b24925e15d981846bb43.yml
3-
openapi_spec_hash: e479aa097b1283c2acf19d6360787449
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-05a30711e18b0023520a660352d75595a050d1299bf0e3ee4a8cf55ded36aea2.yml
3+
openapi_spec_hash: 8d0e1115a7d864f27c55cec3255d1e77
44
config_hash: 91cf2dcefb99c39eb9cd3e98e15d6011

src/brand/dev/resources/brand.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,6 @@ def styleguide(
19231923
*,
19241924
direct_url: str | Omit = omit,
19251925
domain: str | Omit = omit,
1926-
prioritize: Literal["speed", "quality"] | Omit = omit,
19271926
timeout_ms: int | Omit = omit,
19281927
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
19291928
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1945,11 +1944,6 @@ def styleguide(
19451944
domain: Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
19461945
domain will be automatically normalized and validated.
19471946
1948-
prioritize: Optional parameter to prioritize screenshot capture for styleguide extraction.
1949-
If 'speed', optimizes for faster capture with basic quality. If 'quality',
1950-
optimizes for higher quality with longer wait times. Defaults to 'quality' if
1951-
not provided.
1952-
19531947
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
19541948
than this value, it will be aborted with a 408 status code. Maximum allowed
19551949
value is 300000ms (5 minutes).
@@ -1973,7 +1967,6 @@ def styleguide(
19731967
{
19741968
"direct_url": direct_url,
19751969
"domain": domain,
1976-
"prioritize": prioritize,
19771970
"timeout_ms": timeout_ms,
19781971
},
19791972
brand_styleguide_params.BrandStyleguideParams,
@@ -4030,7 +4023,6 @@ async def styleguide(
40304023
*,
40314024
direct_url: str | Omit = omit,
40324025
domain: str | Omit = omit,
4033-
prioritize: Literal["speed", "quality"] | Omit = omit,
40344026
timeout_ms: int | Omit = omit,
40354027
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
40364028
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4052,11 +4044,6 @@ async def styleguide(
40524044
domain: Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
40534045
domain will be automatically normalized and validated.
40544046
4055-
prioritize: Optional parameter to prioritize screenshot capture for styleguide extraction.
4056-
If 'speed', optimizes for faster capture with basic quality. If 'quality',
4057-
optimizes for higher quality with longer wait times. Defaults to 'quality' if
4058-
not provided.
4059-
40604047
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
40614048
than this value, it will be aborted with a 408 status code. Maximum allowed
40624049
value is 300000ms (5 minutes).
@@ -4080,7 +4067,6 @@ async def styleguide(
40804067
{
40814068
"direct_url": direct_url,
40824069
"domain": domain,
4083-
"prioritize": prioritize,
40844070
"timeout_ms": timeout_ms,
40854071
},
40864072
brand_styleguide_params.BrandStyleguideParams,

src/brand/dev/types/brand_styleguide_params.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal, Annotated, TypedDict
5+
from typing_extensions import Annotated, TypedDict
66

77
from .._utils import PropertyInfo
88

@@ -22,14 +22,6 @@ class BrandStyleguideParams(TypedDict, total=False):
2222
The domain will be automatically normalized and validated.
2323
"""
2424

25-
prioritize: Literal["speed", "quality"]
26-
"""Optional parameter to prioritize screenshot capture for styleguide extraction.
27-
28-
If 'speed', optimizes for faster capture with basic quality. If 'quality',
29-
optimizes for higher quality with longer wait times. Defaults to 'quality' if
30-
not provided.
31-
"""
32-
3325
timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")]
3426
"""Optional timeout in milliseconds for the request.
3527

0 commit comments

Comments
 (0)