@@ -66,6 +66,7 @@ def extract_fonts(
6666 * ,
6767 direct_url : str | Omit = omit ,
6868 domain : str | Omit = omit ,
69+ max_age_ms : int | Omit = omit ,
6970 timeout_ms : int | Omit = omit ,
7071 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7172 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -87,6 +88,11 @@ def extract_fonts(
8788 domain will be automatically normalized and validated. You must provide either
8889 'domain' or 'directUrl', but not both.
8990
91+ max_age_ms: Maximum age in milliseconds for cached data before the API performs a hard
92+ refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
93+ are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
94+ year.
95+
9096 timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
9197 than this value, it will be aborted with a 408 status code. Maximum allowed
9298 value is 300000ms (5 minutes).
@@ -110,6 +116,7 @@ def extract_fonts(
110116 {
111117 "direct_url" : direct_url ,
112118 "domain" : domain ,
119+ "max_age_ms" : max_age_ms ,
113120 "timeout_ms" : timeout_ms ,
114121 },
115122 web_extract_fonts_params .WebExtractFontsParams ,
@@ -123,6 +130,7 @@ def extract_styleguide(
123130 * ,
124131 direct_url : str | Omit = omit ,
125132 domain : str | Omit = omit ,
133+ max_age_ms : int | Omit = omit ,
126134 timeout_ms : int | Omit = omit ,
127135 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
128136 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -145,6 +153,11 @@ def extract_styleguide(
145153 domain will be automatically normalized and validated. You must provide either
146154 'domain' or 'directUrl', but not both.
147155
156+ max_age_ms: Maximum age in milliseconds for cached data before the API performs a hard
157+ refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
158+ are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
159+ year.
160+
148161 timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
149162 than this value, it will be aborted with a 408 status code. Maximum allowed
150163 value is 300000ms (5 minutes).
@@ -168,6 +181,7 @@ def extract_styleguide(
168181 {
169182 "direct_url" : direct_url ,
170183 "domain" : domain ,
184+ "max_age_ms" : max_age_ms ,
171185 "timeout_ms" : timeout_ms ,
172186 },
173187 web_extract_styleguide_params .WebExtractStyleguideParams ,
@@ -749,6 +763,7 @@ async def extract_fonts(
749763 * ,
750764 direct_url : str | Omit = omit ,
751765 domain : str | Omit = omit ,
766+ max_age_ms : int | Omit = omit ,
752767 timeout_ms : int | Omit = omit ,
753768 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
754769 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -770,6 +785,11 @@ async def extract_fonts(
770785 domain will be automatically normalized and validated. You must provide either
771786 'domain' or 'directUrl', but not both.
772787
788+ max_age_ms: Maximum age in milliseconds for cached data before the API performs a hard
789+ refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
790+ are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
791+ year.
792+
773793 timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
774794 than this value, it will be aborted with a 408 status code. Maximum allowed
775795 value is 300000ms (5 minutes).
@@ -793,6 +813,7 @@ async def extract_fonts(
793813 {
794814 "direct_url" : direct_url ,
795815 "domain" : domain ,
816+ "max_age_ms" : max_age_ms ,
796817 "timeout_ms" : timeout_ms ,
797818 },
798819 web_extract_fonts_params .WebExtractFontsParams ,
@@ -806,6 +827,7 @@ async def extract_styleguide(
806827 * ,
807828 direct_url : str | Omit = omit ,
808829 domain : str | Omit = omit ,
830+ max_age_ms : int | Omit = omit ,
809831 timeout_ms : int | Omit = omit ,
810832 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
811833 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -828,6 +850,11 @@ async def extract_styleguide(
828850 domain will be automatically normalized and validated. You must provide either
829851 'domain' or 'directUrl', but not both.
830852
853+ max_age_ms: Maximum age in milliseconds for cached data before the API performs a hard
854+ refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
855+ are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
856+ year.
857+
831858 timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
832859 than this value, it will be aborted with a 408 status code. Maximum allowed
833860 value is 300000ms (5 minutes).
@@ -851,6 +878,7 @@ async def extract_styleguide(
851878 {
852879 "direct_url" : direct_url ,
853880 "domain" : domain ,
881+ "max_age_ms" : max_age_ms ,
854882 "timeout_ms" : timeout_ms ,
855883 },
856884 web_extract_styleguide_params .WebExtractStyleguideParams ,
0 commit comments