Skip to content

Commit e74edce

Browse files
feat(api): api update
1 parent 0b8d0e5 commit e74edce

5 files changed

Lines changed: 186 additions & 138 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/context-dev%2Fcontext.dev-2ddb6d73ec8831eee4cb4352b85843a1f6f444e48d8be837cfcd118eddd2a63e.yml
3-
openapi_spec_hash: 1163122fba27e56fa5879bc98d32ee14
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-56a21db16ac3a797f86daca01a2ea115a0365db4b2f9d8accdec4f4d3ee2eb83.yml
3+
openapi_spec_hash: bfcef090896da96023c4485a3d69e350
44
config_hash: 38268bb88fc4dcbb8f2f94dd138b5910

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal
6-
75
import httpx
86

97
from ..types import style_extract_fonts_params, style_extract_styleguide_params
@@ -99,7 +97,6 @@ def extract_styleguide(
9997
*,
10098
direct_url: str | Omit = omit,
10199
domain: str | Omit = omit,
102-
prioritize: Literal["speed", "quality"] | Omit = omit,
103100
timeout_ms: int | Omit = omit,
104101
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
105102
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -121,11 +118,6 @@ def extract_styleguide(
121118
domain: Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
122119
domain will be automatically normalized and validated.
123120
124-
prioritize: Optional parameter to prioritize screenshot capture for styleguide extraction.
125-
If 'speed', optimizes for faster capture with basic quality. If 'quality',
126-
optimizes for higher quality with longer wait times. Defaults to 'quality' if
127-
not provided.
128-
129121
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
130122
than this value, it will be aborted with a 408 status code. Maximum allowed
131123
value is 300000ms (5 minutes).
@@ -149,7 +141,6 @@ def extract_styleguide(
149141
{
150142
"direct_url": direct_url,
151143
"domain": domain,
152-
"prioritize": prioritize,
153144
"timeout_ms": timeout_ms,
154145
},
155146
style_extract_styleguide_params.StyleExtractStyleguideParams,
@@ -234,7 +225,6 @@ async def extract_styleguide(
234225
*,
235226
direct_url: str | Omit = omit,
236227
domain: str | Omit = omit,
237-
prioritize: Literal["speed", "quality"] | Omit = omit,
238228
timeout_ms: int | Omit = omit,
239229
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
240230
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -256,11 +246,6 @@ async def extract_styleguide(
256246
domain: Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
257247
domain will be automatically normalized and validated.
258248
259-
prioritize: Optional parameter to prioritize screenshot capture for styleguide extraction.
260-
If 'speed', optimizes for faster capture with basic quality. If 'quality',
261-
optimizes for higher quality with longer wait times. Defaults to 'quality' if
262-
not provided.
263-
264249
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
265250
than this value, it will be aborted with a 408 status code. Maximum allowed
266251
value is 300000ms (5 minutes).
@@ -284,7 +269,6 @@ async def extract_styleguide(
284269
{
285270
"direct_url": direct_url,
286271
"domain": domain,
287-
"prioritize": prioritize,
288272
"timeout_ms": timeout_ms,
289273
},
290274
style_extract_styleguide_params.StyleExtractStyleguideParams,

‎src/context/dev/types/style_extract_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 StyleExtractStyleguideParams(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)