44
55import httpx
66
7- from ..types import style_extract_fonts_params , style_extract_styleguide_params
7+ from ..types import style_extract_styleguide_params
88from .._types import Body , Omit , Query , Headers , NotGiven , omit , not_given
99from .._utils import maybe_transform , async_maybe_transform
1010from .._compat import cached_property
1616 async_to_streamed_response_wrapper ,
1717)
1818from .._base_client import make_request_options
19- from ..types .style_extract_fonts_response import StyleExtractFontsResponse
2019from ..types .style_extract_styleguide_response import StyleExtractStyleguideResponse
2120
2221__all__ = ["StyleResource" , "AsyncStyleResource" ]
@@ -42,56 +41,6 @@ def with_streaming_response(self) -> StyleResourceWithStreamingResponse:
4241 """
4342 return StyleResourceWithStreamingResponse (self )
4443
45- def extract_fonts (
46- self ,
47- * ,
48- domain : str ,
49- timeout_ms : int | Omit = omit ,
50- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
51- # The extra values given here take precedence over values defined on the client or passed to this method.
52- extra_headers : Headers | None = None ,
53- extra_query : Query | None = None ,
54- extra_body : Body | None = None ,
55- timeout : float | httpx .Timeout | None | NotGiven = not_given ,
56- ) -> StyleExtractFontsResponse :
57- """
58- Extract font information from a brand's website including font families, usage
59- statistics, fallbacks, and element/word counts.
60-
61- Args:
62- domain: Domain name to extract fonts from (e.g., 'example.com', 'google.com'). The
63- domain will be automatically normalized and validated.
64-
65- timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
66- than this value, it will be aborted with a 408 status code. Maximum allowed
67- value is 300000ms (5 minutes).
68-
69- extra_headers: Send extra headers
70-
71- extra_query: Add additional query parameters to the request
72-
73- extra_body: Add additional JSON properties to the request
74-
75- timeout: Override the client-level default timeout for this request, in seconds
76- """
77- return self ._get (
78- "/brand/fonts" ,
79- options = make_request_options (
80- extra_headers = extra_headers ,
81- extra_query = extra_query ,
82- extra_body = extra_body ,
83- timeout = timeout ,
84- query = maybe_transform (
85- {
86- "domain" : domain ,
87- "timeout_ms" : timeout_ms ,
88- },
89- style_extract_fonts_params .StyleExtractFontsParams ,
90- ),
91- ),
92- cast_to = StyleExtractFontsResponse ,
93- )
94-
9544 def extract_styleguide (
9645 self ,
9746 * ,
@@ -170,56 +119,6 @@ def with_streaming_response(self) -> AsyncStyleResourceWithStreamingResponse:
170119 """
171120 return AsyncStyleResourceWithStreamingResponse (self )
172121
173- async def extract_fonts (
174- self ,
175- * ,
176- domain : str ,
177- timeout_ms : int | Omit = omit ,
178- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
179- # The extra values given here take precedence over values defined on the client or passed to this method.
180- extra_headers : Headers | None = None ,
181- extra_query : Query | None = None ,
182- extra_body : Body | None = None ,
183- timeout : float | httpx .Timeout | None | NotGiven = not_given ,
184- ) -> StyleExtractFontsResponse :
185- """
186- Extract font information from a brand's website including font families, usage
187- statistics, fallbacks, and element/word counts.
188-
189- Args:
190- domain: Domain name to extract fonts from (e.g., 'example.com', 'google.com'). The
191- domain will be automatically normalized and validated.
192-
193- timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
194- than this value, it will be aborted with a 408 status code. Maximum allowed
195- value is 300000ms (5 minutes).
196-
197- extra_headers: Send extra headers
198-
199- extra_query: Add additional query parameters to the request
200-
201- extra_body: Add additional JSON properties to the request
202-
203- timeout: Override the client-level default timeout for this request, in seconds
204- """
205- return await self ._get (
206- "/brand/fonts" ,
207- options = make_request_options (
208- extra_headers = extra_headers ,
209- extra_query = extra_query ,
210- extra_body = extra_body ,
211- timeout = timeout ,
212- query = await async_maybe_transform (
213- {
214- "domain" : domain ,
215- "timeout_ms" : timeout_ms ,
216- },
217- style_extract_fonts_params .StyleExtractFontsParams ,
218- ),
219- ),
220- cast_to = StyleExtractFontsResponse ,
221- )
222-
223122 async def extract_styleguide (
224123 self ,
225124 * ,
@@ -282,9 +181,6 @@ class StyleResourceWithRawResponse:
282181 def __init__ (self , style : StyleResource ) -> None :
283182 self ._style = style
284183
285- self .extract_fonts = to_raw_response_wrapper (
286- style .extract_fonts ,
287- )
288184 self .extract_styleguide = to_raw_response_wrapper (
289185 style .extract_styleguide ,
290186 )
@@ -294,9 +190,6 @@ class AsyncStyleResourceWithRawResponse:
294190 def __init__ (self , style : AsyncStyleResource ) -> None :
295191 self ._style = style
296192
297- self .extract_fonts = async_to_raw_response_wrapper (
298- style .extract_fonts ,
299- )
300193 self .extract_styleguide = async_to_raw_response_wrapper (
301194 style .extract_styleguide ,
302195 )
@@ -306,9 +199,6 @@ class StyleResourceWithStreamingResponse:
306199 def __init__ (self , style : StyleResource ) -> None :
307200 self ._style = style
308201
309- self .extract_fonts = to_streamed_response_wrapper (
310- style .extract_fonts ,
311- )
312202 self .extract_styleguide = to_streamed_response_wrapper (
313203 style .extract_styleguide ,
314204 )
@@ -318,9 +208,6 @@ class AsyncStyleResourceWithStreamingResponse:
318208 def __init__ (self , style : AsyncStyleResource ) -> None :
319209 self ._style = style
320210
321- self .extract_fonts = async_to_streamed_response_wrapper (
322- style .extract_fonts ,
323- )
324211 self .extract_styleguide = async_to_streamed_response_wrapper (
325212 style .extract_styleguide ,
326213 )
0 commit comments